2 # From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#33 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for OpenBSM 1.0alpha14.
6 # Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
262 elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
273 if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
292 echo_test_string=`eval $cmd` &&
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
309 # So, first we look for a working echo in the user's PATH.
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
362 # maybe with a smaller string...
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 # Oops. We lost completely, so just stick with echo.
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 tagnames=${tagnames+${tagnames},}CXX
399 tagnames=${tagnames+${tagnames},}F77
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
417 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
424 # Identity of this package.
425 PACKAGE_NAME='OpenBSM'
426 PACKAGE_TARNAME='openbsm'
427 PACKAGE_VERSION='1.0alpha14'
428 PACKAGE_STRING='OpenBSM 1.0alpha14'
429 PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
431 ac_unique_file="bin/auditreduce/auditreduce.c"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
436 # include <sys/types.h>
439 # include <sys/stat.h>
450 # if !STDC_HEADERS && HAVE_MEMORY_H
456 # include <strings.h>
459 # include <inttypes.h>
469 ac_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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA 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 STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIBOBJS HAVE_AUDIT_SYSCALLS_TRUE HAVE_AUDIT_SYSCALLS_FALSE LTLIBOBJS'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
958 \`configure' configures OpenBSM 1.0alpha14 to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 if test -n "$ac_init_help"; then
1023 case $ac_init_help in
1024 short | recursive ) echo "Configuration of OpenBSM 1.0alpha14:";;
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031 --enable-maintainer-mode enable make rules and dependencies not useful
1032 (and sometimes confusing) to the casual installer
1033 --enable-shared[=PKGS]
1034 build shared libraries [default=yes]
1035 --enable-static[=PKGS]
1036 build static libraries [default=yes]
1037 --enable-fast-install[=PKGS]
1038 optimize for fast installation [default=yes]
1039 --disable-libtool-lock avoid locking (might break parallel builds)
1040 --disable-dependency-tracking speeds up one-time build
1041 --enable-dependency-tracking do not reject slow dependency extractors
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1052 Some influential environment variables:
1053 CC C compiler command
1054 CFLAGS C compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
1060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
1062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1069 Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1073 if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1080 if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 ac_dir_suffix= ac_top_builddir=
1089 .) # No --srcdir option. We are building in place.
1091 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1107 .) ac_abs_builddir="$ac_dir";;
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1154 $ac_configure --help
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1165 OpenBSM configure 1.0alpha14
1166 generated by GNU Autoconf 2.59
1168 Copyright (C) 2003 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1176 This file contains any messages produced by compilers while
1177 running configure, to aid debugging if configure makes a mistake.
1179 It was created by OpenBSM $as_me 1.0alpha14, which was
1180 generated by GNU Autoconf 2.59. Invocation command line was
1191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir"
1230 # Keep a trace of the command line.
1231 # Strip out --no-create and --no-recursion so they do not pile up.
1232 # Strip out --silent because we don't want to record it for future runs.
1233 # Also quote any args containing shell meta-characters.
1234 # Make two passes to allow for proper duplicate-argument suppression.
1239 ac_must_keep_next=false
1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256 if test $ac_must_keep_next = true; then
1257 ac_must_keep_next=false # Got value, back to normal.
1260 *=* | --config-cache | -C | -disable-* | --disable-* \
1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263 | -with-* | --with-* | -without-* | --without-* | --x)
1264 case "$ac_configure_args0 " in
1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268 -* ) ac_must_keep_next=true ;;
1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272 # Get rid of the leading space.
1278 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281 # When interrupted or exit'd, cleanup temporary files, and complete
1282 # config.log. We remove comments because anyway the quotes in there
1283 # would cause problems or look ugly.
1284 # WARNING: Be sure not to use single quotes in there, as some shells,
1285 # such as our DU 5.0 friend, will then `close' the trap.
1286 trap 'exit_status=$?
1287 # Save into config.log some information that might help in debugging.
1292 ## ---------------- ##
1293 ## Cache variables. ##
1294 ## ---------------- ##
1297 # The following way of writing the cache mishandles newlines in values,
1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1315 ## ----------------- ##
1316 ## Output variables. ##
1317 ## ----------------- ##
1320 for ac_var in $ac_subst_vars
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1327 if test -n "$ac_subst_files"; then
1334 for ac_var in $ac_subst_files
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1342 if test -s confdefs.h; then
1349 sed "/^$/d" confdefs.h | sort
1352 test "$ac_signal" != 0 &&
1353 echo "$as_me: caught signal $ac_signal"
1354 echo "$as_me: exit $exit_status"
1356 rm -f core *.core &&
1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360 for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1366 rm -rf conftest* confdefs.h
1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 # Predefined preprocessor variables.
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 # Let the site file select an alternate cache file if it wants to.
1398 # Prefer explicitly selected file to automatically selected ones.
1399 if test -z "$CONFIG_SITE"; then
1400 if test "x$prefix" != xNONE; then
1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406 for ac_site_file in $CONFIG_SITE; do
1407 if test -r "$ac_site_file"; then
1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409 echo "$as_me: loading site script $ac_site_file" >&6;}
1410 sed 's/^/| /' "$ac_site_file" >&5
1415 if test -r "$cache_file"; then
1416 # Some versions of bash will fail to source /dev/null (special
1417 # files actually), so we avoid doing that.
1418 if test -f "$cache_file"; then
1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420 echo "$as_me: loading cache $cache_file" >&6;}
1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
1423 *) . ./$cache_file;;
1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428 echo "$as_me: creating cache $cache_file" >&6;}
1432 # Check that the precious variables saved in the cache have kept the same
1434 ac_cache_corrupted=false
1435 for ac_var in `(set) 2>&1 |
1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438 eval ac_new_set=\$ac_env_${ac_var}_set
1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440 eval ac_new_val="\$ac_env_${ac_var}_value"
1441 case $ac_old_set,$ac_new_set in
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1452 if test "x$ac_old_val" != "x$ac_new_val"; then
1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1456 echo "$as_me: former value: $ac_old_val" >&2;}
1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1458 echo "$as_me: current value: $ac_new_val" >&2;}
1459 ac_cache_corrupted=:
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480 { (exit 1); exit 1; }; }
1484 ac_cpp='$CPP $CPPFLAGS'
1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518 for ac_dir in config $srcdir/config; do
1519 if test -f $ac_dir/install-sh; then
1521 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 elif test -f $ac_dir/install.sh; then
1525 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 elif test -f $ac_dir/shtool; then
1529 ac_install_sh="$ac_aux_dir/shtool install -c"
1533 if test -z "$ac_aux_dir"; then
1534 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1535 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1536 { (exit 1); exit 1; }; }
1538 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542 ac_config_headers="$ac_config_headers config/config.h"
1544 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1545 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1546 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1547 if test "${enable_maintainer_mode+set}" = set; then
1548 enableval="$enable_maintainer_mode"
1549 USE_MAINTAINER_MODE=$enableval
1551 USE_MAINTAINER_MODE=no
1553 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1554 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1557 if test $USE_MAINTAINER_MODE = yes; then
1558 MAINTAINER_MODE_TRUE=
1559 MAINTAINER_MODE_FALSE='#'
1561 MAINTAINER_MODE_TRUE='#'
1562 MAINTAINER_MODE_FALSE=
1565 MAINT=$MAINTAINER_MODE_TRUE
1569 # Checks for programs.
1571 ac_cpp='$CPP $CPPFLAGS'
1572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1575 if test -n "$ac_tool_prefix"; then
1576 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1577 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_CC+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 if test -n "$CC"; then
1584 ac_cv_prog_CC="$CC" # Let the user override the test.
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 test -z "$as_dir" && as_dir=.
1591 for ac_exec_ext in '' $ac_executable_extensions; do
1592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603 if test -n "$CC"; then
1604 echo "$as_me:$LINENO: result: $CC" >&5
1605 echo "${ECHO_T}$CC" >&6
1607 echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1612 if test -z "$ac_cv_prog_CC"; then
1614 # Extract the first word of "gcc", so it can be a program name with args.
1615 set dummy gcc; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 if test -n "$ac_ct_CC"; then
1622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_ac_ct_CC="gcc"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1641 if test -n "$ac_ct_CC"; then
1642 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1643 echo "${ECHO_T}$ac_ct_CC" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1654 if test -z "$CC"; then
1655 if test -n "$ac_tool_prefix"; then
1656 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1657 set dummy ${ac_tool_prefix}cc; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="${ac_tool_prefix}cc"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1692 if test -z "$ac_cv_prog_CC"; then
1694 # Extract the first word of "cc", so it can be a program name with args.
1695 set dummy cc; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1735 if test -z "$CC"; then
1736 # Extract the first word of "cc", so it can be a program name with args.
1737 set dummy cc; ac_word=$2
1738 echo "$as_me:$LINENO: checking for $ac_word" >&5
1739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740 if test "${ac_cv_prog_CC+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 if test -n "$CC"; then
1744 ac_cv_prog_CC="$CC" # Let the user override the test.
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1755 ac_prog_rejected=yes
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 if test $ac_prog_rejected = yes; then
1766 # We found a bogon in the path, so make sure we never use it.
1767 set dummy $ac_cv_prog_CC
1769 if test $# != 0; then
1770 # We chose a different compiler from the bogus one.
1771 # However, it has the same basename, so the bogon will be chosen
1772 # first if we set CC to just the basename; use the full file name.
1774 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1780 if test -n "$CC"; then
1781 echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1789 if test -z "$CC"; then
1790 if test -n "$ac_tool_prefix"; then
1793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 test -z "$as_dir" && as_dir=.
1808 for ac_exec_ext in '' $ac_executable_extensions; do
1809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 if test -n "$CC"; then
1821 echo "$as_me:$LINENO: result: $CC" >&5
1822 echo "${ECHO_T}$CC" >&6
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1828 test -n "$CC" && break
1831 if test -z "$CC"; then
1835 # Extract the first word of "$ac_prog", so it can be a program name with args.
1836 set dummy $ac_prog; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 if test -n "$ac_ct_CC"; then
1843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852 ac_cv_prog_ac_ct_CC="$ac_prog"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1862 if test -n "$ac_ct_CC"; then
1863 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1864 echo "${ECHO_T}$ac_ct_CC" >&6
1866 echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1870 test -n "$ac_ct_CC" && break
1879 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1880 See \`config.log' for more details." >&5
1881 echo "$as_me: error: no acceptable C compiler found in \$PATH
1882 See \`config.log' for more details." >&2;}
1883 { (exit 1); exit 1; }; }
1885 # Provide some information about the compiler.
1886 echo "$as_me:$LINENO:" \
1887 "checking for C compiler version" >&5
1888 ac_compiler=`set X $ac_compile; echo $2`
1889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1890 (eval $ac_compiler --version </dev/null >&5) 2>&5
1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893 (exit $ac_status); }
1894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1895 (eval $ac_compiler -v </dev/null >&5) 2>&5
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }
1899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1900 (eval $ac_compiler -V </dev/null >&5) 2>&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }
1905 cat >conftest.$ac_ext <<_ACEOF
1908 cat confdefs.h >>conftest.$ac_ext
1909 cat >>conftest.$ac_ext <<_ACEOF
1910 /* end confdefs.h. */
1920 ac_clean_files_save=$ac_clean_files
1921 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1922 # Try to create an executable without -o first, disregard a.out.
1923 # It will help us diagnose broken compilers, and finding out an intuition
1925 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1926 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1927 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1928 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1929 (eval $ac_link_default) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }; then
1933 # Find the output, starting from the most likely. This scheme is
1934 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1937 # Be careful to initialize this variable, since it used to be cached.
1938 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1940 # b.out is created by i960 compilers.
1941 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1943 test -f "$ac_file" || continue
1945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1948 # This is the source file.
1951 # We found the default executable, but exeext='' is most
1955 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1956 # FIXME: I believe we export ac_cv_exeext for Libtool,
1957 # but it would be cool to find out if it's true. Does anybody
1958 # maintain Libtool? --akim.
1966 echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1970 See \`config.log' for more details." >&5
1971 echo "$as_me: error: C compiler cannot create executables
1972 See \`config.log' for more details." >&2;}
1973 { (exit 77); exit 77; }; }
1976 ac_exeext=$ac_cv_exeext
1977 echo "$as_me:$LINENO: result: $ac_file" >&5
1978 echo "${ECHO_T}$ac_file" >&6
1980 # Check the compiler produces executables we can run. If not, either
1981 # the compiler is broken, or we cross compile.
1982 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1983 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1984 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1985 # If not cross compiling, check that we can run a simple program.
1986 if test "$cross_compiling" != yes; then
1987 if { ac_try='./$ac_file'
1988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }; }; then
1995 if test "$cross_compiling" = maybe; then
1998 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1999 If you meant to cross compile, use \`--host'.
2000 See \`config.log' for more details." >&5
2001 echo "$as_me: error: cannot run C compiled programs.
2002 If you meant to cross compile, use \`--host'.
2003 See \`config.log' for more details." >&2;}
2004 { (exit 1); exit 1; }; }
2008 echo "$as_me:$LINENO: result: yes" >&5
2009 echo "${ECHO_T}yes" >&6
2011 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2012 ac_clean_files=$ac_clean_files_save
2013 # Check the compiler produces executables we can run. If not, either
2014 # the compiler is broken, or we cross compile.
2015 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2016 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2017 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2018 echo "${ECHO_T}$cross_compiling" >&6
2020 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2021 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2023 (eval $ac_link) 2>&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; then
2027 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2028 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2029 # work properly (i.e., refer to `conftest.exe'), while it won't with
2031 for ac_file in conftest.exe conftest conftest.*; do
2032 test -f "$ac_file" || continue
2034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2035 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2045 See \`config.log' for more details." >&2;}
2046 { (exit 1); exit 1; }; }
2049 rm -f conftest$ac_cv_exeext
2050 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2051 echo "${ECHO_T}$ac_cv_exeext" >&6
2053 rm -f conftest.$ac_ext
2054 EXEEXT=$ac_cv_exeext
2056 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2057 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2058 if test "${ac_cv_objext+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.$ac_ext <<_ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2076 rm -f conftest.o conftest.obj
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; then
2082 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2085 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2090 echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2093 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2094 See \`config.log' for more details." >&5
2095 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2096 See \`config.log' for more details." >&2;}
2097 { (exit 1); exit 1; }; }
2100 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2102 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2103 echo "${ECHO_T}$ac_cv_objext" >&6
2104 OBJEXT=$ac_cv_objext
2106 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2107 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2108 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 cat >conftest.$ac_ext <<_ACEOF
2114 cat confdefs.h >>conftest.$ac_ext
2115 cat >>conftest.$ac_ext <<_ACEOF
2116 /* end confdefs.h. */
2129 rm -f conftest.$ac_objext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>conftest.er1
2133 grep -v '^ *+' conftest.er1 >conftest.err
2135 cat conftest.err >&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); } &&
2138 { ac_try='test -z "$ac_c_werror_flag"
2139 || test ! -s conftest.err'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; } &&
2145 { ac_try='test -s conftest.$ac_objext'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; }; then
2153 echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2159 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2162 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2163 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2164 GCC=`test $ac_compiler_gnu = yes && echo yes`
2165 ac_test_CFLAGS=${CFLAGS+set}
2166 ac_save_CFLAGS=$CFLAGS
2168 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2169 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2170 if test "${ac_cv_prog_cc_g+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 cat >conftest.$ac_ext <<_ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h. */
2188 rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190 (eval $ac_compile) 2>conftest.er1
2192 grep -v '^ *+' conftest.er1 >conftest.err
2194 cat conftest.err >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -z "$ac_c_werror_flag"
2198 || test ! -s conftest.err'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; } &&
2204 { ac_try='test -s conftest.$ac_objext'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2220 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2221 if test "$ac_test_CFLAGS" = set; then
2222 CFLAGS=$ac_save_CFLAGS
2223 elif test $ac_cv_prog_cc_g = yes; then
2224 if test "$GCC" = yes; then
2230 if test "$GCC" = yes; then
2236 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2237 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2238 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 ac_cv_prog_cc_stdc=no
2243 cat >conftest.$ac_ext <<_ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2251 #include <sys/types.h>
2252 #include <sys/stat.h>
2253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2254 struct buf { int x; };
2255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2256 static char *e (p, i)
2262 static char *f (char * (*g) (char **, int), char **p, ...)
2267 s = g (p, va_arg (v,int));
2272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2273 function prototypes and stuff, but not '\xHH' hex character constants.
2274 These don't provoke an error unfortunately, instead are silently treated
2275 as 'x'. The following induces an error, until -std1 is added to get
2276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2277 array size at least. It's necessary to write '\x00'==0 to get something
2278 that's true only with -std1. */
2279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2281 int test (int i, double x);
2282 struct s1 {int (*f) (int a);};
2283 struct s2 {int (*f) (double a);};
2284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2290 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2295 # Don't try gcc -ansi; that turns off useful extensions and
2296 # breaks some systems' header files.
2297 # AIX -qlanglvl=ansi
2298 # Ultrix and OSF/1 -std1
2299 # HP-UX 10.20 and later -Ae
2300 # HP-UX older versions -Aa -D_HPUX_SOURCE
2301 # SVR4 -Xc -D__EXTENSIONS__
2302 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2304 CC="$ac_save_CC $ac_arg"
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 ac_cv_prog_cc_stdc=$ac_arg
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2334 rm -f conftest.err conftest.$ac_objext
2336 rm -f conftest.$ac_ext conftest.$ac_objext
2341 case "x$ac_cv_prog_cc_stdc" in
2343 echo "$as_me:$LINENO: result: none needed" >&5
2344 echo "${ECHO_T}none needed" >&6 ;;
2346 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2347 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2348 CC="$CC $ac_cv_prog_cc_stdc" ;;
2351 # Some people use a C++ compiler to compile C. Since we use `exit',
2352 # in C++ we need to declare it. In case someone uses the same compiler
2353 # for both compiling C and C++ we need to have the C++ compiler decide
2354 # the declaration of exit, since it's the most demanding environment.
2355 cat >conftest.$ac_ext <<_ACEOF
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>conftest.er1
2364 grep -v '^ *+' conftest.er1 >conftest.err
2366 cat conftest.err >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try='test -z "$ac_c_werror_flag"
2370 || test ! -s conftest.err'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; } &&
2376 { ac_try='test -s conftest.$ac_objext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2382 for ac_declaration in \
2384 'extern "C" void std::exit (int) throw (); using std::exit;' \
2385 'extern "C" void std::exit (int); using std::exit;' \
2386 'extern "C" void exit (int) throw ();' \
2387 'extern "C" void exit (int);' \
2390 cat >conftest.$ac_ext <<_ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h. */
2406 rm -f conftest.$ac_objext
2407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408 (eval $ac_compile) 2>conftest.er1
2410 grep -v '^ *+' conftest.er1 >conftest.err
2412 cat conftest.err >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -z "$ac_c_werror_flag"
2416 || test ! -s conftest.err'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; } &&
2422 { ac_try='test -s conftest.$ac_objext'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2430 echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2455 grep -v '^ *+' conftest.er1 >conftest.err
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482 if test -n "$ac_declaration"; then
2483 echo '#ifdef __cplusplus' >>confdefs.h
2484 echo $ac_declaration >>confdefs.h
2485 echo '#endif' >>confdefs.h
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 ac_cpp='$CPP $CPPFLAGS'
2496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500 # Find a good install program. We prefer a C program (faster),
2501 # so one script is as good as another. But avoid the broken or
2502 # incompatible versions:
2503 # SysV /etc/install, /usr/sbin/install
2504 # SunOS /usr/etc/install
2505 # IRIX /sbin/install
2507 # AmigaOS /C/install, which installs bootblocks on floppy discs
2508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2511 # OS/2's system install, which has a completely different semantic
2512 # ./install, which can be erroneously created by make from ./install.sh.
2513 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2514 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2515 if test -z "$INSTALL"; then
2516 if test "${ac_cv_path_install+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 test -z "$as_dir" && as_dir=.
2524 # Account for people who put trailing slashes in PATH elements.
2526 ./ | .// | /cC/* | \
2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 # Don't use installbsd from OSF since it installs stuff as root
2534 for ac_prog in ginstall scoinst install; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2537 if test $ac_prog = install &&
2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # AIX install. It has an incompatible calling convention.
2541 elif test $ac_prog = install &&
2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # program-specific install script used by HP pwplus--don't use.
2546 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2558 if test "${ac_cv_path_install+set}" = set; then
2559 INSTALL=$ac_cv_path_install
2561 # As a last resort, use the slow shell script. We don't cache a
2562 # path for INSTALL within a source directory, because that will
2563 # break other packages using the cache if that directory is
2564 # removed, or if the path is relative.
2565 INSTALL=$ac_install_sh
2568 echo "$as_me:$LINENO: result: $INSTALL" >&5
2569 echo "${ECHO_T}$INSTALL" >&6
2571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572 # It thinks the first close brace ends the variable substitution.
2573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2579 # Check whether --enable-shared or --disable-shared was given.
2580 if test "${enable_shared+set}" = set; then
2581 enableval="$enable_shared"
2582 p=${PACKAGE-default}
2584 yes) enable_shared=yes ;;
2585 no) enable_shared=no ;;
2588 # Look at the argument we got. We use all the common list separators.
2589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2590 for pkg in $enableval; do
2592 if test "X$pkg" = "X$p"; then
2603 # Check whether --enable-static or --disable-static was given.
2604 if test "${enable_static+set}" = set; then
2605 enableval="$enable_static"
2606 p=${PACKAGE-default}
2608 yes) enable_static=yes ;;
2609 no) enable_static=no ;;
2612 # Look at the argument we got. We use all the common list separators.
2613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2614 for pkg in $enableval; do
2616 if test "X$pkg" = "X$p"; then
2627 # Check whether --enable-fast-install or --disable-fast-install was given.
2628 if test "${enable_fast_install+set}" = set; then
2629 enableval="$enable_fast_install"
2630 p=${PACKAGE-default}
2632 yes) enable_fast_install=yes ;;
2633 no) enable_fast_install=no ;;
2635 enable_fast_install=no
2636 # Look at the argument we got. We use all the common list separators.
2637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2638 for pkg in $enableval; do
2640 if test "X$pkg" = "X$p"; then
2641 enable_fast_install=yes
2648 enable_fast_install=yes
2651 # Make sure we can run config.sub.
2652 $ac_config_sub sun4 >/dev/null 2>&1 ||
2653 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2654 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2655 { (exit 1); exit 1; }; }
2657 echo "$as_me:$LINENO: checking build system type" >&5
2658 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2659 if test "${ac_cv_build+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 ac_cv_build_alias=$build_alias
2663 test -z "$ac_cv_build_alias" &&
2664 ac_cv_build_alias=`$ac_config_guess`
2665 test -z "$ac_cv_build_alias" &&
2666 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2667 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2668 { (exit 1); exit 1; }; }
2669 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2670 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2671 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2672 { (exit 1); exit 1; }; }
2675 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2676 echo "${ECHO_T}$ac_cv_build" >&6
2678 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2679 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2680 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2683 echo "$as_me:$LINENO: checking host system type" >&5
2684 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2685 if test "${ac_cv_host+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 ac_cv_host_alias=$host_alias
2689 test -z "$ac_cv_host_alias" &&
2690 ac_cv_host_alias=$ac_cv_build_alias
2691 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2692 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2693 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2694 { (exit 1); exit 1; }; }
2697 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2698 echo "${ECHO_T}$ac_cv_host" >&6
2700 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2701 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2702 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2705 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2706 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2707 if test "${lt_cv_path_SED+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 # Loop through the user's path and test for sed and gsed.
2711 # Then use that list of sed's as ones to test for truncation.
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 test -z "$as_dir" && as_dir=.
2717 for lt_ac_prog in sed gsed; do
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2720 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2727 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2728 # along with /bin/sed that truncates output.
2729 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2730 test ! -f $lt_ac_sed && continue
2731 cat /dev/null > conftest.in
2733 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2734 # Check for GNU sed and select it if it is found.
2735 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2736 lt_cv_path_SED=$lt_ac_sed
2740 cat conftest.in conftest.in >conftest.tmp
2741 mv conftest.tmp conftest.in
2742 cp conftest.in conftest.nl
2744 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2745 cmp -s conftest.out conftest.nl || break
2746 # 10000 chars as input seems more than enough
2747 test $lt_ac_count -gt 10 && break
2748 lt_ac_count=`expr $lt_ac_count + 1`
2749 if test $lt_ac_count -gt $lt_ac_max; then
2750 lt_ac_max=$lt_ac_count
2751 lt_cv_path_SED=$lt_ac_sed
2759 echo "$as_me:$LINENO: result: $SED" >&5
2760 echo "${ECHO_T}$SED" >&6
2762 echo "$as_me:$LINENO: checking for egrep" >&5
2763 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2764 if test "${ac_cv_prog_egrep+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2768 then ac_cv_prog_egrep='grep -E'
2769 else ac_cv_prog_egrep='egrep'
2772 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2773 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2774 EGREP=$ac_cv_prog_egrep
2778 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2779 if test "${with_gnu_ld+set}" = set; then
2780 withval="$with_gnu_ld"
2781 test "$withval" = no || with_gnu_ld=yes
2786 if test "$GCC" = yes; then
2787 # Check if gcc -print-prog-name=ld gives a path.
2788 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2789 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2792 # gcc leaves a trailing carriage return which upsets mingw
2793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2798 # Accept absolute paths.
2800 re_direlt='/[^/][^/]*/\.\./'
2801 # Canonicalize the pathname of ld
2802 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2803 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2804 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2806 test -z "$LD" && LD="$ac_prog"
2809 # If it fails, then pretend we aren't using GCC.
2813 # If it is relative, then search for the first ld in PATH.
2817 elif test "$with_gnu_ld" = yes; then
2818 echo "$as_me:$LINENO: checking for GNU ld" >&5
2819 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2821 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2822 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2824 if test "${lt_cv_path_LD+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 if test -z "$LD"; then
2828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2829 for ac_dir in $PATH; do
2831 test -z "$ac_dir" && ac_dir=.
2832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2833 lt_cv_path_LD="$ac_dir/$ac_prog"
2834 # Check to see if the program is GNU ld. I'd rather use --version,
2835 # but apparently some variants of GNU ld only accept -v.
2836 # Break only if it was the GNU/non-GNU ld that we prefer.
2837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2838 *GNU* | *'with BFD'*)
2839 test "$with_gnu_ld" != no && break
2842 test "$with_gnu_ld" != yes && break
2849 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2854 if test -n "$LD"; then
2855 echo "$as_me:$LINENO: result: $LD" >&5
2856 echo "${ECHO_T}$LD" >&6
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2861 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2862 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2863 { (exit 1); exit 1; }; }
2864 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2865 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2866 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 # I'd rather use --version here, but apparently some GNU lds only accept -v.
2870 case `$LD -v 2>&1 </dev/null` in
2871 *GNU* | *'with BFD'*)
2872 lt_cv_prog_gnu_ld=yes
2875 lt_cv_prog_gnu_ld=no
2879 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2880 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2881 with_gnu_ld=$lt_cv_prog_gnu_ld
2884 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2885 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2886 if test "${lt_cv_ld_reload_flag+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 lt_cv_ld_reload_flag='-r'
2891 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2892 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2893 reload_flag=$lt_cv_ld_reload_flag
2894 case $reload_flag in
2896 *) reload_flag=" $reload_flag" ;;
2898 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2901 if test "$GCC" = yes; then
2902 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2904 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2909 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2910 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2911 if test "${lt_cv_path_NM+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 if test -n "$NM"; then
2915 # Let the user override the test.
2918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2919 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2921 test -z "$ac_dir" && ac_dir=.
2922 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2923 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2924 # Check to see if the nm accepts a BSD-compat flag.
2925 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2926 # nm: unknown option "B" ignored
2927 # Tru64's nm complains that /dev/null is an invalid object file
2928 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2929 */dev/null* | *'Invalid file or object type'*)
2930 lt_cv_path_NM="$tmp_nm -B"
2934 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2936 lt_cv_path_NM="$tmp_nm -p"
2940 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2941 continue # so that we can try to find one that supports BSD flags
2948 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2951 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2952 echo "${ECHO_T}$lt_cv_path_NM" >&6
2955 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2956 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2958 if test "$LN_S" = "ln -s"; then
2959 echo "$as_me:$LINENO: result: yes" >&5
2960 echo "${ECHO_T}yes" >&6
2962 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2963 echo "${ECHO_T}no, using $LN_S" >&6
2966 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2967 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2968 if test "${lt_cv_deplibs_check_method+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 lt_cv_file_magic_cmd='$MAGIC_CMD'
2972 lt_cv_file_magic_test_file=
2973 lt_cv_deplibs_check_method='unknown'
2974 # Need to set the preceding variable on all platforms that support
2975 # interlibrary dependencies.
2976 # 'none' -- dependencies not supported.
2977 # `unknown' -- same as none, but documents that we really don't know.
2978 # 'pass_all' -- all dependencies passed with no checks.
2979 # 'test_compile' -- check by making test program.
2980 # 'file_magic [[regex]]' -- check by looking for files in library path
2981 # which responds to the $file_magic_cmd with a given extended regex.
2982 # If you have `file' or equivalent on your system and you're not sure
2983 # whether `pass_all' will *always* work, you probably want this one.
2987 lt_cv_deplibs_check_method=pass_all
2991 lt_cv_deplibs_check_method=pass_all
2995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2996 lt_cv_file_magic_cmd='/usr/bin/file -L'
2997 lt_cv_file_magic_test_file=/shlib/libc.so
3001 # func_win32_libid is a shell function defined in ltmain.sh
3002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3003 lt_cv_file_magic_cmd='func_win32_libid'
3007 # Base MSYS/MinGW do not provide the 'file' command needed by
3008 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3009 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3010 lt_cv_file_magic_cmd='$OBJDUMP -f'
3013 darwin* | rhapsody*)
3014 lt_cv_deplibs_check_method=pass_all
3017 freebsd* | kfreebsd*-gnu | dragonfly*)
3018 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3021 # Not sure whether the presence of OpenBSD here was a mistake.
3022 # Let's accept both of them until this is cleared up.
3023 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3024 lt_cv_file_magic_cmd=/usr/bin/file
3025 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3029 lt_cv_deplibs_check_method=pass_all
3034 lt_cv_deplibs_check_method=pass_all
3037 hpux10.20* | hpux11*)
3038 lt_cv_file_magic_cmd=/usr/bin/file
3041 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3042 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3045 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]'
3046 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3050 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3055 irix5* | irix6* | nonstopux*)
3057 *-32|*"-32 ") libmagic=32-bit;;
3058 *-n32|*"-n32 ") libmagic=N32;;
3059 *-64|*"-64 ") libmagic=64-bit;;
3060 *) libmagic=never-match;;
3062 lt_cv_deplibs_check_method=pass_all
3065 # This must be Linux ELF.
3067 lt_cv_deplibs_check_method=pass_all
3071 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3080 lt_cv_file_magic_cmd=/usr/bin/file
3081 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3085 lt_cv_deplibs_check_method=unknown
3089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3096 osf3* | osf4* | osf5*)
3097 lt_cv_deplibs_check_method=pass_all
3101 lt_cv_deplibs_check_method=pass_all
3105 lt_cv_deplibs_check_method=pass_all
3108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3109 case $host_vendor in
3111 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]'
3112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3115 lt_cv_deplibs_check_method=pass_all
3118 lt_cv_file_magic_cmd='/bin/file'
3119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3122 lt_cv_file_magic_cmd='/bin/file'
3123 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3124 lt_cv_file_magic_test_file=/lib/libc.so
3127 lt_cv_deplibs_check_method=pass_all
3132 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3133 lt_cv_deplibs_check_method=pass_all
3138 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3139 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3140 file_magic_cmd=$lt_cv_file_magic_cmd
3141 deplibs_check_method=$lt_cv_deplibs_check_method
3142 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3147 # If no C compiler was specified, use CC.
3150 # Allow CC to be a program name with arguments.
3154 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3155 if test "${enable_libtool_lock+set}" = set; then
3156 enableval="$enable_libtool_lock"
3159 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3161 # Some flags need to be propagated to the compiler or linker for good
3165 # Find out which ABI we are using.
3166 echo 'int i;' > conftest.$ac_ext
3167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3168 (eval $ac_compile) 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; then
3172 case `/usr/bin/file conftest.$ac_objext` in
3184 # Find out which ABI we are using.
3185 echo '#line 3185 "configure"' > conftest.$ac_ext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; then
3191 if test "$lt_cv_prog_gnu_ld" = yes; then
3192 case `/usr/bin/file conftest.$ac_objext` in
3194 LD="${LD-ld} -melf32bsmip"
3197 LD="${LD-ld} -melf32bmipn32"
3200 LD="${LD-ld} -melf64bmip"
3204 case `/usr/bin/file conftest.$ac_objext` in
3220 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3221 # Find out which ABI we are using.
3222 echo 'int i;' > conftest.$ac_ext
3223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3224 (eval $ac_compile) 2>&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; then
3228 case `/usr/bin/file conftest.o` in
3232 LD="${LD-ld} -m elf_i386"
3234 ppc64-*linux*|powerpc64-*linux*)
3235 LD="${LD-ld} -m elf32ppclinux"
3238 LD="${LD-ld} -m elf_s390"
3241 LD="${LD-ld} -m elf32_sparc"
3248 LD="${LD-ld} -m elf_x86_64"
3250 ppc*-*linux*|powerpc*-*linux*)
3251 LD="${LD-ld} -m elf64ppc"
3254 LD="${LD-ld} -m elf64_s390"
3257 LD="${LD-ld} -m elf64_sparc"
3267 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3268 SAVE_CFLAGS="$CFLAGS"
3269 CFLAGS="$CFLAGS -belf"
3270 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3271 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3272 if test "${lt_cv_cc_needs_belf+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3296 rm -f conftest.$ac_objext conftest$ac_exeext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298 (eval $ac_link) 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
3305 { ac_try='test -z "$ac_c_werror_flag"
3306 || test ! -s conftest.err'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; } &&
3312 { ac_try='test -s conftest$ac_exeext'
3313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
3318 lt_cv_cc_needs_belf=yes
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3323 lt_cv_cc_needs_belf=no
3325 rm -f conftest.err conftest.$ac_objext \
3326 conftest$ac_exeext conftest.$ac_ext
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3335 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3336 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3337 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3338 CFLAGS="$SAVE_CFLAGS"
3344 need_locks="$enable_libtool_lock"
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3353 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3354 # On Suns, sometimes $CPP names a directory.
3355 if test -n "$CPP" && test -d "$CPP"; then
3358 if test -z "$CPP"; then
3359 if test "${ac_cv_prog_CPP+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 # Double quotes because CPP needs to be expanded
3363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3366 for ac_c_preproc_warn_flag in '' yes
3368 # Use a header file that comes with gcc, so configuring glibc
3369 # with a fresh cross-compiler works.
3370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3371 # <limits.h> exists even on freestanding compilers.
3372 # On the NeXT, cc -E runs the code through the compiler's parser,
3373 # not just through cpp. "Syntax error" is here to catch this case.
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3381 # include <limits.h>
3383 # include <assert.h>
3387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3390 grep -v '^ *+' conftest.er1 >conftest.err
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } >/dev/null; then
3395 if test -s conftest.err; then
3396 ac_cpp_err=$ac_c_preproc_warn_flag
3397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404 if test -z "$ac_cpp_err"; then
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3410 # Broken: fails on valid input.
3413 rm -f conftest.err conftest.$ac_ext
3415 # OK, works on sane cases. Now check whether non-existent headers
3416 # can be detected and how.
3417 cat >conftest.$ac_ext <<_ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #include <ac_nonexistent.h>
3425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3428 grep -v '^ *+' conftest.er1 >conftest.err
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null; then
3433 if test -s conftest.err; then
3434 ac_cpp_err=$ac_c_preproc_warn_flag
3435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 if test -z "$ac_cpp_err"; then
3443 # Broken: success on invalid input.
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 # Passes both tests.
3453 rm -f conftest.err conftest.$ac_ext
3456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3457 rm -f conftest.err conftest.$ac_ext
3458 if $ac_preproc_ok; then
3470 echo "$as_me:$LINENO: result: $CPP" >&5
3471 echo "${ECHO_T}$CPP" >&6
3473 for ac_c_preproc_warn_flag in '' yes
3475 # Use a header file that comes with gcc, so configuring glibc
3476 # with a fresh cross-compiler works.
3477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3478 # <limits.h> exists even on freestanding compilers.
3479 # On the NeXT, cc -E runs the code through the compiler's parser,
3480 # not just through cpp. "Syntax error" is here to catch this case.
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3488 # include <limits.h>
3490 # include <assert.h>
3494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3497 grep -v '^ *+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null; then
3502 if test -s conftest.err; then
3503 ac_cpp_err=$ac_c_preproc_warn_flag
3504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3511 if test -z "$ac_cpp_err"; then
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 # Broken: fails on valid input.
3520 rm -f conftest.err conftest.$ac_ext
3522 # OK, works on sane cases. Now check whether non-existent headers
3523 # can be detected and how.
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #include <ac_nonexistent.h>
3532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3535 grep -v '^ *+' conftest.er1 >conftest.err
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } >/dev/null; then
3540 if test -s conftest.err; then
3541 ac_cpp_err=$ac_c_preproc_warn_flag
3542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3549 if test -z "$ac_cpp_err"; then
3550 # Broken: success on invalid input.
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 # Passes both tests.
3560 rm -f conftest.err conftest.$ac_ext
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then
3568 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3569 See \`config.log' for more details." >&5
3570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log' for more details." >&2;}
3572 { (exit 1); exit 1; }; }
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3584 if test "${ac_cv_header_stdc+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3606 rm -f conftest.$ac_objext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3608 (eval $ac_compile) 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } &&
3615 { ac_try='test -z "$ac_c_werror_flag"
3616 || test ! -s conftest.err'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; } &&
3622 { ac_try='test -s conftest.$ac_objext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_header_stdc=yes
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3633 ac_cv_header_stdc=no
3635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 if test $ac_cv_header_stdc = yes; then
3638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3639 cat >conftest.$ac_ext <<_ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649 $EGREP "memchr" >/dev/null 2>&1; then
3652 ac_cv_header_stdc=no
3658 if test $ac_cv_header_stdc = yes; then
3659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3670 $EGREP "free" >/dev/null 2>&1; then
3673 ac_cv_header_stdc=no
3679 if test $ac_cv_header_stdc = yes; then
3680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3681 if test "$cross_compiling" = yes; then
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3691 #if ((' ' & 0x0FF) == 0x020)
3692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3695 # define ISLOWER(c) \
3696 (('a' <= (c) && (c) <= 'i') \
3697 || ('j' <= (c) && (c) <= 'r') \
3698 || ('s' <= (c) && (c) <= 'z'))
3699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3707 for (i = 0; i < 256; i++)
3708 if (XOR (islower (i), ISLOWER (i))
3709 || toupper (i) != TOUPPER (i))
3714 rm -f conftest$ac_exeext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3716 (eval $ac_link) 2>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3727 echo "$as_me: program exited with status $ac_status" >&5
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3732 ac_cv_header_stdc=no
3734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3738 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3739 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3740 if test $ac_cv_header_stdc = yes; then
3742 cat >>confdefs.h <<\_ACEOF
3743 #define STDC_HEADERS 1
3748 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3758 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3759 inttypes.h stdint.h unistd.h
3761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3762 echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 cat >conftest.$ac_ext <<_ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 $ac_includes_default
3775 #include <$ac_header>
3777 rm -f conftest.$ac_objext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>conftest.er1
3781 grep -v '^ *+' conftest.er1 >conftest.err
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try='test -z "$ac_c_werror_flag"
3787 || test ! -s conftest.err'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; } &&
3793 { ac_try='test -s conftest.$ac_objext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 eval "$as_ac_Header=yes"
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3804 eval "$as_ac_Header=no"
3806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3811 cat >>confdefs.h <<_ACEOF
3812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3821 for ac_header in dlfcn.h
3823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3825 echo "$as_me:$LINENO: checking for $ac_header" >&5
3826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3833 # Is the header compilable?
3834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842 $ac_includes_default
3843 #include <$ac_header>
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1 >conftest.err
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_header_compiler=yes
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_header_compiler=no
3874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3876 echo "${ECHO_T}$ac_header_compiler" >&6
3878 # Is the header present?
3879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <$ac_header>
3889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3892 grep -v '^ *+' conftest.er1 >conftest.err
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev/null; then
3897 if test -s conftest.err; then
3898 ac_cpp_err=$ac_c_preproc_warn_flag
3899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3906 if test -z "$ac_cpp_err"; then
3907 ac_header_preproc=yes
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3912 ac_header_preproc=no
3914 rm -f conftest.err conftest.$ac_ext
3915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3916 echo "${ECHO_T}$ac_header_preproc" >&6
3918 # So? What about this header?
3919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3925 ac_header_preproc=yes
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3942 ## ----------------------------------------------- ##
3943 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
3944 ## ----------------------------------------------- ##
3947 sed "s/^/$as_me: WARNING: /" >&2
3950 echo "$as_me:$LINENO: checking for $ac_header" >&5
3951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 eval "$as_ac_Header=\$ac_header_preproc"
3957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3962 cat >>confdefs.h <<_ACEOF
3963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3971 ac_cpp='$CXXCPP $CPPFLAGS'
3972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3975 if test -n "$ac_tool_prefix"; then
3976 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_prog_CXX+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 if test -n "$CXX"; then
3986 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 if test -n "$CXX"; then
4006 echo "$as_me:$LINENO: result: $CXX" >&5
4007 echo "${ECHO_T}$CXX" >&6
4009 echo "$as_me:$LINENO: result: no" >&5
4010 echo "${ECHO_T}no" >&6
4013 test -n "$CXX" && break
4016 if test -z "$CXX"; then
4018 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4020 # Extract the first word of "$ac_prog", so it can be a program name with args.
4021 set dummy $ac_prog; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 if test -n "$ac_ct_CXX"; then
4028 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_ac_ct_CXX="$ac_prog"
4038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4047 if test -n "$ac_ct_CXX"; then
4048 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4049 echo "${ECHO_T}$ac_ct_CXX" >&6
4051 echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6
4055 test -n "$ac_ct_CXX" && break
4057 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4063 # Provide some information about the compiler.
4064 echo "$as_me:$LINENO:" \
4065 "checking for C++ compiler version" >&5
4066 ac_compiler=`set X $ac_compile; echo $2`
4067 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4068 (eval $ac_compiler --version </dev/null >&5) 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }
4072 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4073 (eval $ac_compiler -v </dev/null >&5) 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }
4077 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4078 (eval $ac_compiler -V </dev/null >&5) 2>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }
4083 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4084 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4085 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108 (eval $ac_compile) 2>conftest.er1
4110 grep -v '^ *+' conftest.er1 >conftest.err
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
4115 { ac_try='test -z "$ac_cxx_werror_flag"
4116 || test ! -s conftest.err'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4139 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4140 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4141 GXX=`test $ac_compiler_gnu = yes && echo yes`
4142 ac_test_CXXFLAGS=${CXXFLAGS+set}
4143 ac_save_CXXFLAGS=$CXXFLAGS
4145 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4146 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4147 if test "${ac_cv_prog_cxx_g+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 cat >conftest.$ac_ext <<_ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4165 rm -f conftest.$ac_objext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167 (eval $ac_compile) 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_cxx_werror_flag"
4175 || test ! -s conftest.err'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 ac_cv_prog_cxx_g=yes
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4196 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4197 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4198 if test "$ac_test_CXXFLAGS" = set; then
4199 CXXFLAGS=$ac_save_CXXFLAGS
4200 elif test $ac_cv_prog_cxx_g = yes; then
4201 if test "$GXX" = yes; then
4207 if test "$GXX" = yes; then
4213 for ac_declaration in \
4215 'extern "C" void std::exit (int) throw (); using std::exit;' \
4216 'extern "C" void std::exit (int); using std::exit;' \
4217 'extern "C" void exit (int) throw ();' \
4218 'extern "C" void exit (int);' \
4221 cat >conftest.$ac_ext <<_ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4237 rm -f conftest.$ac_objext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239 (eval $ac_compile) 2>conftest.er1
4241 grep -v '^ *+' conftest.er1 >conftest.err
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try='test -z "$ac_cxx_werror_flag"
4247 || test ! -s conftest.err'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; } &&
4253 { ac_try='test -s conftest.$ac_objext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4282 rm -f conftest.$ac_objext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_cxx_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313 if test -n "$ac_declaration"; then
4314 echo '#ifdef __cplusplus' >>confdefs.h
4315 echo $ac_declaration >>confdefs.h
4316 echo '#endif' >>confdefs.h
4320 ac_cpp='$CXXCPP $CPPFLAGS'
4321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4327 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4328 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4329 (test "X$CXX" != "Xg++"))) ; then
4331 ac_cpp='$CXXCPP $CPPFLAGS'
4332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4335 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4336 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4337 if test -z "$CXXCPP"; then
4338 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 # Double quotes because CXXCPP needs to be expanded
4342 for CXXCPP in "$CXX -E" "/lib/cpp"
4345 for ac_cxx_preproc_warn_flag in '' yes
4347 # Use a header file that comes with gcc, so configuring glibc
4348 # with a fresh cross-compiler works.
4349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350 # <limits.h> exists even on freestanding compilers.
4351 # On the NeXT, cc -E runs the code through the compiler's parser,
4352 # not just through cpp. "Syntax error" is here to catch this case.
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4360 # include <limits.h>
4362 # include <assert.h>
4366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4369 grep -v '^ *+' conftest.er1 >conftest.err
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } >/dev/null; then
4374 if test -s conftest.err; then
4375 ac_cpp_err=$ac_cxx_preproc_warn_flag
4376 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4383 if test -z "$ac_cpp_err"; then
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 # Broken: fails on valid input.
4392 rm -f conftest.err conftest.$ac_ext
4394 # OK, works on sane cases. Now check whether non-existent headers
4395 # can be detected and how.
4396 cat >conftest.$ac_ext <<_ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4402 #include <ac_nonexistent.h>
4404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } >/dev/null; then
4412 if test -s conftest.err; then
4413 ac_cpp_err=$ac_cxx_preproc_warn_flag
4414 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4421 if test -z "$ac_cpp_err"; then
4422 # Broken: success on invalid input.
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4428 # Passes both tests.
4432 rm -f conftest.err conftest.$ac_ext
4435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4436 rm -f conftest.err conftest.$ac_ext
4437 if $ac_preproc_ok; then
4442 ac_cv_prog_CXXCPP=$CXXCPP
4445 CXXCPP=$ac_cv_prog_CXXCPP
4447 ac_cv_prog_CXXCPP=$CXXCPP
4449 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4450 echo "${ECHO_T}$CXXCPP" >&6
4452 for ac_cxx_preproc_warn_flag in '' yes
4454 # Use a header file that comes with gcc, so configuring glibc
4455 # with a fresh cross-compiler works.
4456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4457 # <limits.h> exists even on freestanding compilers.
4458 # On the NeXT, cc -E runs the code through the compiler's parser,
4459 # not just through cpp. "Syntax error" is here to catch this case.
4460 cat >conftest.$ac_ext <<_ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4467 # include <limits.h>
4469 # include <assert.h>
4473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4476 grep -v '^ *+' conftest.er1 >conftest.err
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } >/dev/null; then
4481 if test -s conftest.err; then
4482 ac_cpp_err=$ac_cxx_preproc_warn_flag
4483 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4490 if test -z "$ac_cpp_err"; then
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 # Broken: fails on valid input.
4499 rm -f conftest.err conftest.$ac_ext
4501 # OK, works on sane cases. Now check whether non-existent headers
4502 # can be detected and how.
4503 cat >conftest.$ac_ext <<_ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4509 #include <ac_nonexistent.h>
4511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4514 grep -v '^ *+' conftest.er1 >conftest.err
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } >/dev/null; then
4519 if test -s conftest.err; then
4520 ac_cpp_err=$ac_cxx_preproc_warn_flag
4521 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4528 if test -z "$ac_cpp_err"; then
4529 # Broken: success on invalid input.
4532 echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4535 # Passes both tests.
4539 rm -f conftest.err conftest.$ac_ext
4542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4543 rm -f conftest.err conftest.$ac_ext
4544 if $ac_preproc_ok; then
4547 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4548 See \`config.log' for more details." >&5
4549 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4550 See \`config.log' for more details." >&2;}
4551 { (exit 1); exit 1; }; }
4555 ac_cpp='$CXXCPP $CPPFLAGS'
4556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4564 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4565 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4567 if test -n "$ac_tool_prefix"; then
4568 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4572 echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574 if test "${ac_cv_prog_F77+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 if test -n "$F77"; then
4578 ac_cv_prog_F77="$F77" # Let the user override the test.
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 if test -n "$F77"; then
4598 echo "$as_me:$LINENO: result: $F77" >&5
4599 echo "${ECHO_T}$F77" >&6
4601 echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6
4605 test -n "$F77" && break
4608 if test -z "$F77"; then
4610 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4612 # Extract the first word of "$ac_prog", so it can be a program name with args.
4613 set dummy $ac_prog; ac_word=$2
4614 echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 if test -n "$ac_ct_F77"; then
4620 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629 ac_cv_prog_ac_ct_F77="$ac_prog"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4639 if test -n "$ac_ct_F77"; then
4640 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4641 echo "${ECHO_T}$ac_ct_F77" >&6
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4647 test -n "$ac_ct_F77" && break
4654 # Provide some information about the compiler.
4655 echo "$as_me:4655:" \
4656 "checking for Fortran 77 compiler version" >&5
4657 ac_compiler=`set X $ac_compile; echo $2`
4658 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4659 (eval $ac_compiler --version </dev/null >&5) 2>&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }
4663 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4664 (eval $ac_compiler -v </dev/null >&5) 2>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }
4668 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4669 (eval $ac_compiler -V </dev/null >&5) 2>&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }
4675 # If we don't use `.F' as extension, the preprocessor is not run on the
4676 # input file. (Note that this only needs to work for GNU compilers.)
4679 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4680 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4681 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 cat >conftest.$ac_ext <<_ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>conftest.er1
4696 grep -v '^ *+' conftest.er1 >conftest.err
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_f77_werror_flag"
4702 || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4725 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4726 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4728 ac_test_FFLAGS=${FFLAGS+set}
4729 ac_save_FFLAGS=$FFLAGS
4731 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4732 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4733 if test "${ac_cv_prog_f77_g+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 cat >conftest.$ac_ext <<_ACEOF
4742 rm -f conftest.$ac_objext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744 (eval $ac_compile) 2>conftest.er1
4746 grep -v '^ *+' conftest.er1 >conftest.err
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -z "$ac_f77_werror_flag"
4752 || test ! -s conftest.err'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; } &&
4758 { ac_try='test -s conftest.$ac_objext'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 ac_cv_prog_f77_g=yes
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4774 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4775 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4776 if test "$ac_test_FFLAGS" = set; then
4777 FFLAGS=$ac_save_FFLAGS
4778 elif test $ac_cv_prog_f77_g = yes; then
4779 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4785 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4792 G77=`test $ac_compiler_gnu = yes && echo yes`
4794 ac_cpp='$CPP $CPPFLAGS'
4795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4803 # find the maximum length of command line arguments
4804 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4805 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4806 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 # On DJGPP, this test can blow up pretty badly due to problems in libc
4815 # (any single argument exceeding 2000 bytes causes a buffer overrun
4816 # during glob expansion). Even if it were fixed, the result of this
4817 # check would be larger than it should be.
4818 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4822 # Under GNU Hurd, this test is not required because there is
4823 # no limit to the length of command line arguments.
4824 # Libtool will interpret -1 as no limit whatsoever
4825 lt_cv_sys_max_cmd_len=-1;
4829 # On Win9x/ME, this test blows up -- it succeeds, but takes
4830 # about 5 minutes as the teststring grows exponentially.
4831 # Worse, since 9x/ME are not pre-emptively multitasking,
4832 # you end up with a "frozen" computer, even though with patience
4833 # the test eventually succeeds (with a max line length of 256k).
4834 # Instead, let's just punt: use the minimum linelength reported by
4835 # all of the supported platforms: 8192 (on NT/2K/XP).
4836 lt_cv_sys_max_cmd_len=8192;
4840 # On AmigaOS with pdksh, this test takes hours, literally.
4841 # So we just punt and use a minimum line length of 8192.
4842 lt_cv_sys_max_cmd_len=8192;
4845 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4846 # This has been around since 386BSD, at least. Likely further.
4847 if test -x /sbin/sysctl; then
4848 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4849 elif test -x /usr/sbin/sysctl; then
4850 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4852 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4854 # And add a safety zone
4855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4859 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4860 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4861 # nice to cause kernel panics so lets avoid the loop below.
4862 # First set a reasonable default.
4863 lt_cv_sys_max_cmd_len=16384
4865 if test -x /sbin/sysconfig; then
4866 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4867 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4872 # If test is not a shell built-in, we'll probably end up computing a
4873 # maximum length that is only half of the actual maximum length, but
4875 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4876 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4877 = "XX$teststring") >/dev/null 2>&1 &&
4878 new_result=`expr "X$teststring" : ".*" 2>&1` &&
4879 lt_cv_sys_max_cmd_len=$new_result &&
4880 test $i != 17 # 1/2 MB should be enough
4883 teststring=$teststring$teststring
4886 # Add a significant safety factor because C++ compilers can tack on massive
4887 # amounts of additional arguments before passing them to the linker.
4888 # It appears as though 1/2 is a usable value.
4889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4895 if test -n $lt_cv_sys_max_cmd_len ; then
4896 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4897 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4899 echo "$as_me:$LINENO: result: none" >&5
4900 echo "${ECHO_T}none" >&6
4906 # Check for command to grab the raw symbol name followed by C symbol from nm.
4907 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4908 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4909 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 # These are sane defaults that work on at least a few old systems.
4914 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4916 # Character class describing NM global symbol codes.
4917 symcode='[BCDEGRST]'
4919 # Regexp to match symbols that can be accessed directly from C.
4920 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4922 # Transform an extracted symbol line into a proper C declaration
4923 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4925 # Transform an extracted symbol line into symbol name and symbol address
4926 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'"
4928 # Define system-specific variables.
4933 cygwin* | mingw* | pw32*)
4934 symcode='[ABCDGISTW]'
4936 hpux*) # Its linker distinguishes data from code symbols
4937 if test "$host_cpu" = ia64; then
4938 symcode='[ABCDEGRST]'
4940 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4941 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'"
4944 if test "$host_cpu" = ia64; then
4945 symcode='[ABCDGIRSTW]'
4946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4947 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'"
4951 symcode='[BCDEGRST]'
4954 symcode='[BCDEGQRST]'
4964 # Handle CRLF in mingw tool chain
4968 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4972 # If we're using GNU nm, then use its standard symbol codes.
4973 case `$NM -V 2>&1` in
4974 *GNU* | *'with BFD'*)
4975 symcode='[ABCDGIRSTW]' ;;
4978 # Try without a prefix undercore, then with it.
4979 for ac_symprfx in "" "_"; do
4981 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4982 symxfrm="\\1 $ac_symprfx\\2 \\2"
4984 # Write the raw and C identifiers.
4985 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4987 # Check to see that the pipe works correctly.
4991 cat > conftest.$ac_ext <<EOF
4996 void nm_test_func(){}
5000 int main(){nm_test_var='a';nm_test_func();return(0);}
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; then
5008 # Now try to grab the symbols.
5010 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5011 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } && test -s "$nlist"; then
5015 # Try sorting and uniquifying the output.
5016 if sort "$nlist" | uniq > "$nlist"T; then
5017 mv -f "$nlist"T "$nlist"
5022 # Make sure that we snagged all the symbols we need.
5023 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5024 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5025 cat <<EOF > conftest.$ac_ext
5031 # Now generate the symbol file.
5032 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5034 cat <<EOF >> conftest.$ac_ext
5035 #if defined (__STDC__) && __STDC__
5036 # define lt_ptr_t void *
5038 # define lt_ptr_t char *
5042 /* The mapping between symbol names and symbols. */
5047 lt_preloaded_symbols[] =
5050 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5051 cat <<\EOF >> conftest.$ac_ext
5059 # Now try linking the two files.
5060 mv conftest.$ac_objext conftstm.$ac_objext
5061 lt_save_LIBS="$LIBS"
5062 lt_save_CFLAGS="$CFLAGS"
5063 LIBS="conftstm.$ac_objext"
5064 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5066 (eval $ac_link) 2>&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5072 LIBS="$lt_save_LIBS"
5073 CFLAGS="$lt_save_CFLAGS"
5075 echo "cannot find nm_test_func in $nlist" >&5
5078 echo "cannot find nm_test_var in $nlist" >&5
5081 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5084 echo "$progname: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5087 rm -f conftest* conftst*
5089 # Do not use the global_symbol_pipe unless it works.
5090 if test "$pipe_works" = yes; then
5093 lt_cv_sys_global_symbol_pipe=
5099 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5100 lt_cv_sys_global_symbol_to_cdecl=
5102 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5103 echo "$as_me:$LINENO: result: failed" >&5
5104 echo "${ECHO_T}failed" >&6
5106 echo "$as_me:$LINENO: result: ok" >&5
5107 echo "${ECHO_T}ok" >&6
5110 echo "$as_me:$LINENO: checking for objdir" >&5
5111 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5112 if test "${lt_cv_objdir+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 rm -f .libs 2>/dev/null
5116 mkdir .libs 2>/dev/null
5117 if test -d .libs; then
5120 # MS-DOS does not allow filenames that begin with a dot.
5123 rmdir .libs 2>/dev/null
5125 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5126 echo "${ECHO_T}$lt_cv_objdir" >&6
5127 objdir=$lt_cv_objdir
5135 # AIX sometimes has problems with the GCC collect2 program. For some
5136 # reason, if we set the COLLECT_NAMES environment variable, the problems
5137 # vanish in a puff of smoke.
5138 if test "X${COLLECT_NAMES+set}" != Xset; then
5140 export COLLECT_NAMES
5145 # Sed substitution that helps us do robust quoting. It backslashifies
5146 # metacharacters that are still active within double-quoted strings.
5147 Xsed='sed -e 1s/^X//'
5148 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5150 # Same as above, but do not quote variable references.
5151 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5153 # Sed substitution to delay expansion of an escaped shell variable in a
5154 # double_quote_subst'ed string.
5155 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5157 # Sed substitution to avoid accidental globbing in evaled expressions
5158 no_glob_subst='s/\*/\\\*/g'
5164 default_ofile=libtool
5165 can_build_shared=yes
5167 # All known linkers require a `.a' archive for static linking (except MSVC,
5168 # which needs '.lib').
5170 ltmain="$ac_aux_dir/ltmain.sh"
5171 ofile="$default_ofile"
5172 with_gnu_ld="$lt_cv_prog_gnu_ld"
5174 if test -n "$ac_tool_prefix"; then
5175 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5176 set dummy ${ac_tool_prefix}ar; ac_word=$2
5177 echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179 if test "${ac_cv_prog_AR+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 if test -n "$AR"; then
5183 ac_cv_prog_AR="$AR" # Let the user override the test.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_AR="${ac_tool_prefix}ar"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 if test -n "$AR"; then
5203 echo "$as_me:$LINENO: result: $AR" >&5
5204 echo "${ECHO_T}$AR" >&6
5206 echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5211 if test -z "$ac_cv_prog_AR"; then
5213 # Extract the first word of "ar", so it can be a program name with args.
5214 set dummy ar; ac_word=$2
5215 echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5217 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 if test -n "$ac_ct_AR"; then
5221 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230 ac_cv_prog_ac_ct_AR="ar"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5240 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5241 if test -n "$ac_ct_AR"; then
5242 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5243 echo "${ECHO_T}$ac_ct_AR" >&6
5245 echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5254 if test -n "$ac_tool_prefix"; then
5255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5257 echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259 if test "${ac_cv_prog_RANLIB+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 if test -n "$RANLIB"; then
5263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 RANLIB=$ac_cv_prog_RANLIB
5282 if test -n "$RANLIB"; then
5283 echo "$as_me:$LINENO: result: $RANLIB" >&5
5284 echo "${ECHO_T}$RANLIB" >&6
5286 echo "$as_me:$LINENO: result: no" >&5
5287 echo "${ECHO_T}no" >&6
5291 if test -z "$ac_cv_prog_RANLIB"; then
5292 ac_ct_RANLIB=$RANLIB
5293 # Extract the first word of "ranlib", so it can be a program name with args.
5294 set dummy ranlib; ac_word=$2
5295 echo "$as_me:$LINENO: checking for $ac_word" >&5
5296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5297 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 if test -n "$ac_ct_RANLIB"; then
5301 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_ac_ct_RANLIB="ranlib"
5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5320 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5321 if test -n "$ac_ct_RANLIB"; then
5322 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5323 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5325 echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6
5329 RANLIB=$ac_ct_RANLIB
5331 RANLIB="$ac_cv_prog_RANLIB"
5334 if test -n "$ac_tool_prefix"; then
5335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5336 set dummy ${ac_tool_prefix}strip; ac_word=$2
5337 echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5339 if test "${ac_cv_prog_STRIP+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 if test -n "$STRIP"; then
5343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 STRIP=$ac_cv_prog_STRIP
5362 if test -n "$STRIP"; then
5363 echo "$as_me:$LINENO: result: $STRIP" >&5
5364 echo "${ECHO_T}$STRIP" >&6
5366 echo "$as_me:$LINENO: result: no" >&5
5367 echo "${ECHO_T}no" >&6
5371 if test -z "$ac_cv_prog_STRIP"; then
5373 # Extract the first word of "strip", so it can be a program name with args.
5374 set dummy strip; ac_word=$2
5375 echo "$as_me:$LINENO: checking for $ac_word" >&5
5376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 if test -n "$ac_ct_STRIP"; then
5381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390 ac_cv_prog_ac_ct_STRIP="strip"
5391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5401 if test -n "$ac_ct_STRIP"; then
5402 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5403 echo "${ECHO_T}$ac_ct_STRIP" >&6
5405 echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6
5411 STRIP="$ac_cv_prog_STRIP"
5416 old_CFLAGS="$CFLAGS"
5418 # Set sane defaults for various variables
5419 test -z "$AR" && AR=ar
5420 test -z "$AR_FLAGS" && AR_FLAGS=cru
5421 test -z "$AS" && AS=as
5422 test -z "$CC" && CC=cc
5423 test -z "$LTCC" && LTCC=$CC
5424 test -z "$DLLTOOL" && DLLTOOL=dlltool
5425 test -z "$LD" && LD=ld
5426 test -z "$LN_S" && LN_S="ln -s"
5427 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5428 test -z "$NM" && NM=nm
5429 test -z "$SED" && SED=sed
5430 test -z "$OBJDUMP" && OBJDUMP=objdump
5431 test -z "$RANLIB" && RANLIB=:
5432 test -z "$STRIP" && STRIP=:
5433 test -z "$ac_objext" && ac_objext=o
5435 # Determine commands to create old-style static archives.
5436 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5437 old_postinstall_cmds='chmod 644 $oldlib'
5438 old_postuninstall_cmds=
5440 if test -n "$RANLIB"; then
5443 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5446 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5449 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5452 for cc_temp in $compiler""; do
5454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5460 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5463 # Only perform the check for file, if the check method requires it
5464 case $deplibs_check_method in
5466 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5467 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5468 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5469 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5477 lt_save_MAGIC_CMD="$MAGIC_CMD"
5478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5479 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5480 for ac_dir in $ac_dummy; do
5482 test -z "$ac_dir" && ac_dir=.
5483 if test -f $ac_dir/${ac_tool_prefix}file; then
5484 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5485 if test -n "$file_magic_test_file"; then
5486 case $deplibs_check_method in
5488 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5491 $EGREP "$file_magic_regex" > /dev/null; then
5496 *** Warning: the command libtool uses to detect shared libraries,
5497 *** $file_magic_cmd, produces output that libtool cannot recognize.
5498 *** The result is that libtool may fail to recognize shared libraries
5499 *** as such. This will affect the creation of libtool libraries that
5500 *** depend on shared libraries, but programs linked with such libtool
5501 *** libraries will work regardless of this problem. Nevertheless, you
5502 *** may want to report the problem to your system manager and/or to
5503 *** bug-libtool@gnu.org
5513 MAGIC_CMD="$lt_save_MAGIC_CMD"
5518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5519 if test -n "$MAGIC_CMD"; then
5520 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5521 echo "${ECHO_T}$MAGIC_CMD" >&6
5523 echo "$as_me:$LINENO: result: no" >&5
5524 echo "${ECHO_T}no" >&6
5527 if test -z "$lt_cv_path_MAGIC_CMD"; then
5528 if test -n "$ac_tool_prefix"; then
5529 echo "$as_me:$LINENO: checking for file" >&5
5530 echo $ECHO_N "checking for file... $ECHO_C" >&6
5531 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5539 lt_save_MAGIC_CMD="$MAGIC_CMD"
5540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5541 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5542 for ac_dir in $ac_dummy; do
5544 test -z "$ac_dir" && ac_dir=.
5545 if test -f $ac_dir/file; then
5546 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5547 if test -n "$file_magic_test_file"; then
5548 case $deplibs_check_method in
5550 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5553 $EGREP "$file_magic_regex" > /dev/null; then
5558 *** Warning: the command libtool uses to detect shared libraries,
5559 *** $file_magic_cmd, produces output that libtool cannot recognize.
5560 *** The result is that libtool may fail to recognize shared libraries
5561 *** as such. This will affect the creation of libtool libraries that
5562 *** depend on shared libraries, but programs linked with such libtool
5563 *** libraries will work regardless of this problem. Nevertheless, you
5564 *** may want to report the problem to your system manager and/or to
5565 *** bug-libtool@gnu.org
5575 MAGIC_CMD="$lt_save_MAGIC_CMD"
5580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5581 if test -n "$MAGIC_CMD"; then
5582 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5583 echo "${ECHO_T}$MAGIC_CMD" >&6
5585 echo "$as_me:$LINENO: result: no" >&5
5586 echo "${ECHO_T}no" >&6
5601 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5602 if test "${enable_libtool_lock+set}" = set; then
5603 enableval="$enable_libtool_lock"
5606 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5609 # Check whether --with-pic or --without-pic was given.
5610 if test "${with_pic+set}" = set; then
5616 test -z "$pic_mode" && pic_mode=default
5618 # Use C for the default configuration in the libtool script
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5628 # Source file extension for C test sources.
5631 # Object file extension for compiled C test sources.
5635 # Code to be used in simple compile tests
5636 lt_simple_compile_test_code="int some_variable = 0;\n"
5638 # Code to be used in simple link tests
5639 lt_simple_link_test_code='int main(){return(0);}\n'
5642 # If no C compiler was specified, use CC.
5645 # Allow CC to be a program name with arguments.
5649 # save warnings/boilerplate of simple test code
5650 ac_outfile=conftest.$ac_objext
5651 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
5653 _lt_compiler_boilerplate=`cat conftest.err`
5656 ac_outfile=conftest.$ac_objext
5657 printf "$lt_simple_link_test_code" >conftest.$ac_ext
5658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
5659 _lt_linker_boilerplate=`cat conftest.err`
5664 # Check for any special shared library compilation flags.
5667 if test "$GCC" = no; then
5670 lt_prog_cc_shlib='-belf'
5674 if test -n "$lt_prog_cc_shlib"; then
5675 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5676 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5677 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5679 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5680 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5681 lt_cv_prog_cc_can_build_shared=no
5687 # Check to make sure the static flag actually works.
5689 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5690 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5691 if test "${lt_prog_compiler_static_works+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 lt_prog_compiler_static_works=no
5695 save_LDFLAGS="$LDFLAGS"
5696 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5697 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5698 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5699 # The linker can only warn and ignore the option if not recognized
5700 # So say no if there are warnings
5701 if test -s conftest.err; then
5702 # Append any errors to the config.log.
5703 cat conftest.err 1>&5
5704 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
5705 $SED '/^$/d' conftest.err >conftest.er2
5706 if diff conftest.exp conftest.er2 >/dev/null; then
5707 lt_prog_compiler_static_works=yes
5710 lt_prog_compiler_static_works=yes
5714 LDFLAGS="$save_LDFLAGS"
5717 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5718 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5720 if test x"$lt_prog_compiler_static_works" = xyes; then
5723 lt_prog_compiler_static=
5729 lt_prog_compiler_no_builtin_flag=
5731 if test "$GCC" = yes; then
5732 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5735 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5736 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5737 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 lt_cv_prog_compiler_rtti_exceptions=no
5741 ac_outfile=conftest.$ac_objext
5742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5743 lt_compiler_flag="-fno-rtti -fno-exceptions"
5744 # Insert the option either (1) after the last *FLAGS variable, or
5745 # (2) before a word containing "conftest.", or (3) at the end.
5746 # Note that $ac_compile itself does not contain backslashes and begins
5747 # with a dollar sign (not a hyphen), so the echo should work correctly.
5748 # The option is referenced via a variable to avoid confusing sed.
5749 lt_compile=`echo "$ac_compile" | $SED \
5750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5752 -e 's:$: $lt_compiler_flag:'`
5753 (eval echo "\"\$as_me:5753: $lt_compile\"" >&5)
5754 (eval "$lt_compile" 2>conftest.err)
5756 cat conftest.err >&5
5757 echo "$as_me:5757: \$? = $ac_status" >&5
5758 if (exit $ac_status) && test -s "$ac_outfile"; then
5759 # The compiler can only warn and ignore the option if not recognized
5760 # So say no if there are warnings other than the usual output.
5761 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
5762 $SED '/^$/d' conftest.err >conftest.er2
5763 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
5764 lt_cv_prog_compiler_rtti_exceptions=yes
5770 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5771 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5773 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5774 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5781 lt_prog_compiler_wl=
5782 lt_prog_compiler_pic=
5783 lt_prog_compiler_static=
5785 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5786 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5788 if test "$GCC" = yes; then
5789 lt_prog_compiler_wl='-Wl,'
5790 lt_prog_compiler_static='-static'
5794 # All AIX code is PIC.
5795 if test "$host_cpu" = ia64; then
5796 # AIX 5 now supports IA64 processor
5797 lt_prog_compiler_static='-Bstatic'
5802 # FIXME: we need at least 68020 code to build shared libraries, but
5803 # adding the `-m68020' flag to GCC prevents building anything better,
5805 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5808 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5809 # PIC is the default for these OSes.
5812 mingw* | pw32* | os2*)
5813 # This hack is so that the source file can tell whether it is being
5814 # built for inclusion in a dll (and should export symbols for example).
5815 lt_prog_compiler_pic='-DDLL_EXPORT'
5818 darwin* | rhapsody*)
5819 # PIC is the default on this platform
5820 # Common symbols not allowed in MH_DYLIB files
5821 lt_prog_compiler_pic='-fno-common'
5825 # Just because we use GCC doesn't mean we suddenly get shared libraries
5826 # on systems that don't support them.
5827 lt_prog_compiler_can_build_shared=no
5832 if test -d /usr/nec; then
5833 lt_prog_compiler_pic=-Kconform_pic
5838 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5845 lt_prog_compiler_pic='-fPIC'
5851 lt_prog_compiler_pic='-fPIC'
5855 # PORTME Check for flag to pass linker flags through the system compiler.
5858 lt_prog_compiler_wl='-Wl,'
5859 if test "$host_cpu" = ia64; then
5860 # AIX 5 now supports IA64 processor
5861 lt_prog_compiler_static='-Bstatic'
5863 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5867 # PIC is the default on this platform
5868 # Common symbols not allowed in MH_DYLIB files
5869 case $cc_basename in
5871 lt_prog_compiler_pic='-qnocommon'
5872 lt_prog_compiler_wl='-Wl,'
5877 mingw* | pw32* | os2*)
5878 # This hack is so that the source file can tell whether it is being
5879 # built for inclusion in a dll (and should export symbols for example).
5880 lt_prog_compiler_pic='-DDLL_EXPORT'
5883 hpux9* | hpux10* | hpux11*)
5884 lt_prog_compiler_wl='-Wl,'
5885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5892 lt_prog_compiler_pic='+Z'
5895 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5896 lt_prog_compiler_static='${wl}-a ${wl}archive'
5899 irix5* | irix6* | nonstopux*)
5900 lt_prog_compiler_wl='-Wl,'
5901 # PIC (with -KPIC) is the default.
5902 lt_prog_compiler_static='-non_shared'
5906 lt_prog_compiler_pic='-KPIC'
5907 lt_prog_compiler_static='-Bstatic'
5911 case $cc_basename in
5913 lt_prog_compiler_wl='-Wl,'
5914 lt_prog_compiler_pic='-KPIC'
5915 lt_prog_compiler_static='-static'
5917 pgcc* | pgf77* | pgf90* | pgf95*)
5918 # Portland Group compilers (*not* the Pentium gcc compiler,
5919 # which looks to be a dead project)
5920 lt_prog_compiler_wl='-Wl,'
5921 lt_prog_compiler_pic='-fpic'
5922 lt_prog_compiler_static='-Bstatic'
5925 lt_prog_compiler_wl='-Wl,'
5926 # All Alpha code is PIC.
5927 lt_prog_compiler_static='-non_shared'
5932 osf3* | osf4* | osf5*)
5933 lt_prog_compiler_wl='-Wl,'
5934 # All OSF/1 code is PIC.
5935 lt_prog_compiler_static='-non_shared'
5939 lt_prog_compiler_pic='-Kpic'
5940 lt_prog_compiler_static='-dn'
5944 lt_prog_compiler_pic='-KPIC'
5945 lt_prog_compiler_static='-Bstatic'
5946 case $cc_basename in
5948 lt_prog_compiler_wl='-Qoption ld ';;
5950 lt_prog_compiler_wl='-Wl,';;
5955 lt_prog_compiler_wl='-Qoption ld '
5956 lt_prog_compiler_pic='-PIC'
5957 lt_prog_compiler_static='-Bstatic'
5960 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5961 lt_prog_compiler_wl='-Wl,'
5962 lt_prog_compiler_pic='-KPIC'
5963 lt_prog_compiler_static='-Bstatic'
5967 if test -d /usr/nec ;then
5968 lt_prog_compiler_pic='-Kconform_pic'
5969 lt_prog_compiler_static='-Bstatic'
5974 lt_prog_compiler_wl='-Wl,'
5975 lt_prog_compiler_can_build_shared=no
5979 lt_prog_compiler_pic='-pic'
5980 lt_prog_compiler_static='-Bstatic'
5984 lt_prog_compiler_can_build_shared=no
5989 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5990 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5993 # Check to make sure the PIC flag actually works.
5995 if test -n "$lt_prog_compiler_pic"; then
5997 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5999 if test "${lt_prog_compiler_pic_works+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 lt_prog_compiler_pic_works=no
6003 ac_outfile=conftest.$ac_objext
6004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6005 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6006 # Insert the option either (1) after the last *FLAGS variable, or
6007 # (2) before a word containing "conftest.", or (3) at the end.
6008 # Note that $ac_compile itself does not contain backslashes and begins
6009 # with a dollar sign (not a hyphen), so the echo should work correctly.
6010 # The option is referenced via a variable to avoid confusing sed.
6011 lt_compile=`echo "$ac_compile" | $SED \
6012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6014 -e 's:$: $lt_compiler_flag:'`
6015 (eval echo "\"\$as_me:6015: $lt_compile\"" >&5)
6016 (eval "$lt_compile" 2>conftest.err)
6018 cat conftest.err >&5
6019 echo "$as_me:6019: \$? = $ac_status" >&5
6020 if (exit $ac_status) && test -s "$ac_outfile"; then
6021 # The compiler can only warn and ignore the option if not recognized
6022 # So say no if there are warnings other than the usual output.
6023 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6024 $SED '/^$/d' conftest.err >conftest.er2
6025 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6026 lt_prog_compiler_pic_works=yes
6032 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6033 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6035 if test x"$lt_prog_compiler_pic_works" = xyes; then
6036 case $lt_prog_compiler_pic in
6038 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6041 lt_prog_compiler_pic=
6042 lt_prog_compiler_can_build_shared=no
6047 # For platforms which do not support PIC, -DPIC is meaningless:
6049 lt_prog_compiler_pic=
6052 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6056 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6057 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6058 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 lt_cv_prog_compiler_c_o=no
6062 $rm -r conftest 2>/dev/null
6066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6068 lt_compiler_flag="-o out/conftest2.$ac_objext"
6069 # Insert the option either (1) after the last *FLAGS variable, or
6070 # (2) before a word containing "conftest.", or (3) at the end.
6071 # Note that $ac_compile itself does not contain backslashes and begins
6072 # with a dollar sign (not a hyphen), so the echo should work correctly.
6073 lt_compile=`echo "$ac_compile" | $SED \
6074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6076 -e 's:$: $lt_compiler_flag:'`
6077 (eval echo "\"\$as_me:6077: $lt_compile\"" >&5)
6078 (eval "$lt_compile" 2>out/conftest.err)
6080 cat out/conftest.err >&5
6081 echo "$as_me:6081: \$? = $ac_status" >&5
6082 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6084 # The compiler can only warn and ignore the option if not recognized
6085 # So say no if there are warnings
6086 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6087 $SED '/^$/d' out/conftest.err >out/conftest.er2
6088 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6089 lt_cv_prog_compiler_c_o=yes
6094 # SGI C++ compiler will create directory out/ii_files/ for
6095 # template instantiation
6096 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6097 $rm out/* && rmdir out
6103 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6104 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6107 hard_links="nottested"
6108 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6109 # do not overwrite the value of need_locks provided by the user
6110 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6111 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6116 ln conftest.a conftest.b 2>&5 || hard_links=no
6117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6118 echo "$as_me:$LINENO: result: $hard_links" >&5
6119 echo "${ECHO_T}$hard_links" >&6
6120 if test "$hard_links" = no; then
6121 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6122 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6129 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6130 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6133 allow_undefined_flag=
6134 enable_shared_with_static_runtimes=no
6136 archive_expsym_cmds=
6137 old_archive_From_new_cmds=
6138 old_archive_from_expsyms_cmds=
6139 export_dynamic_flag_spec=
6140 whole_archive_flag_spec=
6141 thread_safe_flag_spec=
6142 hardcode_libdir_flag_spec=
6143 hardcode_libdir_flag_spec_ld=
6144 hardcode_libdir_separator=
6147 hardcode_shlibpath_var=unsupported
6148 link_all_deplibs=unknown
6149 hardcode_automatic=no
6152 always_export_symbols=no
6153 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6154 # include_expsyms should be a list of space-separated symbols to be *always*
6155 # included in the symbol list
6157 # exclude_expsyms can be an extended regexp of symbols to exclude
6158 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6159 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6160 # as well as any symbol that contains `d'.
6161 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6162 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6163 # platforms (ab)use it in PIC code, but their linkers get confused if
6164 # the symbol is explicitly referenced. Since portable code cannot
6165 # rely on this symbol name, it's probably fine to never include it in
6166 # preloaded symbol tables.
6167 extract_expsyms_cmds=
6168 # Just being paranoid about ensuring that cc_basename is set.
6169 for cc_temp in $compiler""; do
6171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6177 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6180 cygwin* | mingw* | pw32*)
6181 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6182 # When not using gcc, we currently assume that we are using
6183 # Microsoft Visual C++.
6184 if test "$GCC" != yes; then
6194 if test "$with_gnu_ld" = yes; then
6195 # If archive_cmds runs LD, not CC, wlarc should be empty
6198 # Set some defaults for GNU ld with shared library support. These
6199 # are reset later if shared libraries are not supported. Putting them
6200 # here allows them to be overridden if necessary.
6201 runpath_var=LD_RUN_PATH
6202 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6203 export_dynamic_flag_spec='${wl}--export-dynamic'
6204 # ancient GNU ld didn't support --whole-archive et. al.
6205 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6206 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6208 whole_archive_flag_spec=
6210 supports_anon_versioning=no
6211 case `$LD -v 2>/dev/null` in
6212 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6213 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6214 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6215 *\ 2.11.*) ;; # other 2.11 versions
6216 *) supports_anon_versioning=yes ;;
6219 # See if GNU ld supports shared libraries.
6221 aix3* | aix4* | aix5*)
6222 # On AIX/PPC, the GNU linker is very broken
6223 if test "$host_cpu" != ia64; then
6227 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6228 *** to be unable to reliably create shared libraries on AIX.
6229 *** Therefore, libtool is disabling shared libraries support. If you
6230 *** really care for shared libraries, you may want to modify your PATH
6231 *** so that a non-GNU linker is found, and then restart.
6238 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)'
6239 hardcode_libdir_flag_spec='-L$libdir'
6240 hardcode_minus_L=yes
6242 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6243 # that the semantics of dynamic libraries on AmigaOS, at least up
6244 # to version 4, is to share data among multiple programs linked
6245 # with the same dynamic library. Since this doesn't match the
6246 # behavior of shared libraries on other platforms, we can't use
6252 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6253 allow_undefined_flag=unsupported
6254 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6255 # support --undefined. This deserves some investigation. FIXME
6256 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6262 cygwin* | mingw* | pw32*)
6263 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6264 # as there is no search path for DLLs.
6265 hardcode_libdir_flag_spec='-L$libdir'
6266 allow_undefined_flag=unsupported
6267 always_export_symbols=no
6268 enable_shared_with_static_runtimes=yes
6269 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6271 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6273 # If the export-symbols file already is a .def file (1st line
6274 # is EXPORTS), use it as is; otherwise, prepend...
6275 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6276 cp $export_symbols $output_objdir/$soname.def;
6278 echo EXPORTS > $output_objdir/$soname.def;
6279 cat $export_symbols >> $output_objdir/$soname.def;
6281 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6290 case $cc_basename,$host_cpu in
6291 pgcc*) # Portland Group C compiler
6292 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6293 tmp_addflag=' $pic_flag'
6295 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6296 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6297 tmp_addflag=' $pic_flag -Mnomain' ;;
6298 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6299 tmp_addflag=' -i_dynamic' ;;
6300 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6301 tmp_addflag=' -i_dynamic -nofor_main' ;;
6302 ifc* | ifort*) # Intel Fortran compiler
6303 tmp_addflag=' -nofor_main' ;;
6305 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6307 if test $supports_anon_versioning = yes; then
6308 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6310 $echo "local: *; };" >> $output_objdir/$libname.ver~
6311 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6320 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6329 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6333 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6334 *** create shared libraries on Solaris systems. Therefore, libtool
6335 *** is disabling shared libraries support. We urge you to upgrade GNU
6336 *** binutils to release 2.9.1 or newer. Another option is to modify
6337 *** your PATH or compiler configuration so that the native linker is
6338 *** used, and then restart.
6341 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6353 hardcode_shlibpath_var=no
6357 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6366 if test "$ld_shlibs" = no; then
6368 hardcode_libdir_flag_spec=
6369 export_dynamic_flag_spec=
6370 whole_archive_flag_spec=
6373 # PORTME fill in a description of your system's linker (not GNU ld)
6376 allow_undefined_flag=unsupported
6377 always_export_symbols=yes
6378 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'
6379 # Note: this linker hardcodes the directories in LIBPATH if there
6380 # are no directories specified by -L.
6381 hardcode_minus_L=yes
6382 if test "$GCC" = yes && test -z "$link_static_flag"; then
6383 # Neither direct hardcoding nor static linking is supported with a
6385 hardcode_direct=unsupported
6390 if test "$host_cpu" = ia64; then
6391 # On IA64, the linker does run time linking by default, so we don't
6392 # have to do anything special.
6393 aix_use_runtimelinking=no
6394 exp_sym_flag='-Bexport'
6397 # If we're using GNU nm, then we don't want the "-C" option.
6398 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6399 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6400 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'
6402 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'
6404 aix_use_runtimelinking=no
6406 # Test if we are trying to use run time linking or normal
6407 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6408 # need to do runtime linking.
6409 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6410 for ld_flag in $LDFLAGS; do
6411 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6412 aix_use_runtimelinking=yes
6418 exp_sym_flag='-bexport'
6419 no_entry_flag='-bnoentry'
6422 # When large executables or shared objects are built, AIX ld can
6423 # have problems creating the table of contents. If linking a library
6424 # or program results in "error TOC overflow" add -mminimal-toc to
6425 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6426 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6430 hardcode_libdir_separator=':'
6431 link_all_deplibs=yes
6433 if test "$GCC" = yes; then
6434 case $host_os in aix4.[012]|aix4.[012].*)
6435 # We only want to do this on AIX 4.2 and lower, the check
6436 # below for broken collect2 doesn't work under 4.3+
6437 collect2name=`${CC} -print-prog-name=collect2`
6438 if test -f "$collect2name" && \
6439 strings "$collect2name" | grep resolve_lib_name >/dev/null
6441 # We have reworked collect2
6444 # We have old collect2
6445 hardcode_direct=unsupported
6446 # It fails to find uninstalled libraries when the uninstalled
6447 # path is not listed in the libpath. Setting hardcode_minus_L
6448 # to unsupported forces relinking
6449 hardcode_minus_L=yes
6450 hardcode_libdir_flag_spec='-L$libdir'
6451 hardcode_libdir_separator=
6454 shared_flag='-shared'
6455 if test "$aix_use_runtimelinking" = yes; then
6456 shared_flag="$shared_flag "'${wl}-G'
6460 if test "$host_cpu" = ia64; then
6461 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6462 # chokes on -Wl,-G. The following line is correct:
6465 if test "$aix_use_runtimelinking" = yes; then
6466 shared_flag='${wl}-G'
6468 shared_flag='${wl}-bM:SRE'
6473 # It seems that -bexpall does not export symbols beginning with
6474 # underscore (_), so it is better to generate a list of symbols to export.
6475 always_export_symbols=yes
6476 if test "$aix_use_runtimelinking" = yes; then
6477 # Warning - without using the other runtime loading flags (-brtl),
6478 # -berok will link without error, but may produce a broken library.
6479 allow_undefined_flag='-berok'
6480 # Determine the default libpath from the value encoded in an empty executable.
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6496 rm -f conftest.$ac_objext conftest$ac_exeext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498 (eval $ac_link) 2>conftest.er1
6500 grep -v '^ *+' conftest.er1 >conftest.err
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_c_werror_flag"
6506 || test ! -s conftest.err'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try='test -s conftest$ac_exeext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6521 # Check for a 64-bit object if we didn't find anything.
6522 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; }
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6529 rm -f conftest.err conftest.$ac_objext \
6530 conftest$ac_exeext conftest.$ac_ext
6531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6533 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6534 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"
6536 if test "$host_cpu" = ia64; then
6537 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6538 allow_undefined_flag="-z nodefs"
6539 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"
6541 # Determine the default libpath from the value encoded in an empty executable.
6542 cat >conftest.$ac_ext <<_ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -z "$ac_c_werror_flag"
6567 || test ! -s conftest.err'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; } &&
6573 { ac_try='test -s conftest$ac_exeext'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6582 # Check for a 64-bit object if we didn't find anything.
6583 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; }
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6590 rm -f conftest.err conftest.$ac_objext \
6591 conftest$ac_exeext conftest.$ac_ext
6592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6594 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6595 # Warning - without using the other run time loading flags,
6596 # -berok will link without error, but may produce a broken library.
6597 no_undefined_flag=' ${wl}-bernotok'
6598 allow_undefined_flag=' ${wl}-berok'
6599 # -bexpall does not export symbols beginning with underscore (_)
6600 always_export_symbols=yes
6601 # Exported symbols can be pulled into shared objects from archives
6602 whole_archive_flag_spec=' '
6603 archive_cmds_need_lc=yes
6604 # This is similar to how AIX traditionally builds its shared libraries.
6605 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'
6611 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)'
6612 hardcode_libdir_flag_spec='-L$libdir'
6613 hardcode_minus_L=yes
6614 # see comment about different semantics on the GNU ld section
6619 export_dynamic_flag_spec=-rdynamic
6622 cygwin* | mingw* | pw32*)
6623 # When not using gcc, we currently assume that we are using
6624 # Microsoft Visual C++.
6625 # hardcode_libdir_flag_spec is actually meaningless, as there is
6626 # no search path for DLLs.
6627 hardcode_libdir_flag_spec=' '
6628 allow_undefined_flag=unsupported
6629 # Tell ltmain to make .lib files, not .a files.
6631 # Tell ltmain to make .dll files, not .so files.
6633 # FIXME: Setting linknames here is a bad hack.
6634 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6635 # The linker will automatically build a .lib file if we build a DLL.
6636 old_archive_From_new_cmds='true'
6637 # FIXME: Should let the user specify the lib program.
6638 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6639 fix_srcfile_path='`cygpath -w "$srcfile"`'
6640 enable_shared_with_static_runtimes=yes
6643 darwin* | rhapsody*)
6645 rhapsody* | darwin1.[012])
6646 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6649 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6650 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6652 case ${MACOSX_DEPLOYMENT_TARGET} in
6654 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6657 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6663 archive_cmds_need_lc=no
6665 hardcode_automatic=yes
6666 hardcode_shlibpath_var=unsupported
6667 whole_archive_flag_spec=''
6668 link_all_deplibs=yes
6669 if test "$GCC" = yes ; then
6670 output_verbose_link_cmd='echo'
6671 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6672 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6673 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6674 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}'
6675 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}'
6677 case $cc_basename in
6679 output_verbose_link_cmd='echo'
6680 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6681 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6682 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6683 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6684 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}'
6694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6695 hardcode_libdir_flag_spec='-L$libdir'
6696 hardcode_shlibpath_var=no
6703 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6704 # support. Future versions do this automatically, but an explicit c++rt0.o
6705 # does not break anything, and helps significantly (at the cost of a little
6708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6709 hardcode_libdir_flag_spec='-R$libdir'
6711 hardcode_shlibpath_var=no
6714 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6718 hardcode_minus_L=yes
6719 hardcode_shlibpath_var=no
6722 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6723 freebsd* | kfreebsd*-gnu | dragonfly*)
6724 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6725 hardcode_libdir_flag_spec='-R$libdir'
6727 hardcode_shlibpath_var=no
6731 if test "$GCC" = yes; then
6732 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'
6734 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'
6736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6737 hardcode_libdir_separator=:
6740 # hardcode_minus_L: Not really in the search PATH,
6741 # but as the default location of the library.
6742 hardcode_minus_L=yes
6743 export_dynamic_flag_spec='${wl}-E'
6747 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6750 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6753 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6759 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6762 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6766 if test "$with_gnu_ld" = no; then
6769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6770 hardcode_libdir_flag_spec_ld='+b $libdir'
6771 hardcode_libdir_separator=:
6773 hardcode_shlibpath_var=no
6776 hardcode_libdir_flag_spec='-L$libdir'
6778 hardcode_shlibpath_var=no
6780 # hardcode_minus_L: Not really in the search PATH,
6781 # but as the default location of the library.
6782 hardcode_minus_L=yes
6785 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6786 hardcode_libdir_separator=:
6788 export_dynamic_flag_spec='${wl}-E'
6790 # hardcode_minus_L: Not really in the search PATH,
6791 # but as the default location of the library.
6792 hardcode_minus_L=yes
6798 irix5* | irix6* | nonstopux*)
6799 if test "$GCC" = yes; then
6800 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'
6802 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'
6803 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6806 hardcode_libdir_separator=:
6807 link_all_deplibs=yes
6811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6814 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6816 hardcode_libdir_flag_spec='-R$libdir'
6818 hardcode_shlibpath_var=no
6822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6825 hardcode_libdir_separator=:
6826 hardcode_shlibpath_var=no
6831 hardcode_shlibpath_var=no
6832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6833 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6834 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6836 export_dynamic_flag_spec='${wl}-E'
6839 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6841 hardcode_libdir_flag_spec='-R$libdir'
6844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6845 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6852 hardcode_libdir_flag_spec='-L$libdir'
6853 hardcode_minus_L=yes
6854 allow_undefined_flag=unsupported
6855 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'
6856 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6860 if test "$GCC" = yes; then
6861 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6862 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'
6864 allow_undefined_flag=' -expect_unresolved \*'
6865 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'
6867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6868 hardcode_libdir_separator=:
6871 osf4* | osf5*) # as osf3* with the addition of -msym flag
6872 if test "$GCC" = yes; then
6873 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6874 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'
6875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6877 allow_undefined_flag=' -expect_unresolved \*'
6878 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'
6879 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6880 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6882 # Both c and cxx compiler support -rpath directly
6883 hardcode_libdir_flag_spec='-rpath $libdir'
6885 hardcode_libdir_separator=:
6889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6890 hardcode_shlibpath_var=no
6891 export_dynamic_flag_spec='${wl}-Bexport'
6892 runpath_var=LD_RUN_PATH
6893 hardcode_runpath_var=yes
6897 no_undefined_flag=' -z text'
6898 if test "$GCC" = yes; then
6900 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6901 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6902 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6905 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6906 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6909 hardcode_libdir_flag_spec='-R$libdir'
6910 hardcode_shlibpath_var=no
6912 solaris2.[0-5] | solaris2.[0-5].*) ;;
6914 # The compiler driver will combine linker options so we
6915 # cannot just pass the convience library names through
6916 # without $wl, iff we do not link with $LD.
6917 # Luckily, gcc supports the same syntax we need for Sun Studio.
6918 # Supported since Solaris 2.6 (maybe 2.5.1?)
6921 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6923 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6926 link_all_deplibs=yes
6930 if test "x$host_vendor" = xsequent; then
6931 # Use $CC to link under sequent, because it throws in some extra .o
6932 # files that make .init and .fini sections work.
6933 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6935 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6937 hardcode_libdir_flag_spec='-L$libdir'
6939 hardcode_minus_L=yes
6940 hardcode_shlibpath_var=no
6944 case $host_vendor in
6946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6947 hardcode_direct=yes # is this really true???
6950 ## LD is ld it makes a PLAMLIB
6951 ## CC just makes a GrossModule.
6952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6953 reload_cmds='$CC -r -o $output$reload_objs'
6957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6958 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6961 runpath_var='LD_RUN_PATH'
6962 hardcode_shlibpath_var=no
6966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967 hardcode_shlibpath_var=no
6968 export_dynamic_flag_spec='-Bexport'
6972 if test -d /usr/nec; then
6973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974 hardcode_shlibpath_var=no
6975 runpath_var=LD_RUN_PATH
6976 hardcode_runpath_var=yes
6982 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6985 hardcode_shlibpath_var=no
6986 hardcode_runpath_var=yes
6987 runpath_var=LD_RUN_PATH
6990 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6991 no_undefined_flag='${wl}-z ${wl}text'
6992 if test "$GCC" = yes; then
6993 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6995 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6997 runpath_var='LD_RUN_PATH'
6998 hardcode_shlibpath_var=no
7002 no_undefined_flag=' -z text'
7003 # $CC -shared without GNU ld will not create a library from C++
7004 # object files and a static libstdc++, better avoid it by now
7005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7006 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7008 hardcode_libdir_flag_spec=
7009 hardcode_shlibpath_var=no
7010 runpath_var='LD_RUN_PATH'
7014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7015 hardcode_libdir_flag_spec='-L$libdir'
7016 hardcode_shlibpath_var=no
7025 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7026 echo "${ECHO_T}$ld_shlibs" >&6
7027 test "$ld_shlibs" = no && can_build_shared=no
7029 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7030 if test "$GCC" = yes; then
7031 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7035 # Do we need to explicitly link libc?
7037 case "x$archive_cmds_need_lc" in
7039 # Assume -lc should be added
7040 archive_cmds_need_lc=yes
7042 if test "$enable_shared" = yes && test "$GCC" = yes; then
7043 case $archive_cmds in
7045 # FIXME: we may have to deal with multi-command sequences.
7048 # Test whether the compiler implicitly links with -lc since on some
7049 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7050 # to ld, don't add -lc before -lgcc.
7051 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057 (eval $ac_compile) 2>&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } 2>conftest.err; then
7063 libobjs=conftest.$ac_objext
7065 wl=$lt_prog_compiler_wl
7071 lt_save_allow_undefined_flag=$allow_undefined_flag
7072 allow_undefined_flag=
7073 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7074 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }
7079 archive_cmds_need_lc=no
7081 archive_cmds_need_lc=yes
7083 allow_undefined_flag=$lt_save_allow_undefined_flag
7085 cat conftest.err 1>&5
7088 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7089 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7096 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7097 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7099 libname_spec='lib$name'
7107 shlibpath_overrides_runpath=unknown
7109 dynamic_linker="$host_os ld.so"
7110 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7111 if test "$GCC" = yes; then
7112 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7113 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7114 # if the path contains ";" then we assume it to be the separator
7115 # otherwise default to the standard path separator (i.e. ":") - it is
7116 # assumed that no part of a normal pathname contains ";" but that should
7117 # okay in the real world where ";" in dirpaths is itself problematic.
7118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7123 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7125 need_lib_prefix=unknown
7126 hardcode_into_libs=no
7128 # when you set need_version to no, make sure it does not cause -set_version
7129 # flags to be left without arguments
7130 need_version=unknown
7135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7136 shlibpath_var=LIBPATH
7138 # AIX 3 has no versioning support, so we append a major version to the name.
7139 soname_spec='${libname}${release}${shared_ext}$major'
7146 hardcode_into_libs=yes
7147 if test "$host_cpu" = ia64; then
7148 # AIX 5 supports IA64
7149 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7150 shlibpath_var=LD_LIBRARY_PATH
7152 # With GCC up to 2.95.x, collect2 would create an import file
7153 # for dependence libraries. The import file would start with
7154 # the line `#! .'. This would cause the generated library to
7155 # depend on `.', always an invalid library. This was fixed in
7156 # development snapshots of GCC prior to 3.0.
7158 aix4 | aix4.[01] | aix4.[01].*)
7159 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7161 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7168 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7169 # soname into executable. Probably we can add versioning support to
7170 # collect2, so additional links can be useful in future.
7171 if test "$aix_use_runtimelinking" = yes; then
7172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7173 # instead of lib<name>.a to let people know that these are not
7174 # typical AIX shared libraries.
7175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7177 # We preserve .a as extension for shared libraries through AIX4.2
7178 # and later when we are not doing run time linking.
7179 library_names_spec='${libname}${release}.a $libname.a'
7180 soname_spec='${libname}${release}${shared_ext}$major'
7182 shlibpath_var=LIBPATH
7187 library_names_spec='$libname.ixlibrary $libname.a'
7188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7189 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'
7193 library_names_spec='${libname}${shared_ext}'
7194 dynamic_linker="$host_os ld.so"
7195 shlibpath_var=LIBRARY_PATH
7201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7202 soname_spec='${libname}${release}${shared_ext}$major'
7203 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7204 shlibpath_var=LD_LIBRARY_PATH
7205 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7206 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7207 # the default ld.so.conf also contains /usr/contrib/lib and
7208 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7209 # libtool to hard-code these into programs
7212 cygwin* | mingw* | pw32*)
7213 version_type=windows
7218 case $GCC,$host_os in
7219 yes,cygwin* | yes,mingw* | yes,pw32*)
7220 library_names_spec='$libname.dll.a'
7221 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7222 postinstall_cmds='base_file=`basename \${file}`~
7223 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7224 dldir=$destdir/`dirname \$dlpath`~
7225 test -d \$dldir || mkdir -p \$dldir~
7226 $install_prog $dir/$dlname \$dldir/$dlname~
7227 chmod a+x \$dldir/$dlname'
7228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7229 dlpath=$dir/\$dldll~
7231 shlibpath_overrides_runpath=yes
7235 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7236 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7237 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7240 # MinGW DLLs use traditional 'lib' prefix
7241 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7242 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7243 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7244 # It is most probably a Windows format PATH printed by
7245 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7246 # path with ; separators, and with drive letters. We can handle the
7247 # drive letters (cygwin fileutils understands them), so leave them,
7248 # especially as we might pass files found there to a mingw objdump,
7249 # which wouldn't understand a cygwinified path. Ahh.
7250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7256 # pw32 DLLs use 'pw' prefix rather than 'lib'
7257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7266 dynamic_linker='Win32 ld.exe'
7267 # FIXME: first we should search . and the directory the executable is in
7271 darwin* | rhapsody*)
7272 dynamic_linker="$host_os dyld"
7276 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7277 soname_spec='${libname}${release}${major}$shared_ext'
7278 shlibpath_overrides_runpath=yes
7279 shlibpath_var=DYLD_LIBRARY_PATH
7280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7281 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7282 if test "$GCC" = yes; then
7283 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"`
7285 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7295 soname_spec='${libname}${release}${shared_ext}$major'
7296 shlibpath_var=LD_LIBRARY_PATH
7307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7308 soname_spec='${libname}${release}${shared_ext}$major'
7309 shlibpath_var=LD_LIBRARY_PATH
7310 shlibpath_overrides_runpath=no
7311 hardcode_into_libs=yes
7312 dynamic_linker='GNU ld.so'
7315 freebsd* | dragonfly*)
7316 # DragonFly does not have aout. When/if they implement a new
7317 # versioning mechanism, adjust this.
7318 if test -x /usr/bin/objformat; then
7319 objformat=`/usr/bin/objformat`
7322 freebsd[123]*) objformat=aout ;;
7326 version_type=freebsd-$objformat
7327 case $version_type in
7329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7338 shlibpath_var=LD_LIBRARY_PATH
7341 shlibpath_overrides_runpath=yes
7343 freebsd3.[01]* | freebsdelf3.[01]*)
7344 shlibpath_overrides_runpath=yes
7345 hardcode_into_libs=yes
7348 shlibpath_overrides_runpath=no
7349 hardcode_into_libs=yes
7358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7359 soname_spec='${libname}${release}${shared_ext}$major'
7360 shlibpath_var=LD_LIBRARY_PATH
7361 hardcode_into_libs=yes
7364 hpux9* | hpux10* | hpux11*)
7365 # Give a soname corresponding to the major version so that dld.sl refuses to
7366 # link against other versions.
7373 hardcode_into_libs=yes
7374 dynamic_linker="$host_os dld.so"
7375 shlibpath_var=LD_LIBRARY_PATH
7376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7378 soname_spec='${libname}${release}${shared_ext}$major'
7379 if test "X$HPUX_IA64_MODE" = X32; then
7380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7388 hardcode_into_libs=yes
7389 dynamic_linker="$host_os dld.sl"
7390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7393 soname_spec='${libname}${release}${shared_ext}$major'
7394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7399 dynamic_linker="$host_os dld.sl"
7400 shlibpath_var=SHLIB_PATH
7401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7403 soname_spec='${libname}${release}${shared_ext}$major'
7406 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7407 postinstall_cmds='chmod 555 $lib'
7410 irix5* | irix6* | nonstopux*)
7412 nonstopux*) version_type=nonstopux ;;
7414 if test "$lt_cv_prog_gnu_ld" = yes; then
7422 soname_spec='${libname}${release}${shared_ext}$major'
7423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7425 irix5* | nonstopux*)
7429 case $LD in # libtool.m4 will add one of these switches to LD
7430 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7431 libsuff= shlibsuff= libmagic=32-bit;;
7432 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7433 libsuff=32 shlibsuff=N32 libmagic=N32;;
7434 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7435 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7436 *) libsuff= shlibsuff= libmagic=never-match;;
7440 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7441 shlibpath_overrides_runpath=no
7442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7444 hardcode_into_libs=yes
7447 # No shared lib support for Linux oldld, aout, or coff.
7448 linux*oldld* | linux*aout* | linux*coff*)
7452 # This must be Linux ELF.
7457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7458 soname_spec='${libname}${release}${shared_ext}$major'
7459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7460 shlibpath_var=LD_LIBRARY_PATH
7461 shlibpath_overrides_runpath=no
7462 # This implies no fast_install, which is unacceptable.
7463 # Some rework will be needed to allow for fast_install
7464 # before this can be enabled.
7465 hardcode_into_libs=yes
7467 # Append ld.so.conf contents to the search path
7468 if test -f /etc/ld.so.conf; then
7469 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7470 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7473 # We used to test for /lib/ld.so.1 and disable shared libraries on
7474 # powerpc, because MkLinux only supported shared libraries with the
7475 # GNU dynamic linker. Since this was broken with cross compilers,
7476 # most powerpc-linux boxes support dynamic linking these days and
7477 # people can always --disable-shared, the test was removed, and we
7478 # assume the GNU/Linux dynamic linker is in use.
7479 dynamic_linker='GNU/Linux ld.so'
7486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7487 soname_spec='${libname}${release}${shared_ext}$major'
7488 shlibpath_var=LD_LIBRARY_PATH
7489 shlibpath_overrides_runpath=no
7490 hardcode_into_libs=yes
7491 dynamic_linker='GNU ld.so'
7498 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7501 dynamic_linker='NetBSD (a.out) ld.so'
7503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7504 soname_spec='${libname}${release}${shared_ext}$major'
7505 dynamic_linker='NetBSD ld.elf_so'
7507 shlibpath_var=LD_LIBRARY_PATH
7508 shlibpath_overrides_runpath=yes
7509 hardcode_into_libs=yes
7514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515 shlibpath_var=LD_LIBRARY_PATH
7516 shlibpath_overrides_runpath=yes
7523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7524 soname_spec='${libname}${release}${shared_ext}$major'
7525 shlibpath_var=LD_LIBRARY_PATH
7526 shlibpath_overrides_runpath=yes
7532 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7534 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7535 *) need_version=no ;;
7537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7539 shlibpath_var=LD_LIBRARY_PATH
7540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7542 openbsd2.[89] | openbsd2.[89].*)
7543 shlibpath_overrides_runpath=no
7546 shlibpath_overrides_runpath=yes
7550 shlibpath_overrides_runpath=yes
7555 libname_spec='$name'
7558 library_names_spec='$libname${shared_ext} $libname.a'
7559 dynamic_linker='OS/2 ld.exe'
7560 shlibpath_var=LIBPATH
7563 osf3* | osf4* | osf5*)
7567 soname_spec='${libname}${release}${shared_ext}$major'
7568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7569 shlibpath_var=LD_LIBRARY_PATH
7570 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7571 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7576 soname_spec='${libname}${release}${shared_ext}$major'
7577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7578 shlibpath_var=LD_LIBRARY_PATH
7585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7586 soname_spec='${libname}${release}${shared_ext}$major'
7587 shlibpath_var=LD_LIBRARY_PATH
7588 shlibpath_overrides_runpath=yes
7589 hardcode_into_libs=yes
7590 # ldd complains unless libraries are executable
7591 postinstall_cmds='chmod +x $lib'
7596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7598 shlibpath_var=LD_LIBRARY_PATH
7599 shlibpath_overrides_runpath=yes
7600 if test "$with_gnu_ld" = yes; then
7606 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609 soname_spec='${libname}${release}${shared_ext}$major'
7610 shlibpath_var=LD_LIBRARY_PATH
7611 case $host_vendor in
7613 shlibpath_overrides_runpath=no
7615 export_dynamic_flag_spec='${wl}-Blargedynsym'
7616 runpath_var=LD_RUN_PATH
7624 shlibpath_overrides_runpath=no
7625 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7631 if test -d /usr/nec ;then
7633 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7634 soname_spec='$libname${shared_ext}.$major'
7635 shlibpath_var=LD_LIBRARY_PATH
7641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642 soname_spec='${libname}${release}${shared_ext}$major'
7643 shlibpath_var=LD_LIBRARY_PATH
7650 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7651 echo "${ECHO_T}$dynamic_linker" >&6
7652 test "$dynamic_linker" = no && can_build_shared=no
7654 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7655 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7657 if test -n "$hardcode_libdir_flag_spec" || \
7658 test -n "$runpath_var" || \
7659 test "X$hardcode_automatic" = "Xyes" ; then
7661 # We can hardcode non-existant directories.
7662 if test "$hardcode_direct" != no &&
7663 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7664 # have to relink, otherwise we might link with an installed library
7665 # when we should be linking with a yet-to-be-installed one
7666 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7667 test "$hardcode_minus_L" != no; then
7668 # Linking always hardcodes the temporary library directory.
7669 hardcode_action=relink
7671 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7672 hardcode_action=immediate
7675 # We cannot hardcode anything, or else we can only hardcode existing
7677 hardcode_action=unsupported
7679 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7680 echo "${ECHO_T}$hardcode_action" >&6
7682 if test "$hardcode_action" = relink; then
7683 # Fast installation is not supported
7684 enable_fast_install=no
7685 elif test "$shlibpath_overrides_runpath" = yes ||
7686 test "$enable_shared" = no; then
7687 # Fast installation is not necessary
7688 enable_fast_install=needless
7693 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7694 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7695 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7696 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7697 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7698 echo "$as_me:$LINENO: result: yes" >&5
7699 echo "${ECHO_T}yes" >&6
7701 # FIXME - insert some real tests, host_os isn't really good enough
7704 if test -n "$STRIP" ; then
7705 striplib="$STRIP -x"
7706 echo "$as_me:$LINENO: result: yes" >&5
7707 echo "${ECHO_T}yes" >&6
7709 echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6
7714 echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6
7720 if test "x$enable_dlopen" != xyes; then
7721 enable_dlopen=unknown
7722 enable_dlopen_self=unknown
7723 enable_dlopen_self_static=unknown
7730 lt_cv_dlopen="load_add_on"
7732 lt_cv_dlopen_self=yes
7736 lt_cv_dlopen="LoadLibrary"
7741 lt_cv_dlopen="dlopen"
7746 # if libdl is installed we need to link against it
7747 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7748 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7749 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 ac_check_lib_save_LIBS=$LIBS
7754 cat >conftest.$ac_ext <<_ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7761 /* Override any gcc2 internal prototype to avoid an error. */
7765 /* We use char because int might match the return type of a gcc2
7766 builtin and then its argument prototype would still apply. */
7776 rm -f conftest.$ac_objext conftest$ac_exeext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778 (eval $ac_link) 2>conftest.er1
7780 grep -v '^ *+' conftest.er1 >conftest.err
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -z "$ac_c_werror_flag"
7786 || test ! -s conftest.err'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; } &&
7792 { ac_try='test -s conftest$ac_exeext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 ac_cv_lib_dl_dlopen=yes
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7803 ac_cv_lib_dl_dlopen=no
7805 rm -f conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7807 LIBS=$ac_check_lib_save_LIBS
7809 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7810 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7811 if test $ac_cv_lib_dl_dlopen = yes; then
7812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7817 lt_cv_dlopen_self=yes
7824 echo "$as_me:$LINENO: checking for shl_load" >&5
7825 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7826 if test "${ac_cv_func_shl_load+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 cat >conftest.$ac_ext <<_ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7837 #define shl_load innocuous_shl_load
7839 /* System header to define __stub macros and hopefully few prototypes,
7840 which can conflict with char shl_load (); below.
7841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7842 <limits.h> exists even on freestanding compilers. */
7845 # include <limits.h>
7847 # include <assert.h>
7852 /* Override any gcc2 internal prototype to avoid an error. */
7857 /* We use char because int might match the return type of a gcc2
7858 builtin and then its argument prototype would still apply. */
7860 /* The GNU C library defines this for functions which it implements
7861 to always fail with ENOSYS. Some functions are actually named
7862 something starting with __ and the normal name is an alias. */
7863 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7866 char (*f) () = shl_load;
7875 return f != shl_load;
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>conftest.er1
7884 grep -v '^ *+' conftest.er1 >conftest.err
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest$ac_exeext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_func_shl_load=yes
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ac_cv_func_shl_load=no
7909 rm -f conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7912 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7913 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7914 if test $ac_cv_func_shl_load = yes; then
7915 lt_cv_dlopen="shl_load"
7917 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7918 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7919 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 ac_check_lib_save_LIBS=$LIBS
7924 cat >conftest.$ac_ext <<_ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7931 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>conftest.er1
7950 grep -v '^ *+' conftest.er1 >conftest.err
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_c_werror_flag"
7956 || test ! -s conftest.err'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try='test -s conftest$ac_exeext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_lib_dld_shl_load=yes
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_lib_dld_shl_load=no
7975 rm -f conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 LIBS=$ac_check_lib_save_LIBS
7979 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7980 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7981 if test $ac_cv_lib_dld_shl_load = yes; then
7982 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7984 echo "$as_me:$LINENO: checking for dlopen" >&5
7985 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7986 if test "${ac_cv_func_dlopen+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 cat >conftest.$ac_ext <<_ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7995 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7997 #define dlopen innocuous_dlopen
7999 /* System header to define __stub macros and hopefully few prototypes,
8000 which can conflict with char dlopen (); below.
8001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8002 <limits.h> exists even on freestanding compilers. */
8005 # include <limits.h>
8007 # include <assert.h>
8012 /* Override any gcc2 internal prototype to avoid an error. */
8017 /* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8020 /* The GNU C library defines this for functions which it implements
8021 to always fail with ENOSYS. Some functions are actually named
8022 something starting with __ and the normal name is an alias. */
8023 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8026 char (*f) () = dlopen;
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest$ac_exeext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_func_dlopen=yes
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 ac_cv_func_dlopen=no
8069 rm -f conftest.err conftest.$ac_objext \
8070 conftest$ac_exeext conftest.$ac_ext
8072 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8073 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8074 if test $ac_cv_func_dlopen = yes; then
8075 lt_cv_dlopen="dlopen"
8077 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8078 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8079 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 ac_check_lib_save_LIBS=$LIBS
8084 cat >conftest.$ac_ext <<_ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8091 /* Override any gcc2 internal prototype to avoid an error. */
8095 /* We use char because int might match the return type of a gcc2
8096 builtin and then its argument prototype would still apply. */
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8108 (eval $ac_link) 2>conftest.er1
8110 grep -v '^ *+' conftest.er1 >conftest.err
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
8115 { ac_try='test -z "$ac_c_werror_flag"
8116 || test ! -s conftest.err'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest$ac_exeext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_cv_lib_dl_dlopen=yes
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8133 ac_cv_lib_dl_dlopen=no
8135 rm -f conftest.err conftest.$ac_objext \
8136 conftest$ac_exeext conftest.$ac_ext
8137 LIBS=$ac_check_lib_save_LIBS
8139 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8140 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8141 if test $ac_cv_lib_dl_dlopen = yes; then
8142 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8144 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8145 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8146 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 ac_check_lib_save_LIBS=$LIBS
8151 cat >conftest.$ac_ext <<_ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8158 /* Override any gcc2 internal prototype to avoid an error. */
8162 /* We use char because int might match the return type of a gcc2
8163 builtin and then its argument prototype would still apply. */
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>conftest.er1
8177 grep -v '^ *+' conftest.er1 >conftest.err
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag"
8183 || test ! -s conftest.err'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; } &&
8189 { ac_try='test -s conftest$ac_exeext'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 ac_cv_lib_svld_dlopen=yes
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8200 ac_cv_lib_svld_dlopen=no
8202 rm -f conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8204 LIBS=$ac_check_lib_save_LIBS
8206 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8207 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8208 if test $ac_cv_lib_svld_dlopen = yes; then
8209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8211 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8212 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8213 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 ac_check_lib_save_LIBS=$LIBS
8218 cat >conftest.$ac_ext <<_ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8225 /* Override any gcc2 internal prototype to avoid an error. */
8229 /* We use char because int might match the return type of a gcc2
8230 builtin and then its argument prototype would still apply. */
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242 (eval $ac_link) 2>conftest.er1
8244 grep -v '^ *+' conftest.er1 >conftest.err
8246 cat conftest.err >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try='test -z "$ac_c_werror_flag"
8250 || test ! -s conftest.err'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; } &&
8256 { ac_try='test -s conftest$ac_exeext'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262 ac_cv_lib_dld_dld_link=yes
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8267 ac_cv_lib_dld_dld_link=no
8269 rm -f conftest.err conftest.$ac_objext \
8270 conftest$ac_exeext conftest.$ac_ext
8271 LIBS=$ac_check_lib_save_LIBS
8273 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8274 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8275 if test $ac_cv_lib_dld_dld_link = yes; then
8276 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8297 if test "x$lt_cv_dlopen" != xno; then
8303 case $lt_cv_dlopen in
8305 save_CPPFLAGS="$CPPFLAGS"
8306 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8308 save_LDFLAGS="$LDFLAGS"
8309 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8312 LIBS="$lt_cv_dlopen_libs $LIBS"
8314 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8315 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8316 if test "${lt_cv_dlopen_self+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 if test "$cross_compiling" = yes; then :
8320 lt_cv_dlopen_self=cross
8322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8323 lt_status=$lt_dlunknown
8324 cat > conftest.$ac_ext <<EOF
8325 #line 8325 "configure"
8326 #include "confdefs.h"
8335 # define LT_DLGLOBAL RTLD_GLOBAL
8338 # define LT_DLGLOBAL DL_GLOBAL
8340 # define LT_DLGLOBAL 0
8344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8345 find out it does not work in some platform. */
8346 #ifndef LT_DLLAZY_OR_NOW
8348 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8351 # define LT_DLLAZY_OR_NOW DL_LAZY
8354 # define LT_DLLAZY_OR_NOW RTLD_NOW
8357 # define LT_DLLAZY_OR_NOW DL_NOW
8359 # define LT_DLLAZY_OR_NOW 0
8367 extern "C" void exit (int);
8370 void fnord() { int i=42;}
8373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8374 int status = $lt_dlunknown;
8378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8379 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8380 /* dlclose (self); */
8386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387 (eval $ac_link) 2>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8391 (./conftest; exit; ) >&5 2>/dev/null
8394 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8395 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8396 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8399 # compilation failed
8400 lt_cv_dlopen_self=no
8407 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8408 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8410 if test "x$lt_cv_dlopen_self" = xyes; then
8411 LDFLAGS="$LDFLAGS $link_static_flag"
8412 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8413 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8414 if test "${lt_cv_dlopen_self_static+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 if test "$cross_compiling" = yes; then :
8418 lt_cv_dlopen_self_static=cross
8420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8421 lt_status=$lt_dlunknown
8422 cat > conftest.$ac_ext <<EOF
8423 #line 8423 "configure"
8424 #include "confdefs.h"
8433 # define LT_DLGLOBAL RTLD_GLOBAL
8436 # define LT_DLGLOBAL DL_GLOBAL
8438 # define LT_DLGLOBAL 0
8442 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8443 find out it does not work in some platform. */
8444 #ifndef LT_DLLAZY_OR_NOW
8446 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8449 # define LT_DLLAZY_OR_NOW DL_LAZY
8452 # define LT_DLLAZY_OR_NOW RTLD_NOW
8455 # define LT_DLLAZY_OR_NOW DL_NOW
8457 # define LT_DLLAZY_OR_NOW 0
8465 extern "C" void exit (int);
8468 void fnord() { int i=42;}
8471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8472 int status = $lt_dlunknown;
8476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8478 /* dlclose (self); */
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8489 (./conftest; exit; ) >&5 2>/dev/null
8492 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8493 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8494 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8497 # compilation failed
8498 lt_cv_dlopen_self_static=no
8505 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8506 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8509 CPPFLAGS="$save_CPPFLAGS"
8510 LDFLAGS="$save_LDFLAGS"
8515 case $lt_cv_dlopen_self in
8516 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8517 *) enable_dlopen_self=unknown ;;
8520 case $lt_cv_dlopen_self_static in
8521 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8522 *) enable_dlopen_self_static=unknown ;;
8527 # Report which librarie types wil actually be built
8528 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8529 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8530 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8531 echo "${ECHO_T}$can_build_shared" >&6
8533 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8534 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8535 test "$can_build_shared" = "no" && enable_shared=no
8537 # On AIX, shared libraries and static libraries use the same namespace, and
8538 # are all built from PIC.
8541 test "$enable_shared" = yes && enable_static=no
8542 if test -n "$RANLIB"; then
8543 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8544 postinstall_cmds='$RANLIB $lib'
8549 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8550 test "$enable_shared" = yes && enable_static=no
8554 echo "$as_me:$LINENO: result: $enable_shared" >&5
8555 echo "${ECHO_T}$enable_shared" >&6
8557 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8558 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8559 # Make sure either enable_shared or enable_static is yes.
8560 test "$enable_shared" = yes || enable_static=yes
8561 echo "$as_me:$LINENO: result: $enable_static" >&5
8562 echo "${ECHO_T}$enable_static" >&6
8564 # The else clause should only fire when bootstrapping the
8565 # libtool distribution, otherwise you forgot to ship ltmain.sh
8566 # with your package, and you will get complaints that there are
8567 # no rules to generate ltmain.sh.
8568 if test -f "$ltmain"; then
8569 # See if we are running on zsh, and set the options which allow our commands through
8570 # without removal of \ escapes.
8571 if test -n "${ZSH_VERSION+set}" ; then
8572 setopt NO_GLOB_SUBST
8574 # Now quote all the things that may contain metacharacters while being
8575 # careful not to overquote the AC_SUBSTed values. We take copies of the
8576 # variables and quote the copies for generation of the libtool script.
8577 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8579 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8580 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8581 deplibs_check_method reload_flag reload_cmds need_locks \
8582 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8583 lt_cv_sys_global_symbol_to_c_name_address \
8584 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8585 old_postinstall_cmds old_postuninstall_cmds \
8589 lt_prog_compiler_wl \
8590 lt_prog_compiler_pic \
8591 lt_prog_compiler_static \
8592 lt_prog_compiler_no_builtin_flag \
8593 export_dynamic_flag_spec \
8594 thread_safe_flag_spec \
8595 whole_archive_flag_spec \
8596 enable_shared_with_static_runtimes \
8598 old_archive_from_new_cmds \
8603 compiler_lib_search_path \
8605 archive_expsym_cmds \
8607 postuninstall_cmds \
8608 old_archive_from_expsyms_cmds \
8609 allow_undefined_flag \
8611 export_symbols_cmds \
8612 hardcode_libdir_flag_spec \
8613 hardcode_libdir_flag_spec_ld \
8614 hardcode_libdir_separator \
8615 hardcode_automatic \
8617 module_expsym_cmds \
8618 lt_cv_prog_compiler_c_o \
8623 old_archive_cmds | \
8624 old_archive_from_new_cmds | \
8626 archive_expsym_cmds | \
8628 module_expsym_cmds | \
8629 old_archive_from_expsyms_cmds | \
8630 export_symbols_cmds | \
8631 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8632 postinstall_cmds | postuninstall_cmds | \
8633 old_postinstall_cmds | old_postuninstall_cmds | \
8634 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8635 # Double-quote double-evaled strings.
8636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8639 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8645 *'\$0 --fallback-echo"')
8646 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8651 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8653 { echo "$as_me:$LINENO: creating $ofile" >&5
8654 echo "$as_me: creating $ofile" >&6;}
8656 cat <<__EOF__ >> "$cfgfile"
8659 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8660 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8661 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8663 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8664 # Free Software Foundation, Inc.
8666 # This file is part of GNU Libtool:
8667 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8669 # This program is free software; you can redistribute it and/or modify
8670 # it under the terms of the GNU General Public License as published by
8671 # the Free Software Foundation; either version 2 of the License, or
8672 # (at your option) any later version.
8674 # This program is distributed in the hope that it will be useful, but
8675 # WITHOUT ANY WARRANTY; without even the implied warranty of
8676 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8677 # General Public License for more details.
8679 # You should have received a copy of the GNU General Public License
8680 # along with this program; if not, write to the Free Software
8681 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
8683 # As a special exception to the GNU General Public License, if you
8684 # distribute this file as part of a program that contains a
8685 # configuration script generated by Autoconf, you may include it under
8686 # the same distribution terms that you use for the rest of that program.
8688 # A sed program that does not truncate output.
8691 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8692 Xsed="$SED -e 1s/^X//"
8694 # The HP-UX ksh and POSIX shell print the target directory to stdout
8696 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8698 # The names of the tagged configurations supported by this script.
8701 # ### BEGIN LIBTOOL CONFIG
8703 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8705 # Shell to use when invoking shell scripts.
8708 # Whether or not to build shared libraries.
8709 build_libtool_libs=$enable_shared
8711 # Whether or not to build static libraries.
8712 build_old_libs=$enable_static
8714 # Whether or not to add -lc for building shared libraries.
8715 build_libtool_need_lc=$archive_cmds_need_lc
8717 # Whether or not to disallow shared libs when runtime libs are static
8718 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8720 # Whether or not to optimize for fast installation.
8721 fast_install=$enable_fast_install
8724 host_alias=$host_alias
8729 build_alias=$build_alias
8733 # An echo program that does not interpret backslashes.
8738 AR_FLAGS=$lt_AR_FLAGS
8743 # A language-specific compiler.
8746 # Is the compiler the GNU C compiler?
8752 # The linker used to build libraries.
8755 # Whether we need hard or soft links.
8758 # A BSD-compatible nm program.
8761 # A symbol stripping program
8764 # Used to examine libraries when file_magic_cmd begins "file"
8765 MAGIC_CMD=$MAGIC_CMD
8767 # Used on cygwin: DLL creation program.
8770 # Used on cygwin: object dumper.
8773 # Used on cygwin: assembler.
8776 # The name of the directory that contains temporary libtool files.
8779 # How to create reloadable object files.
8780 reload_flag=$lt_reload_flag
8781 reload_cmds=$lt_reload_cmds
8783 # How to pass a linker flag through the compiler.
8784 wl=$lt_lt_prog_compiler_wl
8786 # Object file suffix (normally "o").
8789 # Old archive suffix (normally "a").
8792 # Shared library suffix (normally ".so").
8793 shrext_cmds='$shrext_cmds'
8795 # Executable file suffix (normally "").
8798 # Additional compiler flags for building library objects.
8799 pic_flag=$lt_lt_prog_compiler_pic
8802 # What is the maximum length of a command?
8803 max_cmd_len=$lt_cv_sys_max_cmd_len
8805 # Does compiler simultaneously support -c and -o options?
8806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8808 # Must we lock files when doing compilation?
8809 need_locks=$lt_need_locks
8811 # Do we need the lib prefix for modules?
8812 need_lib_prefix=$need_lib_prefix
8814 # Do we need a version for libraries?
8815 need_version=$need_version
8817 # Whether dlopen is supported.
8818 dlopen_support=$enable_dlopen
8820 # Whether dlopen of programs is supported.
8821 dlopen_self=$enable_dlopen_self
8823 # Whether dlopen of statically linked programs is supported.
8824 dlopen_self_static=$enable_dlopen_self_static
8826 # Compiler flag to prevent dynamic linking.
8827 link_static_flag=$lt_lt_prog_compiler_static
8829 # Compiler flag to turn off builtin functions.
8830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8832 # Compiler flag to allow reflexive dlopens.
8833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8835 # Compiler flag to generate shared objects directly from archives.
8836 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8838 # Compiler flag to generate thread-safe objects.
8839 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8841 # Library versioning type.
8842 version_type=$version_type
8844 # Format of library name prefix.
8845 libname_spec=$lt_libname_spec
8847 # List of archive names. First name is the real one, the rest are links.
8848 # The last name is the one that the linker finds with -lNAME.
8849 library_names_spec=$lt_library_names_spec
8851 # The coded name of the library, if different from the real name.
8852 soname_spec=$lt_soname_spec
8854 # Commands used to build and install an old-style archive.
8856 old_archive_cmds=$lt_old_archive_cmds
8857 old_postinstall_cmds=$lt_old_postinstall_cmds
8858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8860 # Create an old-style archive from a shared archive.
8861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8863 # Create a temporary old-style archive to link instead of a shared archive.
8864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8866 # Commands used to build and install a shared archive.
8867 archive_cmds=$lt_archive_cmds
8868 archive_expsym_cmds=$lt_archive_expsym_cmds
8869 postinstall_cmds=$lt_postinstall_cmds
8870 postuninstall_cmds=$lt_postuninstall_cmds
8872 # Commands used to build a loadable module (assumed same as above if empty)
8873 module_cmds=$lt_module_cmds
8874 module_expsym_cmds=$lt_module_expsym_cmds
8876 # Commands to strip libraries.
8877 old_striplib=$lt_old_striplib
8878 striplib=$lt_striplib
8880 # Dependencies to place before the objects being linked to create a
8882 predep_objects=$lt_predep_objects
8884 # Dependencies to place after the objects being linked to create a
8886 postdep_objects=$lt_postdep_objects
8888 # Dependencies to place before the objects being linked to create a
8892 # Dependencies to place after the objects being linked to create a
8894 postdeps=$lt_postdeps
8896 # The library search path used internally by the compiler when linking
8898 compiler_lib_search_path=$lt_compiler_lib_search_path
8900 # Method to check whether dependent libraries are shared objects.
8901 deplibs_check_method=$lt_deplibs_check_method
8903 # Command to use when deplibs_check_method == file_magic.
8904 file_magic_cmd=$lt_file_magic_cmd
8906 # Flag that allows shared libraries with undefined symbols to be built.
8907 allow_undefined_flag=$lt_allow_undefined_flag
8909 # Flag that forces no undefined symbols.
8910 no_undefined_flag=$lt_no_undefined_flag
8912 # Commands used to finish a libtool library installation in a directory.
8913 finish_cmds=$lt_finish_cmds
8915 # Same as above, but a single script fragment to be evaled but not shown.
8916 finish_eval=$lt_finish_eval
8918 # Take the output of nm and produce a listing of raw symbols and C names.
8919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8921 # Transform the output of nm in a proper C declaration
8922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8924 # Transform the output of nm in a C name address pair
8925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8927 # This is the shared library runtime path variable.
8928 runpath_var=$runpath_var
8930 # This is the shared library path variable.
8931 shlibpath_var=$shlibpath_var
8933 # Is shlibpath searched before the hard-coded library search path?
8934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8936 # How to hardcode a shared library path into an executable.
8937 hardcode_action=$hardcode_action
8939 # Whether we should hardcode library paths into libraries.
8940 hardcode_into_libs=$hardcode_into_libs
8942 # Flag to hardcode \$libdir into a binary during linking.
8943 # This must work even if \$libdir does not exist.
8944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8946 # If ld is used when linking, flag to hardcode \$libdir into
8947 # a binary during linking. This must work even if \$libdir does
8949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8951 # Whether we need a single -rpath flag with a separated argument.
8952 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8956 hardcode_direct=$hardcode_direct
8958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8960 hardcode_minus_L=$hardcode_minus_L
8962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8963 # the resulting binary.
8964 hardcode_shlibpath_var=$hardcode_shlibpath_var
8966 # Set to yes if building a shared library automatically hardcodes DIR into the library
8967 # and all subsequent libraries and executables linked against it.
8968 hardcode_automatic=$hardcode_automatic
8970 # Variables whose values should be saved in libtool wrapper scripts and
8971 # restored at relink time.
8972 variables_saved_for_relink="$variables_saved_for_relink"
8974 # Whether libtool must link a program against all its dependency libraries.
8975 link_all_deplibs=$link_all_deplibs
8977 # Compile-time system search path for libraries
8978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8980 # Run-time system search path for libraries
8981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8983 # Fix the shell variable \$srcfile for the compiler.
8984 fix_srcfile_path="$fix_srcfile_path"
8986 # Set to yes if exported symbols are required.
8987 always_export_symbols=$always_export_symbols
8989 # The commands to list exported symbols.
8990 export_symbols_cmds=$lt_export_symbols_cmds
8992 # The commands to extract the exported symbol list from a shared archive.
8993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8995 # Symbols that should not be listed in the preloaded symbols.
8996 exclude_expsyms=$lt_exclude_expsyms
8998 # Symbols that must always be exported.
8999 include_expsyms=$lt_include_expsyms
9001 # ### END LIBTOOL CONFIG
9008 cat <<\EOF >> "$cfgfile"
9010 # AIX sometimes has problems with the GCC collect2 program. For some
9011 # reason, if we set the COLLECT_NAMES environment variable, the problems
9012 # vanish in a puff of smoke.
9013 if test "X${COLLECT_NAMES+set}" != Xset; then
9015 export COLLECT_NAMES
9021 # We use sed instead of cat because bash on DJGPP gets confused if
9022 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9023 # text mode, it properly converts lines to CR/LF. This bash problem
9024 # is reportedly fixed, but why not run on old versions too?
9025 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9027 mv -f "$cfgfile" "$ofile" || \
9028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9032 # If there is no Makefile yet, we rely on a make rule to execute
9033 # `config.status --recheck' to rerun these tests and create the
9034 # libtool script then.
9035 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9036 if test -f "$ltmain_in"; then
9037 test -f Makefile && make "$ltmain"
9043 ac_cpp='$CPP $CPPFLAGS'
9044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9051 # Check whether --with-tags or --without-tags was given.
9052 if test "${with_tags+set}" = set; then
9053 withval="$with_tags"
9057 if test -f "$ltmain" && test -n "$tagnames"; then
9058 if test ! -f "${ofile}"; then
9059 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9060 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9063 if test -z "$LTCC"; then
9064 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9065 if test -z "$LTCC"; then
9066 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9067 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9070 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9074 # Extract list of available tagged configurations in $ofile.
9075 # Note that this assumes the entire list is on one line.
9076 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9079 for tagname in $tagnames; do
9081 # Check whether tagname contains only valid characters
9082 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9084 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9085 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9086 { (exit 1); exit 1; }; }
9090 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9092 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9093 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9094 { (exit 1); exit 1; }; }
9097 # Update the list of available tags.
9098 if test -n "$tagname"; then
9099 echo appending configuration tag \"$tagname\" to $ofile
9103 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9104 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9105 (test "X$CXX" != "Xg++"))) ; then
9107 ac_cpp='$CXXCPP $CPPFLAGS'
9108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9115 archive_cmds_need_lc_CXX=no
9116 allow_undefined_flag_CXX=
9117 always_export_symbols_CXX=no
9118 archive_expsym_cmds_CXX=
9119 export_dynamic_flag_spec_CXX=
9120 hardcode_direct_CXX=no
9121 hardcode_libdir_flag_spec_CXX=
9122 hardcode_libdir_flag_spec_ld_CXX=
9123 hardcode_libdir_separator_CXX=
9124 hardcode_minus_L_CXX=no
9125 hardcode_automatic_CXX=no
9127 module_expsym_cmds_CXX=
9128 link_all_deplibs_CXX=unknown
9129 old_archive_cmds_CXX=$old_archive_cmds
9130 no_undefined_flag_CXX=
9131 whole_archive_flag_spec_CXX=
9132 enable_shared_with_static_runtimes_CXX=no
9134 # Dependencies to place before and after the object being linked:
9136 postdep_objects_CXX=
9139 compiler_lib_search_path_CXX=
9141 # Source file extension for C++ test sources.
9144 # Object file extension for compiled C++ test sources.
9148 # Code to be used in simple compile tests
9149 lt_simple_compile_test_code="int some_variable = 0;\n"
9151 # Code to be used in simple link tests
9152 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9156 # If no C compiler was specified, use CC.
9159 # Allow CC to be a program name with arguments.
9163 # save warnings/boilerplate of simple test code
9164 ac_outfile=conftest.$ac_objext
9165 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9167 _lt_compiler_boilerplate=`cat conftest.err`
9170 ac_outfile=conftest.$ac_objext
9171 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9173 _lt_linker_boilerplate=`cat conftest.err`
9177 # Allow CC to be a program name with arguments.
9182 lt_save_with_gnu_ld=$with_gnu_ld
9183 lt_save_path_LD=$lt_cv_path_LD
9184 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9185 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9187 unset lt_cv_prog_gnu_ld
9189 if test -n "${lt_cv_path_LDCXX+set}"; then
9190 lt_cv_path_LD=$lt_cv_path_LDCXX
9194 test -z "${LDCXX+set}" || LD=$LDCXX
9198 for cc_temp in $compiler""; do
9200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9206 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9209 # We don't want -fno-exception wen compiling C++ code, so set the
9210 # no_builtin_flag separately
9211 if test "$GXX" = yes; then
9212 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9214 lt_prog_compiler_no_builtin_flag_CXX=
9217 if test "$GXX" = yes; then
9218 # Set up default GNU C++ configuration
9221 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9222 if test "${with_gnu_ld+set}" = set; then
9223 withval="$with_gnu_ld"
9224 test "$withval" = no || with_gnu_ld=yes
9229 if test "$GCC" = yes; then
9230 # Check if gcc -print-prog-name=ld gives a path.
9231 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9232 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9235 # gcc leaves a trailing carriage return which upsets mingw
9236 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9238 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9241 # Accept absolute paths.
9243 re_direlt='/[^/][^/]*/\.\./'
9244 # Canonicalize the pathname of ld
9245 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9246 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9247 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9249 test -z "$LD" && LD="$ac_prog"
9252 # If it fails, then pretend we aren't using GCC.
9256 # If it is relative, then search for the first ld in PATH.
9260 elif test "$with_gnu_ld" = yes; then
9261 echo "$as_me:$LINENO: checking for GNU ld" >&5
9262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9264 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9267 if test "${lt_cv_path_LD+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 if test -z "$LD"; then
9271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9272 for ac_dir in $PATH; do
9274 test -z "$ac_dir" && ac_dir=.
9275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9276 lt_cv_path_LD="$ac_dir/$ac_prog"
9277 # Check to see if the program is GNU ld. I'd rather use --version,
9278 # but apparently some variants of GNU ld only accept -v.
9279 # Break only if it was the GNU/non-GNU ld that we prefer.
9280 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9281 *GNU* | *'with BFD'*)
9282 test "$with_gnu_ld" != no && break
9285 test "$with_gnu_ld" != yes && break
9292 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9297 if test -n "$LD"; then
9298 echo "$as_me:$LINENO: result: $LD" >&5
9299 echo "${ECHO_T}$LD" >&6
9301 echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6
9304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9306 { (exit 1); exit 1; }; }
9307 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9309 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9313 case `$LD -v 2>&1 </dev/null` in
9314 *GNU* | *'with BFD'*)
9315 lt_cv_prog_gnu_ld=yes
9318 lt_cv_prog_gnu_ld=no
9322 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9323 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9324 with_gnu_ld=$lt_cv_prog_gnu_ld
9328 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9329 # archiving commands below assume that GNU ld is being used.
9330 if test "$with_gnu_ld" = yes; then
9331 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332 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'
9334 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9335 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9337 # If archive_cmds runs LD, not CC, wlarc should be empty
9338 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9339 # investigate it a little bit more. (MM)
9342 # ancient GNU ld didn't support --whole-archive et. al.
9343 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9344 grep 'no-whole-archive' > /dev/null; then
9345 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9347 whole_archive_flag_spec_CXX=
9353 # A generic and very simple default shared library creation
9354 # command for GNU C++ for the case where it uses the native
9355 # linker, instead of GNU ld. If possible, this setting should
9356 # overridden to take advantage of the native linker features on
9357 # the platform it is being used on.
9358 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9361 # Commands to make compiler produce verbose output that lists
9362 # what "hidden" libraries, object files and flags are used when
9363 # linking a shared library.
9364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9372 # PORTME: fill in a description of your system's C++ link characteristics
9373 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9374 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9378 # FIXME: insert proper C++ library support
9382 if test "$host_cpu" = ia64; then
9383 # On IA64, the linker does run time linking by default, so we don't
9384 # have to do anything special.
9385 aix_use_runtimelinking=no
9386 exp_sym_flag='-Bexport'
9389 aix_use_runtimelinking=no
9391 # Test if we are trying to use run time linking or normal
9392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9393 # need to do runtime linking.
9394 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9395 for ld_flag in $LDFLAGS; do
9398 aix_use_runtimelinking=yes
9405 exp_sym_flag='-bexport'
9406 no_entry_flag='-bnoentry'
9409 # When large executables or shared objects are built, AIX ld can
9410 # have problems creating the table of contents. If linking a library
9411 # or program results in "error TOC overflow" add -mminimal-toc to
9412 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9413 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9416 hardcode_direct_CXX=yes
9417 hardcode_libdir_separator_CXX=':'
9418 link_all_deplibs_CXX=yes
9420 if test "$GXX" = yes; then
9421 case $host_os in aix4.[012]|aix4.[012].*)
9422 # We only want to do this on AIX 4.2 and lower, the check
9423 # below for broken collect2 doesn't work under 4.3+
9424 collect2name=`${CC} -print-prog-name=collect2`
9425 if test -f "$collect2name" && \
9426 strings "$collect2name" | grep resolve_lib_name >/dev/null
9428 # We have reworked collect2
9429 hardcode_direct_CXX=yes
9431 # We have old collect2
9432 hardcode_direct_CXX=unsupported
9433 # It fails to find uninstalled libraries when the uninstalled
9434 # path is not listed in the libpath. Setting hardcode_minus_L
9435 # to unsupported forces relinking
9436 hardcode_minus_L_CXX=yes
9437 hardcode_libdir_flag_spec_CXX='-L$libdir'
9438 hardcode_libdir_separator_CXX=
9441 shared_flag='-shared'
9442 if test "$aix_use_runtimelinking" = yes; then
9443 shared_flag="$shared_flag "'${wl}-G'
9447 if test "$host_cpu" = ia64; then
9448 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9449 # chokes on -Wl,-G. The following line is correct:
9452 if test "$aix_use_runtimelinking" = yes; then
9453 shared_flag='${wl}-G'
9455 shared_flag='${wl}-bM:SRE'
9460 # It seems that -bexpall does not export symbols beginning with
9461 # underscore (_), so it is better to generate a list of symbols to export.
9462 always_export_symbols_CXX=yes
9463 if test "$aix_use_runtimelinking" = yes; then
9464 # Warning - without using the other runtime loading flags (-brtl),
9465 # -berok will link without error, but may produce a broken library.
9466 allow_undefined_flag_CXX='-berok'
9467 # Determine the default libpath from the value encoded in an empty executable.
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9483 rm -f conftest.$ac_objext conftest$ac_exeext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485 (eval $ac_link) 2>conftest.er1
9487 grep -v '^ *+' conftest.er1 >conftest.err
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -z "$ac_cxx_werror_flag"
9493 || test ! -s conftest.err'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try='test -s conftest$ac_exeext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9506 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9508 # Check for a 64-bit object if we didn't find anything.
9509 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; }
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9516 rm -f conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9520 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9522 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"
9524 if test "$host_cpu" = ia64; then
9525 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9526 allow_undefined_flag_CXX="-z nodefs"
9527 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"
9529 # Determine the default libpath from the value encoded in an empty executable.
9530 cat >conftest.$ac_ext <<_ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547 (eval $ac_link) 2>conftest.er1
9549 grep -v '^ *+' conftest.er1 >conftest.err
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -z "$ac_cxx_werror_flag"
9555 || test ! -s conftest.err'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; } &&
9561 { ac_try='test -s conftest$ac_exeext'
9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9570 # Check for a 64-bit object if we didn't find anything.
9571 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; }
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9578 rm -f conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9582 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9583 # Warning - without using the other run time loading flags,
9584 # -berok will link without error, but may produce a broken library.
9585 no_undefined_flag_CXX=' ${wl}-bernotok'
9586 allow_undefined_flag_CXX=' ${wl}-berok'
9587 # -bexpall does not export symbols beginning with underscore (_)
9588 always_export_symbols_CXX=yes
9589 # Exported symbols can be pulled into shared objects from archives
9590 whole_archive_flag_spec_CXX=' '
9591 archive_cmds_need_lc_CXX=yes
9592 # This is similar to how AIX traditionally builds its shared libraries.
9593 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'
9598 case $cc_basename in
9600 # FIXME: insert proper C++ library support
9607 cygwin* | mingw* | pw32*)
9608 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9609 # as there is no search path for DLLs.
9610 hardcode_libdir_flag_spec_CXX='-L$libdir'
9611 allow_undefined_flag_CXX=unsupported
9612 always_export_symbols_CXX=no
9613 enable_shared_with_static_runtimes_CXX=yes
9615 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9616 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'
9617 # If the export-symbols file already is a .def file (1st line
9618 # is EXPORTS), use it as is; otherwise, prepend...
9619 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9620 cp $export_symbols $output_objdir/$soname.def;
9622 echo EXPORTS > $output_objdir/$soname.def;
9623 cat $export_symbols >> $output_objdir/$soname.def;
9625 $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'
9630 darwin* | rhapsody*)
9632 rhapsody* | darwin1.[012])
9633 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9636 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9637 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9639 case ${MACOSX_DEPLOYMENT_TARGET} in
9641 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9644 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9650 archive_cmds_need_lc_CXX=no
9651 hardcode_direct_CXX=no
9652 hardcode_automatic_CXX=yes
9653 hardcode_shlibpath_var_CXX=unsupported
9654 whole_archive_flag_spec_CXX=''
9655 link_all_deplibs_CXX=yes
9657 if test "$GXX" = yes ; then
9658 lt_int_apple_cc_single_mod=no
9659 output_verbose_link_cmd='echo'
9660 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9661 lt_int_apple_cc_single_mod=yes
9663 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9664 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9666 archive_cmds_CXX='$CC -r -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'
9668 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9670 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9671 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}'
9673 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
9675 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}'
9677 case $cc_basename in
9679 output_verbose_link_cmd='echo'
9680 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9681 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9682 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9683 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9684 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}'
9694 case $cc_basename in
9696 # FIXME: insert proper C++ library support
9700 # Green Hills C++ Compiler
9701 # FIXME: insert proper C++ library support
9705 # FIXME: insert proper C++ library support
9711 # C++ shared libraries reported to be fairly broken before switch to ELF
9715 archive_cmds_need_lc_CXX=no
9717 freebsd* | kfreebsd*-gnu | dragonfly*)
9718 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9725 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9726 hardcode_libdir_separator_CXX=:
9727 export_dynamic_flag_spec_CXX='${wl}-E'
9728 hardcode_direct_CXX=yes
9729 hardcode_minus_L_CXX=yes # Not in the search PATH,
9730 # but as the default
9731 # location of the library.
9733 case $cc_basename in
9735 # FIXME: insert proper C++ library support
9739 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'
9740 # Commands to make compiler produce verbose output that lists
9741 # what "hidden" libraries, object files and flags are used when
9742 # linking a shared library.
9744 # There doesn't appear to be a way to prevent this compiler from
9745 # explicitly linking system object files so we need to strip them
9746 # from the output so that they don't get included in the library
9748 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'
9751 if test "$GXX" = yes; then
9752 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'
9754 # FIXME: insert proper C++ library support
9761 if test $with_gnu_ld = no; then
9764 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9765 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9766 hardcode_libdir_separator_CXX=:
9769 hardcode_libdir_flag_spec_CXX='-L$libdir'
9772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9773 hardcode_libdir_separator_CXX=:
9774 export_dynamic_flag_spec_CXX='${wl}-E'
9780 hardcode_direct_CXX=no
9781 hardcode_shlibpath_var_CXX=no
9784 hardcode_direct_CXX=no
9785 hardcode_shlibpath_var_CXX=no
9786 hardcode_minus_L_CXX=yes # Not in the search PATH,
9787 # but as the default
9788 # location of the library.
9791 hardcode_direct_CXX=yes
9792 hardcode_minus_L_CXX=yes # Not in the search PATH,
9793 # but as the default
9794 # location of the library.
9798 case $cc_basename in
9800 # FIXME: insert proper C++ library support
9806 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9809 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9812 # Commands to make compiler produce verbose output that lists
9813 # what "hidden" libraries, object files and flags are used when
9814 # linking a shared library.
9816 # There doesn't appear to be a way to prevent this compiler from
9817 # explicitly linking system object files so we need to strip them
9818 # from the output so that they don't get included in the library
9820 output_verbose_link_cmd='templist=`($CC -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'
9823 if test "$GXX" = yes; then
9824 if test $with_gnu_ld = no; then
9827 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9830 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'
9835 # FIXME: insert proper C++ library support
9842 case $cc_basename in
9845 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 ${output_objdir}/so_locations -o $lib'
9847 # Archives containing C++ object files must be created using
9848 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9849 # necessary to make sure instantiated templates are included
9851 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9854 if test "$GXX" = yes; then
9855 if test "$with_gnu_ld" = no; then
9856 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}${output_objdir}/so_locations -o $lib'
9858 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'
9861 link_all_deplibs_CXX=yes
9864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9865 hardcode_libdir_separator_CXX=:
9868 case $cc_basename in
9870 # Kuck and Associates, Inc. (KAI) C++ Compiler
9872 # KCC will only create a shared library if the output file
9873 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9874 # to its proper name (with version) after linking.
9875 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'
9876 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'
9877 # Commands to make compiler produce verbose output that lists
9878 # what "hidden" libraries, object files and flags are used when
9879 # linking a shared library.
9881 # There doesn't appear to be a way to prevent this compiler from
9882 # explicitly linking system object files so we need to strip them
9883 # from the output so that they don't get included in the library
9885 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'
9887 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9890 # Archives containing C++ object files must be created using
9891 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9892 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9897 # version 8.0 and above of icpc choke on multiply defined symbols
9898 # if we add $predep_objects and $postdep_objects, however 7.1 and
9899 # earlier do not add the objects themselves.
9900 case `$CC -V 2>&1` in
9902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903 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'
9905 *) # Version 8.0 or newer
9908 ia64*) tmp_idyn=' -i_dynamic';;
9910 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9911 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9914 archive_cmds_need_lc_CXX=no
9915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9917 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9920 # Portland Group C++ compiler
9921 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9922 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
9924 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9925 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9926 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9930 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9931 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'
9933 runpath_var=LD_RUN_PATH
9934 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9935 hardcode_libdir_separator_CXX=:
9937 # Commands to make compiler produce verbose output that lists
9938 # what "hidden" libraries, object files and flags are used when
9939 # linking a shared library.
9941 # There doesn't appear to be a way to prevent this compiler from
9942 # explicitly linking system object files so we need to strip them
9943 # from the output so that they don't get included in the library
9945 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'
9950 # FIXME: insert proper C++ library support
9954 # FIXME: insert proper C++ library support
9958 case $cc_basename in
9960 # FIXME: insert proper C++ library support
9964 # FIXME: insert proper C++ library support
9970 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9971 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9973 hardcode_libdir_flag_spec_CXX='-R$libdir'
9974 hardcode_direct_CXX=yes
9975 hardcode_shlibpath_var_CXX=no
9977 # Workaround some broken pre-1.5 toolchains
9978 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9981 # C++ shared libraries are fairly broken
9985 hardcode_direct_CXX=yes
9986 hardcode_shlibpath_var_CXX=no
9987 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9988 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9990 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
9991 export_dynamic_flag_spec_CXX='${wl}-E'
9992 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9994 output_verbose_link_cmd='echo'
9997 case $cc_basename in
9999 # Kuck and Associates, Inc. (KAI) C++ Compiler
10001 # KCC will only create a shared library if the output file
10002 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10003 # to its proper name (with version) after linking.
10004 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'
10006 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10007 hardcode_libdir_separator_CXX=:
10009 # Archives containing C++ object files must be created using
10010 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10011 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10015 # Rational C++ 2.4.1
10016 # FIXME: insert proper C++ library support
10020 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10021 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 ${output_objdir}/so_locations -o $lib'
10023 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10024 hardcode_libdir_separator_CXX=:
10026 # Commands to make compiler produce verbose output that lists
10027 # what "hidden" libraries, object files and flags are used when
10028 # linking a shared library.
10030 # There doesn't appear to be a way to prevent this compiler from
10031 # explicitly linking system object files so we need to strip them
10032 # from the output so that they don't get included in the library
10034 output_verbose_link_cmd='templist=`$CC -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'
10037 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10038 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10039 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}${output_objdir}/so_locations -o $lib'
10041 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10042 hardcode_libdir_separator_CXX=:
10044 # Commands to make compiler produce verbose output that lists
10045 # what "hidden" libraries, object files and flags are used when
10046 # linking a shared library.
10047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10050 # FIXME: insert proper C++ library support
10057 case $cc_basename in
10059 # Kuck and Associates, Inc. (KAI) C++ Compiler
10061 # KCC will only create a shared library if the output file
10062 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10063 # to its proper name (with version) after linking.
10064 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'
10066 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10067 hardcode_libdir_separator_CXX=:
10069 # Archives containing C++ object files must be created using
10070 # the KAI C++ compiler.
10071 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10074 # Rational C++ 2.4.1
10075 # FIXME: insert proper C++ library support
10079 allow_undefined_flag_CXX=' -expect_unresolved \*'
10080 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 ${output_objdir}/so_locations -o $lib'
10081 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10082 echo "-hidden">> $lib.exp~
10083 $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 ${output_objdir}/so_locations -o $lib~
10086 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10087 hardcode_libdir_separator_CXX=:
10089 # Commands to make compiler produce verbose output that lists
10090 # what "hidden" libraries, object files and flags are used when
10091 # linking a shared library.
10093 # There doesn't appear to be a way to prevent this compiler from
10094 # explicitly linking system object files so we need to strip them
10095 # from the output so that they don't get included in the library
10097 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'
10100 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10101 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10102 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}${output_objdir}/so_locations -o $lib'
10104 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10105 hardcode_libdir_separator_CXX=:
10107 # Commands to make compiler produce verbose output that lists
10108 # what "hidden" libraries, object files and flags are used when
10109 # linking a shared library.
10110 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10113 # FIXME: insert proper C++ library support
10120 # FIXME: insert proper C++ library support
10124 archive_cmds_need_lc_CXX=no
10125 case $cc_basename in
10127 # FIXME: insert proper C++ library support
10131 # FIXME: insert proper C++ library support
10137 case $cc_basename in
10140 # FIXME: insert proper C++ library support
10145 # FIXME: insert proper C++ library support
10149 # FIXME: insert proper C++ library support
10155 case $cc_basename in
10157 # Sun C++ 4.2, 5.x and Centerline C++
10158 archive_cmds_need_lc_CXX=yes
10159 no_undefined_flag_CXX=' -zdefs'
10160 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10161 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10162 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10164 hardcode_libdir_flag_spec_CXX='-R$libdir'
10165 hardcode_shlibpath_var_CXX=no
10167 solaris2.[0-5] | solaris2.[0-5].*) ;;
10169 # The C++ compiler is used as linker so we must use $wl
10170 # flag to pass the commands to the underlying system
10171 # linker. We must also pass each convience library through
10172 # to the system linker between allextract/defaultextract.
10173 # The C++ compiler will combine linker options so we
10174 # cannot just pass the convience library names through
10176 # Supported since Solaris 2.6 (maybe 2.5.1?)
10177 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10180 link_all_deplibs_CXX=yes
10182 output_verbose_link_cmd='echo'
10184 # Archives containing C++ object files must be created using
10185 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10186 # necessary to make sure instantiated templates are included
10188 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10191 # Green Hills C++ Compiler
10192 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10194 # The C++ compiler must be used to create the archive.
10195 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10198 # GNU C++ compiler with Solaris linker
10199 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10200 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10201 if $CC --version | grep -v '^2\.7' > /dev/null; then
10202 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10203 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10204 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10206 # Commands to make compiler produce verbose output that lists
10207 # what "hidden" libraries, object files and flags are used when
10208 # linking a shared library.
10209 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10211 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10213 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10214 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10215 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10217 # Commands to make compiler produce verbose output that lists
10218 # what "hidden" libraries, object files and flags are used when
10219 # linking a shared library.
10220 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10223 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10228 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10229 archive_cmds_need_lc_CXX=no
10232 case $cc_basename in
10234 # NonStop-UX NCC 3.20
10235 # FIXME: insert proper C++ library support
10239 # FIXME: insert proper C++ library support
10245 # FIXME: insert proper C++ library support
10249 # FIXME: insert proper C++ library support
10253 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10254 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10255 test "$ld_shlibs_CXX" = no && can_build_shared=no
10261 cat > conftest.$ac_ext <<EOF
10265 Foo (void) { a = 0; }
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; then
10276 # Parse the compiler output and extract the necessary
10277 # objects, libraries and library flags.
10279 # Sentinel used to keep track of whether or not we are before
10280 # the conftest object file.
10281 pre_test_object_deps_done=no
10283 # The `*' in the case matches for architectures that use `case' in
10284 # $output_verbose_cmd can trigger glob expansion during the loop
10285 # eval without this substitution.
10286 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10288 for p in `eval $output_verbose_link_cmd`; do
10292 # Some compilers place space between "-{L,R}" and the path.
10293 # Remove the space.
10294 if test $p = "-L" \
10295 || test $p = "-R"; then
10302 if test "$pre_test_object_deps_done" = no; then
10305 # Internal compiler library paths should come after those
10306 # provided the user. The postdeps already come after the
10307 # user supplied libs so there is no need to process them.
10308 if test -z "$compiler_lib_search_path_CXX"; then
10309 compiler_lib_search_path_CXX="${prev}${p}"
10311 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10314 # The "-l" case would never come before the object being
10315 # linked, so don't bother handling this case.
10318 if test -z "$postdeps_CXX"; then
10319 postdeps_CXX="${prev}${p}"
10321 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10327 # This assumes that the test object file only shows up
10328 # once in the compiler output.
10329 if test "$p" = "conftest.$objext"; then
10330 pre_test_object_deps_done=yes
10334 if test "$pre_test_object_deps_done" = no; then
10335 if test -z "$predep_objects_CXX"; then
10336 predep_objects_CXX="$p"
10338 predep_objects_CXX="$predep_objects_CXX $p"
10341 if test -z "$postdep_objects_CXX"; then
10342 postdep_objects_CXX="$p"
10344 postdep_objects_CXX="$postdep_objects_CXX $p"
10349 *) ;; # Ignore the rest.
10357 echo "libtool.m4: error: problem compiling CXX test program"
10360 $rm -f confest.$objext
10362 # PORTME: override above test on systems where it is broken
10365 case $cc_basename in
10367 # Adding this requires a known-good setup of shared libraries for
10368 # Sun compiler versions before 5.6, else PIC objects from an old
10369 # archive will be linked into the output, leading to subtle bugs.
10370 postdeps_CXX='-lCstd -lCrun'
10376 case " $postdeps_CXX " in
10377 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10380 lt_prog_compiler_wl_CXX=
10381 lt_prog_compiler_pic_CXX=
10382 lt_prog_compiler_static_CXX=
10384 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10387 # C++ specific cases for pic, static, wl, etc.
10388 if test "$GXX" = yes; then
10389 lt_prog_compiler_wl_CXX='-Wl,'
10390 lt_prog_compiler_static_CXX='-static'
10394 # All AIX code is PIC.
10395 if test "$host_cpu" = ia64; then
10396 # AIX 5 now supports IA64 processor
10397 lt_prog_compiler_static_CXX='-Bstatic'
10401 # FIXME: we need at least 68020 code to build shared libraries, but
10402 # adding the `-m68020' flag to GCC prevents building anything better,
10404 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10406 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10407 # PIC is the default for these OSes.
10409 mingw* | os2* | pw32*)
10410 # This hack is so that the source file can tell whether it is being
10411 # built for inclusion in a dll (and should export symbols for example).
10412 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10414 darwin* | rhapsody*)
10415 # PIC is the default on this platform
10416 # Common symbols not allowed in MH_DYLIB files
10417 lt_prog_compiler_pic_CXX='-fno-common'
10420 # DJGPP does not support shared libraries at all
10421 lt_prog_compiler_pic_CXX=
10424 if test -d /usr/nec; then
10425 lt_prog_compiler_pic_CXX=-Kconform_pic
10429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10430 # not for PA HP-UX.
10435 lt_prog_compiler_pic_CXX='-fPIC'
10440 lt_prog_compiler_pic_CXX='-fPIC'
10446 # All AIX code is PIC.
10447 if test "$host_cpu" = ia64; then
10448 # AIX 5 now supports IA64 processor
10449 lt_prog_compiler_static_CXX='-Bstatic'
10451 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10455 case $cc_basename in
10457 # Green Hills C++ Compiler
10458 # _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"
10463 # PIC is the default on this platform
10464 # Common symbols not allowed in MH_DYLIB files
10465 case $cc_basename in
10467 lt_prog_compiler_pic_CXX='-qnocommon'
10468 lt_prog_compiler_wl_CXX='-Wl,'
10473 case $cc_basename in
10475 lt_prog_compiler_pic_CXX='-KPIC'
10478 # Green Hills C++ Compiler
10479 lt_prog_compiler_pic_CXX='-pic'
10485 freebsd* | kfreebsd*-gnu | dragonfly*)
10486 # FreeBSD uses GNU C++
10488 hpux9* | hpux10* | hpux11*)
10489 case $cc_basename in
10491 lt_prog_compiler_wl_CXX='-Wl,'
10492 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10493 if test "$host_cpu" != ia64; then
10494 lt_prog_compiler_pic_CXX='+Z'
10498 lt_prog_compiler_wl_CXX='-Wl,'
10499 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10505 lt_prog_compiler_pic_CXX='+Z'
10513 irix5* | irix6* | nonstopux*)
10514 case $cc_basename in
10516 lt_prog_compiler_wl_CXX='-Wl,'
10517 lt_prog_compiler_static_CXX='-non_shared'
10518 # CC pic flag -KPIC is the default.
10525 case $cc_basename in
10528 lt_prog_compiler_wl_CXX='--backend -Wl,'
10529 lt_prog_compiler_pic_CXX='-fPIC'
10533 lt_prog_compiler_wl_CXX='-Wl,'
10534 lt_prog_compiler_pic_CXX='-KPIC'
10535 lt_prog_compiler_static_CXX='-static'
10538 # Portland Group C++ compiler.
10539 lt_prog_compiler_wl_CXX='-Wl,'
10540 lt_prog_compiler_pic_CXX='-fpic'
10541 lt_prog_compiler_static_CXX='-Bstatic'
10545 # Make sure the PIC flag is empty. It appears that all Alpha
10546 # Linux and Compaq Tru64 Unix objects are PIC.
10547 lt_prog_compiler_pic_CXX=
10548 lt_prog_compiler_static_CXX='-non_shared'
10559 case $cc_basename in
10561 lt_prog_compiler_pic_CXX='-W c,exportall'
10569 osf3* | osf4* | osf5*)
10570 case $cc_basename in
10572 lt_prog_compiler_wl_CXX='--backend -Wl,'
10575 # Rational C++ 2.4.1
10576 lt_prog_compiler_pic_CXX='-pic'
10579 # Digital/Compaq C++
10580 lt_prog_compiler_wl_CXX='-Wl,'
10581 # Make sure the PIC flag is empty. It appears that all Alpha
10582 # Linux and Compaq Tru64 Unix objects are PIC.
10583 lt_prog_compiler_pic_CXX=
10584 lt_prog_compiler_static_CXX='-non_shared'
10593 case $cc_basename in
10595 lt_prog_compiler_pic_CXX='-fPIC'
10602 case $cc_basename in
10604 # Sun C++ 4.2, 5.x and Centerline C++
10605 lt_prog_compiler_pic_CXX='-KPIC'
10606 lt_prog_compiler_static_CXX='-Bstatic'
10607 lt_prog_compiler_wl_CXX='-Qoption ld '
10610 # Green Hills C++ Compiler
10611 lt_prog_compiler_pic_CXX='-PIC'
10618 case $cc_basename in
10621 lt_prog_compiler_pic_CXX='-pic'
10622 lt_prog_compiler_static_CXX='-Bstatic'
10626 lt_prog_compiler_pic_CXX='-pic'
10633 case $cc_basename in
10635 # NonStop-UX NCC 3.20
10636 lt_prog_compiler_pic_CXX='-KPIC'
10647 lt_prog_compiler_can_build_shared_CXX=no
10652 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10653 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10656 # Check to make sure the PIC flag actually works.
10658 if test -n "$lt_prog_compiler_pic_CXX"; then
10660 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10661 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10662 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 lt_prog_compiler_pic_works_CXX=no
10666 ac_outfile=conftest.$ac_objext
10667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10668 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10669 # Insert the option either (1) after the last *FLAGS variable, or
10670 # (2) before a word containing "conftest.", or (3) at the end.
10671 # Note that $ac_compile itself does not contain backslashes and begins
10672 # with a dollar sign (not a hyphen), so the echo should work correctly.
10673 # The option is referenced via a variable to avoid confusing sed.
10674 lt_compile=`echo "$ac_compile" | $SED \
10675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10677 -e 's:$: $lt_compiler_flag:'`
10678 (eval echo "\"\$as_me:10678: $lt_compile\"" >&5)
10679 (eval "$lt_compile" 2>conftest.err)
10681 cat conftest.err >&5
10682 echo "$as_me:10682: \$? = $ac_status" >&5
10683 if (exit $ac_status) && test -s "$ac_outfile"; then
10684 # The compiler can only warn and ignore the option if not recognized
10685 # So say no if there are warnings other than the usual output.
10686 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
10687 $SED '/^$/d' conftest.err >conftest.er2
10688 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
10689 lt_prog_compiler_pic_works_CXX=yes
10695 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10696 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10698 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10699 case $lt_prog_compiler_pic_CXX in
10701 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10704 lt_prog_compiler_pic_CXX=
10705 lt_prog_compiler_can_build_shared_CXX=no
10710 # For platforms which do not support PIC, -DPIC is meaningless:
10712 lt_prog_compiler_pic_CXX=
10715 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10719 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10720 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10721 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 lt_cv_prog_compiler_c_o_CXX=no
10725 $rm -r conftest 2>/dev/null
10729 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10731 lt_compiler_flag="-o out/conftest2.$ac_objext"
10732 # Insert the option either (1) after the last *FLAGS variable, or
10733 # (2) before a word containing "conftest.", or (3) at the end.
10734 # Note that $ac_compile itself does not contain backslashes and begins
10735 # with a dollar sign (not a hyphen), so the echo should work correctly.
10736 lt_compile=`echo "$ac_compile" | $SED \
10737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10739 -e 's:$: $lt_compiler_flag:'`
10740 (eval echo "\"\$as_me:10740: $lt_compile\"" >&5)
10741 (eval "$lt_compile" 2>out/conftest.err)
10743 cat out/conftest.err >&5
10744 echo "$as_me:10744: \$? = $ac_status" >&5
10745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10747 # The compiler can only warn and ignore the option if not recognized
10748 # So say no if there are warnings
10749 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
10750 $SED '/^$/d' out/conftest.err >out/conftest.er2
10751 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10752 lt_cv_prog_compiler_c_o_CXX=yes
10757 # SGI C++ compiler will create directory out/ii_files/ for
10758 # template instantiation
10759 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10760 $rm out/* && rmdir out
10766 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10767 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10770 hard_links="nottested"
10771 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10772 # do not overwrite the value of need_locks provided by the user
10773 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10774 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10779 ln conftest.a conftest.b 2>&5 || hard_links=no
10780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10781 echo "$as_me:$LINENO: result: $hard_links" >&5
10782 echo "${ECHO_T}$hard_links" >&6
10783 if test "$hard_links" = no; then
10784 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10785 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10792 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10793 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10795 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10798 # If we're using GNU nm, then we don't want the "-C" option.
10799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10800 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10801 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'
10803 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'
10807 export_symbols_cmds_CXX="$ltdll_cmds"
10810 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10813 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10817 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10818 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10819 test "$ld_shlibs_CXX" = no && can_build_shared=no
10821 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10822 if test "$GCC" = yes; then
10823 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10827 # Do we need to explicitly link libc?
10829 case "x$archive_cmds_need_lc_CXX" in
10831 # Assume -lc should be added
10832 archive_cmds_need_lc_CXX=yes
10834 if test "$enable_shared" = yes && test "$GCC" = yes; then
10835 case $archive_cmds_CXX in
10837 # FIXME: we may have to deal with multi-command sequences.
10840 # Test whether the compiler implicitly links with -lc since on some
10841 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10842 # to ld, don't add -lc before -lgcc.
10843 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10844 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10846 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849 (eval $ac_compile) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } 2>conftest.err; then
10855 libobjs=conftest.$ac_objext
10857 wl=$lt_prog_compiler_wl_CXX
10863 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10864 allow_undefined_flag_CXX=
10865 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10866 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }
10871 archive_cmds_need_lc_CXX=no
10873 archive_cmds_need_lc_CXX=yes
10875 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10877 cat conftest.err 1>&5
10880 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10881 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10888 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10889 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10890 library_names_spec=
10891 libname_spec='lib$name'
10895 postuninstall_cmds=
10899 shlibpath_overrides_runpath=unknown
10901 dynamic_linker="$host_os ld.so"
10902 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10903 if test "$GCC" = yes; then
10904 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10905 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10906 # if the path contains ";" then we assume it to be the separator
10907 # otherwise default to the standard path separator (i.e. ":") - it is
10908 # assumed that no part of a normal pathname contains ";" but that should
10909 # okay in the real world where ";" in dirpaths is itself problematic.
10910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10912 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10915 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10917 need_lib_prefix=unknown
10918 hardcode_into_libs=no
10920 # when you set need_version to no, make sure it does not cause -set_version
10921 # flags to be left without arguments
10922 need_version=unknown
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10928 shlibpath_var=LIBPATH
10930 # AIX 3 has no versioning support, so we append a major version to the name.
10931 soname_spec='${libname}${release}${shared_ext}$major'
10938 hardcode_into_libs=yes
10939 if test "$host_cpu" = ia64; then
10940 # AIX 5 supports IA64
10941 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10942 shlibpath_var=LD_LIBRARY_PATH
10944 # With GCC up to 2.95.x, collect2 would create an import file
10945 # for dependence libraries. The import file would start with
10946 # the line `#! .'. This would cause the generated library to
10947 # depend on `.', always an invalid library. This was fixed in
10948 # development snapshots of GCC prior to 3.0.
10950 aix4 | aix4.[01] | aix4.[01].*)
10951 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10953 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10956 can_build_shared=no
10960 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10961 # soname into executable. Probably we can add versioning support to
10962 # collect2, so additional links can be useful in future.
10963 if test "$aix_use_runtimelinking" = yes; then
10964 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10965 # instead of lib<name>.a to let people know that these are not
10966 # typical AIX shared libraries.
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 # We preserve .a as extension for shared libraries through AIX4.2
10970 # and later when we are not doing run time linking.
10971 library_names_spec='${libname}${release}.a $libname.a'
10972 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LIBPATH
10979 library_names_spec='$libname.ixlibrary $libname.a'
10980 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10981 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'
10985 library_names_spec='${libname}${shared_ext}'
10986 dynamic_linker="$host_os ld.so"
10987 shlibpath_var=LIBRARY_PATH
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10998 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10999 # the default ld.so.conf also contains /usr/contrib/lib and
11000 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11001 # libtool to hard-code these into programs
11004 cygwin* | mingw* | pw32*)
11005 version_type=windows
11010 case $GCC,$host_os in
11011 yes,cygwin* | yes,mingw* | yes,pw32*)
11012 library_names_spec='$libname.dll.a'
11013 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11014 postinstall_cmds='base_file=`basename \${file}`~
11015 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11016 dldir=$destdir/`dirname \$dlpath`~
11017 test -d \$dldir || mkdir -p \$dldir~
11018 $install_prog $dir/$dlname \$dldir/$dlname~
11019 chmod a+x \$dldir/$dlname'
11020 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11021 dlpath=$dir/\$dldll~
11023 shlibpath_overrides_runpath=yes
11027 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11028 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11029 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11032 # MinGW DLLs use traditional 'lib' prefix
11033 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11034 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11035 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11036 # It is most probably a Windows format PATH printed by
11037 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11038 # path with ; separators, and with drive letters. We can handle the
11039 # drive letters (cygwin fileutils understands them), so leave them,
11040 # especially as we might pass files found there to a mingw objdump,
11041 # which wouldn't understand a cygwinified path. Ahh.
11042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11048 # pw32 DLLs use 'pw' prefix rather than 'lib'
11049 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11055 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11058 dynamic_linker='Win32 ld.exe'
11059 # FIXME: first we should search . and the directory the executable is in
11063 darwin* | rhapsody*)
11064 dynamic_linker="$host_os dyld"
11065 version_type=darwin
11068 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11069 soname_spec='${libname}${release}${major}$shared_ext'
11070 shlibpath_overrides_runpath=yes
11071 shlibpath_var=DYLD_LIBRARY_PATH
11072 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11073 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11074 if test "$GCC" = yes; then
11075 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"`
11077 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11079 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 shlibpath_var=LD_LIBRARY_PATH
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11100 soname_spec='${libname}${release}${shared_ext}$major'
11101 shlibpath_var=LD_LIBRARY_PATH
11102 shlibpath_overrides_runpath=no
11103 hardcode_into_libs=yes
11104 dynamic_linker='GNU ld.so'
11107 freebsd* | dragonfly*)
11108 # DragonFly does not have aout. When/if they implement a new
11109 # versioning mechanism, adjust this.
11110 if test -x /usr/bin/objformat; then
11111 objformat=`/usr/bin/objformat`
11114 freebsd[123]*) objformat=aout ;;
11115 *) objformat=elf ;;
11118 version_type=freebsd-$objformat
11119 case $version_type in
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11130 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_overrides_runpath=yes
11135 freebsd3.[01]* | freebsdelf3.[01]*)
11136 shlibpath_overrides_runpath=yes
11137 hardcode_into_libs=yes
11140 shlibpath_overrides_runpath=no
11141 hardcode_into_libs=yes
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11151 soname_spec='${libname}${release}${shared_ext}$major'
11152 shlibpath_var=LD_LIBRARY_PATH
11153 hardcode_into_libs=yes
11156 hpux9* | hpux10* | hpux11*)
11157 # Give a soname corresponding to the major version so that dld.sl refuses to
11158 # link against other versions.
11165 hardcode_into_libs=yes
11166 dynamic_linker="$host_os dld.so"
11167 shlibpath_var=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 if test "X$HPUX_IA64_MODE" = X32; then
11172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11180 hardcode_into_libs=yes
11181 dynamic_linker="$host_os dld.sl"
11182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11191 dynamic_linker="$host_os dld.sl"
11192 shlibpath_var=SHLIB_PATH
11193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195 soname_spec='${libname}${release}${shared_ext}$major'
11198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11199 postinstall_cmds='chmod 555 $lib'
11202 irix5* | irix6* | nonstopux*)
11204 nonstopux*) version_type=nonstopux ;;
11206 if test "$lt_cv_prog_gnu_ld" = yes; then
11214 soname_spec='${libname}${release}${shared_ext}$major'
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11217 irix5* | nonstopux*)
11218 libsuff= shlibsuff=
11221 case $LD in # libtool.m4 will add one of these switches to LD
11222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11223 libsuff= shlibsuff= libmagic=32-bit;;
11224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11225 libsuff=32 shlibsuff=N32 libmagic=N32;;
11226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11228 *) libsuff= shlibsuff= libmagic=never-match;;
11232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11233 shlibpath_overrides_runpath=no
11234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11236 hardcode_into_libs=yes
11239 # No shared lib support for Linux oldld, aout, or coff.
11240 linux*oldld* | linux*aout* | linux*coff*)
11244 # This must be Linux ELF.
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250 soname_spec='${libname}${release}${shared_ext}$major'
11251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 shlibpath_overrides_runpath=no
11254 # This implies no fast_install, which is unacceptable.
11255 # Some rework will be needed to allow for fast_install
11256 # before this can be enabled.
11257 hardcode_into_libs=yes
11259 # Append ld.so.conf contents to the search path
11260 if test -f /etc/ld.so.conf; then
11261 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11265 # We used to test for /lib/ld.so.1 and disable shared libraries on
11266 # powerpc, because MkLinux only supported shared libraries with the
11267 # GNU dynamic linker. Since this was broken with cross compilers,
11268 # most powerpc-linux boxes support dynamic linking these days and
11269 # people can always --disable-shared, the test was removed, and we
11270 # assume the GNU/Linux dynamic linker is in use.
11271 dynamic_linker='GNU/Linux ld.so'
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 shlibpath_overrides_runpath=no
11282 hardcode_into_libs=yes
11283 dynamic_linker='GNU ld.so'
11290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11293 dynamic_linker='NetBSD (a.out) ld.so'
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 dynamic_linker='NetBSD ld.elf_so'
11299 shlibpath_var=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath=yes
11301 hardcode_into_libs=yes
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 shlibpath_overrides_runpath=yes
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath=yes
11324 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11326 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11327 *) need_version=no ;;
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11331 shlibpath_var=LD_LIBRARY_PATH
11332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11334 openbsd2.[89] | openbsd2.[89].*)
11335 shlibpath_overrides_runpath=no
11338 shlibpath_overrides_runpath=yes
11342 shlibpath_overrides_runpath=yes
11347 libname_spec='$name'
11350 library_names_spec='$libname${shared_ext} $libname.a'
11351 dynamic_linker='OS/2 ld.exe'
11352 shlibpath_var=LIBPATH
11355 osf3* | osf4* | osf5*)
11359 soname_spec='${libname}${release}${shared_ext}$major'
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11363 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 shlibpath_var=LD_LIBRARY_PATH
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 shlibpath_var=LD_LIBRARY_PATH
11380 shlibpath_overrides_runpath=yes
11381 hardcode_into_libs=yes
11382 # ldd complains unless libraries are executable
11383 postinstall_cmds='chmod +x $lib'
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11389 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 shlibpath_overrides_runpath=yes
11392 if test "$with_gnu_ld" = yes; then
11398 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11401 soname_spec='${libname}${release}${shared_ext}$major'
11402 shlibpath_var=LD_LIBRARY_PATH
11403 case $host_vendor in
11405 shlibpath_overrides_runpath=no
11407 export_dynamic_flag_spec='${wl}-Blargedynsym'
11408 runpath_var=LD_RUN_PATH
11416 shlibpath_overrides_runpath=no
11417 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11423 if test -d /usr/nec ;then
11425 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11426 soname_spec='$libname${shared_ext}.$major'
11427 shlibpath_var=LD_LIBRARY_PATH
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 shlibpath_var=LD_LIBRARY_PATH
11442 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11443 echo "${ECHO_T}$dynamic_linker" >&6
11444 test "$dynamic_linker" = no && can_build_shared=no
11446 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11447 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11448 hardcode_action_CXX=
11449 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11450 test -n "$runpath_var_CXX" || \
11451 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11453 # We can hardcode non-existant directories.
11454 if test "$hardcode_direct_CXX" != no &&
11455 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11456 # have to relink, otherwise we might link with an installed library
11457 # when we should be linking with a yet-to-be-installed one
11458 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11459 test "$hardcode_minus_L_CXX" != no; then
11460 # Linking always hardcodes the temporary library directory.
11461 hardcode_action_CXX=relink
11463 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11464 hardcode_action_CXX=immediate
11467 # We cannot hardcode anything, or else we can only hardcode existing
11469 hardcode_action_CXX=unsupported
11471 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11472 echo "${ECHO_T}$hardcode_action_CXX" >&6
11474 if test "$hardcode_action_CXX" = relink; then
11475 # Fast installation is not supported
11476 enable_fast_install=no
11477 elif test "$shlibpath_overrides_runpath" = yes ||
11478 test "$enable_shared" = no; then
11479 # Fast installation is not necessary
11480 enable_fast_install=needless
11485 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11486 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11487 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11488 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11489 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11490 echo "$as_me:$LINENO: result: yes" >&5
11491 echo "${ECHO_T}yes" >&6
11493 # FIXME - insert some real tests, host_os isn't really good enough
11496 if test -n "$STRIP" ; then
11497 striplib="$STRIP -x"
11498 echo "$as_me:$LINENO: result: yes" >&5
11499 echo "${ECHO_T}yes" >&6
11501 echo "$as_me:$LINENO: result: no" >&5
11502 echo "${ECHO_T}no" >&6
11506 echo "$as_me:$LINENO: result: no" >&5
11507 echo "${ECHO_T}no" >&6
11512 if test "x$enable_dlopen" != xyes; then
11513 enable_dlopen=unknown
11514 enable_dlopen_self=unknown
11515 enable_dlopen_self_static=unknown
11522 lt_cv_dlopen="load_add_on"
11524 lt_cv_dlopen_self=yes
11528 lt_cv_dlopen="LoadLibrary"
11533 lt_cv_dlopen="dlopen"
11538 # if libdl is installed we need to link against it
11539 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11540 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11541 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11544 ac_check_lib_save_LIBS=$LIBS
11546 cat >conftest.$ac_ext <<_ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11553 /* Override any gcc2 internal prototype to avoid an error. */
11557 /* We use char because int might match the return type of a gcc2
11558 builtin and then its argument prototype would still apply. */
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570 (eval $ac_link) 2>conftest.er1
11572 grep -v '^ *+' conftest.er1 >conftest.err
11574 cat conftest.err >&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } &&
11577 { ac_try='test -z "$ac_cxx_werror_flag"
11578 || test ! -s conftest.err'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; } &&
11584 { ac_try='test -s conftest$ac_exeext'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 ac_cv_lib_dl_dlopen=yes
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 ac_cv_lib_dl_dlopen=no
11597 rm -f conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11601 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11602 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11603 if test $ac_cv_lib_dl_dlopen = yes; then
11604 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11607 lt_cv_dlopen="dyld"
11609 lt_cv_dlopen_self=yes
11616 echo "$as_me:$LINENO: checking for shl_load" >&5
11617 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11618 if test "${ac_cv_func_shl_load+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 cat >conftest.$ac_ext <<_ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11629 #define shl_load innocuous_shl_load
11631 /* System header to define __stub macros and hopefully few prototypes,
11632 which can conflict with char shl_load (); below.
11633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634 <limits.h> exists even on freestanding compilers. */
11637 # include <limits.h>
11639 # include <assert.h>
11644 /* Override any gcc2 internal prototype to avoid an error. */
11649 /* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11652 /* The GNU C library defines this for functions which it implements
11653 to always fail with ENOSYS. Some functions are actually named
11654 something starting with __ and the normal name is an alias. */
11655 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11658 char (*f) () = shl_load;
11667 return f != shl_load;
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674 (eval $ac_link) 2>conftest.er1
11676 grep -v '^ *+' conftest.er1 >conftest.err
11678 cat conftest.err >&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -z "$ac_cxx_werror_flag"
11682 || test ! -s conftest.err'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest$ac_exeext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 ac_cv_func_shl_load=yes
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11699 ac_cv_func_shl_load=no
11701 rm -f conftest.err conftest.$ac_objext \
11702 conftest$ac_exeext conftest.$ac_ext
11704 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11705 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11706 if test $ac_cv_func_shl_load = yes; then
11707 lt_cv_dlopen="shl_load"
11709 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11710 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11711 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 ac_check_lib_save_LIBS=$LIBS
11716 cat >conftest.$ac_ext <<_ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11723 /* Override any gcc2 internal prototype to avoid an error. */
11727 /* We use char because int might match the return type of a gcc2
11728 builtin and then its argument prototype would still apply. */
11738 rm -f conftest.$ac_objext conftest$ac_exeext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11740 (eval $ac_link) 2>conftest.er1
11742 grep -v '^ *+' conftest.er1 >conftest.err
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try='test -z "$ac_cxx_werror_flag"
11748 || test ! -s conftest.err'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest$ac_exeext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 ac_cv_lib_dld_shl_load=yes
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 ac_cv_lib_dld_shl_load=no
11767 rm -f conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext conftest.$ac_ext
11769 LIBS=$ac_check_lib_save_LIBS
11771 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11772 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11773 if test $ac_cv_lib_dld_shl_load = yes; then
11774 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11776 echo "$as_me:$LINENO: checking for dlopen" >&5
11777 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11778 if test "${ac_cv_func_dlopen+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 cat >conftest.$ac_ext <<_ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11789 #define dlopen innocuous_dlopen
11791 /* System header to define __stub macros and hopefully few prototypes,
11792 which can conflict with char dlopen (); below.
11793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11794 <limits.h> exists even on freestanding compilers. */
11797 # include <limits.h>
11799 # include <assert.h>
11804 /* Override any gcc2 internal prototype to avoid an error. */
11809 /* We use char because int might match the return type of a gcc2
11810 builtin and then its argument prototype would still apply. */
11812 /* The GNU C library defines this for functions which it implements
11813 to always fail with ENOSYS. Some functions are actually named
11814 something starting with __ and the normal name is an alias. */
11815 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11818 char (*f) () = dlopen;
11827 return f != dlopen;
11832 rm -f conftest.$ac_objext conftest$ac_exeext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11834 (eval $ac_link) 2>conftest.er1
11836 grep -v '^ *+' conftest.er1 >conftest.err
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } &&
11841 { ac_try='test -z "$ac_cxx_werror_flag"
11842 || test ! -s conftest.err'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest$ac_exeext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_cv_func_dlopen=yes
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 ac_cv_func_dlopen=no
11861 rm -f conftest.err conftest.$ac_objext \
11862 conftest$ac_exeext conftest.$ac_ext
11864 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11865 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11866 if test $ac_cv_func_dlopen = yes; then
11867 lt_cv_dlopen="dlopen"
11869 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11870 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 ac_check_lib_save_LIBS=$LIBS
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11883 /* Override any gcc2 internal prototype to avoid an error. */
11887 /* We use char because int might match the return type of a gcc2
11888 builtin and then its argument prototype would still apply. */
11898 rm -f conftest.$ac_objext conftest$ac_exeext
11899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900 (eval $ac_link) 2>conftest.er1
11902 grep -v '^ *+' conftest.er1 >conftest.err
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -z "$ac_cxx_werror_flag"
11908 || test ! -s conftest.err'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest$ac_exeext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 ac_cv_lib_dl_dlopen=yes
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 ac_cv_lib_dl_dlopen=no
11927 rm -f conftest.err conftest.$ac_objext \
11928 conftest$ac_exeext conftest.$ac_ext
11929 LIBS=$ac_check_lib_save_LIBS
11931 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11932 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11933 if test $ac_cv_lib_dl_dlopen = yes; then
11934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11936 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11937 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11938 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-lsvld $LIBS"
11943 cat >conftest.$ac_ext <<_ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11950 /* Override any gcc2 internal prototype to avoid an error. */
11954 /* We use char because int might match the return type of a gcc2
11955 builtin and then its argument prototype would still apply. */
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11967 (eval $ac_link) 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_cxx_werror_flag"
11975 || test ! -s conftest.err'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest$ac_exeext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_cv_lib_svld_dlopen=yes
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 ac_cv_lib_svld_dlopen=no
11994 rm -f conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
11996 LIBS=$ac_check_lib_save_LIBS
11998 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11999 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12000 if test $ac_cv_lib_svld_dlopen = yes; then
12001 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12003 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12004 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12005 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 ac_check_lib_save_LIBS=$LIBS
12010 cat >conftest.$ac_ext <<_ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12017 /* Override any gcc2 internal prototype to avoid an error. */
12021 /* We use char because int might match the return type of a gcc2
12022 builtin and then its argument prototype would still apply. */
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034 (eval $ac_link) 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_cxx_werror_flag"
12042 || 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_lib_dld_dld_link=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_cv_lib_dld_dld_link=no
12061 rm -f conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12063 LIBS=$ac_check_lib_save_LIBS
12065 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12066 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12067 if test $ac_cv_lib_dld_dld_link = yes; then
12068 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12089 if test "x$lt_cv_dlopen" != xno; then
12095 case $lt_cv_dlopen in
12097 save_CPPFLAGS="$CPPFLAGS"
12098 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12100 save_LDFLAGS="$LDFLAGS"
12101 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12104 LIBS="$lt_cv_dlopen_libs $LIBS"
12106 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12107 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12108 if test "${lt_cv_dlopen_self+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 if test "$cross_compiling" = yes; then :
12112 lt_cv_dlopen_self=cross
12114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12115 lt_status=$lt_dlunknown
12116 cat > conftest.$ac_ext <<EOF
12117 #line 12117 "configure"
12118 #include "confdefs.h"
12127 # define LT_DLGLOBAL RTLD_GLOBAL
12130 # define LT_DLGLOBAL DL_GLOBAL
12132 # define LT_DLGLOBAL 0
12136 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12137 find out it does not work in some platform. */
12138 #ifndef LT_DLLAZY_OR_NOW
12140 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12143 # define LT_DLLAZY_OR_NOW DL_LAZY
12146 # define LT_DLLAZY_OR_NOW RTLD_NOW
12149 # define LT_DLLAZY_OR_NOW DL_NOW
12151 # define LT_DLLAZY_OR_NOW 0
12159 extern "C" void exit (int);
12162 void fnord() { int i=42;}
12165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12166 int status = $lt_dlunknown;
12170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12171 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12172 /* dlclose (self); */
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179 (eval $ac_link) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12183 (./conftest; exit; ) >&5 2>/dev/null
12185 case x$lt_status in
12186 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12187 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12188 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12191 # compilation failed
12192 lt_cv_dlopen_self=no
12199 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12200 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12202 if test "x$lt_cv_dlopen_self" = xyes; then
12203 LDFLAGS="$LDFLAGS $link_static_flag"
12204 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12205 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12206 if test "${lt_cv_dlopen_self_static+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 if test "$cross_compiling" = yes; then :
12210 lt_cv_dlopen_self_static=cross
12212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12213 lt_status=$lt_dlunknown
12214 cat > conftest.$ac_ext <<EOF
12215 #line 12215 "configure"
12216 #include "confdefs.h"
12225 # define LT_DLGLOBAL RTLD_GLOBAL
12228 # define LT_DLGLOBAL DL_GLOBAL
12230 # define LT_DLGLOBAL 0
12234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12235 find out it does not work in some platform. */
12236 #ifndef LT_DLLAZY_OR_NOW
12238 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12241 # define LT_DLLAZY_OR_NOW DL_LAZY
12244 # define LT_DLLAZY_OR_NOW RTLD_NOW
12247 # define LT_DLLAZY_OR_NOW DL_NOW
12249 # define LT_DLLAZY_OR_NOW 0
12257 extern "C" void exit (int);
12260 void fnord() { int i=42;}
12263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12264 int status = $lt_dlunknown;
12268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12269 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12270 /* dlclose (self); */
12276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12277 (eval $ac_link) 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12281 (./conftest; exit; ) >&5 2>/dev/null
12283 case x$lt_status in
12284 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12285 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12286 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12289 # compilation failed
12290 lt_cv_dlopen_self_static=no
12297 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12298 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12301 CPPFLAGS="$save_CPPFLAGS"
12302 LDFLAGS="$save_LDFLAGS"
12307 case $lt_cv_dlopen_self in
12308 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12309 *) enable_dlopen_self=unknown ;;
12312 case $lt_cv_dlopen_self_static in
12313 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12314 *) enable_dlopen_self_static=unknown ;;
12319 # The else clause should only fire when bootstrapping the
12320 # libtool distribution, otherwise you forgot to ship ltmain.sh
12321 # with your package, and you will get complaints that there are
12322 # no rules to generate ltmain.sh.
12323 if test -f "$ltmain"; then
12324 # See if we are running on zsh, and set the options which allow our commands through
12325 # without removal of \ escapes.
12326 if test -n "${ZSH_VERSION+set}" ; then
12327 setopt NO_GLOB_SUBST
12329 # Now quote all the things that may contain metacharacters while being
12330 # careful not to overquote the AC_SUBSTed values. We take copies of the
12331 # variables and quote the copies for generation of the libtool script.
12332 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12334 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12335 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12336 deplibs_check_method reload_flag reload_cmds need_locks \
12337 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12338 lt_cv_sys_global_symbol_to_c_name_address \
12339 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12340 old_postinstall_cmds old_postuninstall_cmds \
12344 lt_prog_compiler_wl_CXX \
12345 lt_prog_compiler_pic_CXX \
12346 lt_prog_compiler_static_CXX \
12347 lt_prog_compiler_no_builtin_flag_CXX \
12348 export_dynamic_flag_spec_CXX \
12349 thread_safe_flag_spec_CXX \
12350 whole_archive_flag_spec_CXX \
12351 enable_shared_with_static_runtimes_CXX \
12352 old_archive_cmds_CXX \
12353 old_archive_from_new_cmds_CXX \
12354 predep_objects_CXX \
12355 postdep_objects_CXX \
12358 compiler_lib_search_path_CXX \
12360 archive_expsym_cmds_CXX \
12361 postinstall_cmds_CXX \
12362 postuninstall_cmds_CXX \
12363 old_archive_from_expsyms_cmds_CXX \
12364 allow_undefined_flag_CXX \
12365 no_undefined_flag_CXX \
12366 export_symbols_cmds_CXX \
12367 hardcode_libdir_flag_spec_CXX \
12368 hardcode_libdir_flag_spec_ld_CXX \
12369 hardcode_libdir_separator_CXX \
12370 hardcode_automatic_CXX \
12372 module_expsym_cmds_CXX \
12373 lt_cv_prog_compiler_c_o_CXX \
12374 exclude_expsyms_CXX \
12375 include_expsyms_CXX; do
12378 old_archive_cmds_CXX | \
12379 old_archive_from_new_cmds_CXX | \
12380 archive_cmds_CXX | \
12381 archive_expsym_cmds_CXX | \
12382 module_cmds_CXX | \
12383 module_expsym_cmds_CXX | \
12384 old_archive_from_expsyms_cmds_CXX | \
12385 export_symbols_cmds_CXX | \
12386 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12387 postinstall_cmds | postuninstall_cmds | \
12388 old_postinstall_cmds | old_postuninstall_cmds | \
12389 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12390 # Double-quote double-evaled strings.
12391 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12394 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12400 *'\$0 --fallback-echo"')
12401 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12407 cat <<__EOF__ >> "$cfgfile"
12408 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12410 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12412 # Shell to use when invoking shell scripts.
12415 # Whether or not to build shared libraries.
12416 build_libtool_libs=$enable_shared
12418 # Whether or not to build static libraries.
12419 build_old_libs=$enable_static
12421 # Whether or not to add -lc for building shared libraries.
12422 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12424 # Whether or not to disallow shared libs when runtime libs are static
12425 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12427 # Whether or not to optimize for fast installation.
12428 fast_install=$enable_fast_install
12431 host_alias=$host_alias
12435 # The build system.
12436 build_alias=$build_alias
12440 # An echo program that does not interpret backslashes.
12445 AR_FLAGS=$lt_AR_FLAGS
12450 # A language-specific compiler.
12451 CC=$lt_compiler_CXX
12453 # Is the compiler the GNU C compiler?
12459 # The linker used to build libraries.
12462 # Whether we need hard or soft links.
12465 # A BSD-compatible nm program.
12468 # A symbol stripping program
12471 # Used to examine libraries when file_magic_cmd begins "file"
12472 MAGIC_CMD=$MAGIC_CMD
12474 # Used on cygwin: DLL creation program.
12477 # Used on cygwin: object dumper.
12480 # Used on cygwin: assembler.
12483 # The name of the directory that contains temporary libtool files.
12486 # How to create reloadable object files.
12487 reload_flag=$lt_reload_flag
12488 reload_cmds=$lt_reload_cmds
12490 # How to pass a linker flag through the compiler.
12491 wl=$lt_lt_prog_compiler_wl_CXX
12493 # Object file suffix (normally "o").
12494 objext="$ac_objext"
12496 # Old archive suffix (normally "a").
12499 # Shared library suffix (normally ".so").
12500 shrext_cmds='$shrext_cmds'
12502 # Executable file suffix (normally "").
12505 # Additional compiler flags for building library objects.
12506 pic_flag=$lt_lt_prog_compiler_pic_CXX
12509 # What is the maximum length of a command?
12510 max_cmd_len=$lt_cv_sys_max_cmd_len
12512 # Does compiler simultaneously support -c and -o options?
12513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12515 # Must we lock files when doing compilation?
12516 need_locks=$lt_need_locks
12518 # Do we need the lib prefix for modules?
12519 need_lib_prefix=$need_lib_prefix
12521 # Do we need a version for libraries?
12522 need_version=$need_version
12524 # Whether dlopen is supported.
12525 dlopen_support=$enable_dlopen
12527 # Whether dlopen of programs is supported.
12528 dlopen_self=$enable_dlopen_self
12530 # Whether dlopen of statically linked programs is supported.
12531 dlopen_self_static=$enable_dlopen_self_static
12533 # Compiler flag to prevent dynamic linking.
12534 link_static_flag=$lt_lt_prog_compiler_static_CXX
12536 # Compiler flag to turn off builtin functions.
12537 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12539 # Compiler flag to allow reflexive dlopens.
12540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12542 # Compiler flag to generate shared objects directly from archives.
12543 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12545 # Compiler flag to generate thread-safe objects.
12546 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12548 # Library versioning type.
12549 version_type=$version_type
12551 # Format of library name prefix.
12552 libname_spec=$lt_libname_spec
12554 # List of archive names. First name is the real one, the rest are links.
12555 # The last name is the one that the linker finds with -lNAME.
12556 library_names_spec=$lt_library_names_spec
12558 # The coded name of the library, if different from the real name.
12559 soname_spec=$lt_soname_spec
12561 # Commands used to build and install an old-style archive.
12563 old_archive_cmds=$lt_old_archive_cmds_CXX
12564 old_postinstall_cmds=$lt_old_postinstall_cmds
12565 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12567 # Create an old-style archive from a shared archive.
12568 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12570 # Create a temporary old-style archive to link instead of a shared archive.
12571 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12573 # Commands used to build and install a shared archive.
12574 archive_cmds=$lt_archive_cmds_CXX
12575 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12576 postinstall_cmds=$lt_postinstall_cmds
12577 postuninstall_cmds=$lt_postuninstall_cmds
12579 # Commands used to build a loadable module (assumed same as above if empty)
12580 module_cmds=$lt_module_cmds_CXX
12581 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12583 # Commands to strip libraries.
12584 old_striplib=$lt_old_striplib
12585 striplib=$lt_striplib
12587 # Dependencies to place before the objects being linked to create a
12589 predep_objects=$lt_predep_objects_CXX
12591 # Dependencies to place after the objects being linked to create a
12593 postdep_objects=$lt_postdep_objects_CXX
12595 # Dependencies to place before the objects being linked to create a
12597 predeps=$lt_predeps_CXX
12599 # Dependencies to place after the objects being linked to create a
12601 postdeps=$lt_postdeps_CXX
12603 # The library search path used internally by the compiler when linking
12604 # a shared library.
12605 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12607 # Method to check whether dependent libraries are shared objects.
12608 deplibs_check_method=$lt_deplibs_check_method
12610 # Command to use when deplibs_check_method == file_magic.
12611 file_magic_cmd=$lt_file_magic_cmd
12613 # Flag that allows shared libraries with undefined symbols to be built.
12614 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12616 # Flag that forces no undefined symbols.
12617 no_undefined_flag=$lt_no_undefined_flag_CXX
12619 # Commands used to finish a libtool library installation in a directory.
12620 finish_cmds=$lt_finish_cmds
12622 # Same as above, but a single script fragment to be evaled but not shown.
12623 finish_eval=$lt_finish_eval
12625 # Take the output of nm and produce a listing of raw symbols and C names.
12626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12628 # Transform the output of nm in a proper C declaration
12629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12631 # Transform the output of nm in a C name address pair
12632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12634 # This is the shared library runtime path variable.
12635 runpath_var=$runpath_var
12637 # This is the shared library path variable.
12638 shlibpath_var=$shlibpath_var
12640 # Is shlibpath searched before the hard-coded library search path?
12641 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12643 # How to hardcode a shared library path into an executable.
12644 hardcode_action=$hardcode_action_CXX
12646 # Whether we should hardcode library paths into libraries.
12647 hardcode_into_libs=$hardcode_into_libs
12649 # Flag to hardcode \$libdir into a binary during linking.
12650 # This must work even if \$libdir does not exist.
12651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12653 # If ld is used when linking, flag to hardcode \$libdir into
12654 # a binary during linking. This must work even if \$libdir does
12656 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12658 # Whether we need a single -rpath flag with a separated argument.
12659 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12661 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12662 # resulting binary.
12663 hardcode_direct=$hardcode_direct_CXX
12665 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12666 # resulting binary.
12667 hardcode_minus_L=$hardcode_minus_L_CXX
12669 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12670 # the resulting binary.
12671 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12673 # Set to yes if building a shared library automatically hardcodes DIR into the library
12674 # and all subsequent libraries and executables linked against it.
12675 hardcode_automatic=$hardcode_automatic_CXX
12677 # Variables whose values should be saved in libtool wrapper scripts and
12678 # restored at relink time.
12679 variables_saved_for_relink="$variables_saved_for_relink"
12681 # Whether libtool must link a program against all its dependency libraries.
12682 link_all_deplibs=$link_all_deplibs_CXX
12684 # Compile-time system search path for libraries
12685 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12687 # Run-time system search path for libraries
12688 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12690 # Fix the shell variable \$srcfile for the compiler.
12691 fix_srcfile_path="$fix_srcfile_path_CXX"
12693 # Set to yes if exported symbols are required.
12694 always_export_symbols=$always_export_symbols_CXX
12696 # The commands to list exported symbols.
12697 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12699 # The commands to extract the exported symbol list from a shared archive.
12700 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12702 # Symbols that should not be listed in the preloaded symbols.
12703 exclude_expsyms=$lt_exclude_expsyms_CXX
12705 # Symbols that must always be exported.
12706 include_expsyms=$lt_include_expsyms_CXX
12708 # ### END LIBTOOL TAG CONFIG: $tagname
12714 # If there is no Makefile yet, we rely on a make rule to execute
12715 # `config.status --recheck' to rerun these tests and create the
12716 # libtool script then.
12717 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12718 if test -f "$ltmain_in"; then
12719 test -f Makefile && make "$ltmain"
12725 ac_cpp='$CPP $CPPFLAGS'
12726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12734 with_gnu_ldcxx=$with_gnu_ld
12735 with_gnu_ld=$lt_save_with_gnu_ld
12736 lt_cv_path_LDCXX=$lt_cv_path_LD
12737 lt_cv_path_LD=$lt_save_path_LD
12738 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12739 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12747 if test -n "$F77" && test "X$F77" != "Xno"; then
12750 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12751 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12752 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12755 archive_cmds_need_lc_F77=no
12756 allow_undefined_flag_F77=
12757 always_export_symbols_F77=no
12758 archive_expsym_cmds_F77=
12759 export_dynamic_flag_spec_F77=
12760 hardcode_direct_F77=no
12761 hardcode_libdir_flag_spec_F77=
12762 hardcode_libdir_flag_spec_ld_F77=
12763 hardcode_libdir_separator_F77=
12764 hardcode_minus_L_F77=no
12765 hardcode_automatic_F77=no
12767 module_expsym_cmds_F77=
12768 link_all_deplibs_F77=unknown
12769 old_archive_cmds_F77=$old_archive_cmds
12770 no_undefined_flag_F77=
12771 whole_archive_flag_spec_F77=
12772 enable_shared_with_static_runtimes_F77=no
12774 # Source file extension for f77 test sources.
12777 # Object file extension for compiled f77 test sources.
12781 # Code to be used in simple compile tests
12782 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12784 # Code to be used in simple link tests
12785 lt_simple_link_test_code=" program t\n end\n"
12787 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12789 # If no C compiler was specified, use CC.
12792 # Allow CC to be a program name with arguments.
12796 # save warnings/boilerplate of simple test code
12797 ac_outfile=conftest.$ac_objext
12798 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12799 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12800 _lt_compiler_boilerplate=`cat conftest.err`
12803 ac_outfile=conftest.$ac_objext
12804 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12805 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12806 _lt_linker_boilerplate=`cat conftest.err`
12810 # Allow CC to be a program name with arguments.
12815 for cc_temp in $compiler""; do
12817 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12818 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12823 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12826 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12827 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12828 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12829 echo "${ECHO_T}$can_build_shared" >&6
12831 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12832 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12833 test "$can_build_shared" = "no" && enable_shared=no
12835 # On AIX, shared libraries and static libraries use the same namespace, and
12836 # are all built from PIC.
12839 test "$enable_shared" = yes && enable_static=no
12840 if test -n "$RANLIB"; then
12841 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12842 postinstall_cmds='$RANLIB $lib'
12846 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12847 test "$enable_shared" = yes && enable_static=no
12851 echo "$as_me:$LINENO: result: $enable_shared" >&5
12852 echo "${ECHO_T}$enable_shared" >&6
12854 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12855 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12856 # Make sure either enable_shared or enable_static is yes.
12857 test "$enable_shared" = yes || enable_static=yes
12858 echo "$as_me:$LINENO: result: $enable_static" >&5
12859 echo "${ECHO_T}$enable_static" >&6
12861 test "$ld_shlibs_F77" = no && can_build_shared=no
12866 lt_prog_compiler_wl_F77=
12867 lt_prog_compiler_pic_F77=
12868 lt_prog_compiler_static_F77=
12870 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12871 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12873 if test "$GCC" = yes; then
12874 lt_prog_compiler_wl_F77='-Wl,'
12875 lt_prog_compiler_static_F77='-static'
12879 # All AIX code is PIC.
12880 if test "$host_cpu" = ia64; then
12881 # AIX 5 now supports IA64 processor
12882 lt_prog_compiler_static_F77='-Bstatic'
12887 # FIXME: we need at least 68020 code to build shared libraries, but
12888 # adding the `-m68020' flag to GCC prevents building anything better,
12890 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12893 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12894 # PIC is the default for these OSes.
12897 mingw* | pw32* | os2*)
12898 # This hack is so that the source file can tell whether it is being
12899 # built for inclusion in a dll (and should export symbols for example).
12900 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12903 darwin* | rhapsody*)
12904 # PIC is the default on this platform
12905 # Common symbols not allowed in MH_DYLIB files
12906 lt_prog_compiler_pic_F77='-fno-common'
12910 # Just because we use GCC doesn't mean we suddenly get shared libraries
12911 # on systems that don't support them.
12912 lt_prog_compiler_can_build_shared_F77=no
12917 if test -d /usr/nec; then
12918 lt_prog_compiler_pic_F77=-Kconform_pic
12923 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12924 # not for PA HP-UX.
12930 lt_prog_compiler_pic_F77='-fPIC'
12936 lt_prog_compiler_pic_F77='-fPIC'
12940 # PORTME Check for flag to pass linker flags through the system compiler.
12943 lt_prog_compiler_wl_F77='-Wl,'
12944 if test "$host_cpu" = ia64; then
12945 # AIX 5 now supports IA64 processor
12946 lt_prog_compiler_static_F77='-Bstatic'
12948 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12952 # PIC is the default on this platform
12953 # Common symbols not allowed in MH_DYLIB files
12954 case $cc_basename in
12956 lt_prog_compiler_pic_F77='-qnocommon'
12957 lt_prog_compiler_wl_F77='-Wl,'
12962 mingw* | pw32* | os2*)
12963 # This hack is so that the source file can tell whether it is being
12964 # built for inclusion in a dll (and should export symbols for example).
12965 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12968 hpux9* | hpux10* | hpux11*)
12969 lt_prog_compiler_wl_F77='-Wl,'
12970 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12971 # not for PA HP-UX.
12977 lt_prog_compiler_pic_F77='+Z'
12980 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12981 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12984 irix5* | irix6* | nonstopux*)
12985 lt_prog_compiler_wl_F77='-Wl,'
12986 # PIC (with -KPIC) is the default.
12987 lt_prog_compiler_static_F77='-non_shared'
12991 lt_prog_compiler_pic_F77='-KPIC'
12992 lt_prog_compiler_static_F77='-Bstatic'
12996 case $cc_basename in
12998 lt_prog_compiler_wl_F77='-Wl,'
12999 lt_prog_compiler_pic_F77='-KPIC'
13000 lt_prog_compiler_static_F77='-static'
13002 pgcc* | pgf77* | pgf90* | pgf95*)
13003 # Portland Group compilers (*not* the Pentium gcc compiler,
13004 # which looks to be a dead project)
13005 lt_prog_compiler_wl_F77='-Wl,'
13006 lt_prog_compiler_pic_F77='-fpic'
13007 lt_prog_compiler_static_F77='-Bstatic'
13010 lt_prog_compiler_wl_F77='-Wl,'
13011 # All Alpha code is PIC.
13012 lt_prog_compiler_static_F77='-non_shared'
13017 osf3* | osf4* | osf5*)
13018 lt_prog_compiler_wl_F77='-Wl,'
13019 # All OSF/1 code is PIC.
13020 lt_prog_compiler_static_F77='-non_shared'
13024 lt_prog_compiler_pic_F77='-Kpic'
13025 lt_prog_compiler_static_F77='-dn'
13029 lt_prog_compiler_pic_F77='-KPIC'
13030 lt_prog_compiler_static_F77='-Bstatic'
13031 case $cc_basename in
13032 f77* | f90* | f95*)
13033 lt_prog_compiler_wl_F77='-Qoption ld ';;
13035 lt_prog_compiler_wl_F77='-Wl,';;
13040 lt_prog_compiler_wl_F77='-Qoption ld '
13041 lt_prog_compiler_pic_F77='-PIC'
13042 lt_prog_compiler_static_F77='-Bstatic'
13045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13046 lt_prog_compiler_wl_F77='-Wl,'
13047 lt_prog_compiler_pic_F77='-KPIC'
13048 lt_prog_compiler_static_F77='-Bstatic'
13052 if test -d /usr/nec ;then
13053 lt_prog_compiler_pic_F77='-Kconform_pic'
13054 lt_prog_compiler_static_F77='-Bstatic'
13059 lt_prog_compiler_wl_F77='-Wl,'
13060 lt_prog_compiler_can_build_shared_F77=no
13064 lt_prog_compiler_pic_F77='-pic'
13065 lt_prog_compiler_static_F77='-Bstatic'
13069 lt_prog_compiler_can_build_shared_F77=no
13074 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13075 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13078 # Check to make sure the PIC flag actually works.
13080 if test -n "$lt_prog_compiler_pic_F77"; then
13082 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13083 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13084 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 lt_prog_compiler_pic_works_F77=no
13088 ac_outfile=conftest.$ac_objext
13089 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13090 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13091 # Insert the option either (1) after the last *FLAGS variable, or
13092 # (2) before a word containing "conftest.", or (3) at the end.
13093 # Note that $ac_compile itself does not contain backslashes and begins
13094 # with a dollar sign (not a hyphen), so the echo should work correctly.
13095 # The option is referenced via a variable to avoid confusing sed.
13096 lt_compile=`echo "$ac_compile" | $SED \
13097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13099 -e 's:$: $lt_compiler_flag:'`
13100 (eval echo "\"\$as_me:13100: $lt_compile\"" >&5)
13101 (eval "$lt_compile" 2>conftest.err)
13103 cat conftest.err >&5
13104 echo "$as_me:13104: \$? = $ac_status" >&5
13105 if (exit $ac_status) && test -s "$ac_outfile"; then
13106 # The compiler can only warn and ignore the option if not recognized
13107 # So say no if there are warnings other than the usual output.
13108 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13109 $SED '/^$/d' conftest.err >conftest.er2
13110 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13111 lt_prog_compiler_pic_works_F77=yes
13117 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13118 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13120 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13121 case $lt_prog_compiler_pic_F77 in
13123 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13126 lt_prog_compiler_pic_F77=
13127 lt_prog_compiler_can_build_shared_F77=no
13132 # For platforms which do not support PIC, -DPIC is meaningless:
13134 lt_prog_compiler_pic_F77=
13137 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13141 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13142 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13143 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 lt_cv_prog_compiler_c_o_F77=no
13147 $rm -r conftest 2>/dev/null
13151 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13153 lt_compiler_flag="-o out/conftest2.$ac_objext"
13154 # Insert the option either (1) after the last *FLAGS variable, or
13155 # (2) before a word containing "conftest.", or (3) at the end.
13156 # Note that $ac_compile itself does not contain backslashes and begins
13157 # with a dollar sign (not a hyphen), so the echo should work correctly.
13158 lt_compile=`echo "$ac_compile" | $SED \
13159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13161 -e 's:$: $lt_compiler_flag:'`
13162 (eval echo "\"\$as_me:13162: $lt_compile\"" >&5)
13163 (eval "$lt_compile" 2>out/conftest.err)
13165 cat out/conftest.err >&5
13166 echo "$as_me:13166: \$? = $ac_status" >&5
13167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13169 # The compiler can only warn and ignore the option if not recognized
13170 # So say no if there are warnings
13171 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13172 $SED '/^$/d' out/conftest.err >out/conftest.er2
13173 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13174 lt_cv_prog_compiler_c_o_F77=yes
13179 # SGI C++ compiler will create directory out/ii_files/ for
13180 # template instantiation
13181 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13182 $rm out/* && rmdir out
13188 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13189 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13192 hard_links="nottested"
13193 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13194 # do not overwrite the value of need_locks provided by the user
13195 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13196 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13201 ln conftest.a conftest.b 2>&5 || hard_links=no
13202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13203 echo "$as_me:$LINENO: result: $hard_links" >&5
13204 echo "${ECHO_T}$hard_links" >&6
13205 if test "$hard_links" = no; then
13206 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13207 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13214 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13215 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13218 allow_undefined_flag_F77=
13219 enable_shared_with_static_runtimes_F77=no
13221 archive_expsym_cmds_F77=
13222 old_archive_From_new_cmds_F77=
13223 old_archive_from_expsyms_cmds_F77=
13224 export_dynamic_flag_spec_F77=
13225 whole_archive_flag_spec_F77=
13226 thread_safe_flag_spec_F77=
13227 hardcode_libdir_flag_spec_F77=
13228 hardcode_libdir_flag_spec_ld_F77=
13229 hardcode_libdir_separator_F77=
13230 hardcode_direct_F77=no
13231 hardcode_minus_L_F77=no
13232 hardcode_shlibpath_var_F77=unsupported
13233 link_all_deplibs_F77=unknown
13234 hardcode_automatic_F77=no
13236 module_expsym_cmds_F77=
13237 always_export_symbols_F77=no
13238 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13239 # include_expsyms should be a list of space-separated symbols to be *always*
13240 # included in the symbol list
13241 include_expsyms_F77=
13242 # exclude_expsyms can be an extended regexp of symbols to exclude
13243 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13244 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13245 # as well as any symbol that contains `d'.
13246 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13247 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13248 # platforms (ab)use it in PIC code, but their linkers get confused if
13249 # the symbol is explicitly referenced. Since portable code cannot
13250 # rely on this symbol name, it's probably fine to never include it in
13251 # preloaded symbol tables.
13252 extract_expsyms_cmds=
13253 # Just being paranoid about ensuring that cc_basename is set.
13254 for cc_temp in $compiler""; do
13256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13265 cygwin* | mingw* | pw32*)
13266 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13267 # When not using gcc, we currently assume that we are using
13268 # Microsoft Visual C++.
13269 if test "$GCC" != yes; then
13279 if test "$with_gnu_ld" = yes; then
13280 # If archive_cmds runs LD, not CC, wlarc should be empty
13283 # Set some defaults for GNU ld with shared library support. These
13284 # are reset later if shared libraries are not supported. Putting them
13285 # here allows them to be overridden if necessary.
13286 runpath_var=LD_RUN_PATH
13287 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13288 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13289 # ancient GNU ld didn't support --whole-archive et. al.
13290 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13291 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13293 whole_archive_flag_spec_F77=
13295 supports_anon_versioning=no
13296 case `$LD -v 2>/dev/null` in
13297 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13298 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13299 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13300 *\ 2.11.*) ;; # other 2.11 versions
13301 *) supports_anon_versioning=yes ;;
13304 # See if GNU ld supports shared libraries.
13306 aix3* | aix4* | aix5*)
13307 # On AIX/PPC, the GNU linker is very broken
13308 if test "$host_cpu" != ia64; then
13312 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13313 *** to be unable to reliably create shared libraries on AIX.
13314 *** Therefore, libtool is disabling shared libraries support. If you
13315 *** really care for shared libraries, you may want to modify your PATH
13316 *** so that a non-GNU linker is found, and then restart.
13323 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)'
13324 hardcode_libdir_flag_spec_F77='-L$libdir'
13325 hardcode_minus_L_F77=yes
13327 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13328 # that the semantics of dynamic libraries on AmigaOS, at least up
13329 # to version 4, is to share data among multiple programs linked
13330 # with the same dynamic library. Since this doesn't match the
13331 # behavior of shared libraries on other platforms, we can't use
13337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13338 allow_undefined_flag_F77=unsupported
13339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13340 # support --undefined. This deserves some investigation. FIXME
13341 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13347 cygwin* | mingw* | pw32*)
13348 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13349 # as there is no search path for DLLs.
13350 hardcode_libdir_flag_spec_F77='-L$libdir'
13351 allow_undefined_flag_F77=unsupported
13352 always_export_symbols_F77=no
13353 enable_shared_with_static_runtimes_F77=yes
13354 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13356 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13357 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13358 # If the export-symbols file already is a .def file (1st line
13359 # is EXPORTS), use it as is; otherwise, prepend...
13360 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13361 cp $export_symbols $output_objdir/$soname.def;
13363 echo EXPORTS > $output_objdir/$soname.def;
13364 cat $export_symbols >> $output_objdir/$soname.def;
13366 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13373 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13375 case $cc_basename,$host_cpu in
13376 pgcc*) # Portland Group C compiler
13377 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13378 tmp_addflag=' $pic_flag'
13380 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13381 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13382 tmp_addflag=' $pic_flag -Mnomain' ;;
13383 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13384 tmp_addflag=' -i_dynamic' ;;
13385 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13386 tmp_addflag=' -i_dynamic -nofor_main' ;;
13387 ifc* | ifort*) # Intel Fortran compiler
13388 tmp_addflag=' -nofor_main' ;;
13390 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13392 if test $supports_anon_versioning = yes; then
13393 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13394 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13395 $echo "local: *; };" >> $output_objdir/$libname.ver~
13396 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13405 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13408 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13409 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13414 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13418 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13419 *** create shared libraries on Solaris systems. Therefore, libtool
13420 *** is disabling shared libraries support. We urge you to upgrade GNU
13421 *** binutils to release 2.9.1 or newer. Another option is to modify
13422 *** your PATH or compiler configuration so that the native linker is
13423 *** used, and then restart.
13426 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13427 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13428 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13435 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13437 hardcode_direct_F77=yes
13438 hardcode_shlibpath_var_F77=no
13442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13443 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13451 if test "$ld_shlibs_F77" = no; then
13453 hardcode_libdir_flag_spec_F77=
13454 export_dynamic_flag_spec_F77=
13455 whole_archive_flag_spec_F77=
13458 # PORTME fill in a description of your system's linker (not GNU ld)
13461 allow_undefined_flag_F77=unsupported
13462 always_export_symbols_F77=yes
13463 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'
13464 # Note: this linker hardcodes the directories in LIBPATH if there
13465 # are no directories specified by -L.
13466 hardcode_minus_L_F77=yes
13467 if test "$GCC" = yes && test -z "$link_static_flag"; then
13468 # Neither direct hardcoding nor static linking is supported with a
13470 hardcode_direct_F77=unsupported
13475 if test "$host_cpu" = ia64; then
13476 # On IA64, the linker does run time linking by default, so we don't
13477 # have to do anything special.
13478 aix_use_runtimelinking=no
13479 exp_sym_flag='-Bexport'
13482 # If we're using GNU nm, then we don't want the "-C" option.
13483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13484 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13485 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'
13487 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'
13489 aix_use_runtimelinking=no
13491 # Test if we are trying to use run time linking or normal
13492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13493 # need to do runtime linking.
13494 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13495 for ld_flag in $LDFLAGS; do
13496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13497 aix_use_runtimelinking=yes
13503 exp_sym_flag='-bexport'
13504 no_entry_flag='-bnoentry'
13507 # When large executables or shared objects are built, AIX ld can
13508 # have problems creating the table of contents. If linking a library
13509 # or program results in "error TOC overflow" add -mminimal-toc to
13510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13513 archive_cmds_F77=''
13514 hardcode_direct_F77=yes
13515 hardcode_libdir_separator_F77=':'
13516 link_all_deplibs_F77=yes
13518 if test "$GCC" = yes; then
13519 case $host_os in aix4.[012]|aix4.[012].*)
13520 # We only want to do this on AIX 4.2 and lower, the check
13521 # below for broken collect2 doesn't work under 4.3+
13522 collect2name=`${CC} -print-prog-name=collect2`
13523 if test -f "$collect2name" && \
13524 strings "$collect2name" | grep resolve_lib_name >/dev/null
13526 # We have reworked collect2
13527 hardcode_direct_F77=yes
13529 # We have old collect2
13530 hardcode_direct_F77=unsupported
13531 # It fails to find uninstalled libraries when the uninstalled
13532 # path is not listed in the libpath. Setting hardcode_minus_L
13533 # to unsupported forces relinking
13534 hardcode_minus_L_F77=yes
13535 hardcode_libdir_flag_spec_F77='-L$libdir'
13536 hardcode_libdir_separator_F77=
13539 shared_flag='-shared'
13540 if test "$aix_use_runtimelinking" = yes; then
13541 shared_flag="$shared_flag "'${wl}-G'
13545 if test "$host_cpu" = ia64; then
13546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13547 # chokes on -Wl,-G. The following line is correct:
13550 if test "$aix_use_runtimelinking" = yes; then
13551 shared_flag='${wl}-G'
13553 shared_flag='${wl}-bM:SRE'
13558 # It seems that -bexpall does not export symbols beginning with
13559 # underscore (_), so it is better to generate a list of symbols to export.
13560 always_export_symbols_F77=yes
13561 if test "$aix_use_runtimelinking" = yes; then
13562 # Warning - without using the other runtime loading flags (-brtl),
13563 # -berok will link without error, but may produce a broken library.
13564 allow_undefined_flag_F77='-berok'
13565 # Determine the default libpath from the value encoded in an empty executable.
13566 cat >conftest.$ac_ext <<_ACEOF
13571 rm -f conftest.$ac_objext conftest$ac_exeext
13572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13573 (eval $ac_link) 2>conftest.er1
13575 grep -v '^ *+' conftest.er1 >conftest.err
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_f77_werror_flag"
13581 || test ! -s conftest.err'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; } &&
13587 { ac_try='test -s conftest$ac_exeext'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13596 # Check for a 64-bit object if we didn't find anything.
13597 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; }
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13604 rm -f conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13608 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13609 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"
13611 if test "$host_cpu" = ia64; then
13612 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13613 allow_undefined_flag_F77="-z nodefs"
13614 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"
13616 # Determine the default libpath from the value encoded in an empty executable.
13617 cat >conftest.$ac_ext <<_ACEOF
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13624 (eval $ac_link) 2>conftest.er1
13626 grep -v '^ *+' conftest.er1 >conftest.err
13628 cat conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try='test -z "$ac_f77_werror_flag"
13632 || test ! -s conftest.err'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try='test -s conftest$ac_exeext'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13647 # Check for a 64-bit object if we didn't find anything.
13648 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; }
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13655 rm -f conftest.err conftest.$ac_objext \
13656 conftest$ac_exeext conftest.$ac_ext
13657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13659 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13660 # Warning - without using the other run time loading flags,
13661 # -berok will link without error, but may produce a broken library.
13662 no_undefined_flag_F77=' ${wl}-bernotok'
13663 allow_undefined_flag_F77=' ${wl}-berok'
13664 # -bexpall does not export symbols beginning with underscore (_)
13665 always_export_symbols_F77=yes
13666 # Exported symbols can be pulled into shared objects from archives
13667 whole_archive_flag_spec_F77=' '
13668 archive_cmds_need_lc_F77=yes
13669 # This is similar to how AIX traditionally builds its shared libraries.
13670 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'
13676 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)'
13677 hardcode_libdir_flag_spec_F77='-L$libdir'
13678 hardcode_minus_L_F77=yes
13679 # see comment about different semantics on the GNU ld section
13684 export_dynamic_flag_spec_F77=-rdynamic
13687 cygwin* | mingw* | pw32*)
13688 # When not using gcc, we currently assume that we are using
13689 # Microsoft Visual C++.
13690 # hardcode_libdir_flag_spec is actually meaningless, as there is
13691 # no search path for DLLs.
13692 hardcode_libdir_flag_spec_F77=' '
13693 allow_undefined_flag_F77=unsupported
13694 # Tell ltmain to make .lib files, not .a files.
13696 # Tell ltmain to make .dll files, not .so files.
13698 # FIXME: Setting linknames here is a bad hack.
13699 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13700 # The linker will automatically build a .lib file if we build a DLL.
13701 old_archive_From_new_cmds_F77='true'
13702 # FIXME: Should let the user specify the lib program.
13703 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13704 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13705 enable_shared_with_static_runtimes_F77=yes
13708 darwin* | rhapsody*)
13710 rhapsody* | darwin1.[012])
13711 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13715 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13717 case ${MACOSX_DEPLOYMENT_TARGET} in
13719 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13722 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13728 archive_cmds_need_lc_F77=no
13729 hardcode_direct_F77=no
13730 hardcode_automatic_F77=yes
13731 hardcode_shlibpath_var_F77=unsupported
13732 whole_archive_flag_spec_F77=''
13733 link_all_deplibs_F77=yes
13734 if test "$GCC" = yes ; then
13735 output_verbose_link_cmd='echo'
13736 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13737 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13738 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13739 archive_expsym_cmds_F77='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}'
13740 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}'
13742 case $cc_basename in
13744 output_verbose_link_cmd='echo'
13745 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13746 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13747 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13748 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13749 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}'
13759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13760 hardcode_libdir_flag_spec_F77='-L$libdir'
13761 hardcode_shlibpath_var_F77=no
13768 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13769 # support. Future versions do this automatically, but an explicit c++rt0.o
13770 # does not break anything, and helps significantly (at the cost of a little
13773 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13774 hardcode_libdir_flag_spec_F77='-R$libdir'
13775 hardcode_direct_F77=yes
13776 hardcode_shlibpath_var_F77=no
13779 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13781 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13782 hardcode_direct_F77=yes
13783 hardcode_minus_L_F77=yes
13784 hardcode_shlibpath_var_F77=no
13787 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13788 freebsd* | kfreebsd*-gnu | dragonfly*)
13789 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13790 hardcode_libdir_flag_spec_F77='-R$libdir'
13791 hardcode_direct_F77=yes
13792 hardcode_shlibpath_var_F77=no
13796 if test "$GCC" = yes; then
13797 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'
13799 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'
13801 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13802 hardcode_libdir_separator_F77=:
13803 hardcode_direct_F77=yes
13805 # hardcode_minus_L: Not really in the search PATH,
13806 # but as the default location of the library.
13807 hardcode_minus_L_F77=yes
13808 export_dynamic_flag_spec_F77='${wl}-E'
13812 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13815 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13818 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13824 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13827 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13831 if test "$with_gnu_ld" = no; then
13834 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13835 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13836 hardcode_libdir_separator_F77=:
13837 hardcode_direct_F77=no
13838 hardcode_shlibpath_var_F77=no
13841 hardcode_libdir_flag_spec_F77='-L$libdir'
13842 hardcode_direct_F77=no
13843 hardcode_shlibpath_var_F77=no
13845 # hardcode_minus_L: Not really in the search PATH,
13846 # but as the default location of the library.
13847 hardcode_minus_L_F77=yes
13850 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13851 hardcode_libdir_separator_F77=:
13852 hardcode_direct_F77=yes
13853 export_dynamic_flag_spec_F77='${wl}-E'
13855 # hardcode_minus_L: Not really in the search PATH,
13856 # but as the default location of the library.
13857 hardcode_minus_L_F77=yes
13863 irix5* | irix6* | nonstopux*)
13864 if test "$GCC" = yes; then
13865 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'
13867 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'
13868 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13870 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13871 hardcode_libdir_separator_F77=:
13872 link_all_deplibs_F77=yes
13876 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13877 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13879 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13881 hardcode_libdir_flag_spec_F77='-R$libdir'
13882 hardcode_direct_F77=yes
13883 hardcode_shlibpath_var_F77=no
13887 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13888 hardcode_direct_F77=yes
13889 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13890 hardcode_libdir_separator_F77=:
13891 hardcode_shlibpath_var_F77=no
13895 hardcode_direct_F77=yes
13896 hardcode_shlibpath_var_F77=no
13897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13898 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13899 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13900 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13901 export_dynamic_flag_spec_F77='${wl}-E'
13904 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13905 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13906 hardcode_libdir_flag_spec_F77='-R$libdir'
13909 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13910 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13917 hardcode_libdir_flag_spec_F77='-L$libdir'
13918 hardcode_minus_L_F77=yes
13919 allow_undefined_flag_F77=unsupported
13920 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'
13921 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13925 if test "$GCC" = yes; then
13926 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13927 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'
13929 allow_undefined_flag_F77=' -expect_unresolved \*'
13930 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'
13932 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13933 hardcode_libdir_separator_F77=:
13936 osf4* | osf5*) # as osf3* with the addition of -msym flag
13937 if test "$GCC" = yes; then
13938 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13939 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'
13940 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13942 allow_undefined_flag_F77=' -expect_unresolved \*'
13943 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'
13944 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~
13945 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13947 # Both c and cxx compiler support -rpath directly
13948 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13950 hardcode_libdir_separator_F77=:
13954 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13955 hardcode_shlibpath_var_F77=no
13956 export_dynamic_flag_spec_F77='${wl}-Bexport'
13957 runpath_var=LD_RUN_PATH
13958 hardcode_runpath_var=yes
13962 no_undefined_flag_F77=' -z text'
13963 if test "$GCC" = yes; then
13965 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13966 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13967 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13970 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13974 hardcode_libdir_flag_spec_F77='-R$libdir'
13975 hardcode_shlibpath_var_F77=no
13977 solaris2.[0-5] | solaris2.[0-5].*) ;;
13979 # The compiler driver will combine linker options so we
13980 # cannot just pass the convience library names through
13981 # without $wl, iff we do not link with $LD.
13982 # Luckily, gcc supports the same syntax we need for Sun Studio.
13983 # Supported since Solaris 2.6 (maybe 2.5.1?)
13986 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13988 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13991 link_all_deplibs_F77=yes
13995 if test "x$host_vendor" = xsequent; then
13996 # Use $CC to link under sequent, because it throws in some extra .o
13997 # files that make .init and .fini sections work.
13998 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14000 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14002 hardcode_libdir_flag_spec_F77='-L$libdir'
14003 hardcode_direct_F77=yes
14004 hardcode_minus_L_F77=yes
14005 hardcode_shlibpath_var_F77=no
14009 case $host_vendor in
14011 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012 hardcode_direct_F77=yes # is this really true???
14015 ## LD is ld it makes a PLAMLIB
14016 ## CC just makes a GrossModule.
14017 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14018 reload_cmds_F77='$CC -r -o $output$reload_objs'
14019 hardcode_direct_F77=no
14022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14023 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14026 runpath_var='LD_RUN_PATH'
14027 hardcode_shlibpath_var_F77=no
14031 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14032 hardcode_shlibpath_var_F77=no
14033 export_dynamic_flag_spec_F77='-Bexport'
14037 if test -d /usr/nec; then
14038 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14039 hardcode_shlibpath_var_F77=no
14040 runpath_var=LD_RUN_PATH
14041 hardcode_runpath_var=yes
14047 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14048 hardcode_direct_F77=yes
14049 hardcode_minus_L_F77=no
14050 hardcode_shlibpath_var_F77=no
14051 hardcode_runpath_var=yes
14052 runpath_var=LD_RUN_PATH
14055 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14056 no_undefined_flag_F77='${wl}-z ${wl}text'
14057 if test "$GCC" = yes; then
14058 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14060 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 runpath_var='LD_RUN_PATH'
14063 hardcode_shlibpath_var_F77=no
14067 no_undefined_flag_F77=' -z text'
14068 # $CC -shared without GNU ld will not create a library from C++
14069 # object files and a static libstdc++, better avoid it by now
14070 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14071 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14072 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14073 hardcode_libdir_flag_spec_F77=
14074 hardcode_shlibpath_var_F77=no
14075 runpath_var='LD_RUN_PATH'
14079 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14080 hardcode_libdir_flag_spec_F77='-L$libdir'
14081 hardcode_shlibpath_var_F77=no
14090 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14091 echo "${ECHO_T}$ld_shlibs_F77" >&6
14092 test "$ld_shlibs_F77" = no && can_build_shared=no
14094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14095 if test "$GCC" = yes; then
14096 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14100 # Do we need to explicitly link libc?
14102 case "x$archive_cmds_need_lc_F77" in
14104 # Assume -lc should be added
14105 archive_cmds_need_lc_F77=yes
14107 if test "$enable_shared" = yes && test "$GCC" = yes; then
14108 case $archive_cmds_F77 in
14110 # FIXME: we may have to deal with multi-command sequences.
14113 # Test whether the compiler implicitly links with -lc since on some
14114 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14115 # to ld, don't add -lc before -lgcc.
14116 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14117 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } 2>conftest.err; then
14128 libobjs=conftest.$ac_objext
14130 wl=$lt_prog_compiler_wl_F77
14136 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14137 allow_undefined_flag_F77=
14138 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14139 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }
14144 archive_cmds_need_lc_F77=no
14146 archive_cmds_need_lc_F77=yes
14148 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14150 cat conftest.err 1>&5
14153 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14154 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14161 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14162 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14163 library_names_spec=
14164 libname_spec='lib$name'
14168 postuninstall_cmds=
14172 shlibpath_overrides_runpath=unknown
14174 dynamic_linker="$host_os ld.so"
14175 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14176 if test "$GCC" = yes; then
14177 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14178 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14179 # if the path contains ";" then we assume it to be the separator
14180 # otherwise default to the standard path separator (i.e. ":") - it is
14181 # assumed that no part of a normal pathname contains ";" but that should
14182 # okay in the real world where ";" in dirpaths is itself problematic.
14183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14188 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14190 need_lib_prefix=unknown
14191 hardcode_into_libs=no
14193 # when you set need_version to no, make sure it does not cause -set_version
14194 # flags to be left without arguments
14195 need_version=unknown
14200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14201 shlibpath_var=LIBPATH
14203 # AIX 3 has no versioning support, so we append a major version to the name.
14204 soname_spec='${libname}${release}${shared_ext}$major'
14211 hardcode_into_libs=yes
14212 if test "$host_cpu" = ia64; then
14213 # AIX 5 supports IA64
14214 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14215 shlibpath_var=LD_LIBRARY_PATH
14217 # With GCC up to 2.95.x, collect2 would create an import file
14218 # for dependence libraries. The import file would start with
14219 # the line `#! .'. This would cause the generated library to
14220 # depend on `.', always an invalid library. This was fixed in
14221 # development snapshots of GCC prior to 3.0.
14223 aix4 | aix4.[01] | aix4.[01].*)
14224 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14226 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14229 can_build_shared=no
14233 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14234 # soname into executable. Probably we can add versioning support to
14235 # collect2, so additional links can be useful in future.
14236 if test "$aix_use_runtimelinking" = yes; then
14237 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14238 # instead of lib<name>.a to let people know that these are not
14239 # typical AIX shared libraries.
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242 # We preserve .a as extension for shared libraries through AIX4.2
14243 # and later when we are not doing run time linking.
14244 library_names_spec='${libname}${release}.a $libname.a'
14245 soname_spec='${libname}${release}${shared_ext}$major'
14247 shlibpath_var=LIBPATH
14252 library_names_spec='$libname.ixlibrary $libname.a'
14253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14254 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'
14258 library_names_spec='${libname}${shared_ext}'
14259 dynamic_linker="$host_os ld.so"
14260 shlibpath_var=LIBRARY_PATH
14266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14267 soname_spec='${libname}${release}${shared_ext}$major'
14268 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14269 shlibpath_var=LD_LIBRARY_PATH
14270 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14271 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14272 # the default ld.so.conf also contains /usr/contrib/lib and
14273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14274 # libtool to hard-code these into programs
14277 cygwin* | mingw* | pw32*)
14278 version_type=windows
14283 case $GCC,$host_os in
14284 yes,cygwin* | yes,mingw* | yes,pw32*)
14285 library_names_spec='$libname.dll.a'
14286 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14287 postinstall_cmds='base_file=`basename \${file}`~
14288 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14289 dldir=$destdir/`dirname \$dlpath`~
14290 test -d \$dldir || mkdir -p \$dldir~
14291 $install_prog $dir/$dlname \$dldir/$dlname~
14292 chmod a+x \$dldir/$dlname'
14293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14294 dlpath=$dir/\$dldll~
14296 shlibpath_overrides_runpath=yes
14300 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14301 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14302 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14305 # MinGW DLLs use traditional 'lib' prefix
14306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14307 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14308 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14309 # It is most probably a Windows format PATH printed by
14310 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14311 # path with ; separators, and with drive letters. We can handle the
14312 # drive letters (cygwin fileutils understands them), so leave them,
14313 # especially as we might pass files found there to a mingw objdump,
14314 # which wouldn't understand a cygwinified path. Ahh.
14315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14321 # pw32 DLLs use 'pw' prefix rather than 'lib'
14322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14331 dynamic_linker='Win32 ld.exe'
14332 # FIXME: first we should search . and the directory the executable is in
14336 darwin* | rhapsody*)
14337 dynamic_linker="$host_os dyld"
14338 version_type=darwin
14341 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14342 soname_spec='${libname}${release}${major}$shared_ext'
14343 shlibpath_overrides_runpath=yes
14344 shlibpath_var=DYLD_LIBRARY_PATH
14345 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14346 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14347 if test "$GCC" = yes; then
14348 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"`
14350 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14352 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14360 soname_spec='${libname}${release}${shared_ext}$major'
14361 shlibpath_var=LD_LIBRARY_PATH
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14373 soname_spec='${libname}${release}${shared_ext}$major'
14374 shlibpath_var=LD_LIBRARY_PATH
14375 shlibpath_overrides_runpath=no
14376 hardcode_into_libs=yes
14377 dynamic_linker='GNU ld.so'
14380 freebsd* | dragonfly*)
14381 # DragonFly does not have aout. When/if they implement a new
14382 # versioning mechanism, adjust this.
14383 if test -x /usr/bin/objformat; then
14384 objformat=`/usr/bin/objformat`
14387 freebsd[123]*) objformat=aout ;;
14388 *) objformat=elf ;;
14391 version_type=freebsd-$objformat
14392 case $version_type in
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14403 shlibpath_var=LD_LIBRARY_PATH
14406 shlibpath_overrides_runpath=yes
14408 freebsd3.[01]* | freebsdelf3.[01]*)
14409 shlibpath_overrides_runpath=yes
14410 hardcode_into_libs=yes
14413 shlibpath_overrides_runpath=no
14414 hardcode_into_libs=yes
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 shlibpath_var=LD_LIBRARY_PATH
14426 hardcode_into_libs=yes
14429 hpux9* | hpux10* | hpux11*)
14430 # Give a soname corresponding to the major version so that dld.sl refuses to
14431 # link against other versions.
14438 hardcode_into_libs=yes
14439 dynamic_linker="$host_os dld.so"
14440 shlibpath_var=LD_LIBRARY_PATH
14441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14443 soname_spec='${libname}${release}${shared_ext}$major'
14444 if test "X$HPUX_IA64_MODE" = X32; then
14445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14453 hardcode_into_libs=yes
14454 dynamic_linker="$host_os dld.sl"
14455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458 soname_spec='${libname}${release}${shared_ext}$major'
14459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14464 dynamic_linker="$host_os dld.sl"
14465 shlibpath_var=SHLIB_PATH
14466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14471 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14472 postinstall_cmds='chmod 555 $lib'
14475 irix5* | irix6* | nonstopux*)
14477 nonstopux*) version_type=nonstopux ;;
14479 if test "$lt_cv_prog_gnu_ld" = yes; then
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14490 irix5* | nonstopux*)
14491 libsuff= shlibsuff=
14494 case $LD in # libtool.m4 will add one of these switches to LD
14495 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14496 libsuff= shlibsuff= libmagic=32-bit;;
14497 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14498 libsuff=32 shlibsuff=N32 libmagic=N32;;
14499 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14500 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14501 *) libsuff= shlibsuff= libmagic=never-match;;
14505 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14506 shlibpath_overrides_runpath=no
14507 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14508 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14509 hardcode_into_libs=yes
14512 # No shared lib support for Linux oldld, aout, or coff.
14513 linux*oldld* | linux*aout* | linux*coff*)
14517 # This must be Linux ELF.
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523 soname_spec='${libname}${release}${shared_ext}$major'
14524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 shlibpath_overrides_runpath=no
14527 # This implies no fast_install, which is unacceptable.
14528 # Some rework will be needed to allow for fast_install
14529 # before this can be enabled.
14530 hardcode_into_libs=yes
14532 # Append ld.so.conf contents to the search path
14533 if test -f /etc/ld.so.conf; then
14534 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14535 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14538 # We used to test for /lib/ld.so.1 and disable shared libraries on
14539 # powerpc, because MkLinux only supported shared libraries with the
14540 # GNU dynamic linker. Since this was broken with cross compilers,
14541 # most powerpc-linux boxes support dynamic linking these days and
14542 # people can always --disable-shared, the test was removed, and we
14543 # assume the GNU/Linux dynamic linker is in use.
14544 dynamic_linker='GNU/Linux ld.so'
14551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14552 soname_spec='${libname}${release}${shared_ext}$major'
14553 shlibpath_var=LD_LIBRARY_PATH
14554 shlibpath_overrides_runpath=no
14555 hardcode_into_libs=yes
14556 dynamic_linker='GNU ld.so'
14563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14566 dynamic_linker='NetBSD (a.out) ld.so'
14568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14569 soname_spec='${libname}${release}${shared_ext}$major'
14570 dynamic_linker='NetBSD ld.elf_so'
14572 shlibpath_var=LD_LIBRARY_PATH
14573 shlibpath_overrides_runpath=yes
14574 hardcode_into_libs=yes
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580 shlibpath_var=LD_LIBRARY_PATH
14581 shlibpath_overrides_runpath=yes
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589 soname_spec='${libname}${release}${shared_ext}$major'
14590 shlibpath_var=LD_LIBRARY_PATH
14591 shlibpath_overrides_runpath=yes
14597 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14599 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14600 *) need_version=no ;;
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14604 shlibpath_var=LD_LIBRARY_PATH
14605 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14607 openbsd2.[89] | openbsd2.[89].*)
14608 shlibpath_overrides_runpath=no
14611 shlibpath_overrides_runpath=yes
14615 shlibpath_overrides_runpath=yes
14620 libname_spec='$name'
14623 library_names_spec='$libname${shared_ext} $libname.a'
14624 dynamic_linker='OS/2 ld.exe'
14625 shlibpath_var=LIBPATH
14628 osf3* | osf4* | osf5*)
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 shlibpath_var=LD_LIBRARY_PATH
14635 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14636 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14643 shlibpath_var=LD_LIBRARY_PATH
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 shlibpath_overrides_runpath=yes
14654 hardcode_into_libs=yes
14655 # ldd complains unless libraries are executable
14656 postinstall_cmds='chmod +x $lib'
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14662 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 shlibpath_overrides_runpath=yes
14665 if test "$with_gnu_ld" = yes; then
14671 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 shlibpath_var=LD_LIBRARY_PATH
14676 case $host_vendor in
14678 shlibpath_overrides_runpath=no
14680 export_dynamic_flag_spec='${wl}-Blargedynsym'
14681 runpath_var=LD_RUN_PATH
14689 shlibpath_overrides_runpath=no
14690 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14696 if test -d /usr/nec ;then
14698 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14699 soname_spec='$libname${shared_ext}.$major'
14700 shlibpath_var=LD_LIBRARY_PATH
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 shlibpath_var=LD_LIBRARY_PATH
14715 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14716 echo "${ECHO_T}$dynamic_linker" >&6
14717 test "$dynamic_linker" = no && can_build_shared=no
14719 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14720 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14721 hardcode_action_F77=
14722 if test -n "$hardcode_libdir_flag_spec_F77" || \
14723 test -n "$runpath_var_F77" || \
14724 test "X$hardcode_automatic_F77" = "Xyes" ; then
14726 # We can hardcode non-existant directories.
14727 if test "$hardcode_direct_F77" != no &&
14728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14729 # have to relink, otherwise we might link with an installed library
14730 # when we should be linking with a yet-to-be-installed one
14731 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14732 test "$hardcode_minus_L_F77" != no; then
14733 # Linking always hardcodes the temporary library directory.
14734 hardcode_action_F77=relink
14736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14737 hardcode_action_F77=immediate
14740 # We cannot hardcode anything, or else we can only hardcode existing
14742 hardcode_action_F77=unsupported
14744 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14745 echo "${ECHO_T}$hardcode_action_F77" >&6
14747 if test "$hardcode_action_F77" = relink; then
14748 # Fast installation is not supported
14749 enable_fast_install=no
14750 elif test "$shlibpath_overrides_runpath" = yes ||
14751 test "$enable_shared" = no; then
14752 # Fast installation is not necessary
14753 enable_fast_install=needless
14758 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14759 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14760 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14761 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14762 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14763 echo "$as_me:$LINENO: result: yes" >&5
14764 echo "${ECHO_T}yes" >&6
14766 # FIXME - insert some real tests, host_os isn't really good enough
14769 if test -n "$STRIP" ; then
14770 striplib="$STRIP -x"
14771 echo "$as_me:$LINENO: result: yes" >&5
14772 echo "${ECHO_T}yes" >&6
14774 echo "$as_me:$LINENO: result: no" >&5
14775 echo "${ECHO_T}no" >&6
14779 echo "$as_me:$LINENO: result: no" >&5
14780 echo "${ECHO_T}no" >&6
14787 # The else clause should only fire when bootstrapping the
14788 # libtool distribution, otherwise you forgot to ship ltmain.sh
14789 # with your package, and you will get complaints that there are
14790 # no rules to generate ltmain.sh.
14791 if test -f "$ltmain"; then
14792 # See if we are running on zsh, and set the options which allow our commands through
14793 # without removal of \ escapes.
14794 if test -n "${ZSH_VERSION+set}" ; then
14795 setopt NO_GLOB_SUBST
14797 # Now quote all the things that may contain metacharacters while being
14798 # careful not to overquote the AC_SUBSTed values. We take copies of the
14799 # variables and quote the copies for generation of the libtool script.
14800 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14802 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14803 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14804 deplibs_check_method reload_flag reload_cmds need_locks \
14805 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14806 lt_cv_sys_global_symbol_to_c_name_address \
14807 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14808 old_postinstall_cmds old_postuninstall_cmds \
14812 lt_prog_compiler_wl_F77 \
14813 lt_prog_compiler_pic_F77 \
14814 lt_prog_compiler_static_F77 \
14815 lt_prog_compiler_no_builtin_flag_F77 \
14816 export_dynamic_flag_spec_F77 \
14817 thread_safe_flag_spec_F77 \
14818 whole_archive_flag_spec_F77 \
14819 enable_shared_with_static_runtimes_F77 \
14820 old_archive_cmds_F77 \
14821 old_archive_from_new_cmds_F77 \
14822 predep_objects_F77 \
14823 postdep_objects_F77 \
14826 compiler_lib_search_path_F77 \
14828 archive_expsym_cmds_F77 \
14829 postinstall_cmds_F77 \
14830 postuninstall_cmds_F77 \
14831 old_archive_from_expsyms_cmds_F77 \
14832 allow_undefined_flag_F77 \
14833 no_undefined_flag_F77 \
14834 export_symbols_cmds_F77 \
14835 hardcode_libdir_flag_spec_F77 \
14836 hardcode_libdir_flag_spec_ld_F77 \
14837 hardcode_libdir_separator_F77 \
14838 hardcode_automatic_F77 \
14840 module_expsym_cmds_F77 \
14841 lt_cv_prog_compiler_c_o_F77 \
14842 exclude_expsyms_F77 \
14843 include_expsyms_F77; do
14846 old_archive_cmds_F77 | \
14847 old_archive_from_new_cmds_F77 | \
14848 archive_cmds_F77 | \
14849 archive_expsym_cmds_F77 | \
14850 module_cmds_F77 | \
14851 module_expsym_cmds_F77 | \
14852 old_archive_from_expsyms_cmds_F77 | \
14853 export_symbols_cmds_F77 | \
14854 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14855 postinstall_cmds | postuninstall_cmds | \
14856 old_postinstall_cmds | old_postuninstall_cmds | \
14857 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14858 # Double-quote double-evaled strings.
14859 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14862 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14868 *'\$0 --fallback-echo"')
14869 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14875 cat <<__EOF__ >> "$cfgfile"
14876 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14878 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14880 # Shell to use when invoking shell scripts.
14883 # Whether or not to build shared libraries.
14884 build_libtool_libs=$enable_shared
14886 # Whether or not to build static libraries.
14887 build_old_libs=$enable_static
14889 # Whether or not to add -lc for building shared libraries.
14890 build_libtool_need_lc=$archive_cmds_need_lc_F77
14892 # Whether or not to disallow shared libs when runtime libs are static
14893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14895 # Whether or not to optimize for fast installation.
14896 fast_install=$enable_fast_install
14899 host_alias=$host_alias
14903 # The build system.
14904 build_alias=$build_alias
14908 # An echo program that does not interpret backslashes.
14913 AR_FLAGS=$lt_AR_FLAGS
14918 # A language-specific compiler.
14919 CC=$lt_compiler_F77
14921 # Is the compiler the GNU C compiler?
14927 # The linker used to build libraries.
14930 # Whether we need hard or soft links.
14933 # A BSD-compatible nm program.
14936 # A symbol stripping program
14939 # Used to examine libraries when file_magic_cmd begins "file"
14940 MAGIC_CMD=$MAGIC_CMD
14942 # Used on cygwin: DLL creation program.
14945 # Used on cygwin: object dumper.
14948 # Used on cygwin: assembler.
14951 # The name of the directory that contains temporary libtool files.
14954 # How to create reloadable object files.
14955 reload_flag=$lt_reload_flag
14956 reload_cmds=$lt_reload_cmds
14958 # How to pass a linker flag through the compiler.
14959 wl=$lt_lt_prog_compiler_wl_F77
14961 # Object file suffix (normally "o").
14962 objext="$ac_objext"
14964 # Old archive suffix (normally "a").
14967 # Shared library suffix (normally ".so").
14968 shrext_cmds='$shrext_cmds'
14970 # Executable file suffix (normally "").
14973 # Additional compiler flags for building library objects.
14974 pic_flag=$lt_lt_prog_compiler_pic_F77
14977 # What is the maximum length of a command?
14978 max_cmd_len=$lt_cv_sys_max_cmd_len
14980 # Does compiler simultaneously support -c and -o options?
14981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14983 # Must we lock files when doing compilation?
14984 need_locks=$lt_need_locks
14986 # Do we need the lib prefix for modules?
14987 need_lib_prefix=$need_lib_prefix
14989 # Do we need a version for libraries?
14990 need_version=$need_version
14992 # Whether dlopen is supported.
14993 dlopen_support=$enable_dlopen
14995 # Whether dlopen of programs is supported.
14996 dlopen_self=$enable_dlopen_self
14998 # Whether dlopen of statically linked programs is supported.
14999 dlopen_self_static=$enable_dlopen_self_static
15001 # Compiler flag to prevent dynamic linking.
15002 link_static_flag=$lt_lt_prog_compiler_static_F77
15004 # Compiler flag to turn off builtin functions.
15005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15007 # Compiler flag to allow reflexive dlopens.
15008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15010 # Compiler flag to generate shared objects directly from archives.
15011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15013 # Compiler flag to generate thread-safe objects.
15014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15016 # Library versioning type.
15017 version_type=$version_type
15019 # Format of library name prefix.
15020 libname_spec=$lt_libname_spec
15022 # List of archive names. First name is the real one, the rest are links.
15023 # The last name is the one that the linker finds with -lNAME.
15024 library_names_spec=$lt_library_names_spec
15026 # The coded name of the library, if different from the real name.
15027 soname_spec=$lt_soname_spec
15029 # Commands used to build and install an old-style archive.
15031 old_archive_cmds=$lt_old_archive_cmds_F77
15032 old_postinstall_cmds=$lt_old_postinstall_cmds
15033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15035 # Create an old-style archive from a shared archive.
15036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15038 # Create a temporary old-style archive to link instead of a shared archive.
15039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15041 # Commands used to build and install a shared archive.
15042 archive_cmds=$lt_archive_cmds_F77
15043 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15044 postinstall_cmds=$lt_postinstall_cmds
15045 postuninstall_cmds=$lt_postuninstall_cmds
15047 # Commands used to build a loadable module (assumed same as above if empty)
15048 module_cmds=$lt_module_cmds_F77
15049 module_expsym_cmds=$lt_module_expsym_cmds_F77
15051 # Commands to strip libraries.
15052 old_striplib=$lt_old_striplib
15053 striplib=$lt_striplib
15055 # Dependencies to place before the objects being linked to create a
15057 predep_objects=$lt_predep_objects_F77
15059 # Dependencies to place after the objects being linked to create a
15061 postdep_objects=$lt_postdep_objects_F77
15063 # Dependencies to place before the objects being linked to create a
15065 predeps=$lt_predeps_F77
15067 # Dependencies to place after the objects being linked to create a
15069 postdeps=$lt_postdeps_F77
15071 # The library search path used internally by the compiler when linking
15072 # a shared library.
15073 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15075 # Method to check whether dependent libraries are shared objects.
15076 deplibs_check_method=$lt_deplibs_check_method
15078 # Command to use when deplibs_check_method == file_magic.
15079 file_magic_cmd=$lt_file_magic_cmd
15081 # Flag that allows shared libraries with undefined symbols to be built.
15082 allow_undefined_flag=$lt_allow_undefined_flag_F77
15084 # Flag that forces no undefined symbols.
15085 no_undefined_flag=$lt_no_undefined_flag_F77
15087 # Commands used to finish a libtool library installation in a directory.
15088 finish_cmds=$lt_finish_cmds
15090 # Same as above, but a single script fragment to be evaled but not shown.
15091 finish_eval=$lt_finish_eval
15093 # Take the output of nm and produce a listing of raw symbols and C names.
15094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15096 # Transform the output of nm in a proper C declaration
15097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15099 # Transform the output of nm in a C name address pair
15100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15102 # This is the shared library runtime path variable.
15103 runpath_var=$runpath_var
15105 # This is the shared library path variable.
15106 shlibpath_var=$shlibpath_var
15108 # Is shlibpath searched before the hard-coded library search path?
15109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15111 # How to hardcode a shared library path into an executable.
15112 hardcode_action=$hardcode_action_F77
15114 # Whether we should hardcode library paths into libraries.
15115 hardcode_into_libs=$hardcode_into_libs
15117 # Flag to hardcode \$libdir into a binary during linking.
15118 # This must work even if \$libdir does not exist.
15119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15121 # If ld is used when linking, flag to hardcode \$libdir into
15122 # a binary during linking. This must work even if \$libdir does
15124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15126 # Whether we need a single -rpath flag with a separated argument.
15127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15130 # resulting binary.
15131 hardcode_direct=$hardcode_direct_F77
15133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15134 # resulting binary.
15135 hardcode_minus_L=$hardcode_minus_L_F77
15137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15138 # the resulting binary.
15139 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15141 # Set to yes if building a shared library automatically hardcodes DIR into the library
15142 # and all subsequent libraries and executables linked against it.
15143 hardcode_automatic=$hardcode_automatic_F77
15145 # Variables whose values should be saved in libtool wrapper scripts and
15146 # restored at relink time.
15147 variables_saved_for_relink="$variables_saved_for_relink"
15149 # Whether libtool must link a program against all its dependency libraries.
15150 link_all_deplibs=$link_all_deplibs_F77
15152 # Compile-time system search path for libraries
15153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15155 # Run-time system search path for libraries
15156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15158 # Fix the shell variable \$srcfile for the compiler.
15159 fix_srcfile_path="$fix_srcfile_path_F77"
15161 # Set to yes if exported symbols are required.
15162 always_export_symbols=$always_export_symbols_F77
15164 # The commands to list exported symbols.
15165 export_symbols_cmds=$lt_export_symbols_cmds_F77
15167 # The commands to extract the exported symbol list from a shared archive.
15168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15170 # Symbols that should not be listed in the preloaded symbols.
15171 exclude_expsyms=$lt_exclude_expsyms_F77
15173 # Symbols that must always be exported.
15174 include_expsyms=$lt_include_expsyms_F77
15176 # ### END LIBTOOL TAG CONFIG: $tagname
15182 # If there is no Makefile yet, we rely on a make rule to execute
15183 # `config.status --recheck' to rerun these tests and create the
15184 # libtool script then.
15185 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15186 if test -f "$ltmain_in"; then
15187 test -f Makefile && make "$ltmain"
15193 ac_cpp='$CPP $CPPFLAGS'
15194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15206 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15210 # Source file extension for Java test sources.
15213 # Object file extension for compiled Java test sources.
15217 # Code to be used in simple compile tests
15218 lt_simple_compile_test_code="class foo {}\n"
15220 # Code to be used in simple link tests
15221 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15225 # If no C compiler was specified, use CC.
15228 # Allow CC to be a program name with arguments.
15232 # save warnings/boilerplate of simple test code
15233 ac_outfile=conftest.$ac_objext
15234 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15235 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15236 _lt_compiler_boilerplate=`cat conftest.err`
15239 ac_outfile=conftest.$ac_objext
15240 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15241 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15242 _lt_linker_boilerplate=`cat conftest.err`
15246 # Allow CC to be a program name with arguments.
15251 for cc_temp in $compiler""; do
15253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15259 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15262 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15263 archive_cmds_need_lc_GCJ=no
15265 old_archive_cmds_GCJ=$old_archive_cmds
15268 lt_prog_compiler_no_builtin_flag_GCJ=
15270 if test "$GCC" = yes; then
15271 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15274 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15275 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15276 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 lt_cv_prog_compiler_rtti_exceptions=no
15280 ac_outfile=conftest.$ac_objext
15281 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15282 lt_compiler_flag="-fno-rtti -fno-exceptions"
15283 # Insert the option either (1) after the last *FLAGS variable, or
15284 # (2) before a word containing "conftest.", or (3) at the end.
15285 # Note that $ac_compile itself does not contain backslashes and begins
15286 # with a dollar sign (not a hyphen), so the echo should work correctly.
15287 # The option is referenced via a variable to avoid confusing sed.
15288 lt_compile=`echo "$ac_compile" | $SED \
15289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15291 -e 's:$: $lt_compiler_flag:'`
15292 (eval echo "\"\$as_me:15292: $lt_compile\"" >&5)
15293 (eval "$lt_compile" 2>conftest.err)
15295 cat conftest.err >&5
15296 echo "$as_me:15296: \$? = $ac_status" >&5
15297 if (exit $ac_status) && test -s "$ac_outfile"; then
15298 # The compiler can only warn and ignore the option if not recognized
15299 # So say no if there are warnings other than the usual output.
15300 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15301 $SED '/^$/d' conftest.err >conftest.er2
15302 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15303 lt_cv_prog_compiler_rtti_exceptions=yes
15309 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15310 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15312 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15313 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15320 lt_prog_compiler_wl_GCJ=
15321 lt_prog_compiler_pic_GCJ=
15322 lt_prog_compiler_static_GCJ=
15324 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15325 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15327 if test "$GCC" = yes; then
15328 lt_prog_compiler_wl_GCJ='-Wl,'
15329 lt_prog_compiler_static_GCJ='-static'
15333 # All AIX code is PIC.
15334 if test "$host_cpu" = ia64; then
15335 # AIX 5 now supports IA64 processor
15336 lt_prog_compiler_static_GCJ='-Bstatic'
15341 # FIXME: we need at least 68020 code to build shared libraries, but
15342 # adding the `-m68020' flag to GCC prevents building anything better,
15344 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15347 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15348 # PIC is the default for these OSes.
15351 mingw* | pw32* | os2*)
15352 # This hack is so that the source file can tell whether it is being
15353 # built for inclusion in a dll (and should export symbols for example).
15354 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15357 darwin* | rhapsody*)
15358 # PIC is the default on this platform
15359 # Common symbols not allowed in MH_DYLIB files
15360 lt_prog_compiler_pic_GCJ='-fno-common'
15364 # Just because we use GCC doesn't mean we suddenly get shared libraries
15365 # on systems that don't support them.
15366 lt_prog_compiler_can_build_shared_GCJ=no
15371 if test -d /usr/nec; then
15372 lt_prog_compiler_pic_GCJ=-Kconform_pic
15377 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15378 # not for PA HP-UX.
15384 lt_prog_compiler_pic_GCJ='-fPIC'
15390 lt_prog_compiler_pic_GCJ='-fPIC'
15394 # PORTME Check for flag to pass linker flags through the system compiler.
15397 lt_prog_compiler_wl_GCJ='-Wl,'
15398 if test "$host_cpu" = ia64; then
15399 # AIX 5 now supports IA64 processor
15400 lt_prog_compiler_static_GCJ='-Bstatic'
15402 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15406 # PIC is the default on this platform
15407 # Common symbols not allowed in MH_DYLIB files
15408 case $cc_basename in
15410 lt_prog_compiler_pic_GCJ='-qnocommon'
15411 lt_prog_compiler_wl_GCJ='-Wl,'
15416 mingw* | pw32* | os2*)
15417 # This hack is so that the source file can tell whether it is being
15418 # built for inclusion in a dll (and should export symbols for example).
15419 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15422 hpux9* | hpux10* | hpux11*)
15423 lt_prog_compiler_wl_GCJ='-Wl,'
15424 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15425 # not for PA HP-UX.
15431 lt_prog_compiler_pic_GCJ='+Z'
15434 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15435 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15438 irix5* | irix6* | nonstopux*)
15439 lt_prog_compiler_wl_GCJ='-Wl,'
15440 # PIC (with -KPIC) is the default.
15441 lt_prog_compiler_static_GCJ='-non_shared'
15445 lt_prog_compiler_pic_GCJ='-KPIC'
15446 lt_prog_compiler_static_GCJ='-Bstatic'
15450 case $cc_basename in
15452 lt_prog_compiler_wl_GCJ='-Wl,'
15453 lt_prog_compiler_pic_GCJ='-KPIC'
15454 lt_prog_compiler_static_GCJ='-static'
15456 pgcc* | pgf77* | pgf90* | pgf95*)
15457 # Portland Group compilers (*not* the Pentium gcc compiler,
15458 # which looks to be a dead project)
15459 lt_prog_compiler_wl_GCJ='-Wl,'
15460 lt_prog_compiler_pic_GCJ='-fpic'
15461 lt_prog_compiler_static_GCJ='-Bstatic'
15464 lt_prog_compiler_wl_GCJ='-Wl,'
15465 # All Alpha code is PIC.
15466 lt_prog_compiler_static_GCJ='-non_shared'
15471 osf3* | osf4* | osf5*)
15472 lt_prog_compiler_wl_GCJ='-Wl,'
15473 # All OSF/1 code is PIC.
15474 lt_prog_compiler_static_GCJ='-non_shared'
15478 lt_prog_compiler_pic_GCJ='-Kpic'
15479 lt_prog_compiler_static_GCJ='-dn'
15483 lt_prog_compiler_pic_GCJ='-KPIC'
15484 lt_prog_compiler_static_GCJ='-Bstatic'
15485 case $cc_basename in
15486 f77* | f90* | f95*)
15487 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15489 lt_prog_compiler_wl_GCJ='-Wl,';;
15494 lt_prog_compiler_wl_GCJ='-Qoption ld '
15495 lt_prog_compiler_pic_GCJ='-PIC'
15496 lt_prog_compiler_static_GCJ='-Bstatic'
15499 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15500 lt_prog_compiler_wl_GCJ='-Wl,'
15501 lt_prog_compiler_pic_GCJ='-KPIC'
15502 lt_prog_compiler_static_GCJ='-Bstatic'
15506 if test -d /usr/nec ;then
15507 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15508 lt_prog_compiler_static_GCJ='-Bstatic'
15513 lt_prog_compiler_wl_GCJ='-Wl,'
15514 lt_prog_compiler_can_build_shared_GCJ=no
15518 lt_prog_compiler_pic_GCJ='-pic'
15519 lt_prog_compiler_static_GCJ='-Bstatic'
15523 lt_prog_compiler_can_build_shared_GCJ=no
15528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15529 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15532 # Check to make sure the PIC flag actually works.
15534 if test -n "$lt_prog_compiler_pic_GCJ"; then
15536 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15537 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15538 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 lt_prog_compiler_pic_works_GCJ=no
15542 ac_outfile=conftest.$ac_objext
15543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15544 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15545 # Insert the option either (1) after the last *FLAGS variable, or
15546 # (2) before a word containing "conftest.", or (3) at the end.
15547 # Note that $ac_compile itself does not contain backslashes and begins
15548 # with a dollar sign (not a hyphen), so the echo should work correctly.
15549 # The option is referenced via a variable to avoid confusing sed.
15550 lt_compile=`echo "$ac_compile" | $SED \
15551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15553 -e 's:$: $lt_compiler_flag:'`
15554 (eval echo "\"\$as_me:15554: $lt_compile\"" >&5)
15555 (eval "$lt_compile" 2>conftest.err)
15557 cat conftest.err >&5
15558 echo "$as_me:15558: \$? = $ac_status" >&5
15559 if (exit $ac_status) && test -s "$ac_outfile"; then
15560 # The compiler can only warn and ignore the option if not recognized
15561 # So say no if there are warnings other than the usual output.
15562 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15563 $SED '/^$/d' conftest.err >conftest.er2
15564 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15565 lt_prog_compiler_pic_works_GCJ=yes
15571 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15572 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15574 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15575 case $lt_prog_compiler_pic_GCJ in
15577 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15580 lt_prog_compiler_pic_GCJ=
15581 lt_prog_compiler_can_build_shared_GCJ=no
15586 # For platforms which do not support PIC, -DPIC is meaningless:
15588 lt_prog_compiler_pic_GCJ=
15591 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15595 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15596 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15597 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 lt_cv_prog_compiler_c_o_GCJ=no
15601 $rm -r conftest 2>/dev/null
15605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15607 lt_compiler_flag="-o out/conftest2.$ac_objext"
15608 # Insert the option either (1) after the last *FLAGS variable, or
15609 # (2) before a word containing "conftest.", or (3) at the end.
15610 # Note that $ac_compile itself does not contain backslashes and begins
15611 # with a dollar sign (not a hyphen), so the echo should work correctly.
15612 lt_compile=`echo "$ac_compile" | $SED \
15613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15615 -e 's:$: $lt_compiler_flag:'`
15616 (eval echo "\"\$as_me:15616: $lt_compile\"" >&5)
15617 (eval "$lt_compile" 2>out/conftest.err)
15619 cat out/conftest.err >&5
15620 echo "$as_me:15620: \$? = $ac_status" >&5
15621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15623 # The compiler can only warn and ignore the option if not recognized
15624 # So say no if there are warnings
15625 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15626 $SED '/^$/d' out/conftest.err >out/conftest.er2
15627 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15628 lt_cv_prog_compiler_c_o_GCJ=yes
15633 # SGI C++ compiler will create directory out/ii_files/ for
15634 # template instantiation
15635 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15636 $rm out/* && rmdir out
15642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15643 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15646 hard_links="nottested"
15647 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15648 # do not overwrite the value of need_locks provided by the user
15649 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15650 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15655 ln conftest.a conftest.b 2>&5 || hard_links=no
15656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15657 echo "$as_me:$LINENO: result: $hard_links" >&5
15658 echo "${ECHO_T}$hard_links" >&6
15659 if test "$hard_links" = no; then
15660 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15661 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15668 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15669 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15672 allow_undefined_flag_GCJ=
15673 enable_shared_with_static_runtimes_GCJ=no
15675 archive_expsym_cmds_GCJ=
15676 old_archive_From_new_cmds_GCJ=
15677 old_archive_from_expsyms_cmds_GCJ=
15678 export_dynamic_flag_spec_GCJ=
15679 whole_archive_flag_spec_GCJ=
15680 thread_safe_flag_spec_GCJ=
15681 hardcode_libdir_flag_spec_GCJ=
15682 hardcode_libdir_flag_spec_ld_GCJ=
15683 hardcode_libdir_separator_GCJ=
15684 hardcode_direct_GCJ=no
15685 hardcode_minus_L_GCJ=no
15686 hardcode_shlibpath_var_GCJ=unsupported
15687 link_all_deplibs_GCJ=unknown
15688 hardcode_automatic_GCJ=no
15690 module_expsym_cmds_GCJ=
15691 always_export_symbols_GCJ=no
15692 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15693 # include_expsyms should be a list of space-separated symbols to be *always*
15694 # included in the symbol list
15695 include_expsyms_GCJ=
15696 # exclude_expsyms can be an extended regexp of symbols to exclude
15697 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15698 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15699 # as well as any symbol that contains `d'.
15700 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15701 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15702 # platforms (ab)use it in PIC code, but their linkers get confused if
15703 # the symbol is explicitly referenced. Since portable code cannot
15704 # rely on this symbol name, it's probably fine to never include it in
15705 # preloaded symbol tables.
15706 extract_expsyms_cmds=
15707 # Just being paranoid about ensuring that cc_basename is set.
15708 for cc_temp in $compiler""; do
15710 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15711 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15716 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15719 cygwin* | mingw* | pw32*)
15720 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15721 # When not using gcc, we currently assume that we are using
15722 # Microsoft Visual C++.
15723 if test "$GCC" != yes; then
15733 if test "$with_gnu_ld" = yes; then
15734 # If archive_cmds runs LD, not CC, wlarc should be empty
15737 # Set some defaults for GNU ld with shared library support. These
15738 # are reset later if shared libraries are not supported. Putting them
15739 # here allows them to be overridden if necessary.
15740 runpath_var=LD_RUN_PATH
15741 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15742 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15743 # ancient GNU ld didn't support --whole-archive et. al.
15744 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15745 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15747 whole_archive_flag_spec_GCJ=
15749 supports_anon_versioning=no
15750 case `$LD -v 2>/dev/null` in
15751 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15752 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15753 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15754 *\ 2.11.*) ;; # other 2.11 versions
15755 *) supports_anon_versioning=yes ;;
15758 # See if GNU ld supports shared libraries.
15760 aix3* | aix4* | aix5*)
15761 # On AIX/PPC, the GNU linker is very broken
15762 if test "$host_cpu" != ia64; then
15766 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15767 *** to be unable to reliably create shared libraries on AIX.
15768 *** Therefore, libtool is disabling shared libraries support. If you
15769 *** really care for shared libraries, you may want to modify your PATH
15770 *** so that a non-GNU linker is found, and then restart.
15777 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)'
15778 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15779 hardcode_minus_L_GCJ=yes
15781 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15782 # that the semantics of dynamic libraries on AmigaOS, at least up
15783 # to version 4, is to share data among multiple programs linked
15784 # with the same dynamic library. Since this doesn't match the
15785 # behavior of shared libraries on other platforms, we can't use
15791 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15792 allow_undefined_flag_GCJ=unsupported
15793 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15794 # support --undefined. This deserves some investigation. FIXME
15795 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801 cygwin* | mingw* | pw32*)
15802 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15803 # as there is no search path for DLLs.
15804 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15805 allow_undefined_flag_GCJ=unsupported
15806 always_export_symbols_GCJ=no
15807 enable_shared_with_static_runtimes_GCJ=yes
15808 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15810 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15811 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15812 # If the export-symbols file already is a .def file (1st line
15813 # is EXPORTS), use it as is; otherwise, prepend...
15814 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15815 cp $export_symbols $output_objdir/$soname.def;
15817 echo EXPORTS > $output_objdir/$soname.def;
15818 cat $export_symbols >> $output_objdir/$soname.def;
15820 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15827 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15829 case $cc_basename,$host_cpu in
15830 pgcc*) # Portland Group C compiler
15831 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15832 tmp_addflag=' $pic_flag'
15834 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15835 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15836 tmp_addflag=' $pic_flag -Mnomain' ;;
15837 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15838 tmp_addflag=' -i_dynamic' ;;
15839 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15840 tmp_addflag=' -i_dynamic -nofor_main' ;;
15841 ifc* | ifort*) # Intel Fortran compiler
15842 tmp_addflag=' -nofor_main' ;;
15844 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15846 if test $supports_anon_versioning = yes; then
15847 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15848 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15849 $echo "local: *; };" >> $output_objdir/$libname.ver~
15850 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15858 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15859 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15862 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15863 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15868 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15872 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15873 *** create shared libraries on Solaris systems. Therefore, libtool
15874 *** is disabling shared libraries support. We urge you to upgrade GNU
15875 *** binutils to release 2.9.1 or newer. Another option is to modify
15876 *** your PATH or compiler configuration so that the native linker is
15877 *** used, and then restart.
15880 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15881 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15882 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15889 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15891 hardcode_direct_GCJ=yes
15892 hardcode_shlibpath_var_GCJ=no
15896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15897 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15898 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15905 if test "$ld_shlibs_GCJ" = no; then
15907 hardcode_libdir_flag_spec_GCJ=
15908 export_dynamic_flag_spec_GCJ=
15909 whole_archive_flag_spec_GCJ=
15912 # PORTME fill in a description of your system's linker (not GNU ld)
15915 allow_undefined_flag_GCJ=unsupported
15916 always_export_symbols_GCJ=yes
15917 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'
15918 # Note: this linker hardcodes the directories in LIBPATH if there
15919 # are no directories specified by -L.
15920 hardcode_minus_L_GCJ=yes
15921 if test "$GCC" = yes && test -z "$link_static_flag"; then
15922 # Neither direct hardcoding nor static linking is supported with a
15924 hardcode_direct_GCJ=unsupported
15929 if test "$host_cpu" = ia64; then
15930 # On IA64, the linker does run time linking by default, so we don't
15931 # have to do anything special.
15932 aix_use_runtimelinking=no
15933 exp_sym_flag='-Bexport'
15936 # If we're using GNU nm, then we don't want the "-C" option.
15937 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15938 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15939 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'
15941 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'
15943 aix_use_runtimelinking=no
15945 # Test if we are trying to use run time linking or normal
15946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15947 # need to do runtime linking.
15948 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15949 for ld_flag in $LDFLAGS; do
15950 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15951 aix_use_runtimelinking=yes
15957 exp_sym_flag='-bexport'
15958 no_entry_flag='-bnoentry'
15961 # When large executables or shared objects are built, AIX ld can
15962 # have problems creating the table of contents. If linking a library
15963 # or program results in "error TOC overflow" add -mminimal-toc to
15964 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15965 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15967 archive_cmds_GCJ=''
15968 hardcode_direct_GCJ=yes
15969 hardcode_libdir_separator_GCJ=':'
15970 link_all_deplibs_GCJ=yes
15972 if test "$GCC" = yes; then
15973 case $host_os in aix4.[012]|aix4.[012].*)
15974 # We only want to do this on AIX 4.2 and lower, the check
15975 # below for broken collect2 doesn't work under 4.3+
15976 collect2name=`${CC} -print-prog-name=collect2`
15977 if test -f "$collect2name" && \
15978 strings "$collect2name" | grep resolve_lib_name >/dev/null
15980 # We have reworked collect2
15981 hardcode_direct_GCJ=yes
15983 # We have old collect2
15984 hardcode_direct_GCJ=unsupported
15985 # It fails to find uninstalled libraries when the uninstalled
15986 # path is not listed in the libpath. Setting hardcode_minus_L
15987 # to unsupported forces relinking
15988 hardcode_minus_L_GCJ=yes
15989 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15990 hardcode_libdir_separator_GCJ=
15993 shared_flag='-shared'
15994 if test "$aix_use_runtimelinking" = yes; then
15995 shared_flag="$shared_flag "'${wl}-G'
15999 if test "$host_cpu" = ia64; then
16000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16001 # chokes on -Wl,-G. The following line is correct:
16004 if test "$aix_use_runtimelinking" = yes; then
16005 shared_flag='${wl}-G'
16007 shared_flag='${wl}-bM:SRE'
16012 # It seems that -bexpall does not export symbols beginning with
16013 # underscore (_), so it is better to generate a list of symbols to export.
16014 always_export_symbols_GCJ=yes
16015 if test "$aix_use_runtimelinking" = yes; then
16016 # Warning - without using the other runtime loading flags (-brtl),
16017 # -berok will link without error, but may produce a broken library.
16018 allow_undefined_flag_GCJ='-berok'
16019 # Determine the default libpath from the value encoded in an empty executable.
16020 cat >conftest.$ac_ext <<_ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16035 rm -f conftest.$ac_objext conftest$ac_exeext
16036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16037 (eval $ac_link) 2>conftest.er1
16039 grep -v '^ *+' conftest.er1 >conftest.err
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } &&
16044 { ac_try='test -z "$ac_c_werror_flag"
16045 || test ! -s conftest.err'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; } &&
16051 { ac_try='test -s conftest$ac_exeext'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16060 # Check for a 64-bit object if we didn't find anything.
16061 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; }
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16068 rm -f conftest.err conftest.$ac_objext \
16069 conftest$ac_exeext conftest.$ac_ext
16070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16072 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16073 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"
16075 if test "$host_cpu" = ia64; then
16076 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16077 allow_undefined_flag_GCJ="-z nodefs"
16078 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"
16080 # Determine the default libpath from the value encoded in an empty executable.
16081 cat >conftest.$ac_ext <<_ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16096 rm -f conftest.$ac_objext conftest$ac_exeext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16098 (eval $ac_link) 2>conftest.er1
16100 grep -v '^ *+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag"
16106 || test ! -s conftest.err'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try='test -s conftest$ac_exeext'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16121 # Check for a 64-bit object if we didn't find anything.
16122 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; }
16125 echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.$ac_ext >&5
16129 rm -f conftest.err conftest.$ac_objext \
16130 conftest$ac_exeext conftest.$ac_ext
16131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16133 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16134 # Warning - without using the other run time loading flags,
16135 # -berok will link without error, but may produce a broken library.
16136 no_undefined_flag_GCJ=' ${wl}-bernotok'
16137 allow_undefined_flag_GCJ=' ${wl}-berok'
16138 # -bexpall does not export symbols beginning with underscore (_)
16139 always_export_symbols_GCJ=yes
16140 # Exported symbols can be pulled into shared objects from archives
16141 whole_archive_flag_spec_GCJ=' '
16142 archive_cmds_need_lc_GCJ=yes
16143 # This is similar to how AIX traditionally builds its shared libraries.
16144 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'
16150 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)'
16151 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16152 hardcode_minus_L_GCJ=yes
16153 # see comment about different semantics on the GNU ld section
16158 export_dynamic_flag_spec_GCJ=-rdynamic
16161 cygwin* | mingw* | pw32*)
16162 # When not using gcc, we currently assume that we are using
16163 # Microsoft Visual C++.
16164 # hardcode_libdir_flag_spec is actually meaningless, as there is
16165 # no search path for DLLs.
16166 hardcode_libdir_flag_spec_GCJ=' '
16167 allow_undefined_flag_GCJ=unsupported
16168 # Tell ltmain to make .lib files, not .a files.
16170 # Tell ltmain to make .dll files, not .so files.
16172 # FIXME: Setting linknames here is a bad hack.
16173 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16174 # The linker will automatically build a .lib file if we build a DLL.
16175 old_archive_From_new_cmds_GCJ='true'
16176 # FIXME: Should let the user specify the lib program.
16177 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16178 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16179 enable_shared_with_static_runtimes_GCJ=yes
16182 darwin* | rhapsody*)
16184 rhapsody* | darwin1.[012])
16185 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16188 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16189 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16191 case ${MACOSX_DEPLOYMENT_TARGET} in
16193 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16196 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16202 archive_cmds_need_lc_GCJ=no
16203 hardcode_direct_GCJ=no
16204 hardcode_automatic_GCJ=yes
16205 hardcode_shlibpath_var_GCJ=unsupported
16206 whole_archive_flag_spec_GCJ=''
16207 link_all_deplibs_GCJ=yes
16208 if test "$GCC" = yes ; then
16209 output_verbose_link_cmd='echo'
16210 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16211 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16213 archive_expsym_cmds_GCJ='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}'
16214 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}'
16216 case $cc_basename in
16218 output_verbose_link_cmd='echo'
16219 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16220 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16221 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16222 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16223 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}'
16233 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16235 hardcode_shlibpath_var_GCJ=no
16242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16243 # support. Future versions do this automatically, but an explicit c++rt0.o
16244 # does not break anything, and helps significantly (at the cost of a little
16247 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16248 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16249 hardcode_direct_GCJ=yes
16250 hardcode_shlibpath_var_GCJ=no
16253 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16255 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16256 hardcode_direct_GCJ=yes
16257 hardcode_minus_L_GCJ=yes
16258 hardcode_shlibpath_var_GCJ=no
16261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16262 freebsd* | kfreebsd*-gnu | dragonfly*)
16263 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16264 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16265 hardcode_direct_GCJ=yes
16266 hardcode_shlibpath_var_GCJ=no
16270 if test "$GCC" = yes; then
16271 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'
16273 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'
16275 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16276 hardcode_libdir_separator_GCJ=:
16277 hardcode_direct_GCJ=yes
16279 # hardcode_minus_L: Not really in the search PATH,
16280 # but as the default location of the library.
16281 hardcode_minus_L_GCJ=yes
16282 export_dynamic_flag_spec_GCJ='${wl}-E'
16286 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16289 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16292 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16298 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16301 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16305 if test "$with_gnu_ld" = no; then
16308 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16309 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16310 hardcode_libdir_separator_GCJ=:
16311 hardcode_direct_GCJ=no
16312 hardcode_shlibpath_var_GCJ=no
16315 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16316 hardcode_direct_GCJ=no
16317 hardcode_shlibpath_var_GCJ=no
16319 # hardcode_minus_L: Not really in the search PATH,
16320 # but as the default location of the library.
16321 hardcode_minus_L_GCJ=yes
16324 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16325 hardcode_libdir_separator_GCJ=:
16326 hardcode_direct_GCJ=yes
16327 export_dynamic_flag_spec_GCJ='${wl}-E'
16329 # hardcode_minus_L: Not really in the search PATH,
16330 # but as the default location of the library.
16331 hardcode_minus_L_GCJ=yes
16337 irix5* | irix6* | nonstopux*)
16338 if test "$GCC" = yes; then
16339 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'
16341 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'
16342 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16344 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16345 hardcode_libdir_separator_GCJ=:
16346 link_all_deplibs_GCJ=yes
16350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16351 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16353 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16355 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16356 hardcode_direct_GCJ=yes
16357 hardcode_shlibpath_var_GCJ=no
16361 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16362 hardcode_direct_GCJ=yes
16363 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16364 hardcode_libdir_separator_GCJ=:
16365 hardcode_shlibpath_var_GCJ=no
16369 hardcode_direct_GCJ=yes
16370 hardcode_shlibpath_var_GCJ=no
16371 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16372 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16373 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16374 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16375 export_dynamic_flag_spec_GCJ='${wl}-E'
16378 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16379 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16380 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16383 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16384 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16391 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16392 hardcode_minus_L_GCJ=yes
16393 allow_undefined_flag_GCJ=unsupported
16394 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'
16395 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16399 if test "$GCC" = yes; then
16400 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16401 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'
16403 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16404 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'
16406 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16407 hardcode_libdir_separator_GCJ=:
16410 osf4* | osf5*) # as osf3* with the addition of -msym flag
16411 if test "$GCC" = yes; then
16412 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16413 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'
16414 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16416 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16417 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'
16418 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~
16419 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16421 # Both c and cxx compiler support -rpath directly
16422 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16424 hardcode_libdir_separator_GCJ=:
16428 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16429 hardcode_shlibpath_var_GCJ=no
16430 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16431 runpath_var=LD_RUN_PATH
16432 hardcode_runpath_var=yes
16436 no_undefined_flag_GCJ=' -z text'
16437 if test "$GCC" = yes; then
16439 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16440 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16441 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16444 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16445 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16448 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16449 hardcode_shlibpath_var_GCJ=no
16451 solaris2.[0-5] | solaris2.[0-5].*) ;;
16453 # The compiler driver will combine linker options so we
16454 # cannot just pass the convience library names through
16455 # without $wl, iff we do not link with $LD.
16456 # Luckily, gcc supports the same syntax we need for Sun Studio.
16457 # Supported since Solaris 2.6 (maybe 2.5.1?)
16460 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16462 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16465 link_all_deplibs_GCJ=yes
16469 if test "x$host_vendor" = xsequent; then
16470 # Use $CC to link under sequent, because it throws in some extra .o
16471 # files that make .init and .fini sections work.
16472 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16474 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16476 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16477 hardcode_direct_GCJ=yes
16478 hardcode_minus_L_GCJ=yes
16479 hardcode_shlibpath_var_GCJ=no
16483 case $host_vendor in
16485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_direct_GCJ=yes # is this really true???
16489 ## LD is ld it makes a PLAMLIB
16490 ## CC just makes a GrossModule.
16491 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16492 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16493 hardcode_direct_GCJ=no
16496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16497 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16500 runpath_var='LD_RUN_PATH'
16501 hardcode_shlibpath_var_GCJ=no
16505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16506 hardcode_shlibpath_var_GCJ=no
16507 export_dynamic_flag_spec_GCJ='-Bexport'
16511 if test -d /usr/nec; then
16512 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513 hardcode_shlibpath_var_GCJ=no
16514 runpath_var=LD_RUN_PATH
16515 hardcode_runpath_var=yes
16521 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16522 hardcode_direct_GCJ=yes
16523 hardcode_minus_L_GCJ=no
16524 hardcode_shlibpath_var_GCJ=no
16525 hardcode_runpath_var=yes
16526 runpath_var=LD_RUN_PATH
16529 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16530 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16531 if test "$GCC" = yes; then
16532 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16534 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16536 runpath_var='LD_RUN_PATH'
16537 hardcode_shlibpath_var_GCJ=no
16541 no_undefined_flag_GCJ=' -z text'
16542 # $CC -shared without GNU ld will not create a library from C++
16543 # object files and a static libstdc++, better avoid it by now
16544 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16546 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16547 hardcode_libdir_flag_spec_GCJ=
16548 hardcode_shlibpath_var_GCJ=no
16549 runpath_var='LD_RUN_PATH'
16553 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16554 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16555 hardcode_shlibpath_var_GCJ=no
16564 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16565 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16566 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16569 if test "$GCC" = yes; then
16570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16574 # Do we need to explicitly link libc?
16576 case "x$archive_cmds_need_lc_GCJ" in
16578 # Assume -lc should be added
16579 archive_cmds_need_lc_GCJ=yes
16581 if test "$enable_shared" = yes && test "$GCC" = yes; then
16582 case $archive_cmds_GCJ in
16584 # FIXME: we may have to deal with multi-command sequences.
16587 # Test whether the compiler implicitly links with -lc since on some
16588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16589 # to ld, don't add -lc before -lgcc.
16590 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16591 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16596 (eval $ac_compile) 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } 2>conftest.err; then
16602 libobjs=conftest.$ac_objext
16604 wl=$lt_prog_compiler_wl_GCJ
16610 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16611 allow_undefined_flag_GCJ=
16612 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16613 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }
16618 archive_cmds_need_lc_GCJ=no
16620 archive_cmds_need_lc_GCJ=yes
16622 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16624 cat conftest.err 1>&5
16627 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16628 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16635 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16636 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16637 library_names_spec=
16638 libname_spec='lib$name'
16642 postuninstall_cmds=
16646 shlibpath_overrides_runpath=unknown
16648 dynamic_linker="$host_os ld.so"
16649 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16650 if test "$GCC" = yes; then
16651 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16652 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16653 # if the path contains ";" then we assume it to be the separator
16654 # otherwise default to the standard path separator (i.e. ":") - it is
16655 # assumed that no part of a normal pathname contains ";" but that should
16656 # okay in the real world where ";" in dirpaths is itself problematic.
16657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16662 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16664 need_lib_prefix=unknown
16665 hardcode_into_libs=no
16667 # when you set need_version to no, make sure it does not cause -set_version
16668 # flags to be left without arguments
16669 need_version=unknown
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16675 shlibpath_var=LIBPATH
16677 # AIX 3 has no versioning support, so we append a major version to the name.
16678 soname_spec='${libname}${release}${shared_ext}$major'
16685 hardcode_into_libs=yes
16686 if test "$host_cpu" = ia64; then
16687 # AIX 5 supports IA64
16688 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16689 shlibpath_var=LD_LIBRARY_PATH
16691 # With GCC up to 2.95.x, collect2 would create an import file
16692 # for dependence libraries. The import file would start with
16693 # the line `#! .'. This would cause the generated library to
16694 # depend on `.', always an invalid library. This was fixed in
16695 # development snapshots of GCC prior to 3.0.
16697 aix4 | aix4.[01] | aix4.[01].*)
16698 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16700 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16703 can_build_shared=no
16707 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16708 # soname into executable. Probably we can add versioning support to
16709 # collect2, so additional links can be useful in future.
16710 if test "$aix_use_runtimelinking" = yes; then
16711 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16712 # instead of lib<name>.a to let people know that these are not
16713 # typical AIX shared libraries.
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716 # We preserve .a as extension for shared libraries through AIX4.2
16717 # and later when we are not doing run time linking.
16718 library_names_spec='${libname}${release}.a $libname.a'
16719 soname_spec='${libname}${release}${shared_ext}$major'
16721 shlibpath_var=LIBPATH
16726 library_names_spec='$libname.ixlibrary $libname.a'
16727 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16728 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'
16732 library_names_spec='${libname}${shared_ext}'
16733 dynamic_linker="$host_os ld.so"
16734 shlibpath_var=LIBRARY_PATH
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741 soname_spec='${libname}${release}${shared_ext}$major'
16742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16743 shlibpath_var=LD_LIBRARY_PATH
16744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16746 # the default ld.so.conf also contains /usr/contrib/lib and
16747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16748 # libtool to hard-code these into programs
16751 cygwin* | mingw* | pw32*)
16752 version_type=windows
16757 case $GCC,$host_os in
16758 yes,cygwin* | yes,mingw* | yes,pw32*)
16759 library_names_spec='$libname.dll.a'
16760 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16761 postinstall_cmds='base_file=`basename \${file}`~
16762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16763 dldir=$destdir/`dirname \$dlpath`~
16764 test -d \$dldir || mkdir -p \$dldir~
16765 $install_prog $dir/$dlname \$dldir/$dlname~
16766 chmod a+x \$dldir/$dlname'
16767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16768 dlpath=$dir/\$dldll~
16770 shlibpath_overrides_runpath=yes
16774 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16776 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16779 # MinGW DLLs use traditional 'lib' prefix
16780 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16781 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16782 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16783 # It is most probably a Windows format PATH printed by
16784 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16785 # path with ; separators, and with drive letters. We can handle the
16786 # drive letters (cygwin fileutils understands them), so leave them,
16787 # especially as we might pass files found there to a mingw objdump,
16788 # which wouldn't understand a cygwinified path. Ahh.
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"`
16795 # pw32 DLLs use 'pw' prefix rather than 'lib'
16796 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16802 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16805 dynamic_linker='Win32 ld.exe'
16806 # FIXME: first we should search . and the directory the executable is in
16810 darwin* | rhapsody*)
16811 dynamic_linker="$host_os dyld"
16812 version_type=darwin
16815 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16816 soname_spec='${libname}${release}${major}$shared_ext'
16817 shlibpath_overrides_runpath=yes
16818 shlibpath_var=DYLD_LIBRARY_PATH
16819 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16820 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16821 if test "$GCC" = yes; then
16822 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"`
16824 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16826 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16834 soname_spec='${libname}${release}${shared_ext}$major'
16835 shlibpath_var=LD_LIBRARY_PATH
16846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 shlibpath_var=LD_LIBRARY_PATH
16849 shlibpath_overrides_runpath=no
16850 hardcode_into_libs=yes
16851 dynamic_linker='GNU ld.so'
16854 freebsd* | dragonfly*)
16855 # DragonFly does not have aout. When/if they implement a new
16856 # versioning mechanism, adjust this.
16857 if test -x /usr/bin/objformat; then
16858 objformat=`/usr/bin/objformat`
16861 freebsd[123]*) objformat=aout ;;
16862 *) objformat=elf ;;
16865 version_type=freebsd-$objformat
16866 case $version_type in
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16877 shlibpath_var=LD_LIBRARY_PATH
16880 shlibpath_overrides_runpath=yes
16882 freebsd3.[01]* | freebsdelf3.[01]*)
16883 shlibpath_overrides_runpath=yes
16884 hardcode_into_libs=yes
16887 shlibpath_overrides_runpath=no
16888 hardcode_into_libs=yes
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16898 soname_spec='${libname}${release}${shared_ext}$major'
16899 shlibpath_var=LD_LIBRARY_PATH
16900 hardcode_into_libs=yes
16903 hpux9* | hpux10* | hpux11*)
16904 # Give a soname corresponding to the major version so that dld.sl refuses to
16905 # link against other versions.
16912 hardcode_into_libs=yes
16913 dynamic_linker="$host_os dld.so"
16914 shlibpath_var=LD_LIBRARY_PATH
16915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 if test "X$HPUX_IA64_MODE" = X32; then
16919 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16921 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16927 hardcode_into_libs=yes
16928 dynamic_linker="$host_os dld.sl"
16929 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932 soname_spec='${libname}${release}${shared_ext}$major'
16933 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16938 dynamic_linker="$host_os dld.sl"
16939 shlibpath_var=SHLIB_PATH
16940 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942 soname_spec='${libname}${release}${shared_ext}$major'
16945 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16946 postinstall_cmds='chmod 555 $lib'
16949 irix5* | irix6* | nonstopux*)
16951 nonstopux*) version_type=nonstopux ;;
16953 if test "$lt_cv_prog_gnu_ld" = yes; then
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16964 irix5* | nonstopux*)
16965 libsuff= shlibsuff=
16968 case $LD in # libtool.m4 will add one of these switches to LD
16969 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16970 libsuff= shlibsuff= libmagic=32-bit;;
16971 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16972 libsuff=32 shlibsuff=N32 libmagic=N32;;
16973 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16974 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16975 *) libsuff= shlibsuff= libmagic=never-match;;
16979 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16980 shlibpath_overrides_runpath=no
16981 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16982 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16983 hardcode_into_libs=yes
16986 # No shared lib support for Linux oldld, aout, or coff.
16987 linux*oldld* | linux*aout* | linux*coff*)
16991 # This must be Linux ELF.
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997 soname_spec='${libname}${release}${shared_ext}$major'
16998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16999 shlibpath_var=LD_LIBRARY_PATH
17000 shlibpath_overrides_runpath=no
17001 # This implies no fast_install, which is unacceptable.
17002 # Some rework will be needed to allow for fast_install
17003 # before this can be enabled.
17004 hardcode_into_libs=yes
17006 # Append ld.so.conf contents to the search path
17007 if test -f /etc/ld.so.conf; then
17008 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17009 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17012 # We used to test for /lib/ld.so.1 and disable shared libraries on
17013 # powerpc, because MkLinux only supported shared libraries with the
17014 # GNU dynamic linker. Since this was broken with cross compilers,
17015 # most powerpc-linux boxes support dynamic linking these days and
17016 # people can always --disable-shared, the test was removed, and we
17017 # assume the GNU/Linux dynamic linker is in use.
17018 dynamic_linker='GNU/Linux ld.so'
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17026 soname_spec='${libname}${release}${shared_ext}$major'
17027 shlibpath_var=LD_LIBRARY_PATH
17028 shlibpath_overrides_runpath=no
17029 hardcode_into_libs=yes
17030 dynamic_linker='GNU ld.so'
17037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17040 dynamic_linker='NetBSD (a.out) ld.so'
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17043 soname_spec='${libname}${release}${shared_ext}$major'
17044 dynamic_linker='NetBSD ld.elf_so'
17046 shlibpath_var=LD_LIBRARY_PATH
17047 shlibpath_overrides_runpath=yes
17048 hardcode_into_libs=yes
17053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17054 shlibpath_var=LD_LIBRARY_PATH
17055 shlibpath_overrides_runpath=yes
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 shlibpath_var=LD_LIBRARY_PATH
17065 shlibpath_overrides_runpath=yes
17071 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17073 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17074 *) need_version=no ;;
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17078 shlibpath_var=LD_LIBRARY_PATH
17079 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17081 openbsd2.[89] | openbsd2.[89].*)
17082 shlibpath_overrides_runpath=no
17085 shlibpath_overrides_runpath=yes
17089 shlibpath_overrides_runpath=yes
17094 libname_spec='$name'
17097 library_names_spec='$libname${shared_ext} $libname.a'
17098 dynamic_linker='OS/2 ld.exe'
17099 shlibpath_var=LIBPATH
17102 osf3* | osf4* | osf5*)
17106 soname_spec='${libname}${release}${shared_ext}$major'
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17110 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117 shlibpath_var=LD_LIBRARY_PATH
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 shlibpath_overrides_runpath=yes
17128 hardcode_into_libs=yes
17129 # ldd complains unless libraries are executable
17130 postinstall_cmds='chmod +x $lib'
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17137 shlibpath_var=LD_LIBRARY_PATH
17138 shlibpath_overrides_runpath=yes
17139 if test "$with_gnu_ld" = yes; then
17145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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 case $host_vendor in
17152 shlibpath_overrides_runpath=no
17154 export_dynamic_flag_spec='${wl}-Blargedynsym'
17155 runpath_var=LD_RUN_PATH
17163 shlibpath_overrides_runpath=no
17164 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17170 if test -d /usr/nec ;then
17172 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17173 soname_spec='$libname${shared_ext}.$major'
17174 shlibpath_var=LD_LIBRARY_PATH
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 shlibpath_var=LD_LIBRARY_PATH
17189 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17190 echo "${ECHO_T}$dynamic_linker" >&6
17191 test "$dynamic_linker" = no && can_build_shared=no
17193 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17194 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17195 hardcode_action_GCJ=
17196 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17197 test -n "$runpath_var_GCJ" || \
17198 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17200 # We can hardcode non-existant directories.
17201 if test "$hardcode_direct_GCJ" != no &&
17202 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17203 # have to relink, otherwise we might link with an installed library
17204 # when we should be linking with a yet-to-be-installed one
17205 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17206 test "$hardcode_minus_L_GCJ" != no; then
17207 # Linking always hardcodes the temporary library directory.
17208 hardcode_action_GCJ=relink
17210 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17211 hardcode_action_GCJ=immediate
17214 # We cannot hardcode anything, or else we can only hardcode existing
17216 hardcode_action_GCJ=unsupported
17218 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17219 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17221 if test "$hardcode_action_GCJ" = relink; then
17222 # Fast installation is not supported
17223 enable_fast_install=no
17224 elif test "$shlibpath_overrides_runpath" = yes ||
17225 test "$enable_shared" = no; then
17226 # Fast installation is not necessary
17227 enable_fast_install=needless
17232 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17233 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17234 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17235 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17236 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17237 echo "$as_me:$LINENO: result: yes" >&5
17238 echo "${ECHO_T}yes" >&6
17240 # FIXME - insert some real tests, host_os isn't really good enough
17243 if test -n "$STRIP" ; then
17244 striplib="$STRIP -x"
17245 echo "$as_me:$LINENO: result: yes" >&5
17246 echo "${ECHO_T}yes" >&6
17248 echo "$as_me:$LINENO: result: no" >&5
17249 echo "${ECHO_T}no" >&6
17253 echo "$as_me:$LINENO: result: no" >&5
17254 echo "${ECHO_T}no" >&6
17259 if test "x$enable_dlopen" != xyes; then
17260 enable_dlopen=unknown
17261 enable_dlopen_self=unknown
17262 enable_dlopen_self_static=unknown
17269 lt_cv_dlopen="load_add_on"
17271 lt_cv_dlopen_self=yes
17275 lt_cv_dlopen="LoadLibrary"
17280 lt_cv_dlopen="dlopen"
17285 # if libdl is installed we need to link against it
17286 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17287 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17288 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 ac_check_lib_save_LIBS=$LIBS
17293 cat >conftest.$ac_ext <<_ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17300 /* Override any gcc2 internal prototype to avoid an error. */
17304 /* We use char because int might match the return type of a gcc2
17305 builtin and then its argument prototype would still apply. */
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317 (eval $ac_link) 2>conftest.er1
17319 grep -v '^ *+' conftest.er1 >conftest.err
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_c_werror_flag"
17325 || test ! -s conftest.err'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try='test -s conftest$ac_exeext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 ac_cv_lib_dl_dlopen=yes
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17342 ac_cv_lib_dl_dlopen=no
17344 rm -f conftest.err conftest.$ac_objext \
17345 conftest$ac_exeext conftest.$ac_ext
17346 LIBS=$ac_check_lib_save_LIBS
17348 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17349 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17350 if test $ac_cv_lib_dl_dlopen = yes; then
17351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17354 lt_cv_dlopen="dyld"
17356 lt_cv_dlopen_self=yes
17363 echo "$as_me:$LINENO: checking for shl_load" >&5
17364 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17365 if test "${ac_cv_func_shl_load+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17376 #define shl_load innocuous_shl_load
17378 /* System header to define __stub macros and hopefully few prototypes,
17379 which can conflict with char shl_load (); below.
17380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381 <limits.h> exists even on freestanding compilers. */
17384 # include <limits.h>
17386 # include <assert.h>
17391 /* Override any gcc2 internal prototype to avoid an error. */
17396 /* We use char because int might match the return type of a gcc2
17397 builtin and then its argument prototype would still apply. */
17399 /* The GNU C library defines this for functions which it implements
17400 to always fail with ENOSYS. Some functions are actually named
17401 something starting with __ and the normal name is an alias. */
17402 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17405 char (*f) () = shl_load;
17414 return f != shl_load;
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421 (eval $ac_link) 2>conftest.er1
17423 grep -v '^ *+' conftest.er1 >conftest.err
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_func_shl_load=yes
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 ac_cv_func_shl_load=no
17448 rm -f conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17451 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17452 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17453 if test $ac_cv_func_shl_load = yes; then
17454 lt_cv_dlopen="shl_load"
17456 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17457 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17458 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17461 ac_check_lib_save_LIBS=$LIBS
17463 cat >conftest.$ac_ext <<_ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17470 /* Override any gcc2 internal prototype to avoid an error. */
17474 /* We use char because int might match the return type of a gcc2
17475 builtin and then its argument prototype would still apply. */
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17487 (eval $ac_link) 2>conftest.er1
17489 grep -v '^ *+' conftest.er1 >conftest.err
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag"
17495 || test ! -s conftest.err'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; } &&
17501 { ac_try='test -s conftest$ac_exeext'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; }; then
17507 ac_cv_lib_dld_shl_load=yes
17509 echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17512 ac_cv_lib_dld_shl_load=no
17514 rm -f conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17516 LIBS=$ac_check_lib_save_LIBS
17518 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17519 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17520 if test $ac_cv_lib_dld_shl_load = yes; then
17521 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17523 echo "$as_me:$LINENO: checking for dlopen" >&5
17524 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17525 if test "${ac_cv_func_dlopen+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 cat >conftest.$ac_ext <<_ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17536 #define dlopen innocuous_dlopen
17538 /* System header to define __stub macros and hopefully few prototypes,
17539 which can conflict with char dlopen (); below.
17540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17541 <limits.h> exists even on freestanding compilers. */
17544 # include <limits.h>
17546 # include <assert.h>
17551 /* Override any gcc2 internal prototype to avoid an error. */
17556 /* We use char because int might match the return type of a gcc2
17557 builtin and then its argument prototype would still apply. */
17559 /* The GNU C library defines this for functions which it implements
17560 to always fail with ENOSYS. Some functions are actually named
17561 something starting with __ and the normal name is an alias. */
17562 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17565 char (*f) () = dlopen;
17574 return f != dlopen;
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17581 (eval $ac_link) 2>conftest.er1
17583 grep -v '^ *+' conftest.er1 >conftest.err
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -z "$ac_c_werror_flag"
17589 || test ! -s conftest.err'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_func_dlopen=yes
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_func_dlopen=no
17608 rm -f conftest.err conftest.$ac_objext \
17609 conftest$ac_exeext conftest.$ac_ext
17611 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17612 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17613 if test $ac_cv_func_dlopen = yes; then
17614 lt_cv_dlopen="dlopen"
17616 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17617 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17618 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 ac_check_lib_save_LIBS=$LIBS
17623 cat >conftest.$ac_ext <<_ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17630 /* Override any gcc2 internal prototype to avoid an error. */
17634 /* We use char because int might match the return type of a gcc2
17635 builtin and then its argument prototype would still apply. */
17645 rm -f conftest.$ac_objext conftest$ac_exeext
17646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647 (eval $ac_link) 2>conftest.er1
17649 grep -v '^ *+' conftest.er1 >conftest.err
17651 cat conftest.err >&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -z "$ac_c_werror_flag"
17655 || test ! -s conftest.err'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; } &&
17661 { ac_try='test -s conftest$ac_exeext'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; }; then
17667 ac_cv_lib_dl_dlopen=yes
17669 echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17672 ac_cv_lib_dl_dlopen=no
17674 rm -f conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17676 LIBS=$ac_check_lib_save_LIBS
17678 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17679 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17680 if test $ac_cv_lib_dl_dlopen = yes; then
17681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17683 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17684 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17685 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 ac_check_lib_save_LIBS=$LIBS
17689 LIBS="-lsvld $LIBS"
17690 cat >conftest.$ac_ext <<_ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17697 /* Override any gcc2 internal prototype to avoid an error. */
17701 /* We use char because int might match the return type of a gcc2
17702 builtin and then its argument prototype would still apply. */
17712 rm -f conftest.$ac_objext conftest$ac_exeext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714 (eval $ac_link) 2>conftest.er1
17716 grep -v '^ *+' conftest.er1 >conftest.err
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -z "$ac_c_werror_flag"
17722 || test ! -s conftest.err'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest$ac_exeext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 ac_cv_lib_svld_dlopen=yes
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 ac_cv_lib_svld_dlopen=no
17741 rm -f conftest.err conftest.$ac_objext \
17742 conftest$ac_exeext conftest.$ac_ext
17743 LIBS=$ac_check_lib_save_LIBS
17745 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17746 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17747 if test $ac_cv_lib_svld_dlopen = yes; then
17748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17750 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17751 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17752 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 ac_check_lib_save_LIBS=$LIBS
17757 cat >conftest.$ac_ext <<_ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h. */
17764 /* Override any gcc2 internal prototype to avoid an error. */
17768 /* We use char because int might match the return type of a gcc2
17769 builtin and then its argument prototype would still apply. */
17779 rm -f conftest.$ac_objext conftest$ac_exeext
17780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17781 (eval $ac_link) 2>conftest.er1
17783 grep -v '^ *+' conftest.er1 >conftest.err
17785 cat conftest.err >&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } &&
17788 { ac_try='test -z "$ac_c_werror_flag"
17789 || test ! -s conftest.err'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; } &&
17795 { ac_try='test -s conftest$ac_exeext'
17796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797 (eval $ac_try) 2>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }; }; then
17801 ac_cv_lib_dld_dld_link=yes
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17806 ac_cv_lib_dld_dld_link=no
17808 rm -f conftest.err conftest.$ac_objext \
17809 conftest$ac_exeext conftest.$ac_ext
17810 LIBS=$ac_check_lib_save_LIBS
17812 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17813 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17814 if test $ac_cv_lib_dld_dld_link = yes; then
17815 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17836 if test "x$lt_cv_dlopen" != xno; then
17842 case $lt_cv_dlopen in
17844 save_CPPFLAGS="$CPPFLAGS"
17845 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17847 save_LDFLAGS="$LDFLAGS"
17848 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17851 LIBS="$lt_cv_dlopen_libs $LIBS"
17853 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17854 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17855 if test "${lt_cv_dlopen_self+set}" = set; then
17856 echo $ECHO_N "(cached) $ECHO_C" >&6
17858 if test "$cross_compiling" = yes; then :
17859 lt_cv_dlopen_self=cross
17861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17862 lt_status=$lt_dlunknown
17863 cat > conftest.$ac_ext <<EOF
17864 #line 17864 "configure"
17865 #include "confdefs.h"
17874 # define LT_DLGLOBAL RTLD_GLOBAL
17877 # define LT_DLGLOBAL DL_GLOBAL
17879 # define LT_DLGLOBAL 0
17883 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17884 find out it does not work in some platform. */
17885 #ifndef LT_DLLAZY_OR_NOW
17887 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17890 # define LT_DLLAZY_OR_NOW DL_LAZY
17893 # define LT_DLLAZY_OR_NOW RTLD_NOW
17896 # define LT_DLLAZY_OR_NOW DL_NOW
17898 # define LT_DLLAZY_OR_NOW 0
17906 extern "C" void exit (int);
17909 void fnord() { int i=42;}
17912 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17913 int status = $lt_dlunknown;
17917 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17918 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17919 /* dlclose (self); */
17925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17926 (eval $ac_link) 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17930 (./conftest; exit; ) >&5 2>/dev/null
17932 case x$lt_status in
17933 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17934 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17935 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17938 # compilation failed
17939 lt_cv_dlopen_self=no
17946 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17947 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17949 if test "x$lt_cv_dlopen_self" = xyes; then
17950 LDFLAGS="$LDFLAGS $link_static_flag"
17951 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17952 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17953 if test "${lt_cv_dlopen_self_static+set}" = set; then
17954 echo $ECHO_N "(cached) $ECHO_C" >&6
17956 if test "$cross_compiling" = yes; then :
17957 lt_cv_dlopen_self_static=cross
17959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17960 lt_status=$lt_dlunknown
17961 cat > conftest.$ac_ext <<EOF
17962 #line 17962 "configure"
17963 #include "confdefs.h"
17972 # define LT_DLGLOBAL RTLD_GLOBAL
17975 # define LT_DLGLOBAL DL_GLOBAL
17977 # define LT_DLGLOBAL 0
17981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17982 find out it does not work in some platform. */
17983 #ifndef LT_DLLAZY_OR_NOW
17985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17988 # define LT_DLLAZY_OR_NOW DL_LAZY
17991 # define LT_DLLAZY_OR_NOW RTLD_NOW
17994 # define LT_DLLAZY_OR_NOW DL_NOW
17996 # define LT_DLLAZY_OR_NOW 0
18004 extern "C" void exit (int);
18007 void fnord() { int i=42;}
18010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18011 int status = $lt_dlunknown;
18015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18016 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18017 /* dlclose (self); */
18023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18024 (eval $ac_link) 2>&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18028 (./conftest; exit; ) >&5 2>/dev/null
18030 case x$lt_status in
18031 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18032 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18033 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18036 # compilation failed
18037 lt_cv_dlopen_self_static=no
18044 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18045 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18048 CPPFLAGS="$save_CPPFLAGS"
18049 LDFLAGS="$save_LDFLAGS"
18054 case $lt_cv_dlopen_self in
18055 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18056 *) enable_dlopen_self=unknown ;;
18059 case $lt_cv_dlopen_self_static in
18060 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18061 *) enable_dlopen_self_static=unknown ;;
18066 # The else clause should only fire when bootstrapping the
18067 # libtool distribution, otherwise you forgot to ship ltmain.sh
18068 # with your package, and you will get complaints that there are
18069 # no rules to generate ltmain.sh.
18070 if test -f "$ltmain"; then
18071 # See if we are running on zsh, and set the options which allow our commands through
18072 # without removal of \ escapes.
18073 if test -n "${ZSH_VERSION+set}" ; then
18074 setopt NO_GLOB_SUBST
18076 # Now quote all the things that may contain metacharacters while being
18077 # careful not to overquote the AC_SUBSTed values. We take copies of the
18078 # variables and quote the copies for generation of the libtool script.
18079 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18081 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18082 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18083 deplibs_check_method reload_flag reload_cmds need_locks \
18084 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18085 lt_cv_sys_global_symbol_to_c_name_address \
18086 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18087 old_postinstall_cmds old_postuninstall_cmds \
18091 lt_prog_compiler_wl_GCJ \
18092 lt_prog_compiler_pic_GCJ \
18093 lt_prog_compiler_static_GCJ \
18094 lt_prog_compiler_no_builtin_flag_GCJ \
18095 export_dynamic_flag_spec_GCJ \
18096 thread_safe_flag_spec_GCJ \
18097 whole_archive_flag_spec_GCJ \
18098 enable_shared_with_static_runtimes_GCJ \
18099 old_archive_cmds_GCJ \
18100 old_archive_from_new_cmds_GCJ \
18101 predep_objects_GCJ \
18102 postdep_objects_GCJ \
18105 compiler_lib_search_path_GCJ \
18107 archive_expsym_cmds_GCJ \
18108 postinstall_cmds_GCJ \
18109 postuninstall_cmds_GCJ \
18110 old_archive_from_expsyms_cmds_GCJ \
18111 allow_undefined_flag_GCJ \
18112 no_undefined_flag_GCJ \
18113 export_symbols_cmds_GCJ \
18114 hardcode_libdir_flag_spec_GCJ \
18115 hardcode_libdir_flag_spec_ld_GCJ \
18116 hardcode_libdir_separator_GCJ \
18117 hardcode_automatic_GCJ \
18119 module_expsym_cmds_GCJ \
18120 lt_cv_prog_compiler_c_o_GCJ \
18121 exclude_expsyms_GCJ \
18122 include_expsyms_GCJ; do
18125 old_archive_cmds_GCJ | \
18126 old_archive_from_new_cmds_GCJ | \
18127 archive_cmds_GCJ | \
18128 archive_expsym_cmds_GCJ | \
18129 module_cmds_GCJ | \
18130 module_expsym_cmds_GCJ | \
18131 old_archive_from_expsyms_cmds_GCJ | \
18132 export_symbols_cmds_GCJ | \
18133 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18134 postinstall_cmds | postuninstall_cmds | \
18135 old_postinstall_cmds | old_postuninstall_cmds | \
18136 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18137 # Double-quote double-evaled strings.
18138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18141 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18147 *'\$0 --fallback-echo"')
18148 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18154 cat <<__EOF__ >> "$cfgfile"
18155 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18157 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18159 # Shell to use when invoking shell scripts.
18162 # Whether or not to build shared libraries.
18163 build_libtool_libs=$enable_shared
18165 # Whether or not to build static libraries.
18166 build_old_libs=$enable_static
18168 # Whether or not to add -lc for building shared libraries.
18169 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18171 # Whether or not to disallow shared libs when runtime libs are static
18172 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18174 # Whether or not to optimize for fast installation.
18175 fast_install=$enable_fast_install
18178 host_alias=$host_alias
18182 # The build system.
18183 build_alias=$build_alias
18187 # An echo program that does not interpret backslashes.
18192 AR_FLAGS=$lt_AR_FLAGS
18197 # A language-specific compiler.
18198 CC=$lt_compiler_GCJ
18200 # Is the compiler the GNU C compiler?
18206 # The linker used to build libraries.
18209 # Whether we need hard or soft links.
18212 # A BSD-compatible nm program.
18215 # A symbol stripping program
18218 # Used to examine libraries when file_magic_cmd begins "file"
18219 MAGIC_CMD=$MAGIC_CMD
18221 # Used on cygwin: DLL creation program.
18224 # Used on cygwin: object dumper.
18227 # Used on cygwin: assembler.
18230 # The name of the directory that contains temporary libtool files.
18233 # How to create reloadable object files.
18234 reload_flag=$lt_reload_flag
18235 reload_cmds=$lt_reload_cmds
18237 # How to pass a linker flag through the compiler.
18238 wl=$lt_lt_prog_compiler_wl_GCJ
18240 # Object file suffix (normally "o").
18241 objext="$ac_objext"
18243 # Old archive suffix (normally "a").
18246 # Shared library suffix (normally ".so").
18247 shrext_cmds='$shrext_cmds'
18249 # Executable file suffix (normally "").
18252 # Additional compiler flags for building library objects.
18253 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18256 # What is the maximum length of a command?
18257 max_cmd_len=$lt_cv_sys_max_cmd_len
18259 # Does compiler simultaneously support -c and -o options?
18260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18262 # Must we lock files when doing compilation?
18263 need_locks=$lt_need_locks
18265 # Do we need the lib prefix for modules?
18266 need_lib_prefix=$need_lib_prefix
18268 # Do we need a version for libraries?
18269 need_version=$need_version
18271 # Whether dlopen is supported.
18272 dlopen_support=$enable_dlopen
18274 # Whether dlopen of programs is supported.
18275 dlopen_self=$enable_dlopen_self
18277 # Whether dlopen of statically linked programs is supported.
18278 dlopen_self_static=$enable_dlopen_self_static
18280 # Compiler flag to prevent dynamic linking.
18281 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18283 # Compiler flag to turn off builtin functions.
18284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18286 # Compiler flag to allow reflexive dlopens.
18287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18289 # Compiler flag to generate shared objects directly from archives.
18290 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18292 # Compiler flag to generate thread-safe objects.
18293 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18295 # Library versioning type.
18296 version_type=$version_type
18298 # Format of library name prefix.
18299 libname_spec=$lt_libname_spec
18301 # List of archive names. First name is the real one, the rest are links.
18302 # The last name is the one that the linker finds with -lNAME.
18303 library_names_spec=$lt_library_names_spec
18305 # The coded name of the library, if different from the real name.
18306 soname_spec=$lt_soname_spec
18308 # Commands used to build and install an old-style archive.
18310 old_archive_cmds=$lt_old_archive_cmds_GCJ
18311 old_postinstall_cmds=$lt_old_postinstall_cmds
18312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18314 # Create an old-style archive from a shared archive.
18315 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18317 # Create a temporary old-style archive to link instead of a shared archive.
18318 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18320 # Commands used to build and install a shared archive.
18321 archive_cmds=$lt_archive_cmds_GCJ
18322 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18323 postinstall_cmds=$lt_postinstall_cmds
18324 postuninstall_cmds=$lt_postuninstall_cmds
18326 # Commands used to build a loadable module (assumed same as above if empty)
18327 module_cmds=$lt_module_cmds_GCJ
18328 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18330 # Commands to strip libraries.
18331 old_striplib=$lt_old_striplib
18332 striplib=$lt_striplib
18334 # Dependencies to place before the objects being linked to create a
18336 predep_objects=$lt_predep_objects_GCJ
18338 # Dependencies to place after the objects being linked to create a
18340 postdep_objects=$lt_postdep_objects_GCJ
18342 # Dependencies to place before the objects being linked to create a
18344 predeps=$lt_predeps_GCJ
18346 # Dependencies to place after the objects being linked to create a
18348 postdeps=$lt_postdeps_GCJ
18350 # The library search path used internally by the compiler when linking
18351 # a shared library.
18352 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18354 # Method to check whether dependent libraries are shared objects.
18355 deplibs_check_method=$lt_deplibs_check_method
18357 # Command to use when deplibs_check_method == file_magic.
18358 file_magic_cmd=$lt_file_magic_cmd
18360 # Flag that allows shared libraries with undefined symbols to be built.
18361 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18363 # Flag that forces no undefined symbols.
18364 no_undefined_flag=$lt_no_undefined_flag_GCJ
18366 # Commands used to finish a libtool library installation in a directory.
18367 finish_cmds=$lt_finish_cmds
18369 # Same as above, but a single script fragment to be evaled but not shown.
18370 finish_eval=$lt_finish_eval
18372 # Take the output of nm and produce a listing of raw symbols and C names.
18373 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18375 # Transform the output of nm in a proper C declaration
18376 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18378 # Transform the output of nm in a C name address pair
18379 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18381 # This is the shared library runtime path variable.
18382 runpath_var=$runpath_var
18384 # This is the shared library path variable.
18385 shlibpath_var=$shlibpath_var
18387 # Is shlibpath searched before the hard-coded library search path?
18388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18390 # How to hardcode a shared library path into an executable.
18391 hardcode_action=$hardcode_action_GCJ
18393 # Whether we should hardcode library paths into libraries.
18394 hardcode_into_libs=$hardcode_into_libs
18396 # Flag to hardcode \$libdir into a binary during linking.
18397 # This must work even if \$libdir does not exist.
18398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18400 # If ld is used when linking, flag to hardcode \$libdir into
18401 # a binary during linking. This must work even if \$libdir does
18403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18405 # Whether we need a single -rpath flag with a separated argument.
18406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18408 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18409 # resulting binary.
18410 hardcode_direct=$hardcode_direct_GCJ
18412 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18413 # resulting binary.
18414 hardcode_minus_L=$hardcode_minus_L_GCJ
18416 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18417 # the resulting binary.
18418 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18420 # Set to yes if building a shared library automatically hardcodes DIR into the library
18421 # and all subsequent libraries and executables linked against it.
18422 hardcode_automatic=$hardcode_automatic_GCJ
18424 # Variables whose values should be saved in libtool wrapper scripts and
18425 # restored at relink time.
18426 variables_saved_for_relink="$variables_saved_for_relink"
18428 # Whether libtool must link a program against all its dependency libraries.
18429 link_all_deplibs=$link_all_deplibs_GCJ
18431 # Compile-time system search path for libraries
18432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18434 # Run-time system search path for libraries
18435 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18437 # Fix the shell variable \$srcfile for the compiler.
18438 fix_srcfile_path="$fix_srcfile_path_GCJ"
18440 # Set to yes if exported symbols are required.
18441 always_export_symbols=$always_export_symbols_GCJ
18443 # The commands to list exported symbols.
18444 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18446 # The commands to extract the exported symbol list from a shared archive.
18447 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18449 # Symbols that should not be listed in the preloaded symbols.
18450 exclude_expsyms=$lt_exclude_expsyms_GCJ
18452 # Symbols that must always be exported.
18453 include_expsyms=$lt_include_expsyms_GCJ
18455 # ### END LIBTOOL TAG CONFIG: $tagname
18461 # If there is no Makefile yet, we rely on a make rule to execute
18462 # `config.status --recheck' to rerun these tests and create the
18463 # libtool script then.
18464 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18465 if test -f "$ltmain_in"; then
18466 test -f Makefile && make "$ltmain"
18472 ac_cpp='$CPP $CPPFLAGS'
18473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18488 # Source file extension for RC test sources.
18491 # Object file extension for compiled RC test sources.
18495 # Code to be used in simple compile tests
18496 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18498 # Code to be used in simple link tests
18499 lt_simple_link_test_code="$lt_simple_compile_test_code"
18501 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18503 # If no C compiler was specified, use CC.
18506 # Allow CC to be a program name with arguments.
18510 # save warnings/boilerplate of simple test code
18511 ac_outfile=conftest.$ac_objext
18512 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18513 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18514 _lt_compiler_boilerplate=`cat conftest.err`
18517 ac_outfile=conftest.$ac_objext
18518 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18519 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18520 _lt_linker_boilerplate=`cat conftest.err`
18524 # Allow CC to be a program name with arguments.
18529 for cc_temp in $compiler""; do
18531 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18532 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18537 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18539 lt_cv_prog_compiler_c_o_RC=yes
18541 # The else clause should only fire when bootstrapping the
18542 # libtool distribution, otherwise you forgot to ship ltmain.sh
18543 # with your package, and you will get complaints that there are
18544 # no rules to generate ltmain.sh.
18545 if test -f "$ltmain"; then
18546 # See if we are running on zsh, and set the options which allow our commands through
18547 # without removal of \ escapes.
18548 if test -n "${ZSH_VERSION+set}" ; then
18549 setopt NO_GLOB_SUBST
18551 # Now quote all the things that may contain metacharacters while being
18552 # careful not to overquote the AC_SUBSTed values. We take copies of the
18553 # variables and quote the copies for generation of the libtool script.
18554 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18556 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18557 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18558 deplibs_check_method reload_flag reload_cmds need_locks \
18559 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18560 lt_cv_sys_global_symbol_to_c_name_address \
18561 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18562 old_postinstall_cmds old_postuninstall_cmds \
18566 lt_prog_compiler_wl_RC \
18567 lt_prog_compiler_pic_RC \
18568 lt_prog_compiler_static_RC \
18569 lt_prog_compiler_no_builtin_flag_RC \
18570 export_dynamic_flag_spec_RC \
18571 thread_safe_flag_spec_RC \
18572 whole_archive_flag_spec_RC \
18573 enable_shared_with_static_runtimes_RC \
18574 old_archive_cmds_RC \
18575 old_archive_from_new_cmds_RC \
18576 predep_objects_RC \
18577 postdep_objects_RC \
18580 compiler_lib_search_path_RC \
18582 archive_expsym_cmds_RC \
18583 postinstall_cmds_RC \
18584 postuninstall_cmds_RC \
18585 old_archive_from_expsyms_cmds_RC \
18586 allow_undefined_flag_RC \
18587 no_undefined_flag_RC \
18588 export_symbols_cmds_RC \
18589 hardcode_libdir_flag_spec_RC \
18590 hardcode_libdir_flag_spec_ld_RC \
18591 hardcode_libdir_separator_RC \
18592 hardcode_automatic_RC \
18594 module_expsym_cmds_RC \
18595 lt_cv_prog_compiler_c_o_RC \
18596 exclude_expsyms_RC \
18597 include_expsyms_RC; do
18600 old_archive_cmds_RC | \
18601 old_archive_from_new_cmds_RC | \
18602 archive_cmds_RC | \
18603 archive_expsym_cmds_RC | \
18605 module_expsym_cmds_RC | \
18606 old_archive_from_expsyms_cmds_RC | \
18607 export_symbols_cmds_RC | \
18608 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18609 postinstall_cmds | postuninstall_cmds | \
18610 old_postinstall_cmds | old_postuninstall_cmds | \
18611 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18612 # Double-quote double-evaled strings.
18613 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18622 *'\$0 --fallback-echo"')
18623 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18629 cat <<__EOF__ >> "$cfgfile"
18630 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18632 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18634 # Shell to use when invoking shell scripts.
18637 # Whether or not to build shared libraries.
18638 build_libtool_libs=$enable_shared
18640 # Whether or not to build static libraries.
18641 build_old_libs=$enable_static
18643 # Whether or not to add -lc for building shared libraries.
18644 build_libtool_need_lc=$archive_cmds_need_lc_RC
18646 # Whether or not to disallow shared libs when runtime libs are static
18647 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18649 # Whether or not to optimize for fast installation.
18650 fast_install=$enable_fast_install
18653 host_alias=$host_alias
18657 # The build system.
18658 build_alias=$build_alias
18662 # An echo program that does not interpret backslashes.
18667 AR_FLAGS=$lt_AR_FLAGS
18672 # A language-specific compiler.
18675 # Is the compiler the GNU C compiler?
18681 # The linker used to build libraries.
18684 # Whether we need hard or soft links.
18687 # A BSD-compatible nm program.
18690 # A symbol stripping program
18693 # Used to examine libraries when file_magic_cmd begins "file"
18694 MAGIC_CMD=$MAGIC_CMD
18696 # Used on cygwin: DLL creation program.
18699 # Used on cygwin: object dumper.
18702 # Used on cygwin: assembler.
18705 # The name of the directory that contains temporary libtool files.
18708 # How to create reloadable object files.
18709 reload_flag=$lt_reload_flag
18710 reload_cmds=$lt_reload_cmds
18712 # How to pass a linker flag through the compiler.
18713 wl=$lt_lt_prog_compiler_wl_RC
18715 # Object file suffix (normally "o").
18716 objext="$ac_objext"
18718 # Old archive suffix (normally "a").
18721 # Shared library suffix (normally ".so").
18722 shrext_cmds='$shrext_cmds'
18724 # Executable file suffix (normally "").
18727 # Additional compiler flags for building library objects.
18728 pic_flag=$lt_lt_prog_compiler_pic_RC
18731 # What is the maximum length of a command?
18732 max_cmd_len=$lt_cv_sys_max_cmd_len
18734 # Does compiler simultaneously support -c and -o options?
18735 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18737 # Must we lock files when doing compilation?
18738 need_locks=$lt_need_locks
18740 # Do we need the lib prefix for modules?
18741 need_lib_prefix=$need_lib_prefix
18743 # Do we need a version for libraries?
18744 need_version=$need_version
18746 # Whether dlopen is supported.
18747 dlopen_support=$enable_dlopen
18749 # Whether dlopen of programs is supported.
18750 dlopen_self=$enable_dlopen_self
18752 # Whether dlopen of statically linked programs is supported.
18753 dlopen_self_static=$enable_dlopen_self_static
18755 # Compiler flag to prevent dynamic linking.
18756 link_static_flag=$lt_lt_prog_compiler_static_RC
18758 # Compiler flag to turn off builtin functions.
18759 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18761 # Compiler flag to allow reflexive dlopens.
18762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18764 # Compiler flag to generate shared objects directly from archives.
18765 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18767 # Compiler flag to generate thread-safe objects.
18768 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18770 # Library versioning type.
18771 version_type=$version_type
18773 # Format of library name prefix.
18774 libname_spec=$lt_libname_spec
18776 # List of archive names. First name is the real one, the rest are links.
18777 # The last name is the one that the linker finds with -lNAME.
18778 library_names_spec=$lt_library_names_spec
18780 # The coded name of the library, if different from the real name.
18781 soname_spec=$lt_soname_spec
18783 # Commands used to build and install an old-style archive.
18785 old_archive_cmds=$lt_old_archive_cmds_RC
18786 old_postinstall_cmds=$lt_old_postinstall_cmds
18787 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18789 # Create an old-style archive from a shared archive.
18790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18792 # Create a temporary old-style archive to link instead of a shared archive.
18793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18795 # Commands used to build and install a shared archive.
18796 archive_cmds=$lt_archive_cmds_RC
18797 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18798 postinstall_cmds=$lt_postinstall_cmds
18799 postuninstall_cmds=$lt_postuninstall_cmds
18801 # Commands used to build a loadable module (assumed same as above if empty)
18802 module_cmds=$lt_module_cmds_RC
18803 module_expsym_cmds=$lt_module_expsym_cmds_RC
18805 # Commands to strip libraries.
18806 old_striplib=$lt_old_striplib
18807 striplib=$lt_striplib
18809 # Dependencies to place before the objects being linked to create a
18811 predep_objects=$lt_predep_objects_RC
18813 # Dependencies to place after the objects being linked to create a
18815 postdep_objects=$lt_postdep_objects_RC
18817 # Dependencies to place before the objects being linked to create a
18819 predeps=$lt_predeps_RC
18821 # Dependencies to place after the objects being linked to create a
18823 postdeps=$lt_postdeps_RC
18825 # The library search path used internally by the compiler when linking
18826 # a shared library.
18827 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18829 # Method to check whether dependent libraries are shared objects.
18830 deplibs_check_method=$lt_deplibs_check_method
18832 # Command to use when deplibs_check_method == file_magic.
18833 file_magic_cmd=$lt_file_magic_cmd
18835 # Flag that allows shared libraries with undefined symbols to be built.
18836 allow_undefined_flag=$lt_allow_undefined_flag_RC
18838 # Flag that forces no undefined symbols.
18839 no_undefined_flag=$lt_no_undefined_flag_RC
18841 # Commands used to finish a libtool library installation in a directory.
18842 finish_cmds=$lt_finish_cmds
18844 # Same as above, but a single script fragment to be evaled but not shown.
18845 finish_eval=$lt_finish_eval
18847 # Take the output of nm and produce a listing of raw symbols and C names.
18848 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18850 # Transform the output of nm in a proper C declaration
18851 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18853 # Transform the output of nm in a C name address pair
18854 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18856 # This is the shared library runtime path variable.
18857 runpath_var=$runpath_var
18859 # This is the shared library path variable.
18860 shlibpath_var=$shlibpath_var
18862 # Is shlibpath searched before the hard-coded library search path?
18863 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18865 # How to hardcode a shared library path into an executable.
18866 hardcode_action=$hardcode_action_RC
18868 # Whether we should hardcode library paths into libraries.
18869 hardcode_into_libs=$hardcode_into_libs
18871 # Flag to hardcode \$libdir into a binary during linking.
18872 # This must work even if \$libdir does not exist.
18873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18875 # If ld is used when linking, flag to hardcode \$libdir into
18876 # a binary during linking. This must work even if \$libdir does
18878 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18880 # Whether we need a single -rpath flag with a separated argument.
18881 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18883 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18884 # resulting binary.
18885 hardcode_direct=$hardcode_direct_RC
18887 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18888 # resulting binary.
18889 hardcode_minus_L=$hardcode_minus_L_RC
18891 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18892 # the resulting binary.
18893 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18895 # Set to yes if building a shared library automatically hardcodes DIR into the library
18896 # and all subsequent libraries and executables linked against it.
18897 hardcode_automatic=$hardcode_automatic_RC
18899 # Variables whose values should be saved in libtool wrapper scripts and
18900 # restored at relink time.
18901 variables_saved_for_relink="$variables_saved_for_relink"
18903 # Whether libtool must link a program against all its dependency libraries.
18904 link_all_deplibs=$link_all_deplibs_RC
18906 # Compile-time system search path for libraries
18907 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18909 # Run-time system search path for libraries
18910 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18912 # Fix the shell variable \$srcfile for the compiler.
18913 fix_srcfile_path="$fix_srcfile_path_RC"
18915 # Set to yes if exported symbols are required.
18916 always_export_symbols=$always_export_symbols_RC
18918 # The commands to list exported symbols.
18919 export_symbols_cmds=$lt_export_symbols_cmds_RC
18921 # The commands to extract the exported symbol list from a shared archive.
18922 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18924 # Symbols that should not be listed in the preloaded symbols.
18925 exclude_expsyms=$lt_exclude_expsyms_RC
18927 # Symbols that must always be exported.
18928 include_expsyms=$lt_include_expsyms_RC
18930 # ### END LIBTOOL TAG CONFIG: $tagname
18936 # If there is no Makefile yet, we rely on a make rule to execute
18937 # `config.status --recheck' to rerun these tests and create the
18938 # libtool script then.
18939 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18940 if test -f "$ltmain_in"; then
18941 test -f Makefile && make "$ltmain"
18947 ac_cpp='$CPP $CPPFLAGS'
18948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18957 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18958 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18959 { (exit 1); exit 1; }; }
18963 # Append the new tag name to the list of available tags.
18964 if test -n "$tagname" ; then
18965 available_tags="$available_tags $tagname"
18971 # Now substitute the updated list of available tags.
18972 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18973 mv "${ofile}T" "$ofile"
18977 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18978 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18979 { (exit 1); exit 1; }; }
18985 # This can be used to rebuild libtool when needed
18986 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18988 # Always use our own libtool.
18989 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18991 # Prevent multiple expansion
19013 am__api_version="1.9"
19014 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19015 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19018 echo timestamp > conftest.file
19019 # Do `set' in a subshell so we don't clobber the current shell's
19020 # arguments. Must try -L first in case configure is actually a
19021 # symlink; some systems play weird games with the mod time of symlinks
19022 # (eg FreeBSD returns the mod time of the symlink's containing
19025 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19026 if test "$*" = "X"; then
19028 set X `ls -t $srcdir/configure conftest.file`
19030 rm -f conftest.file
19031 if test "$*" != "X $srcdir/configure conftest.file" \
19032 && test "$*" != "X conftest.file $srcdir/configure"; then
19034 # If neither matched, then we have a broken ls. This can happen
19035 # if, for instance, CONFIG_SHELL is bash and it inherits a
19036 # broken ls alias from the environment. This has actually
19037 # happened. Such a system could not be considered "sane".
19038 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19039 alias in your environment" >&5
19040 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19041 alias in your environment" >&2;}
19042 { (exit 1); exit 1; }; }
19045 test "$2" = conftest.file
19051 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19052 Check your system clock" >&5
19053 echo "$as_me: error: newly created file is older than distributed files!
19054 Check your system clock" >&2;}
19055 { (exit 1); exit 1; }; }
19057 echo "$as_me:$LINENO: result: yes" >&5
19058 echo "${ECHO_T}yes" >&6
19059 test "$program_prefix" != NONE &&
19060 program_transform_name="s,^,$program_prefix,;$program_transform_name"
19061 # Use a double $ so make ignores it.
19062 test "$program_suffix" != NONE &&
19063 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
19064 # Double any \ or $. echo might interpret backslashes.
19065 # By default was `s,x,x', remove it if useless.
19066 cat <<\_ACEOF >conftest.sed
19067 s/[\\$]/&&/g;s/;s,x,x,$//
19069 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
19072 # expand $ac_aux_dir to an absolute path
19073 am_aux_dir=`cd $ac_aux_dir && pwd`
19075 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19076 # Use eval to expand $SHELL
19077 if eval "$MISSING --run true"; then
19078 am_missing_run="$MISSING --run "
19081 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19082 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19085 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
19086 # We used to keeping the `.' as first argument, in order to
19087 # allow $(mkdir_p) to be used without argument. As in
19088 # $(mkdir_p) $(somedir)
19089 # where $(somedir) is conditionally defined. However this is wrong
19091 # 1. if the package is installed by a user who cannot write `.'
19092 # make install will fail,
19093 # 2. the above comment should most certainly read
19094 # $(mkdir_p) $(DESTDIR)$(somedir)
19095 # so it does not work when $(somedir) is undefined and
19096 # $(DESTDIR) is not.
19097 # To support the latter case, we have to write
19098 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
19099 # so the `.' trick is pointless.
19100 mkdir_p='mkdir -p --'
19102 # On NextStep and OpenStep, the `mkdir' command does not
19103 # recognize any option. It will interpret all options as
19104 # directories to create, and then abort because `.' already
19106 for d in ./-p ./--version;
19108 test -d $d && rmdir $d
19110 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
19111 if test -f "$ac_aux_dir/mkinstalldirs"; then
19112 mkdir_p='$(mkinstalldirs)'
19114 mkdir_p='$(install_sh) -d'
19118 for ac_prog in gawk mawk nawk awk
19120 # Extract the first word of "$ac_prog", so it can be a program name with args.
19121 set dummy $ac_prog; ac_word=$2
19122 echo "$as_me:$LINENO: checking for $ac_word" >&5
19123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19124 if test "${ac_cv_prog_AWK+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
19127 if test -n "$AWK"; then
19128 ac_cv_prog_AWK="$AWK" # Let the user override the test.
19130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19131 for as_dir in $PATH
19134 test -z "$as_dir" && as_dir=.
19135 for ac_exec_ext in '' $ac_executable_extensions; do
19136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19137 ac_cv_prog_AWK="$ac_prog"
19138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19146 AWK=$ac_cv_prog_AWK
19147 if test -n "$AWK"; then
19148 echo "$as_me:$LINENO: result: $AWK" >&5
19149 echo "${ECHO_T}$AWK" >&6
19151 echo "$as_me:$LINENO: result: no" >&5
19152 echo "${ECHO_T}no" >&6
19155 test -n "$AWK" && break
19158 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19159 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19160 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19161 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 cat >conftest.make <<\_ACEOF
19166 @echo 'ac_maketemp="$(MAKE)"'
19168 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19169 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19170 if test -n "$ac_maketemp"; then
19171 eval ac_cv_prog_make_${ac_make}_set=yes
19173 eval ac_cv_prog_make_${ac_make}_set=no
19175 rm -f conftest.make
19177 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19178 echo "$as_me:$LINENO: result: yes" >&5
19179 echo "${ECHO_T}yes" >&6
19182 echo "$as_me:$LINENO: result: no" >&5
19183 echo "${ECHO_T}no" >&6
19184 SET_MAKE="MAKE=${MAKE-make}"
19187 rm -rf .tst 2>/dev/null
19188 mkdir .tst 2>/dev/null
19189 if test -d .tst; then
19194 rmdir .tst 2>/dev/null
19196 DEPDIR="${am__leading_dot}deps"
19198 ac_config_commands="$ac_config_commands depfiles"
19201 am_make=${MAKE-make}
19202 cat > confinc << 'END'
19207 # If we don't find an include directive, just comment out the code.
19208 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19209 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
19213 # First try GNU make style include.
19214 echo "include confinc" > confmf
19215 # We grep out `Entering directory' and `Leaving directory'
19216 # messages which can occur if `w' ends up in MAKEFLAGS.
19217 # In particular we don't look at `^make:' because GNU make might
19218 # be invoked under some other name (usually "gmake"), in which
19219 # case it prints its new name instead of `make'.
19220 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19221 am__include=include
19225 # Now try BSD make style include.
19226 if test "$am__include" = "#"; then
19227 echo '.include "confinc"' > confmf
19228 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19229 am__include=.include
19236 echo "$as_me:$LINENO: result: $_am_result" >&5
19237 echo "${ECHO_T}$_am_result" >&6
19238 rm -f confinc confmf
19240 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
19241 if test "${enable_dependency_tracking+set}" = set; then
19242 enableval="$enable_dependency_tracking"
19245 if test "x$enable_dependency_tracking" != xno; then
19246 am_depcomp="$ac_aux_dir/depcomp"
19251 if test "x$enable_dependency_tracking" != xno; then
19261 # test to see if srcdir already configured
19262 if test "`cd $srcdir && pwd`" != "`pwd`" &&
19263 test -f $srcdir/config.status; then
19264 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19265 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19266 { (exit 1); exit 1; }; }
19269 # test whether we have cygpath
19270 if test -z "$CYGPATH_W"; then
19271 if (cygpath --version) >/dev/null 2>/dev/null; then
19272 CYGPATH_W='cygpath -w'
19279 # Define the identity of the package.
19284 cat >>confdefs.h <<_ACEOF
19285 #define PACKAGE "$PACKAGE"
19289 cat >>confdefs.h <<_ACEOF
19290 #define VERSION "$VERSION"
19293 # Some tools Automake needs.
19295 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19298 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19301 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19304 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19307 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19309 install_sh=${install_sh-"$am_aux_dir/install-sh"}
19311 # Installed binaries are usually stripped using `strip' when the user
19312 # run `make install-strip'. However `strip' might not be the right
19313 # tool to use in cross-compilation environments, therefore Automake
19314 # will honor the `STRIP' environment variable to overrule this program.
19315 if test "$cross_compiling" != no; then
19316 if test -n "$ac_tool_prefix"; then
19317 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19318 set dummy ${ac_tool_prefix}strip; ac_word=$2
19319 echo "$as_me:$LINENO: checking for $ac_word" >&5
19320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19321 if test "${ac_cv_prog_STRIP+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 if test -n "$STRIP"; then
19325 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19328 for as_dir in $PATH
19331 test -z "$as_dir" && as_dir=.
19332 for ac_exec_ext in '' $ac_executable_extensions; do
19333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19334 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19343 STRIP=$ac_cv_prog_STRIP
19344 if test -n "$STRIP"; then
19345 echo "$as_me:$LINENO: result: $STRIP" >&5
19346 echo "${ECHO_T}$STRIP" >&6
19348 echo "$as_me:$LINENO: result: no" >&5
19349 echo "${ECHO_T}no" >&6
19353 if test -z "$ac_cv_prog_STRIP"; then
19355 # Extract the first word of "strip", so it can be a program name with args.
19356 set dummy strip; ac_word=$2
19357 echo "$as_me:$LINENO: checking for $ac_word" >&5
19358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19359 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 if test -n "$ac_ct_STRIP"; then
19363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19366 for as_dir in $PATH
19369 test -z "$as_dir" && as_dir=.
19370 for ac_exec_ext in '' $ac_executable_extensions; do
19371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19372 ac_cv_prog_ac_ct_STRIP="strip"
19373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19379 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
19382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19383 if test -n "$ac_ct_STRIP"; then
19384 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19385 echo "${ECHO_T}$ac_ct_STRIP" >&6
19387 echo "$as_me:$LINENO: result: no" >&5
19388 echo "${ECHO_T}no" >&6
19393 STRIP="$ac_cv_prog_STRIP"
19397 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
19399 # We need awk for the "check" target. The system "awk" is bad on
19401 # Always define AMTAR for backward compatibility.
19403 AMTAR=${AMTAR-"${am_missing_run}tar"}
19405 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19410 depcc="$CC" am_compiler_list=
19412 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19413 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19414 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19417 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19418 # We make a subdir and do the tests there. Otherwise we can end up
19419 # making bogus files that we don't know about and never remove. For
19420 # instance it was reported that on HP-UX the gcc test will end up
19421 # making a dummy file named `D' -- because `-MD' means `put the output
19424 # Copy depcomp to subdir because otherwise we won't find it if we're
19425 # using a relative directory.
19426 cp "$am_depcomp" conftest.dir
19428 # We will build objects and dependencies in a subdirectory because
19429 # it helps to detect inapplicable dependency modes. For instance
19430 # both Tru64's cc and ICC support -MD to output dependencies as a
19431 # side effect of compilation, but ICC will put the dependencies in
19432 # the current directory while Tru64 will put them in the object
19436 am_cv_CC_dependencies_compiler_type=none
19437 if test "$am_compiler_list" = ""; then
19438 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19440 for depmode in $am_compiler_list; do
19441 # Setup a source with many dependencies, because some compilers
19442 # like to wrap large dependency lists on column 80 (with \), and
19443 # we should not choose a depcomp mode which is confused by this.
19445 # We need to recreate these files for each test, as the compiler may
19446 # overwrite some of them when testing with obscure command lines.
19447 # This happens at least with the AIX C compiler.
19449 for i in 1 2 3 4 5 6; do
19450 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19451 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19452 # Solaris 8's {/usr,}/bin/sh.
19453 touch sub/conftst$i.h
19455 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19459 # after this tag, mechanisms are not by side-effect, so they'll
19460 # only be used when explicitly requested
19461 if test "x$enable_dependency_tracking" = xyes; then
19469 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19470 # mode. It turns out that the SunPro C++ compiler does not properly
19471 # handle `-M -o', and we need to detect this.
19472 if depmode=$depmode \
19473 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19474 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19475 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19476 >/dev/null 2>conftest.err &&
19477 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19478 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19479 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19480 # icc doesn't choke on unknown options, it will just issue warnings
19481 # or remarks (even with -Werror). So we grep stderr for any message
19482 # that says an option was ignored or not supported.
19483 # When given -MP, icc 7.0 and 7.1 complain thusly:
19484 # icc: Command line warning: ignoring option '-M'; no argument required
19485 # The diagnosis changed in icc 8.0:
19486 # icc: Command line remark: option '-MP' not supported
19487 if (grep 'ignoring option' conftest.err ||
19488 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19489 am_cv_CC_dependencies_compiler_type=$depmode
19496 rm -rf conftest.dir
19498 am_cv_CC_dependencies_compiler_type=none
19502 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19503 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19504 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19509 test "x$enable_dependency_tracking" != xno \
19510 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19511 am__fastdepCC_TRUE=
19512 am__fastdepCC_FALSE='#'
19514 am__fastdepCC_TRUE='#'
19515 am__fastdepCC_FALSE=
19519 depcc="$CXX" am_compiler_list=
19521 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19522 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19523 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19527 # We make a subdir and do the tests there. Otherwise we can end up
19528 # making bogus files that we don't know about and never remove. For
19529 # instance it was reported that on HP-UX the gcc test will end up
19530 # making a dummy file named `D' -- because `-MD' means `put the output
19533 # Copy depcomp to subdir because otherwise we won't find it if we're
19534 # using a relative directory.
19535 cp "$am_depcomp" conftest.dir
19537 # We will build objects and dependencies in a subdirectory because
19538 # it helps to detect inapplicable dependency modes. For instance
19539 # both Tru64's cc and ICC support -MD to output dependencies as a
19540 # side effect of compilation, but ICC will put the dependencies in
19541 # the current directory while Tru64 will put them in the object
19545 am_cv_CXX_dependencies_compiler_type=none
19546 if test "$am_compiler_list" = ""; then
19547 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19549 for depmode in $am_compiler_list; do
19550 # Setup a source with many dependencies, because some compilers
19551 # like to wrap large dependency lists on column 80 (with \), and
19552 # we should not choose a depcomp mode which is confused by this.
19554 # We need to recreate these files for each test, as the compiler may
19555 # overwrite some of them when testing with obscure command lines.
19556 # This happens at least with the AIX C compiler.
19558 for i in 1 2 3 4 5 6; do
19559 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19560 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19561 # Solaris 8's {/usr,}/bin/sh.
19562 touch sub/conftst$i.h
19564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19568 # after this tag, mechanisms are not by side-effect, so they'll
19569 # only be used when explicitly requested
19570 if test "x$enable_dependency_tracking" = xyes; then
19578 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19579 # mode. It turns out that the SunPro C++ compiler does not properly
19580 # handle `-M -o', and we need to detect this.
19581 if depmode=$depmode \
19582 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19583 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19584 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19585 >/dev/null 2>conftest.err &&
19586 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19587 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19588 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19589 # icc doesn't choke on unknown options, it will just issue warnings
19590 # or remarks (even with -Werror). So we grep stderr for any message
19591 # that says an option was ignored or not supported.
19592 # When given -MP, icc 7.0 and 7.1 complain thusly:
19593 # icc: Command line warning: ignoring option '-M'; no argument required
19594 # The diagnosis changed in icc 8.0:
19595 # icc: Command line remark: option '-MP' not supported
19596 if (grep 'ignoring option' conftest.err ||
19597 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19598 am_cv_CXX_dependencies_compiler_type=$depmode
19605 rm -rf conftest.dir
19607 am_cv_CXX_dependencies_compiler_type=none
19611 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19612 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19613 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19618 test "x$enable_dependency_tracking" != xno \
19619 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19620 am__fastdepCXX_TRUE=
19621 am__fastdepCXX_FALSE='#'
19623 am__fastdepCXX_TRUE='#'
19624 am__fastdepCXX_FALSE=
19630 echo "$as_me:$LINENO: checking for library containing dlsym" >&5
19631 echo $ECHO_N "checking for library containing dlsym... $ECHO_C" >&6
19632 if test "${ac_cv_search_dlsym+set}" = set; then
19633 echo $ECHO_N "(cached) $ECHO_C" >&6
19635 ac_func_search_save_LIBS=$LIBS
19636 ac_cv_search_dlsym=no
19637 cat >conftest.$ac_ext <<_ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19644 /* Override any gcc2 internal prototype to avoid an error. */
19648 /* We use char because int might match the return type of a gcc2
19649 builtin and then its argument prototype would still apply. */
19659 rm -f conftest.$ac_objext conftest$ac_exeext
19660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19661 (eval $ac_link) 2>conftest.er1
19663 grep -v '^ *+' conftest.er1 >conftest.err
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } &&
19668 { ac_try='test -z "$ac_c_werror_flag"
19669 || test ! -s conftest.err'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; } &&
19675 { ac_try='test -s conftest$ac_exeext'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; }; then
19681 ac_cv_search_dlsym="none required"
19683 echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19687 rm -f conftest.err conftest.$ac_objext \
19688 conftest$ac_exeext conftest.$ac_ext
19689 if test "$ac_cv_search_dlsym" = no; then
19690 for ac_lib in dl; do
19691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19692 cat >conftest.$ac_ext <<_ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19699 /* Override any gcc2 internal prototype to avoid an error. */
19703 /* We use char because int might match the return type of a gcc2
19704 builtin and then its argument prototype would still apply. */
19714 rm -f conftest.$ac_objext conftest$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716 (eval $ac_link) 2>conftest.er1
19718 grep -v '^ *+' conftest.er1 >conftest.err
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -z "$ac_c_werror_flag"
19724 || test ! -s conftest.err'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest$ac_exeext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_search_dlsym="-l$ac_lib"
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19743 rm -f conftest.err conftest.$ac_objext \
19744 conftest$ac_exeext conftest.$ac_ext
19747 LIBS=$ac_func_search_save_LIBS
19749 echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
19750 echo "${ECHO_T}$ac_cv_search_dlsym" >&6
19751 if test "$ac_cv_search_dlsym" != no; then
19752 test "$ac_cv_search_dlsym" = "none required" || LIBS="$ac_cv_search_dlsym $LIBS"
19756 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19757 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
19758 if test "${ac_cv_search_clock_gettime+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 ac_func_search_save_LIBS=$LIBS
19762 ac_cv_search_clock_gettime=no
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19770 /* Override any gcc2 internal prototype to avoid an error. */
19774 /* We use char because int might match the return type of a gcc2
19775 builtin and then its argument prototype would still apply. */
19776 char clock_gettime ();
19785 rm -f conftest.$ac_objext conftest$ac_exeext
19786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19787 (eval $ac_link) 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -z "$ac_c_werror_flag"
19795 || test ! -s conftest.err'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest$ac_exeext'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 ac_cv_search_clock_gettime="none required"
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19813 rm -f conftest.err conftest.$ac_objext \
19814 conftest$ac_exeext conftest.$ac_ext
19815 if test "$ac_cv_search_clock_gettime" = no; then
19816 for ac_lib in rt; do
19817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19818 cat >conftest.$ac_ext <<_ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19825 /* Override any gcc2 internal prototype to avoid an error. */
19829 /* We use char because int might match the return type of a gcc2
19830 builtin and then its argument prototype would still apply. */
19831 char clock_gettime ();
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19842 (eval $ac_link) 2>conftest.er1
19844 grep -v '^ *+' conftest.er1 >conftest.err
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
19849 { ac_try='test -z "$ac_c_werror_flag"
19850 || test ! -s conftest.err'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; } &&
19856 { ac_try='test -s conftest$ac_exeext'
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 ac_cv_search_clock_gettime="-l$ac_lib"
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19869 rm -f conftest.err conftest.$ac_objext \
19870 conftest$ac_exeext conftest.$ac_ext
19873 LIBS=$ac_func_search_save_LIBS
19875 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19876 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
19877 if test "$ac_cv_search_clock_gettime" != no; then
19878 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
19883 # Checks for header files.
19884 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19885 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19886 if test "${ac_cv_header_stdc+set}" = set; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19889 cat >conftest.$ac_ext <<_ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h. */
19895 #include <stdlib.h>
19896 #include <stdarg.h>
19897 #include <string.h>
19908 rm -f conftest.$ac_objext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910 (eval $ac_compile) 2>conftest.er1
19912 grep -v '^ *+' conftest.er1 >conftest.err
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest.$ac_objext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 ac_cv_header_stdc=yes
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_cv_header_stdc=no
19937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19939 if test $ac_cv_header_stdc = yes; then
19940 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19941 cat >conftest.$ac_ext <<_ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 #include <string.h>
19950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19951 $EGREP "memchr" >/dev/null 2>&1; then
19954 ac_cv_header_stdc=no
19960 if test $ac_cv_header_stdc = yes; then
19961 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 #include <stdlib.h>
19971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19972 $EGREP "free" >/dev/null 2>&1; then
19975 ac_cv_header_stdc=no
19981 if test $ac_cv_header_stdc = yes; then
19982 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19983 if test "$cross_compiling" = yes; then
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19993 #if ((' ' & 0x0FF) == 0x020)
19994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19997 # define ISLOWER(c) \
19998 (('a' <= (c) && (c) <= 'i') \
19999 || ('j' <= (c) && (c) <= 'r') \
20000 || ('s' <= (c) && (c) <= 'z'))
20001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20009 for (i = 0; i < 256; i++)
20010 if (XOR (islower (i), ISLOWER (i))
20011 || toupper (i) != TOUPPER (i))
20016 rm -f conftest$ac_exeext
20017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20018 (eval $ac_link) 2>&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; }; then
20029 echo "$as_me: program exited with status $ac_status" >&5
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ( exit $ac_status )
20034 ac_cv_header_stdc=no
20036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20040 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20041 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20042 if test $ac_cv_header_stdc = yes; then
20044 cat >>confdefs.h <<\_ACEOF
20045 #define STDC_HEADERS 1
20050 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20051 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20052 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 #include <sys/types.h>
20062 #include <sys/wait.h>
20063 #ifndef WEXITSTATUS
20064 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20067 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20075 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20080 rm -f conftest.$ac_objext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082 (eval $ac_compile) 2>conftest.er1
20084 grep -v '^ *+' conftest.er1 >conftest.err
20086 cat conftest.err >&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } &&
20089 { ac_try='test -z "$ac_c_werror_flag"
20090 || test ! -s conftest.err'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; } &&
20096 { ac_try='test -s conftest.$ac_objext'
20097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098 (eval $ac_try) 2>&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }; }; then
20102 ac_cv_header_sys_wait_h=yes
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 ac_cv_header_sys_wait_h=no
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20111 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20112 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20113 if test $ac_cv_header_sys_wait_h = yes; then
20115 cat >>confdefs.h <<\_ACEOF
20116 #define HAVE_SYS_WAIT_H 1
20125 for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h
20127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20129 echo "$as_me:$LINENO: checking for $ac_header" >&5
20130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20137 # Is the header compilable?
20138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20140 cat >conftest.$ac_ext <<_ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146 $ac_includes_default
20147 #include <$ac_header>
20149 rm -f conftest.$ac_objext
20150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20151 (eval $ac_compile) 2>conftest.er1
20153 grep -v '^ *+' conftest.er1 >conftest.err
20155 cat conftest.err >&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } &&
20158 { ac_try='test -z "$ac_c_werror_flag"
20159 || test ! -s conftest.err'
20160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161 (eval $ac_try) 2>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; } &&
20165 { ac_try='test -s conftest.$ac_objext'
20166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167 (eval $ac_try) 2>&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); }; }; then
20171 ac_header_compiler=yes
20173 echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20176 ac_header_compiler=no
20178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20180 echo "${ECHO_T}$ac_header_compiler" >&6
20182 # Is the header present?
20183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20185 cat >conftest.$ac_ext <<_ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 #include <$ac_header>
20193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20196 grep -v '^ *+' conftest.er1 >conftest.err
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } >/dev/null; then
20201 if test -s conftest.err; then
20202 ac_cpp_err=$ac_c_preproc_warn_flag
20203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20210 if test -z "$ac_cpp_err"; then
20211 ac_header_preproc=yes
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20216 ac_header_preproc=no
20218 rm -f conftest.err conftest.$ac_ext
20219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20220 echo "${ECHO_T}$ac_header_preproc" >&6
20222 # So? What about this header?
20223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20229 ac_header_preproc=yes
20232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20246 ## ----------------------------------------------- ##
20247 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
20248 ## ----------------------------------------------- ##
20251 sed "s/^/$as_me: WARNING: /" >&2
20254 echo "$as_me:$LINENO: checking for $ac_header" >&5
20255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 eval "$as_ac_Header=\$ac_header_preproc"
20261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20266 cat >>confdefs.h <<_ACEOF
20267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20275 # Checks for typedefs, structures, and compiler characteristics.
20276 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20277 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20278 if test "${ac_cv_c_const+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20281 cat >conftest.$ac_ext <<_ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20291 /* FIXME: Include the comments suggested by Paul. */
20292 #ifndef __cplusplus
20293 /* Ultrix mips cc rejects this. */
20294 typedef int charset[2];
20296 /* SunOS 4.1.1 cc rejects this. */
20297 char const *const *ccp;
20299 /* NEC SVR4.0.2 mips cc rejects this. */
20300 struct point {int x, y;};
20301 static struct point const zero = {0,0};
20302 /* AIX XL C 1.02.0.0 rejects this.
20303 It does not let you subtract one const X* pointer from another in
20304 an arm of an if-expression whose if-part is not a constant
20306 const char *g = "string";
20307 ccp = &g + (g ? g-g : 0);
20308 /* HPUX 7.0 cc rejects these. */
20311 ccp = (char const *const *) p;
20312 { /* SCO 3.2v4 cc rejects this. */
20314 char const *s = 0 ? (char *) 0 : (char const *) 0;
20318 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20319 int x[] = {25, 17};
20320 const int *foo = &x[0];
20323 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20324 typedef const int *iptr;
20328 { /* AIX XL C 1.02.0.0 rejects this saying
20329 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20330 struct s { int j; const int *ap[3]; };
20331 struct s *b; b->j = 5;
20333 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20334 const int foo = 10;
20342 rm -f conftest.$ac_objext
20343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20344 (eval $ac_compile) 2>conftest.er1
20346 grep -v '^ *+' conftest.er1 >conftest.err
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } &&
20351 { ac_try='test -z "$ac_c_werror_flag"
20352 || test ! -s conftest.err'
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; } &&
20358 { ac_try='test -s conftest.$ac_objext'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20373 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20374 echo "${ECHO_T}$ac_cv_c_const" >&6
20375 if test $ac_cv_c_const = no; then
20377 cat >>confdefs.h <<\_ACEOF
20383 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20384 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20385 if test "${ac_cv_type_uid_t+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 #include <sys/types.h>
20397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20398 $EGREP "uid_t" >/dev/null 2>&1; then
20399 ac_cv_type_uid_t=yes
20401 ac_cv_type_uid_t=no
20406 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20407 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20408 if test $ac_cv_type_uid_t = no; then
20410 cat >>confdefs.h <<\_ACEOF
20415 cat >>confdefs.h <<\_ACEOF
20421 echo "$as_me:$LINENO: checking for pid_t" >&5
20422 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20423 if test "${ac_cv_type_pid_t+set}" = set; then
20424 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 cat >conftest.$ac_ext <<_ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20432 $ac_includes_default
20438 if (sizeof (pid_t))
20444 rm -f conftest.$ac_objext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20446 (eval $ac_compile) 2>conftest.er1
20448 grep -v '^ *+' conftest.er1 >conftest.err
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } &&
20453 { ac_try='test -z "$ac_c_werror_flag"
20454 || test ! -s conftest.err'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try='test -s conftest.$ac_objext'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ac_cv_type_pid_t=yes
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ac_cv_type_pid_t=no
20473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20475 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20476 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20477 if test $ac_cv_type_pid_t = yes; then
20481 cat >>confdefs.h <<_ACEOF
20487 echo "$as_me:$LINENO: checking for size_t" >&5
20488 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20489 if test "${ac_cv_type_size_t+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 $ac_includes_default
20504 if (sizeof (size_t))
20510 rm -f conftest.$ac_objext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512 (eval $ac_compile) 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag"
20520 || test ! -s conftest.err'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest.$ac_objext'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_cv_type_size_t=yes
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_cv_type_size_t=no
20539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20541 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20542 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20543 if test $ac_cv_type_size_t = yes; then
20547 cat >>confdefs.h <<_ACEOF
20548 #define size_t unsigned
20553 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20554 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
20555 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20558 cat >conftest.$ac_ext <<_ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h. */
20564 $ac_includes_default
20568 static struct stat ac_aggr;
20569 if (ac_aggr.st_rdev)
20575 rm -f conftest.$ac_objext
20576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20577 (eval $ac_compile) 2>conftest.er1
20579 grep -v '^ *+' conftest.er1 >conftest.err
20581 cat conftest.err >&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); } &&
20584 { ac_try='test -z "$ac_c_werror_flag"
20585 || test ! -s conftest.err'
20586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587 (eval $ac_try) 2>&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try='test -s conftest.$ac_objext'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; }; then
20597 ac_cv_member_struct_stat_st_rdev=yes
20599 echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20602 cat >conftest.$ac_ext <<_ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 $ac_includes_default
20612 static struct stat ac_aggr;
20613 if (sizeof ac_aggr.st_rdev)
20619 rm -f conftest.$ac_objext
20620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621 (eval $ac_compile) 2>conftest.er1
20623 grep -v '^ *+' conftest.er1 >conftest.err
20625 cat conftest.err >&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } &&
20628 { ac_try='test -z "$ac_c_werror_flag"
20629 || test ! -s conftest.err'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; } &&
20635 { ac_try='test -s conftest.$ac_objext'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 ac_cv_member_struct_stat_st_rdev=yes
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20646 ac_cv_member_struct_stat_st_rdev=no
20648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20652 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20653 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
20654 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20656 cat >>confdefs.h <<_ACEOF
20657 #define HAVE_STRUCT_STAT_ST_RDEV 1
20664 echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
20665 echo $ECHO_N "checking for struct ipc_perm.__key... $ECHO_C" >&6
20666 if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 cat >conftest.$ac_ext <<_ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h. */
20676 #include <sys/types.h>
20677 #include <sys/ipc.h>
20683 static struct ipc_perm ac_aggr;
20690 rm -f conftest.$ac_objext
20691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20692 (eval $ac_compile) 2>conftest.er1
20694 grep -v '^ *+' conftest.er1 >conftest.err
20696 cat conftest.err >&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } &&
20699 { ac_try='test -z "$ac_c_werror_flag"
20700 || test ! -s conftest.err'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; } &&
20706 { ac_try='test -s conftest.$ac_objext'
20707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708 (eval $ac_try) 2>&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
20712 ac_cv_member_struct_ipc_perm___key=yes
20714 echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20717 cat >conftest.$ac_ext <<_ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20724 #include <sys/types.h>
20725 #include <sys/ipc.h>
20731 static struct ipc_perm ac_aggr;
20732 if (sizeof ac_aggr.__key)
20738 rm -f conftest.$ac_objext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740 (eval $ac_compile) 2>conftest.er1
20742 grep -v '^ *+' conftest.er1 >conftest.err
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_c_werror_flag"
20748 || test ! -s conftest.err'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest.$ac_objext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 ac_cv_member_struct_ipc_perm___key=yes
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 ac_cv_member_struct_ipc_perm___key=no
20767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20771 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
20772 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___key" >&6
20773 if test $ac_cv_member_struct_ipc_perm___key = yes; then
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_IPC_PERM___KEY
20782 echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
20783 echo $ECHO_N "checking for struct ipc_perm.__seq... $ECHO_C" >&6
20784 if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 cat >conftest.$ac_ext <<_ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20794 #include <sys/types.h>
20795 #include <sys/ipc.h>
20801 static struct ipc_perm ac_aggr;
20808 rm -f conftest.$ac_objext
20809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20810 (eval $ac_compile) 2>conftest.er1
20812 grep -v '^ *+' conftest.er1 >conftest.err
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
20817 { ac_try='test -z "$ac_c_werror_flag"
20818 || test ! -s conftest.err'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; } &&
20824 { ac_try='test -s conftest.$ac_objext'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; }; then
20830 ac_cv_member_struct_ipc_perm___seq=yes
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 cat >conftest.$ac_ext <<_ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20842 #include <sys/types.h>
20843 #include <sys/ipc.h>
20849 static struct ipc_perm ac_aggr;
20850 if (sizeof ac_aggr.__seq)
20856 rm -f conftest.$ac_objext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20858 (eval $ac_compile) 2>conftest.er1
20860 grep -v '^ *+' conftest.er1 >conftest.err
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try='test -z "$ac_c_werror_flag"
20866 || test ! -s conftest.err'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try='test -s conftest.$ac_objext'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878 ac_cv_member_struct_ipc_perm___seq=yes
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_cv_member_struct_ipc_perm___seq=no
20885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20889 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
20890 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___seq" >&6
20891 if test $ac_cv_member_struct_ipc_perm___seq = yes; then
20893 cat >>confdefs.h <<\_ACEOF
20894 #define HAVE_IPC_PERM___SEQ
20900 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20901 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20902 if test "${ac_cv_header_time+set}" = set; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 cat >conftest.$ac_ext <<_ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 #include <sys/types.h>
20912 #include <sys/time.h>
20918 if ((struct tm *) 0)
20924 rm -f conftest.$ac_objext
20925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20926 (eval $ac_compile) 2>conftest.er1
20928 grep -v '^ *+' conftest.er1 >conftest.err
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
20933 { ac_try='test -z "$ac_c_werror_flag"
20934 || test ! -s conftest.err'
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; } &&
20940 { ac_try='test -s conftest.$ac_objext'
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; }; then
20946 ac_cv_header_time=yes
20948 echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20951 ac_cv_header_time=no
20953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20955 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20956 echo "${ECHO_T}$ac_cv_header_time" >&6
20957 if test $ac_cv_header_time = yes; then
20959 cat >>confdefs.h <<\_ACEOF
20960 #define TIME_WITH_SYS_TIME 1
20965 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20966 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20967 if test "${ac_cv_struct_tm+set}" = set; then
20968 echo $ECHO_N "(cached) $ECHO_C" >&6
20970 cat >conftest.$ac_ext <<_ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 #include <sys/types.h>
20982 struct tm *tp; tp->tm_sec;
20987 rm -f conftest.$ac_objext
20988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20989 (eval $ac_compile) 2>conftest.er1
20991 grep -v '^ *+' conftest.er1 >conftest.err
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } &&
20996 { ac_try='test -z "$ac_c_werror_flag"
20997 || test ! -s conftest.err'
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; } &&
21003 { ac_try='test -s conftest.$ac_objext'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 ac_cv_struct_tm=time.h
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 ac_cv_struct_tm=sys/time.h
21016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21018 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21019 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21020 if test $ac_cv_struct_tm = sys/time.h; then
21022 cat >>confdefs.h <<\_ACEOF
21023 #define TM_IN_SYS_TIME 1
21029 # Checks for library functions.
21031 for ac_header in unistd.h
21033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21035 echo "$as_me:$LINENO: checking for $ac_header" >&5
21036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21043 # Is the header compilable?
21044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 $ac_includes_default
21053 #include <$ac_header>
21055 rm -f conftest.$ac_objext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057 (eval $ac_compile) 2>conftest.er1
21059 grep -v '^ *+' conftest.er1 >conftest.err
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try='test -z "$ac_c_werror_flag"
21065 || test ! -s conftest.err'
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); }; } &&
21071 { ac_try='test -s conftest.$ac_objext'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21077 ac_header_compiler=yes
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21082 ac_header_compiler=no
21084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21086 echo "${ECHO_T}$ac_header_compiler" >&6
21088 # Is the header present?
21089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 #include <$ac_header>
21099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } >/dev/null; then
21107 if test -s conftest.err; then
21108 ac_cpp_err=$ac_c_preproc_warn_flag
21109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21116 if test -z "$ac_cpp_err"; then
21117 ac_header_preproc=yes
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ac_header_preproc=no
21124 rm -f conftest.err conftest.$ac_ext
21125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21126 echo "${ECHO_T}$ac_header_preproc" >&6
21128 # So? What about this header?
21129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21135 ac_header_preproc=yes
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21152 ## ----------------------------------------------- ##
21153 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21154 ## ----------------------------------------------- ##
21157 sed "s/^/$as_me: WARNING: /" >&2
21160 echo "$as_me:$LINENO: checking for $ac_header" >&5
21161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21165 eval "$as_ac_Header=\$ac_header_preproc"
21167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21172 cat >>confdefs.h <<_ACEOF
21173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21180 echo "$as_me:$LINENO: checking for working chown" >&5
21181 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21182 if test "${ac_cv_func_chown_works+set}" = set; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21185 if test "$cross_compiling" = yes; then
21186 ac_cv_func_chown_works=no
21188 cat >conftest.$ac_ext <<_ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194 $ac_includes_default
21200 char *f = "conftest.chown";
21201 struct stat before, after;
21203 if (creat (f, 0600) < 0)
21205 if (stat (f, &before) < 0)
21207 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21209 if (stat (f, &after) < 0)
21211 exit ((before.st_uid == after.st_uid
21212 && before.st_gid == after.st_gid) ? 0 : 1);
21218 rm -f conftest$ac_exeext
21219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21220 (eval $ac_link) 2>&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_cv_func_chown_works=yes
21231 echo "$as_me: program exited with status $ac_status" >&5
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21235 ( exit $ac_status )
21236 ac_cv_func_chown_works=no
21238 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21240 rm -f conftest.chown
21243 echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21244 echo "${ECHO_T}$ac_cv_func_chown_works" >&6
21245 if test $ac_cv_func_chown_works = yes; then
21247 cat >>confdefs.h <<\_ACEOF
21248 #define HAVE_CHOWN 1
21255 for ac_header in unistd.h vfork.h
21257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21259 echo "$as_me:$LINENO: checking for $ac_header" >&5
21260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21267 # Is the header compilable?
21268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21270 cat >conftest.$ac_ext <<_ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21276 $ac_includes_default
21277 #include <$ac_header>
21279 rm -f conftest.$ac_objext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21281 (eval $ac_compile) 2>conftest.er1
21283 grep -v '^ *+' conftest.er1 >conftest.err
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } &&
21288 { ac_try='test -z "$ac_c_werror_flag"
21289 || test ! -s conftest.err'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; } &&
21295 { ac_try='test -s conftest.$ac_objext'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; }; then
21301 ac_header_compiler=yes
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 ac_header_compiler=no
21308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21310 echo "${ECHO_T}$ac_header_compiler" >&6
21312 # Is the header present?
21313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21315 cat >conftest.$ac_ext <<_ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321 #include <$ac_header>
21323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21326 grep -v '^ *+' conftest.er1 >conftest.err
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } >/dev/null; then
21331 if test -s conftest.err; then
21332 ac_cpp_err=$ac_c_preproc_warn_flag
21333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21340 if test -z "$ac_cpp_err"; then
21341 ac_header_preproc=yes
21343 echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21346 ac_header_preproc=no
21348 rm -f conftest.err conftest.$ac_ext
21349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21350 echo "${ECHO_T}$ac_header_preproc" >&6
21352 # So? What about this header?
21353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21359 ac_header_preproc=yes
21362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21376 ## ----------------------------------------------- ##
21377 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21378 ## ----------------------------------------------- ##
21381 sed "s/^/$as_me: WARNING: /" >&2
21384 echo "$as_me:$LINENO: checking for $ac_header" >&5
21385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 eval "$as_ac_Header=\$ac_header_preproc"
21391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21396 cat >>confdefs.h <<_ACEOF
21397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21406 for ac_func in fork vfork
21408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21409 echo "$as_me:$LINENO: checking for $ac_func" >&5
21410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21411 if eval "test \"\${$as_ac_var+set}\" = set"; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21422 #define $ac_func innocuous_$ac_func
21424 /* System header to define __stub macros and hopefully few prototypes,
21425 which can conflict with char $ac_func (); below.
21426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21427 <limits.h> exists even on freestanding compilers. */
21430 # include <limits.h>
21432 # include <assert.h>
21437 /* Override any gcc2 internal prototype to avoid an error. */
21442 /* We use char because int might match the return type of a gcc2
21443 builtin and then its argument prototype would still apply. */
21445 /* The GNU C library defines this for functions which it implements
21446 to always fail with ENOSYS. Some functions are actually named
21447 something starting with __ and the normal name is an alias. */
21448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21451 char (*f) () = $ac_func;
21460 return f != $ac_func;
21465 rm -f conftest.$ac_objext conftest$ac_exeext
21466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21467 (eval $ac_link) 2>conftest.er1
21469 grep -v '^ *+' conftest.er1 >conftest.err
21471 cat conftest.err >&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } &&
21474 { ac_try='test -z "$ac_c_werror_flag"
21475 || test ! -s conftest.err'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; } &&
21481 { ac_try='test -s conftest$ac_exeext'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21487 eval "$as_ac_var=yes"
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492 eval "$as_ac_var=no"
21494 rm -f conftest.err conftest.$ac_objext \
21495 conftest$ac_exeext conftest.$ac_ext
21497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21499 if test `eval echo '${'$as_ac_var'}'` = yes; then
21500 cat >>confdefs.h <<_ACEOF
21501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21507 if test "x$ac_cv_func_fork" = xyes; then
21508 echo "$as_me:$LINENO: checking for working fork" >&5
21509 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21510 if test "${ac_cv_func_fork_works+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 if test "$cross_compiling" = yes; then
21514 ac_cv_func_fork_works=cross
21516 cat >conftest.$ac_ext <<_ACEOF
21517 /* By Ruediger Kuhlmann. */
21518 #include <sys/types.h>
21520 # include <unistd.h>
21522 /* Some systems only have a dummy stub for fork() */
21530 rm -f conftest$ac_exeext
21531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532 (eval $ac_link) 2>&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 ac_cv_func_fork_works=yes
21543 echo "$as_me: program exited with status $ac_status" >&5
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 ( exit $ac_status )
21548 ac_cv_func_fork_works=no
21550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21553 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21554 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21557 ac_cv_func_fork_works=$ac_cv_func_fork
21559 if test "x$ac_cv_func_fork_works" = xcross; then
21561 *-*-amigaos* | *-*-msdosdjgpp*)
21562 # Override, as these systems have only a dummy fork() stub
21563 ac_cv_func_fork_works=no
21566 ac_cv_func_fork_works=yes
21569 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21570 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21572 ac_cv_func_vfork_works=$ac_cv_func_vfork
21573 if test "x$ac_cv_func_vfork" = xyes; then
21574 echo "$as_me:$LINENO: checking for working vfork" >&5
21575 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21576 if test "${ac_cv_func_vfork_works+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 if test "$cross_compiling" = yes; then
21580 ac_cv_func_vfork_works=cross
21582 cat >conftest.$ac_ext <<_ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 /* Thanks to Paul Eggert for this test. */
21590 #include <stdlib.h>
21591 #include <sys/types.h>
21592 #include <sys/stat.h>
21593 #include <sys/wait.h>
21595 # include <unistd.h>
21598 # include <vfork.h>
21600 /* On some sparc systems, changes by the child to local and incoming
21601 argument registers are propagated back to the parent. The compiler
21602 is told about this with #include <vfork.h>, but some compilers
21603 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21604 static variable whose address is put into a register that is
21605 clobbered by the vfork. */
21608 sparc_address_test (int arg)
21610 sparc_address_test (arg) int arg;
21613 static pid_t child;
21631 pid_t parent = getpid ();
21634 sparc_address_test (0);
21639 /* Here is another test for sparc vfork register problems. This
21640 test uses lots of local variables, at least as many local
21641 variables as main has allocated so far including compiler
21642 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21643 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21644 reuse the register of parent for one of the local variables,
21645 since it will think that parent can't possibly be used any more
21646 in this routine. Assigning to the local variable will thus
21647 munge parent in the parent process. */
21649 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21650 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21651 /* Convince the compiler that p..p7 are live; otherwise, it might
21652 use the same hardware register for all 8 local variables. */
21653 if (p != p1 || p != p2 || p != p3 || p != p4
21654 || p != p5 || p != p6 || p != p7)
21657 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21658 from child file descriptors. If the child closes a descriptor
21659 before it execs or exits, this munges the parent's descriptor
21660 as well. Test for this by closing stdout in the child. */
21661 _exit(close(fileno(stdout)) != 0);
21666 while (wait(&status) != child)
21669 /* Was there some problem with vforking? */
21672 /* Did the child fail? (This shouldn't happen.) */
21675 /* Did the vfork/compiler bug occur? */
21676 || parent != getpid()
21678 /* Did the file descriptor bug occur? */
21679 || fstat(fileno(stdout), &st) != 0
21684 rm -f conftest$ac_exeext
21685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21686 (eval $ac_link) 2>&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; }; then
21695 ac_cv_func_vfork_works=yes
21697 echo "$as_me: program exited with status $ac_status" >&5
21698 echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 ( exit $ac_status )
21702 ac_cv_func_vfork_works=no
21704 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21707 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21708 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21711 if test "x$ac_cv_func_fork_works" = xcross; then
21712 ac_cv_func_vfork_works=$ac_cv_func_vfork
21713 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21714 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21717 if test "x$ac_cv_func_vfork_works" = xyes; then
21719 cat >>confdefs.h <<\_ACEOF
21720 #define HAVE_WORKING_VFORK 1
21725 cat >>confdefs.h <<\_ACEOF
21730 if test "x$ac_cv_func_fork_works" = xyes; then
21732 cat >>confdefs.h <<\_ACEOF
21733 #define HAVE_WORKING_FORK 1
21739 for ac_header in stdlib.h
21741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21743 echo "$as_me:$LINENO: checking for $ac_header" >&5
21744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21751 # Is the header compilable?
21752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21754 cat >conftest.$ac_ext <<_ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21760 $ac_includes_default
21761 #include <$ac_header>
21763 rm -f conftest.$ac_objext
21764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21765 (eval $ac_compile) 2>conftest.er1
21767 grep -v '^ *+' conftest.er1 >conftest.err
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } &&
21772 { ac_try='test -z "$ac_c_werror_flag"
21773 || test ! -s conftest.err'
21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775 (eval $ac_try) 2>&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; } &&
21779 { ac_try='test -s conftest.$ac_objext'
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; }; then
21785 ac_header_compiler=yes
21787 echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21790 ac_header_compiler=no
21792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21794 echo "${ECHO_T}$ac_header_compiler" >&6
21796 # Is the header present?
21797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21799 cat >conftest.$ac_ext <<_ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21805 #include <$ac_header>
21807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21810 grep -v '^ *+' conftest.er1 >conftest.err
21812 cat conftest.err >&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } >/dev/null; then
21815 if test -s conftest.err; then
21816 ac_cpp_err=$ac_c_preproc_warn_flag
21817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21824 if test -z "$ac_cpp_err"; then
21825 ac_header_preproc=yes
21827 echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21830 ac_header_preproc=no
21832 rm -f conftest.err conftest.$ac_ext
21833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21834 echo "${ECHO_T}$ac_header_preproc" >&6
21836 # So? What about this header?
21837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21843 ac_header_preproc=yes
21846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21860 ## ----------------------------------------------- ##
21861 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21862 ## ----------------------------------------------- ##
21865 sed "s/^/$as_me: WARNING: /" >&2
21868 echo "$as_me:$LINENO: checking for $ac_header" >&5
21869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21873 eval "$as_ac_Header=\$ac_header_preproc"
21875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21880 cat >>confdefs.h <<_ACEOF
21881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21888 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21889 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21890 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 if test "$cross_compiling" = yes; then
21894 ac_cv_func_malloc_0_nonnull=no
21896 cat >conftest.$ac_ext <<_ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h. */
21902 #if STDC_HEADERS || HAVE_STDLIB_H
21903 # include <stdlib.h>
21911 exit (malloc (0) ? 0 : 1);
21916 rm -f conftest$ac_exeext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918 (eval $ac_link) 2>&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923 (eval $ac_try) 2>&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); }; }; then
21927 ac_cv_func_malloc_0_nonnull=yes
21929 echo "$as_me: program exited with status $ac_status" >&5
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 ( exit $ac_status )
21934 ac_cv_func_malloc_0_nonnull=no
21936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21939 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21940 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21941 if test $ac_cv_func_malloc_0_nonnull = yes; then
21943 cat >>confdefs.h <<\_ACEOF
21944 #define HAVE_MALLOC 1
21948 cat >>confdefs.h <<\_ACEOF
21949 #define HAVE_MALLOC 0
21953 "malloc.$ac_objext" | \
21954 *" malloc.$ac_objext" | \
21955 "malloc.$ac_objext "* | \
21956 *" malloc.$ac_objext "* ) ;;
21957 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21961 cat >>confdefs.h <<\_ACEOF
21962 #define malloc rpl_malloc
21972 for ac_header in stdlib.h sys/time.h unistd.h
21974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21976 echo "$as_me:$LINENO: checking for $ac_header" >&5
21977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21979 echo $ECHO_N "(cached) $ECHO_C" >&6
21981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21984 # Is the header compilable?
21985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21987 cat >conftest.$ac_ext <<_ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21993 $ac_includes_default
21994 #include <$ac_header>
21996 rm -f conftest.$ac_objext
21997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21998 (eval $ac_compile) 2>conftest.er1
22000 grep -v '^ *+' conftest.er1 >conftest.err
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } &&
22005 { ac_try='test -z "$ac_c_werror_flag"
22006 || test ! -s conftest.err'
22007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008 (eval $ac_try) 2>&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; } &&
22012 { ac_try='test -s conftest.$ac_objext'
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; }; then
22018 ac_header_compiler=yes
22020 echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 ac_header_compiler=no
22025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22027 echo "${ECHO_T}$ac_header_compiler" >&6
22029 # Is the header present?
22030 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22032 cat >conftest.$ac_ext <<_ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h. */
22038 #include <$ac_header>
22040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22043 grep -v '^ *+' conftest.er1 >conftest.err
22045 cat conftest.err >&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); } >/dev/null; then
22048 if test -s conftest.err; then
22049 ac_cpp_err=$ac_c_preproc_warn_flag
22050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22057 if test -z "$ac_cpp_err"; then
22058 ac_header_preproc=yes
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ac_header_preproc=no
22065 rm -f conftest.err conftest.$ac_ext
22066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22067 echo "${ECHO_T}$ac_header_preproc" >&6
22069 # So? What about this header?
22070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22076 ac_header_preproc=yes
22079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22093 ## ----------------------------------------------- ##
22094 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
22095 ## ----------------------------------------------- ##
22098 sed "s/^/$as_me: WARNING: /" >&2
22101 echo "$as_me:$LINENO: checking for $ac_header" >&5
22102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
22106 eval "$as_ac_Header=\$ac_header_preproc"
22108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22113 cat >>confdefs.h <<_ACEOF
22114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22122 for ac_func in alarm
22124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22125 echo "$as_me:$LINENO: checking for $ac_func" >&5
22126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22127 if eval "test \"\${$as_ac_var+set}\" = set"; then
22128 echo $ECHO_N "(cached) $ECHO_C" >&6
22130 cat >conftest.$ac_ext <<_ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h. */
22136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22138 #define $ac_func innocuous_$ac_func
22140 /* System header to define __stub macros and hopefully few prototypes,
22141 which can conflict with char $ac_func (); below.
22142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22143 <limits.h> exists even on freestanding compilers. */
22146 # include <limits.h>
22148 # include <assert.h>
22153 /* Override any gcc2 internal prototype to avoid an error. */
22158 /* We use char because int might match the return type of a gcc2
22159 builtin and then its argument prototype would still apply. */
22161 /* The GNU C library defines this for functions which it implements
22162 to always fail with ENOSYS. Some functions are actually named
22163 something starting with __ and the normal name is an alias. */
22164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22167 char (*f) () = $ac_func;
22176 return f != $ac_func;
22181 rm -f conftest.$ac_objext conftest$ac_exeext
22182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22183 (eval $ac_link) 2>conftest.er1
22185 grep -v '^ *+' conftest.er1 >conftest.err
22187 cat conftest.err >&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); } &&
22190 { ac_try='test -z "$ac_c_werror_flag"
22191 || test ! -s conftest.err'
22192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193 (eval $ac_try) 2>&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); }; } &&
22197 { ac_try='test -s conftest$ac_exeext'
22198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22199 (eval $ac_try) 2>&5
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); }; }; then
22203 eval "$as_ac_var=yes"
22205 echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22208 eval "$as_ac_var=no"
22210 rm -f conftest.err conftest.$ac_objext \
22211 conftest$ac_exeext conftest.$ac_ext
22213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22215 if test `eval echo '${'$as_ac_var'}'` = yes; then
22216 cat >>confdefs.h <<_ACEOF
22217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22223 echo "$as_me:$LINENO: checking for working mktime" >&5
22224 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
22225 if test "${ac_cv_func_working_mktime+set}" = set; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22228 if test "$cross_compiling" = yes; then
22229 ac_cv_func_working_mktime=no
22231 cat >conftest.$ac_ext <<_ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h. */
22237 /* Test program from Paul Eggert and Tony Leneis. */
22238 #if TIME_WITH_SYS_TIME
22239 # include <sys/time.h>
22242 # if HAVE_SYS_TIME_H
22243 # include <sys/time.h>
22250 # include <stdlib.h>
22254 # include <unistd.h>
22258 # define alarm(X) /* empty */
22261 /* Work around redefinition to rpl_putenv by other config tests. */
22264 static time_t time_t_max;
22265 static time_t time_t_min;
22267 /* Values we'll use to set the TZ environment variable. */
22268 static char *tz_strings[] = {
22269 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22270 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22272 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22274 /* Fail if mktime fails to convert a date in the spring-forward gap.
22275 Based on a problem report from Andreas Jaeger. */
22277 spring_forward_gap ()
22279 /* glibc (up to about 1998-10-07) failed this test. */
22282 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22283 instead of "TZ=America/Vancouver" in order to detect the bug even
22284 on systems that don't support the Olson extension, or don't have the
22285 full zoneinfo tables installed. */
22286 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22295 if (mktime (&tm) == (time_t)-1)
22304 if ((lt = localtime (&now)) && mktime (lt) != now)
22312 mktime_test1 (now);
22313 mktime_test1 ((time_t) (time_t_max - now));
22314 mktime_test1 ((time_t) (time_t_min + now));
22320 /* Based on code from Ariel Faigon. */
22330 if (tm.tm_mon != 2 || tm.tm_mday != 31)
22340 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22341 now = mktime (&tm);
22342 if (now != (time_t) -1)
22344 struct tm *lt = localtime (&now);
22346 && lt->tm_year == tm.tm_year
22347 && lt->tm_mon == tm.tm_mon
22348 && lt->tm_mday == tm.tm_mday
22349 && lt->tm_hour == tm.tm_hour
22350 && lt->tm_min == tm.tm_min
22351 && lt->tm_sec == tm.tm_sec
22352 && lt->tm_yday == tm.tm_yday
22353 && lt->tm_wday == tm.tm_wday
22354 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22355 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22366 /* This test makes some buggy mktime implementations loop.
22367 Give up after 60 seconds; a mktime slower than that
22368 isn't worth using anyway. */
22371 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22374 if ((time_t) -1 < 0)
22375 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22377 delta = time_t_max / 997; /* a suitable prime number */
22378 for (i = 0; i < N_STRINGS; i++)
22381 putenv (tz_strings[i]);
22383 for (t = 0; t <= time_t_max - delta; t += delta)
22385 mktime_test ((time_t) 1);
22386 mktime_test ((time_t) (60 * 60));
22387 mktime_test ((time_t) (60 * 60 * 24));
22389 for (j = 1; 0 < j; j *= 2)
22391 bigtime_test (j - 1);
22394 spring_forward_gap ();
22398 rm -f conftest$ac_exeext
22399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22400 (eval $ac_link) 2>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405 (eval $ac_try) 2>&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; }; then
22409 ac_cv_func_working_mktime=yes
22411 echo "$as_me: program exited with status $ac_status" >&5
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ( exit $ac_status )
22416 ac_cv_func_working_mktime=no
22418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22421 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22422 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
22423 if test $ac_cv_func_working_mktime = no; then
22425 "mktime.$ac_objext" | \
22426 *" mktime.$ac_objext" | \
22427 "mktime.$ac_objext "* | \
22428 *" mktime.$ac_objext "* ) ;;
22429 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
22434 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22435 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22436 if test "${ac_cv_type_signal+set}" = set; then
22437 echo $ECHO_N "(cached) $ECHO_C" >&6
22439 cat >conftest.$ac_ext <<_ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h. */
22445 #include <sys/types.h>
22446 #include <signal.h>
22451 extern "C" void (*signal (int, void (*)(int)))(int);
22453 void (*signal ()) ();
22464 rm -f conftest.$ac_objext
22465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22466 (eval $ac_compile) 2>conftest.er1
22468 grep -v '^ *+' conftest.er1 >conftest.err
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } &&
22473 { ac_try='test -z "$ac_c_werror_flag"
22474 || test ! -s conftest.err'
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; } &&
22480 { ac_try='test -s conftest.$ac_objext'
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; }; then
22486 ac_cv_type_signal=void
22488 echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22491 ac_cv_type_signal=int
22493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22495 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22496 echo "${ECHO_T}$ac_cv_type_signal" >&6
22498 cat >>confdefs.h <<_ACEOF
22499 #define RETSIGTYPE $ac_cv_type_signal
22503 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22504 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
22505 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22508 rm -f conftest.sym conftest.file
22509 echo >conftest.file
22510 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22511 if test "$cross_compiling" = yes; then
22512 ac_cv_func_lstat_dereferences_slashed_symlink=no
22514 cat >conftest.$ac_ext <<_ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22520 $ac_includes_default
22525 /* Linux will dereference the symlink and fail.
22526 That is better in the sense that it means we will not
22527 have to compile and use the lstat wrapper. */
22528 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
22533 rm -f conftest$ac_exeext
22534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22535 (eval $ac_link) 2>&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; }; then
22544 ac_cv_func_lstat_dereferences_slashed_symlink=yes
22546 echo "$as_me: program exited with status $ac_status" >&5
22547 echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22550 ( exit $ac_status )
22551 ac_cv_func_lstat_dereferences_slashed_symlink=no
22553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22556 # If the `ln -s' command failed, then we probably don't even
22557 # have an lstat function.
22558 ac_cv_func_lstat_dereferences_slashed_symlink=no
22560 rm -f conftest.sym conftest.file
22563 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22564 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
22566 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22568 cat >>confdefs.h <<_ACEOF
22569 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22573 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22575 "lstat.$ac_objext" | \
22576 *" lstat.$ac_objext" | \
22577 "lstat.$ac_objext "* | \
22578 *" lstat.$ac_objext "* ) ;;
22579 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
22584 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22585 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
22586 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22589 if test "$cross_compiling" = yes; then
22590 ac_cv_func_stat_empty_string_bug=yes
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598 $ac_includes_default
22603 exit (stat ("", &sbuf) ? 1 : 0);
22608 rm -f conftest$ac_exeext
22609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22610 (eval $ac_link) 2>&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615 (eval $ac_try) 2>&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; }; then
22619 ac_cv_func_stat_empty_string_bug=yes
22621 echo "$as_me: program exited with status $ac_status" >&5
22622 echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22625 ( exit $ac_status )
22626 ac_cv_func_stat_empty_string_bug=no
22628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22631 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22632 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
22633 if test $ac_cv_func_stat_empty_string_bug = yes; then
22635 "stat.$ac_objext" | \
22636 *" stat.$ac_objext" | \
22637 "stat.$ac_objext "* | \
22638 *" stat.$ac_objext "* ) ;;
22639 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
22643 cat >>confdefs.h <<_ACEOF
22644 #define HAVE_STAT_EMPTY_STRING_BUG 1
22650 for ac_func in strftime
22652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22653 echo "$as_me:$LINENO: checking for $ac_func" >&5
22654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22655 if eval "test \"\${$as_ac_var+set}\" = set"; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22658 cat >conftest.$ac_ext <<_ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22666 #define $ac_func innocuous_$ac_func
22668 /* System header to define __stub macros and hopefully few prototypes,
22669 which can conflict with char $ac_func (); below.
22670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22671 <limits.h> exists even on freestanding compilers. */
22674 # include <limits.h>
22676 # include <assert.h>
22681 /* Override any gcc2 internal prototype to avoid an error. */
22686 /* We use char because int might match the return type of a gcc2
22687 builtin and then its argument prototype would still apply. */
22689 /* The GNU C library defines this for functions which it implements
22690 to always fail with ENOSYS. Some functions are actually named
22691 something starting with __ and the normal name is an alias. */
22692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22695 char (*f) () = $ac_func;
22704 return f != $ac_func;
22709 rm -f conftest.$ac_objext conftest$ac_exeext
22710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22711 (eval $ac_link) 2>conftest.er1
22713 grep -v '^ *+' conftest.er1 >conftest.err
22715 cat conftest.err >&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } &&
22718 { ac_try='test -z "$ac_c_werror_flag"
22719 || test ! -s conftest.err'
22720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22721 (eval $ac_try) 2>&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); }; } &&
22725 { ac_try='test -s conftest$ac_exeext'
22726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22727 (eval $ac_try) 2>&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; }; then
22731 eval "$as_ac_var=yes"
22733 echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22736 eval "$as_ac_var=no"
22738 rm -f conftest.err conftest.$ac_objext \
22739 conftest$ac_exeext conftest.$ac_ext
22741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22743 if test `eval echo '${'$as_ac_var'}'` = yes; then
22744 cat >>confdefs.h <<_ACEOF
22745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22749 # strftime is in -lintl on SCO UNIX.
22750 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22751 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
22752 if test "${ac_cv_lib_intl_strftime+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 ac_check_lib_save_LIBS=$LIBS
22756 LIBS="-lintl $LIBS"
22757 cat >conftest.$ac_ext <<_ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22764 /* Override any gcc2 internal prototype to avoid an error. */
22768 /* We use char because int might match the return type of a gcc2
22769 builtin and then its argument prototype would still apply. */
22779 rm -f conftest.$ac_objext conftest$ac_exeext
22780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22781 (eval $ac_link) 2>conftest.er1
22783 grep -v '^ *+' conftest.er1 >conftest.err
22785 cat conftest.err >&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } &&
22788 { ac_try='test -z "$ac_c_werror_flag"
22789 || test ! -s conftest.err'
22790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791 (eval $ac_try) 2>&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; } &&
22795 { ac_try='test -s conftest$ac_exeext'
22796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797 (eval $ac_try) 2>&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); }; }; then
22801 ac_cv_lib_intl_strftime=yes
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22806 ac_cv_lib_intl_strftime=no
22808 rm -f conftest.err conftest.$ac_objext \
22809 conftest$ac_exeext conftest.$ac_ext
22810 LIBS=$ac_check_lib_save_LIBS
22812 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22813 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
22814 if test $ac_cv_lib_intl_strftime = yes; then
22815 cat >>confdefs.h <<\_ACEOF
22816 #define HAVE_STRFTIME 1
22819 LIBS="-lintl $LIBS"
22838 for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strrchr strstr strtol strtoul
22840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22841 echo "$as_me:$LINENO: checking for $ac_func" >&5
22842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22843 if eval "test \"\${$as_ac_var+set}\" = set"; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 cat >conftest.$ac_ext <<_ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22854 #define $ac_func innocuous_$ac_func
22856 /* System header to define __stub macros and hopefully few prototypes,
22857 which can conflict with char $ac_func (); below.
22858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22859 <limits.h> exists even on freestanding compilers. */
22862 # include <limits.h>
22864 # include <assert.h>
22869 /* Override any gcc2 internal prototype to avoid an error. */
22874 /* We use char because int might match the return type of a gcc2
22875 builtin and then its argument prototype would still apply. */
22877 /* The GNU C library defines this for functions which it implements
22878 to always fail with ENOSYS. Some functions are actually named
22879 something starting with __ and the normal name is an alias. */
22880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22883 char (*f) () = $ac_func;
22892 return f != $ac_func;
22897 rm -f conftest.$ac_objext conftest$ac_exeext
22898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22899 (eval $ac_link) 2>conftest.er1
22901 grep -v '^ *+' conftest.er1 >conftest.err
22903 cat conftest.err >&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } &&
22906 { ac_try='test -z "$ac_c_werror_flag"
22907 || test ! -s conftest.err'
22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909 (eval $ac_try) 2>&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; } &&
22913 { ac_try='test -s conftest$ac_exeext'
22914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915 (eval $ac_try) 2>&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); }; }; then
22919 eval "$as_ac_var=yes"
22921 echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22924 eval "$as_ac_var=no"
22926 rm -f conftest.err conftest.$ac_objext \
22927 conftest$ac_exeext conftest.$ac_ext
22929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22931 if test `eval echo '${'$as_ac_var'}'` = yes; then
22932 cat >>confdefs.h <<_ACEOF
22933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22940 # sys/queue.h exists on most systems, but its capabilities vary a great deal.
22941 # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
22942 # all of them, and are necessary for OpenBSM.
22943 cat >conftest.$ac_ext <<_ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22950 #include <sys/queue.h>
22958 #error LIST_FIRST missing
22960 #ifndef TAILQ_FOREACH_SAFE
22961 #error TAILQ_FOREACH_SAFE
22968 rm -f conftest.$ac_objext conftest$ac_exeext
22969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22970 (eval $ac_link) 2>conftest.er1
22972 grep -v '^ *+' conftest.er1 >conftest.err
22974 cat conftest.err >&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); } &&
22977 { ac_try='test -z "$ac_c_werror_flag"
22978 || test ! -s conftest.err'
22979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22980 (eval $ac_try) 2>&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); }; } &&
22984 { ac_try='test -s conftest$ac_exeext'
22985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }; }; then
22992 cat >>confdefs.h <<\_ACEOF
22993 #define HAVE_FULL_QUEUE_H
22998 echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23002 rm -f conftest.err conftest.$ac_objext \
23003 conftest$ac_exeext conftest.$ac_ext
23005 # Systems may not define key audit system calls, in which case libbsm cannot
23006 # depend on them or it will generate link-time or run-time errors. Test for
23008 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23015 #include <stdlib.h>
23017 extern int auditon(int, void *, int);
23025 err = auditon(0, NULL, 0);
23031 rm -f conftest.$ac_objext conftest$ac_exeext
23032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23033 (eval $ac_link) 2>conftest.er1
23035 grep -v '^ *+' conftest.er1 >conftest.err
23037 cat conftest.err >&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } &&
23040 { ac_try='test -z "$ac_c_werror_flag"
23041 || test ! -s conftest.err'
23042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043 (eval $ac_try) 2>&5
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); }; } &&
23047 { ac_try='test -s conftest$ac_exeext'
23048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049 (eval $ac_try) 2>&5
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; }; then
23055 cat >>confdefs.h <<\_ACEOF
23056 #define HAVE_AUDIT_SYSCALLS
23059 have_audit_syscalls=true
23062 echo "$as_me: failed program was:" >&5
23063 sed 's/^/| /' conftest.$ac_ext >&5
23066 have_audit_syscalls=false
23069 rm -f conftest.err conftest.$ac_objext \
23070 conftest$ac_exeext conftest.$ac_ext
23073 if $have_audit_syscalls; then
23074 HAVE_AUDIT_SYSCALLS_TRUE=
23075 HAVE_AUDIT_SYSCALLS_FALSE='#'
23077 HAVE_AUDIT_SYSCALLS_TRUE='#'
23078 HAVE_AUDIT_SYSCALLS_FALSE=
23082 ac_config_files="$ac_config_files Makefile bin/Makefile bin/audit/Makefile bin/auditd/Makefile bin/auditfilterd/Makefile bin/auditreduce/Makefile bin/praudit/Makefile bsm/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
23085 cat >confcache <<\_ACEOF
23086 # This file is a shell script that caches the results of configure
23087 # tests run on this system so they can be shared between configure
23088 # scripts and configure runs, see configure's option --config-cache.
23089 # It is not useful on other systems. If it contains results you don't
23090 # want to keep, you may remove or edit it.
23092 # config.status only pays attention to the cache file if you give it
23093 # the --recheck option to rerun configure.
23095 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23096 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23097 # following values.
23101 # The following way of writing the cache mishandles newlines in values,
23102 # but we know of no workaround that is simple, portable, and efficient.
23103 # So, don't put newlines in cache variables' values.
23104 # Ultrix sh set writes to stderr and can't be redirected directly,
23105 # and sets the high bit in the cache file unless we assign to the vars.
23108 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23110 # `set' does not quote correctly, so add quotes (double-quote
23111 # substitution turns \\\\ into \\, and sed turns \\ into \).
23114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23117 # `set' quotes correctly as required by POSIX, so do not add quotes.
23119 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23128 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23130 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23131 if test -w $cache_file; then
23132 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23133 cat confcache >$cache_file
23135 echo "not updating unwritable cache $cache_file"
23140 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23141 # Let make expand exec_prefix.
23142 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23144 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23145 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23146 # trailing colons and then remove the whole line if VPATH becomes empty
23147 # (actually we leave an empty line to preserve line numbers).
23148 if test "x$srcdir" = x.; then
23149 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23150 s/:*\$(srcdir):*/:/;
23151 s/:*\${srcdir}:*/:/;
23153 s/^\([^=]*=[ ]*\):*/\1/;
23159 DEFS=-DHAVE_CONFIG_H
23163 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23164 # 1. Remove the extension, and $U if already installed.
23165 ac_i=`echo "$ac_i" |
23166 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23168 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23169 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23171 LIBOBJS=$ac_libobjs
23173 LTLIBOBJS=$ac_ltlibobjs
23176 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23177 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23178 Usually this means the macro was only invoked conditionally." >&5
23179 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23180 Usually this means the macro was only invoked conditionally." >&2;}
23181 { (exit 1); exit 1; }; }
23183 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23184 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23185 Usually this means the macro was only invoked conditionally." >&5
23186 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23187 Usually this means the macro was only invoked conditionally." >&2;}
23188 { (exit 1); exit 1; }; }
23190 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23191 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23192 Usually this means the macro was only invoked conditionally." >&5
23193 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23194 Usually this means the macro was only invoked conditionally." >&2;}
23195 { (exit 1); exit 1; }; }
23197 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23198 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23199 Usually this means the macro was only invoked conditionally." >&5
23200 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23201 Usually this means the macro was only invoked conditionally." >&2;}
23202 { (exit 1); exit 1; }; }
23204 if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
23205 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23206 Usually this means the macro was only invoked conditionally." >&5
23207 echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23208 Usually this means the macro was only invoked conditionally." >&2;}
23209 { (exit 1); exit 1; }; }
23212 : ${CONFIG_STATUS=./config.status}
23213 ac_clean_files_save=$ac_clean_files
23214 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23215 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23216 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23217 cat >$CONFIG_STATUS <<_ACEOF
23219 # Generated by $as_me.
23220 # Run this file to recreate the current configuration.
23221 # Compiler output produced by configure, useful for debugging
23222 # configure, is in config.log if it exists.
23225 ac_cs_recheck=false
23227 SHELL=\${CONFIG_SHELL-$SHELL}
23230 cat >>$CONFIG_STATUS <<\_ACEOF
23231 ## --------------------- ##
23232 ## M4sh Initialization. ##
23233 ## --------------------- ##
23235 # Be Bourne compatible
23236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23239 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23240 # is contrary to our usage. Disable this feature.
23241 alias -g '${1+"$@"}'='"$@"'
23242 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23245 DUALCASE=1; export DUALCASE # for MKS sh
23247 # Support unset when possible.
23248 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23255 # Work around bugs in pre-3.0 UWIN ksh.
23256 $as_unset ENV MAIL MAILPATH
23263 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23264 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23265 LC_TELEPHONE LC_TIME
23267 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23268 eval $as_var=C; export $as_var
23274 # Required to use basename.
23275 if expr a : '\(a\)' >/dev/null 2>&1; then
23281 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23282 as_basename=basename
23288 # Name of the executable.
23289 as_me=`$as_basename "$0" ||
23290 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23291 X"$0" : 'X\(//\)$' \| \
23292 X"$0" : 'X\(/\)$' \| \
23293 . : '\(.\)' 2>/dev/null ||
23295 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23296 /^X\/\(\/\/\)$/{ s//\1/; q; }
23297 /^X\/\(\/\).*/{ s//\1/; q; }
23301 # PATH needs CR, and LINENO needs CR and PATH.
23302 # Avoid depending upon Character Ranges.
23303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23306 as_cr_digits='0123456789'
23307 as_cr_alnum=$as_cr_Letters$as_cr_digits
23309 # The user is always right.
23310 if test "${PATH_SEPARATOR+set}" != set; then
23311 echo "#! /bin/sh" >conf$$.sh
23312 echo "exit 0" >>conf$$.sh
23314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23323 as_lineno_1=$LINENO
23324 as_lineno_2=$LINENO
23325 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23326 test "x$as_lineno_1" != "x$as_lineno_2" &&
23327 test "x$as_lineno_3" = "x$as_lineno_2" || {
23328 # Find who we are. Look in the path if we contain no path at all
23331 *[\\/]* ) as_myself=$0 ;;
23332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23333 for as_dir in $PATH
23336 test -z "$as_dir" && as_dir=.
23337 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23342 # We did not find ourselves, most probably we were run as `sh COMMAND'
23343 # in which case we are not to be found in the path.
23344 if test "x$as_myself" = x; then
23347 if test ! -f "$as_myself"; then
23348 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23349 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23350 { (exit 1); exit 1; }; }
23352 case $CONFIG_SHELL in
23354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23355 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23358 test -z "$as_dir" && as_dir=.
23359 for as_base in sh bash ksh sh5; do
23362 if ("$as_dir/$as_base" -c '
23363 as_lineno_1=$LINENO
23364 as_lineno_2=$LINENO
23365 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23366 test "x$as_lineno_1" != "x$as_lineno_2" &&
23367 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23368 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23369 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23370 CONFIG_SHELL=$as_dir/$as_base
23371 export CONFIG_SHELL
23372 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23381 # uniformly replaced by the line number. The first 'sed' inserts a
23382 # line-number line before each line; the second 'sed' does the real
23383 # work. The second script uses 'N' to pair each line-number line
23384 # with the numbered line, and appends trailing '-' during
23385 # substitution so that $LINENO is not a special case at line end.
23386 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23387 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23388 sed '=' <$as_myself |
23393 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23396 s,^['$as_cr_digits']*\n,,
23397 ' >$as_me.lineno &&
23398 chmod +x $as_me.lineno ||
23399 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23400 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23401 { (exit 1); exit 1; }; }
23403 # Don't try to exec as it changes $[0], causing all sort of problems
23404 # (the dirname of $[0] is not the place where we might find the
23405 # original and so on. Autoconf is especially sensible to this).
23407 # Exit status is that of the last command.
23412 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23413 *c*,-n*) ECHO_N= ECHO_C='
23415 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23416 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23419 if expr a : '\(a\)' >/dev/null 2>&1; then
23425 rm -f conf$$ conf$$.exe conf$$.file
23427 if ln -s conf$$.file conf$$ 2>/dev/null; then
23428 # We could just check for DJGPP; but this test a) works b) is more generic
23429 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23430 if test -f conf$$.exe; then
23431 # Don't use ln at all; we don't have any links
23436 elif ln conf$$.file conf$$ 2>/dev/null; then
23441 rm -f conf$$ conf$$.exe conf$$.file
23443 if mkdir -p . 2>/dev/null; then
23446 test -d ./-p && rmdir ./-p
23450 as_executable_p="test -f"
23452 # Sed expression to map a string onto a valid CPP name.
23453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23455 # Sed expression to map a string onto a valid variable name.
23456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23460 # We need space, tab and new line, in precisely that order.
23470 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23471 # report actual input values of CONFIG_FILES etc. instead of their
23472 # values after options handling. Logging --version etc. is OK.
23476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23477 ## Running $as_me. ##
23482 This file was extended by OpenBSM $as_me 1.0alpha14, which was
23483 generated by GNU Autoconf 2.59. Invocation command line was
23485 CONFIG_FILES = $CONFIG_FILES
23486 CONFIG_HEADERS = $CONFIG_HEADERS
23487 CONFIG_LINKS = $CONFIG_LINKS
23488 CONFIG_COMMANDS = $CONFIG_COMMANDS
23492 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23496 # Files that config.status was made for.
23497 if test -n "$ac_config_files"; then
23498 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23501 if test -n "$ac_config_headers"; then
23502 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23505 if test -n "$ac_config_links"; then
23506 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23509 if test -n "$ac_config_commands"; then
23510 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23513 cat >>$CONFIG_STATUS <<\_ACEOF
23516 \`$as_me' instantiates files from templates according to the
23517 current configuration.
23519 Usage: $0 [OPTIONS] [FILE]...
23521 -h, --help print this help, then exit
23522 -V, --version print version number, then exit
23523 -q, --quiet do not print progress messages
23524 -d, --debug don't remove temporary files
23525 --recheck update $as_me by reconfiguring in the same conditions
23526 --file=FILE[:TEMPLATE]
23527 instantiate the configuration file FILE
23528 --header=FILE[:TEMPLATE]
23529 instantiate the configuration header FILE
23531 Configuration files:
23534 Configuration headers:
23537 Configuration commands:
23540 Report bugs to <bug-autoconf@gnu.org>."
23543 cat >>$CONFIG_STATUS <<_ACEOF
23545 OpenBSM config.status 1.0alpha14
23546 configured by $0, generated by GNU Autoconf 2.59,
23547 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23549 Copyright (C) 2003 Free Software Foundation, Inc.
23550 This config.status script is free software; the Free Software Foundation
23551 gives unlimited permission to copy, distribute and modify it."
23556 cat >>$CONFIG_STATUS <<\_ACEOF
23557 # If no file are specified by the user, then we need to provide default
23558 # value. By we need to know if files were specified by the user.
23564 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23565 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23573 *) # This is not an option, so the user has probably given explicit
23576 ac_need_defaults=false;;
23580 # Handling of the options.
23582 cat >>$CONFIG_STATUS <<\_ACEOF
23583 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23585 --version | --vers* | -V )
23586 echo "$ac_cs_version"; exit 0 ;;
23588 # Conflict between --help and --header
23589 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23590 Try \`$0 --help' for more information." >&5
23591 echo "$as_me: error: ambiguous option: $1
23592 Try \`$0 --help' for more information." >&2;}
23593 { (exit 1); exit 1; }; };;
23594 --help | --hel | -h )
23595 echo "$ac_cs_usage"; exit 0 ;;
23596 --debug | --d* | -d )
23598 --file | --fil | --fi | --f )
23600 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23601 ac_need_defaults=false;;
23602 --header | --heade | --head | --hea )
23604 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23605 ac_need_defaults=false;;
23606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23610 # This is an error.
23611 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23612 Try \`$0 --help' for more information." >&5
23613 echo "$as_me: error: unrecognized option: $1
23614 Try \`$0 --help' for more information." >&2;}
23615 { (exit 1); exit 1; }; } ;;
23617 *) ac_config_targets="$ac_config_targets $1" ;;
23623 ac_configure_extra_args=
23625 if $ac_cs_silent; then
23627 ac_configure_extra_args="$ac_configure_extra_args --silent"
23631 cat >>$CONFIG_STATUS <<_ACEOF
23632 if \$ac_cs_recheck; then
23633 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23634 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23639 cat >>$CONFIG_STATUS <<_ACEOF
23641 # INIT-COMMANDS section.
23644 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23650 cat >>$CONFIG_STATUS <<\_ACEOF
23651 for ac_config_target in $ac_config_targets
23653 case "$ac_config_target" in
23654 # Handling of arguments.
23655 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23656 "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
23657 "bin/audit/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
23658 "bin/auditd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
23659 "bin/auditfilterd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
23660 "bin/auditreduce/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
23661 "bin/praudit/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
23662 "bsm/Makefile" ) CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
23663 "libbsm/Makefile" ) CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
23664 "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23665 "modules/auditfilter_noop/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
23666 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23667 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23668 "test/bsm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
23669 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23670 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23671 "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
23672 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23673 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23674 { (exit 1); exit 1; }; };;
23678 # If the user did not use the arguments to specify the items to instantiate,
23679 # then the envvar interface is used. Set only those that are not.
23680 # We use the long form for the default assignment because of an extremely
23681 # bizarre bug on SunOS 4.1.3.
23682 if $ac_need_defaults; then
23683 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23684 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23685 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23688 # Have a temporary directory for convenience. Make it in the build tree
23689 # simply because there is no reason to put it here, and in addition,
23690 # creating and moving files from /tmp can sometimes cause problems.
23691 # Create a temporary directory, and hook for its removal unless debugging.
23694 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23695 trap '{ (exit 1); exit 1; }' 1 2 13 15
23698 # Create a (secure) tmp directory for tmp files.
23701 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23702 test -n "$tmp" && test -d "$tmp"
23705 tmp=./confstat$$-$RANDOM
23706 (umask 077 && mkdir $tmp)
23709 echo "$me: cannot create a temporary directory in ." >&2
23710 { (exit 1); exit 1; }
23715 cat >>$CONFIG_STATUS <<_ACEOF
23718 # CONFIG_FILES section.
23721 # No need to generate the scripts if there are no CONFIG_FILES.
23722 # This happens for instance when ./config.status config.h
23723 if test -n "\$CONFIG_FILES"; then
23724 # Protect against being on the right side of a sed subst in config.status.
23725 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23726 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23727 s,@SHELL@,$SHELL,;t t
23728 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23729 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23730 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23731 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23732 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23733 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23734 s,@exec_prefix@,$exec_prefix,;t t
23735 s,@prefix@,$prefix,;t t
23736 s,@program_transform_name@,$program_transform_name,;t t
23737 s,@bindir@,$bindir,;t t
23738 s,@sbindir@,$sbindir,;t t
23739 s,@libexecdir@,$libexecdir,;t t
23740 s,@datadir@,$datadir,;t t
23741 s,@sysconfdir@,$sysconfdir,;t t
23742 s,@sharedstatedir@,$sharedstatedir,;t t
23743 s,@localstatedir@,$localstatedir,;t t
23744 s,@libdir@,$libdir,;t t
23745 s,@includedir@,$includedir,;t t
23746 s,@oldincludedir@,$oldincludedir,;t t
23747 s,@infodir@,$infodir,;t t
23748 s,@mandir@,$mandir,;t t
23749 s,@build_alias@,$build_alias,;t t
23750 s,@host_alias@,$host_alias,;t t
23751 s,@target_alias@,$target_alias,;t t
23752 s,@DEFS@,$DEFS,;t t
23753 s,@ECHO_C@,$ECHO_C,;t t
23754 s,@ECHO_N@,$ECHO_N,;t t
23755 s,@ECHO_T@,$ECHO_T,;t t
23756 s,@LIBS@,$LIBS,;t t
23757 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23758 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23759 s,@MAINT@,$MAINT,;t t
23761 s,@CFLAGS@,$CFLAGS,;t t
23762 s,@LDFLAGS@,$LDFLAGS,;t t
23763 s,@CPPFLAGS@,$CPPFLAGS,;t t
23764 s,@ac_ct_CC@,$ac_ct_CC,;t t
23765 s,@EXEEXT@,$EXEEXT,;t t
23766 s,@OBJEXT@,$OBJEXT,;t t
23767 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23768 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23769 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23770 s,@build@,$build,;t t
23771 s,@build_cpu@,$build_cpu,;t t
23772 s,@build_vendor@,$build_vendor,;t t
23773 s,@build_os@,$build_os,;t t
23774 s,@host@,$host,;t t
23775 s,@host_cpu@,$host_cpu,;t t
23776 s,@host_vendor@,$host_vendor,;t t
23777 s,@host_os@,$host_os,;t t
23778 s,@EGREP@,$EGREP,;t t
23779 s,@LN_S@,$LN_S,;t t
23780 s,@ECHO@,$ECHO,;t t
23782 s,@ac_ct_AR@,$ac_ct_AR,;t t
23783 s,@RANLIB@,$RANLIB,;t t
23784 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23785 s,@STRIP@,$STRIP,;t t
23786 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23789 s,@CXXFLAGS@,$CXXFLAGS,;t t
23790 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23791 s,@CXXCPP@,$CXXCPP,;t t
23793 s,@FFLAGS@,$FFLAGS,;t t
23794 s,@ac_ct_F77@,$ac_ct_F77,;t t
23795 s,@LIBTOOL@,$LIBTOOL,;t t
23796 s,@CYGPATH_W@,$CYGPATH_W,;t t
23797 s,@PACKAGE@,$PACKAGE,;t t
23798 s,@VERSION@,$VERSION,;t t
23799 s,@ACLOCAL@,$ACLOCAL,;t t
23800 s,@AUTOCONF@,$AUTOCONF,;t t
23801 s,@AUTOMAKE@,$AUTOMAKE,;t t
23802 s,@AUTOHEADER@,$AUTOHEADER,;t t
23803 s,@MAKEINFO@,$MAKEINFO,;t t
23804 s,@install_sh@,$install_sh,;t t
23805 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23806 s,@mkdir_p@,$mkdir_p,;t t
23808 s,@SET_MAKE@,$SET_MAKE,;t t
23809 s,@am__leading_dot@,$am__leading_dot,;t t
23810 s,@AMTAR@,$AMTAR,;t t
23811 s,@am__tar@,$am__tar,;t t
23812 s,@am__untar@,$am__untar,;t t
23813 s,@DEPDIR@,$DEPDIR,;t t
23814 s,@am__include@,$am__include,;t t
23815 s,@am__quote@,$am__quote,;t t
23816 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23817 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23818 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23819 s,@CCDEPMODE@,$CCDEPMODE,;t t
23820 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23821 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23822 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23823 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23824 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23825 s,@LIBOBJS@,$LIBOBJS,;t t
23826 s,@HAVE_AUDIT_SYSCALLS_TRUE@,$HAVE_AUDIT_SYSCALLS_TRUE,;t t
23827 s,@HAVE_AUDIT_SYSCALLS_FALSE@,$HAVE_AUDIT_SYSCALLS_FALSE,;t t
23828 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23833 cat >>$CONFIG_STATUS <<\_ACEOF
23834 # Split the substitutions into bite-sized pieces for seds with
23835 # small command number limits, like on Digital OSF/1 and HP-UX.
23836 ac_max_sed_lines=48
23837 ac_sed_frag=1 # Number of current file.
23838 ac_beg=1 # First line for current file.
23839 ac_end=$ac_max_sed_lines # Line after last line for current file.
23842 while $ac_more_lines; do
23843 if test $ac_beg -gt 1; then
23844 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23846 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23848 if test ! -s $tmp/subs.frag; then
23849 ac_more_lines=false
23851 # The purpose of the label and of the branching condition is to
23852 # speed up the sed processing (if there are no `@' at all, there
23853 # is no need to browse any of the substitutions).
23854 # These are the two extra sed commands mentioned above.
23856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23857 if test -z "$ac_sed_cmds"; then
23858 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23860 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23862 ac_sed_frag=`expr $ac_sed_frag + 1`
23864 ac_end=`expr $ac_end + $ac_max_sed_lines`
23867 if test -z "$ac_sed_cmds"; then
23870 fi # test -n "$CONFIG_FILES"
23873 cat >>$CONFIG_STATUS <<\_ACEOF
23874 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23875 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23877 - | *:- | *:-:* ) # input from stdin
23879 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23880 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23881 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23883 * ) ac_file_in=$ac_file.in ;;
23886 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23887 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23889 X"$ac_file" : 'X\(//\)[^/]' \| \
23890 X"$ac_file" : 'X\(//\)$' \| \
23891 X"$ac_file" : 'X\(/\)' \| \
23892 . : '\(.\)' 2>/dev/null ||
23894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23896 /^X\(\/\/\)$/{ s//\1/; q; }
23897 /^X\(\/\).*/{ s//\1/; q; }
23899 { if $as_mkdir_p; then
23904 while test ! -d "$as_dir"; do
23905 as_dirs="$as_dir $as_dirs"
23906 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23908 X"$as_dir" : 'X\(//\)[^/]' \| \
23909 X"$as_dir" : 'X\(//\)$' \| \
23910 X"$as_dir" : 'X\(/\)' \| \
23911 . : '\(.\)' 2>/dev/null ||
23913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23915 /^X\(\/\/\)$/{ s//\1/; q; }
23916 /^X\(\/\).*/{ s//\1/; q; }
23919 test ! -n "$as_dirs" || mkdir $as_dirs
23920 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23921 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23922 { (exit 1); exit 1; }; }; }
23926 if test "$ac_dir" != .; then
23927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23928 # A "../" for each directory in $ac_dir_suffix.
23929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23931 ac_dir_suffix= ac_top_builddir=
23935 .) # No --srcdir option. We are building in place.
23937 if test -z "$ac_top_builddir"; then
23940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23942 [\\/]* | ?:[\\/]* ) # Absolute path.
23943 ac_srcdir=$srcdir$ac_dir_suffix;
23944 ac_top_srcdir=$srcdir ;;
23945 *) # Relative path.
23946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23950 # Do not use `cd foo && pwd` to compute absolute paths, because
23951 # the directories may not exist.
23953 .) ac_abs_builddir="$ac_dir";;
23956 .) ac_abs_builddir=`pwd`;;
23957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23961 case $ac_abs_builddir in
23962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23964 case ${ac_top_builddir}. in
23965 .) ac_abs_top_builddir=$ac_abs_builddir;;
23966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23970 case $ac_abs_builddir in
23971 .) ac_abs_srcdir=$ac_srcdir;;
23974 .) ac_abs_srcdir=$ac_abs_builddir;;
23975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23979 case $ac_abs_builddir in
23980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23982 case $ac_top_srcdir in
23983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23991 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23992 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23995 if test x"$ac_file" != x-; then
23996 { echo "$as_me:$LINENO: creating $ac_file" >&5
23997 echo "$as_me: creating $ac_file" >&6;}
24000 # Let's still pretend it is `configure' which instantiates (i.e., don't
24001 # use $as_me), people would be surprised to read:
24002 # /* config.h. Generated by config.status. */
24003 if test x"$ac_file" = x-; then
24006 configure_input="$ac_file. "
24008 configure_input=$configure_input"Generated from `echo $ac_file_in |
24009 sed 's,.*/,,'` by configure."
24011 # First look for the input files in the build tree, otherwise in the
24013 ac_file_inputs=`IFS=:
24014 for f in $ac_file_in; do
24016 -) echo $tmp/stdin ;;
24018 # Absolute (can't be DOS-style, as IFS=:)
24019 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24020 echo "$as_me: error: cannot find input file: $f" >&2;}
24021 { (exit 1); exit 1; }; }
24024 if test -f "$f"; then
24027 elif test -f "$srcdir/$f"; then
24032 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24033 echo "$as_me: error: cannot find input file: $f" >&2;}
24034 { (exit 1); exit 1; }; }
24037 done` || { (exit 1); exit 1; }
24039 cat >>$CONFIG_STATUS <<_ACEOF
24043 cat >>$CONFIG_STATUS <<\_ACEOF
24045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24046 s,@configure_input@,$configure_input,;t t
24047 s,@srcdir@,$ac_srcdir,;t t
24048 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24049 s,@top_srcdir@,$ac_top_srcdir,;t t
24050 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24051 s,@builddir@,$ac_builddir,;t t
24052 s,@abs_builddir@,$ac_abs_builddir,;t t
24053 s,@top_builddir@,$ac_top_builddir,;t t
24054 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24055 s,@INSTALL@,$ac_INSTALL,;t t
24056 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24058 if test x"$ac_file" != x-; then
24059 mv $tmp/out $ac_file
24067 cat >>$CONFIG_STATUS <<\_ACEOF
24070 # CONFIG_HEADER section.
24073 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24074 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24076 # ac_d sets the value in "#define NAME VALUE" lines.
24077 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24078 ac_dB='[ ].*$,\1#\2'
24081 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24082 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24083 ac_uB='$,\1#\2define\3'
24087 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24088 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24090 - | *:- | *:-:* ) # input from stdin
24092 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24094 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24095 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24096 * ) ac_file_in=$ac_file.in ;;
24099 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24100 echo "$as_me: creating $ac_file" >&6;}
24102 # First look for the input files in the build tree, otherwise in the
24104 ac_file_inputs=`IFS=:
24105 for f in $ac_file_in; do
24107 -) echo $tmp/stdin ;;
24109 # Absolute (can't be DOS-style, as IFS=:)
24110 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24111 echo "$as_me: error: cannot find input file: $f" >&2;}
24112 { (exit 1); exit 1; }; }
24113 # Do quote $f, to prevent DOS paths from being IFS'd.
24116 if test -f "$f"; then
24119 elif test -f "$srcdir/$f"; then
24124 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24125 echo "$as_me: error: cannot find input file: $f" >&2;}
24126 { (exit 1); exit 1; }; }
24129 done` || { (exit 1); exit 1; }
24130 # Remove the trailing spaces.
24131 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24135 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24136 # `conftest.undefs', that substitutes the proper values into
24137 # config.h.in to produce config.h. The first handles `#define'
24138 # templates, and the second `#undef' templates.
24139 # And first: Protect against being on the right side of a sed subst in
24140 # config.status. Protect against being in an unquoted here document
24141 # in config.status.
24142 rm -f conftest.defines conftest.undefs
24143 # Using a here document instead of a string reduces the quoting nightmare.
24144 # Putting comments in sed scripts is not portable.
24146 # `end' is used to avoid that the second main sed command (meant for
24147 # 0-ary CPP macros) applies to n-ary macro definitions.
24148 # See the Autoconf documentation for `clear'.
24149 cat >confdef2sed.sed <<\_ACEOF
24154 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24156 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24159 # If some macros were called several times there might be several times
24160 # the same #defines, which is useless. Nevertheless, we may not want to
24161 # sort them, since we want the *last* AC-DEFINE to be honored.
24162 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24163 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24164 rm -f confdef2sed.sed
24166 # This sed command replaces #undef with comments. This is necessary, for
24167 # example, in the case of _POSIX_SOURCE, which is predefined and required
24168 # on some systems where configure will not decide to define it.
24169 cat >>conftest.undefs <<\_ACEOF
24170 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24173 # Break up conftest.defines because some shells have a limit on the size
24174 # of here documents, and old seds have small limits too (100 cmds).
24175 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24176 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24177 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24178 echo ' :' >>$CONFIG_STATUS
24179 rm -f conftest.tail
24180 while grep . conftest.defines >/dev/null
24182 # Write a limited-size here document to $tmp/defines.sed.
24183 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24184 # Speed up: don't consider the non `#define' lines.
24185 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24186 # Work around the forget-to-reset-the-flag bug.
24187 echo 't clr' >>$CONFIG_STATUS
24188 echo ': clr' >>$CONFIG_STATUS
24189 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24191 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24193 mv $tmp/out $tmp/in
24195 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24196 rm -f conftest.defines
24197 mv conftest.tail conftest.defines
24199 rm -f conftest.defines
24200 echo ' fi # grep' >>$CONFIG_STATUS
24201 echo >>$CONFIG_STATUS
24203 # Break up conftest.undefs because some shells have a limit on the size
24204 # of here documents, and old seds have small limits too (100 cmds).
24205 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24206 rm -f conftest.tail
24207 while grep . conftest.undefs >/dev/null
24209 # Write a limited-size here document to $tmp/undefs.sed.
24210 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24211 # Speed up: don't consider the non `#undef'
24212 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24213 # Work around the forget-to-reset-the-flag bug.
24214 echo 't clr' >>$CONFIG_STATUS
24215 echo ': clr' >>$CONFIG_STATUS
24216 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24218 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24220 mv $tmp/out $tmp/in
24222 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24223 rm -f conftest.undefs
24224 mv conftest.tail conftest.undefs
24226 rm -f conftest.undefs
24228 cat >>$CONFIG_STATUS <<\_ACEOF
24229 # Let's still pretend it is `configure' which instantiates (i.e., don't
24230 # use $as_me), people would be surprised to read:
24231 # /* config.h. Generated by config.status. */
24232 if test x"$ac_file" = x-; then
24233 echo "/* Generated by configure. */" >$tmp/config.h
24235 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24237 cat $tmp/in >>$tmp/config.h
24239 if test x"$ac_file" != x-; then
24240 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24241 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24242 echo "$as_me: $ac_file is unchanged" >&6;}
24244 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24246 X"$ac_file" : 'X\(//\)[^/]' \| \
24247 X"$ac_file" : 'X\(//\)$' \| \
24248 X"$ac_file" : 'X\(/\)' \| \
24249 . : '\(.\)' 2>/dev/null ||
24251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24253 /^X\(\/\/\)$/{ s//\1/; q; }
24254 /^X\(\/\).*/{ s//\1/; q; }
24256 { if $as_mkdir_p; then
24261 while test ! -d "$as_dir"; do
24262 as_dirs="$as_dir $as_dirs"
24263 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24265 X"$as_dir" : 'X\(//\)[^/]' \| \
24266 X"$as_dir" : 'X\(//\)$' \| \
24267 X"$as_dir" : 'X\(/\)' \| \
24268 . : '\(.\)' 2>/dev/null ||
24270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24272 /^X\(\/\/\)$/{ s//\1/; q; }
24273 /^X\(\/\).*/{ s//\1/; q; }
24276 test ! -n "$as_dirs" || mkdir $as_dirs
24277 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24278 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24279 { (exit 1); exit 1; }; }; }
24282 mv $tmp/config.h $ac_file
24286 rm -f $tmp/config.h
24288 # Compute $ac_file's index in $config_headers.
24290 for _am_header in $config_headers :; do
24291 case $_am_header in
24292 $ac_file | $ac_file:* )
24295 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24298 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24299 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24300 X$ac_file : 'X\(//\)[^/]' \| \
24301 X$ac_file : 'X\(//\)$' \| \
24302 X$ac_file : 'X\(/\)' \| \
24303 . : '\(.\)' 2>/dev/null ||
24305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24307 /^X\(\/\/\)$/{ s//\1/; q; }
24308 /^X\(\/\).*/{ s//\1/; q; }
24309 s/.*/./; q'`/stamp-h$_am_stamp_count
24312 cat >>$CONFIG_STATUS <<\_ACEOF
24315 # CONFIG_COMMANDS section.
24317 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24318 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24319 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24320 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24321 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24322 X"$ac_dest" : 'X\(//\)[^/]' \| \
24323 X"$ac_dest" : 'X\(//\)$' \| \
24324 X"$ac_dest" : 'X\(/\)' \| \
24325 . : '\(.\)' 2>/dev/null ||
24327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24329 /^X\(\/\/\)$/{ s//\1/; q; }
24330 /^X\(\/\).*/{ s//\1/; q; }
24332 { if $as_mkdir_p; then
24337 while test ! -d "$as_dir"; do
24338 as_dirs="$as_dir $as_dirs"
24339 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24341 X"$as_dir" : 'X\(//\)[^/]' \| \
24342 X"$as_dir" : 'X\(//\)$' \| \
24343 X"$as_dir" : 'X\(/\)' \| \
24344 . : '\(.\)' 2>/dev/null ||
24346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24348 /^X\(\/\/\)$/{ s//\1/; q; }
24349 /^X\(\/\).*/{ s//\1/; q; }
24352 test ! -n "$as_dirs" || mkdir $as_dirs
24353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24354 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24355 { (exit 1); exit 1; }; }; }
24359 if test "$ac_dir" != .; then
24360 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24361 # A "../" for each directory in $ac_dir_suffix.
24362 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24364 ac_dir_suffix= ac_top_builddir=
24368 .) # No --srcdir option. We are building in place.
24370 if test -z "$ac_top_builddir"; then
24373 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24375 [\\/]* | ?:[\\/]* ) # Absolute path.
24376 ac_srcdir=$srcdir$ac_dir_suffix;
24377 ac_top_srcdir=$srcdir ;;
24378 *) # Relative path.
24379 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24380 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24383 # Do not use `cd foo && pwd` to compute absolute paths, because
24384 # the directories may not exist.
24386 .) ac_abs_builddir="$ac_dir";;
24389 .) ac_abs_builddir=`pwd`;;
24390 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24391 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24394 case $ac_abs_builddir in
24395 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24397 case ${ac_top_builddir}. in
24398 .) ac_abs_top_builddir=$ac_abs_builddir;;
24399 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24400 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24403 case $ac_abs_builddir in
24404 .) ac_abs_srcdir=$ac_srcdir;;
24407 .) ac_abs_srcdir=$ac_abs_builddir;;
24408 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24409 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24412 case $ac_abs_builddir in
24413 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24415 case $ac_top_srcdir in
24416 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24417 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24418 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24423 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24424 echo "$as_me: executing $ac_dest commands" >&6;}
24426 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24427 # Strip MF so we end up with the name of the file.
24428 mf=`echo "$mf" | sed -e 's/:.*$//'`
24429 # Check whether this is an Automake generated Makefile or not.
24430 # We used to match only the files named `Makefile.in', but
24431 # some people rename them; so instead we look at the file content.
24432 # Grep'ing the first line is not enough: some people post-process
24433 # each Makefile.in and add a new line on top of each file to say so.
24434 # So let's grep whole file.
24435 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24436 dirpart=`(dirname "$mf") 2>/dev/null ||
24437 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24438 X"$mf" : 'X\(//\)[^/]' \| \
24439 X"$mf" : 'X\(//\)$' \| \
24440 X"$mf" : 'X\(/\)' \| \
24441 . : '\(.\)' 2>/dev/null ||
24443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24445 /^X\(\/\/\)$/{ s//\1/; q; }
24446 /^X\(\/\).*/{ s//\1/; q; }
24451 # Extract the definition of DEPDIR, am__include, and am__quote
24452 # from the Makefile without running `make'.
24453 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24454 test -z "$DEPDIR" && continue
24455 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24456 test -z "am__include" && continue
24457 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24458 # When using ansi2knr, U may be empty or an underscore; expand it
24459 U=`sed -n 's/^U = //p' < "$mf"`
24460 # Find all dependency output files, they are included files with
24461 # $(DEPDIR) in their names. We invoke sed twice because it is the
24462 # simplest approach to changing $(DEPDIR) to its actual value in the
24464 for file in `sed -n "
24465 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24466 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24467 # Make sure the directory exists.
24468 test -f "$dirpart/$file" && continue
24469 fdir=`(dirname "$file") 2>/dev/null ||
24470 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24471 X"$file" : 'X\(//\)[^/]' \| \
24472 X"$file" : 'X\(//\)$' \| \
24473 X"$file" : 'X\(/\)' \| \
24474 . : '\(.\)' 2>/dev/null ||
24476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24478 /^X\(\/\/\)$/{ s//\1/; q; }
24479 /^X\(\/\).*/{ s//\1/; q; }
24481 { if $as_mkdir_p; then
24482 mkdir -p $dirpart/$fdir
24484 as_dir=$dirpart/$fdir
24486 while test ! -d "$as_dir"; do
24487 as_dirs="$as_dir $as_dirs"
24488 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24490 X"$as_dir" : 'X\(//\)[^/]' \| \
24491 X"$as_dir" : 'X\(//\)$' \| \
24492 X"$as_dir" : 'X\(/\)' \| \
24493 . : '\(.\)' 2>/dev/null ||
24495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24497 /^X\(\/\/\)$/{ s//\1/; q; }
24498 /^X\(\/\).*/{ s//\1/; q; }
24501 test ! -n "$as_dirs" || mkdir $as_dirs
24502 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24503 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24504 { (exit 1); exit 1; }; }; }
24506 # echo "creating $dirpart/$file"
24507 echo '# dummy' > "$dirpart/$file"
24515 cat >>$CONFIG_STATUS <<\_ACEOF
24517 { (exit 0); exit 0; }
24519 chmod +x $CONFIG_STATUS
24520 ac_clean_files=$ac_clean_files_save
24523 # configure is writing to config.log, and then calls config.status.
24524 # config.status does its own redirection, appending to config.log.
24525 # Unfortunately, on DOS this fails, as config.log is still kept open
24526 # by configure, so config.status won't be able to write to it; its
24527 # output is simply discarded. So we exec the FD to /dev/null,
24528 # effectively closing config.log, so it can be properly (re)opened and
24529 # appended to by config.status. When coming back to configure, we
24530 # need to make the FD available again.
24531 if test "$no_create" != yes; then
24533 ac_config_status_args=
24534 test "$silent" = yes &&
24535 ac_config_status_args="$ac_config_status_args --quiet"
24537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24540 # would make configure fail if this is the last instruction.
24541 $ac_cs_success || { (exit 1); exit 1; }