2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for mod_chxj 0.6.0-stable.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME='mod_chxj'
423 PACKAGE_TARNAME='mod_chxj'
424 PACKAGE_VERSION='0.6.0-stable'
425 PACKAGE_STRING='mod_chxj 0.6.0-stable'
428 ac_unique_file="src/mod_chxj.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 APXS WAND_CONFIG APR_CONFIG with_apache_header QDEFS DDEFS LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures mod_chxj 0.6.0-stable to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1020 if test -n "$ac_init_help"; then
1021 case $ac_init_help in
1022 short | recursive ) echo "Configuration of mod_chxj 0.6.0-stable:";;
1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1036 --enable-img-conv-f Please specify it when you change the file name of the image being written in the
1037 source by the automatic operation.
1038 --enable-dump-log When the log of conversion is output, it specifies it with the output file.
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1047 include additional configurations [automatic]
1048 --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1049 --with-apxs=ARG Path of apxs program file.
1050 --with-apr-config=ARG Path of apr-config program file.
1051 --with-iconv=ARG specify the place of the libiconv directory.
1052 --with-iconv_hook=ARG specify the place of the libiconv_hook directory.
1054 Some influential environment variables:
1055 CC C compiler command
1056 CFLAGS C compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1062 CXX C++ compiler command
1063 CXXFLAGS C++ compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 ac_dir_suffix= ac_top_builddir=
1090 .) # No --srcdir option. We are building in place.
1092 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1108 .) ac_abs_builddir="$ac_dir";;
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1155 $ac_configure --help
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1166 mod_chxj configure 0.6.0-stable
1167 generated by GNU Autoconf 2.59
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1180 It was created by mod_chxj $as_me 0.6.0-stable, which was
1181 generated by GNU Autoconf 2.59. Invocation command line was
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1240 ac_must_keep_next=false
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269 -* ) ac_must_keep_next=true ;;
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log. We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1298 # The following way of writing the cache mishandles newlines in values,
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1321 for ac_var in $ac_subst_vars
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1328 if test -n "$ac_subst_files"; then
1335 for ac_var in $ac_subst_files
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -s confdefs.h; then
1350 sed "/^$/d" confdefs.h | sort
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361 for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 # Predefined preprocessor variables.
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407 for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1416 if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1433 # Check that the precious variables saved in the cache have kept the same
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457 echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459 echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476 if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1520 if test -f $ac_dir/install-sh; then
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 elif test -f $ac_dir/install.sh; then
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 elif test -f $ac_dir/shtool; then
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1534 if test -z "$ac_aux_dir"; then
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1537 { (exit 1); exit 1; }; }
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543 # Make sure we can run config.sub.
1544 $ac_config_sub sun4 >/dev/null 2>&1 ||
1545 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547 { (exit 1); exit 1; }; }
1549 echo "$as_me:$LINENO: checking build system type" >&5
1550 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551 if test "${ac_cv_build+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 ac_cv_build_alias=$build_alias
1555 test -z "$ac_cv_build_alias" &&
1556 ac_cv_build_alias=`$ac_config_guess`
1557 test -z "$ac_cv_build_alias" &&
1558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560 { (exit 1); exit 1; }; }
1561 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1567 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568 echo "${ECHO_T}$ac_cv_build" >&6
1570 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575 echo "$as_me:$LINENO: checking host system type" >&5
1576 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1577 if test "${ac_cv_host+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 ac_cv_host_alias=$host_alias
1581 test -z "$ac_cv_host_alias" &&
1582 ac_cv_host_alias=$ac_cv_build_alias
1583 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1585 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1589 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1590 echo "${ECHO_T}$ac_cv_host" >&6
1592 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1597 echo "$as_me:$LINENO: checking target system type" >&5
1598 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1599 if test "${ac_cv_target+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 ac_cv_target_alias=$target_alias
1603 test "x$ac_cv_target_alias" = "x" &&
1604 ac_cv_target_alias=$ac_cv_host_alias
1605 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1607 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
1611 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1612 echo "${ECHO_T}$ac_cv_target" >&6
1613 target=$ac_cv_target
1614 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1619 # The aliases save the names the user supplied, while $host etc.
1620 # will get canonicalized.
1621 test -n "$target_alias" &&
1622 test "$program_prefix$program_suffix$program_transform_name" = \
1624 program_prefix=${target_alias}-
1625 am__api_version="1.4"
1626 # Find a good install program. We prefer a C program (faster),
1627 # so one script is as good as another. But avoid the broken or
1628 # incompatible versions:
1629 # SysV /etc/install, /usr/sbin/install
1630 # SunOS /usr/etc/install
1631 # IRIX /sbin/install
1633 # AmigaOS /C/install, which installs bootblocks on floppy discs
1634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1637 # OS/2's system install, which has a completely different semantic
1638 # ./install, which can be erroneously created by make from ./install.sh.
1639 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1640 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1641 if test -z "$INSTALL"; then
1642 if test "${ac_cv_path_install+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 # Account for people who put trailing slashes in PATH elements.
1652 ./ | .// | /cC/* | \
1653 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1654 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1657 # OSF1 and SCO ODT 3.0 have their own names for install.
1658 # Don't use installbsd from OSF since it installs stuff as root
1660 for ac_prog in ginstall scoinst install; do
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1663 if test $ac_prog = install &&
1664 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # AIX install. It has an incompatible calling convention.
1667 elif test $ac_prog = install &&
1668 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1669 # program-specific install script used by HP pwplus--don't use.
1672 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1684 if test "${ac_cv_path_install+set}" = set; then
1685 INSTALL=$ac_cv_path_install
1687 # As a last resort, use the slow shell script. We don't cache a
1688 # path for INSTALL within a source directory, because that will
1689 # break other packages using the cache if that directory is
1690 # removed, or if the path is relative.
1691 INSTALL=$ac_install_sh
1694 echo "$as_me:$LINENO: result: $INSTALL" >&5
1695 echo "${ECHO_T}$INSTALL" >&6
1697 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1698 # It thinks the first close brace ends the variable substitution.
1699 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1701 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1703 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1705 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1706 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1709 echo timestamp > conftestfile
1710 # Do `set' in a subshell so we don't clobber the current shell's
1711 # arguments. Must try -L first in case configure is actually a
1712 # symlink; some systems play weird games with the mod time of symlinks
1713 # (eg FreeBSD returns the mod time of the symlink's containing
1716 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1717 if test "$*" = "X"; then
1719 set X `ls -t $srcdir/configure conftestfile`
1721 if test "$*" != "X $srcdir/configure conftestfile" \
1722 && test "$*" != "X conftestfile $srcdir/configure"; then
1724 # If neither matched, then we have a broken ls. This can happen
1725 # if, for instance, CONFIG_SHELL is bash and it inherits a
1726 # broken ls alias from the environment. This has actually
1727 # happened. Such a system could not be considered "sane".
1728 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1729 alias in your environment" >&5
1730 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1731 alias in your environment" >&2;}
1732 { (exit 1); exit 1; }; }
1735 test "$2" = conftestfile
1741 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1742 Check your system clock" >&5
1743 echo "$as_me: error: newly created file is older than distributed files!
1744 Check your system clock" >&2;}
1745 { (exit 1); exit 1; }; }
1748 echo "$as_me:$LINENO: result: yes" >&5
1749 echo "${ECHO_T}yes" >&6
1750 test "$program_prefix" != NONE &&
1751 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1752 # Use a double $ so make ignores it.
1753 test "$program_suffix" != NONE &&
1754 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1755 # Double any \ or $. echo might interpret backslashes.
1756 # By default was `s,x,x', remove it if useless.
1757 cat <<\_ACEOF >conftest.sed
1758 s/[\\$]/&&/g;s/;s,x,x,$//
1760 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1763 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1764 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1765 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1766 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 cat >conftest.make <<\_ACEOF
1771 @echo 'ac_maketemp="$(MAKE)"'
1773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1774 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1775 if test -n "$ac_maketemp"; then
1776 eval ac_cv_prog_make_${ac_make}_set=yes
1778 eval ac_cv_prog_make_${ac_make}_set=no
1782 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1783 echo "$as_me:$LINENO: result: yes" >&5
1784 echo "${ECHO_T}yes" >&6
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789 SET_MAKE="MAKE=${MAKE-make}"
1795 VERSION=0.6.0-stable
1797 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1798 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1800 { (exit 1); exit 1; }; }
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE "$PACKAGE"
1808 cat >>confdefs.h <<_ACEOF
1809 #define VERSION "$VERSION"
1814 missing_dir=`cd $ac_aux_dir && pwd`
1815 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1816 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1817 # Run test in a subshell; some versions of sh will print an error if
1818 # an executable is not found, even if stderr is redirected.
1819 # Redirect stdin to placate older versions of autoconf. Sigh.
1820 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1821 ACLOCAL=aclocal-${am__api_version}
1822 echo "$as_me:$LINENO: result: found" >&5
1823 echo "${ECHO_T}found" >&6
1825 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1826 echo "$as_me:$LINENO: result: missing" >&5
1827 echo "${ECHO_T}missing" >&6
1830 echo "$as_me:$LINENO: checking for working autoconf" >&5
1831 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1832 # Run test in a subshell; some versions of sh will print an error if
1833 # an executable is not found, even if stderr is redirected.
1834 # Redirect stdin to placate older versions of autoconf. Sigh.
1835 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1837 echo "$as_me:$LINENO: result: found" >&5
1838 echo "${ECHO_T}found" >&6
1840 AUTOCONF="$missing_dir/missing autoconf"
1841 echo "$as_me:$LINENO: result: missing" >&5
1842 echo "${ECHO_T}missing" >&6
1845 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1846 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1847 # Run test in a subshell; some versions of sh will print an error if
1848 # an executable is not found, even if stderr is redirected.
1849 # Redirect stdin to placate older versions of autoconf. Sigh.
1850 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1851 AUTOMAKE=automake-${am__api_version}
1852 echo "$as_me:$LINENO: result: found" >&5
1853 echo "${ECHO_T}found" >&6
1855 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1856 echo "$as_me:$LINENO: result: missing" >&5
1857 echo "${ECHO_T}missing" >&6
1860 echo "$as_me:$LINENO: checking for working autoheader" >&5
1861 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1862 # Run test in a subshell; some versions of sh will print an error if
1863 # an executable is not found, even if stderr is redirected.
1864 # Redirect stdin to placate older versions of autoconf. Sigh.
1865 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1866 AUTOHEADER=autoheader
1867 echo "$as_me:$LINENO: result: found" >&5
1868 echo "${ECHO_T}found" >&6
1870 AUTOHEADER="$missing_dir/missing autoheader"
1871 echo "$as_me:$LINENO: result: missing" >&5
1872 echo "${ECHO_T}missing" >&6
1875 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1876 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1877 # Run test in a subshell; some versions of sh will print an error if
1878 # an executable is not found, even if stderr is redirected.
1879 # Redirect stdin to placate older versions of autoconf. Sigh.
1880 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1882 echo "$as_me:$LINENO: result: found" >&5
1883 echo "${ECHO_T}found" >&6
1885 MAKEINFO="$missing_dir/missing makeinfo"
1886 echo "$as_me:$LINENO: result: missing" >&5
1887 echo "${ECHO_T}missing" >&6
1892 ac_config_headers="$ac_config_headers include/config.h"
1894 ac_config_commands="$ac_config_commands default-1"
1898 # Checks for programs.
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904 if test -n "$ac_tool_prefix"; then
1905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 if test -n "$CC"; then
1913 ac_cv_prog_CC="$CC" # Let the user override the test.
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 if test -n "$CC"; then
1933 echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1941 if test -z "$ac_cv_prog_CC"; then
1943 # Extract the first word of "gcc", so it can be a program name with args.
1944 set dummy gcc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC="gcc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1983 if test -z "$CC"; then
1984 if test -n "$ac_tool_prefix"; then
1985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1986 set dummy ${ac_tool_prefix}cc; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_CC="${ac_tool_prefix}cc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2021 if test -z "$ac_cv_prog_CC"; then
2023 # Extract the first word of "cc", so it can be a program name with args.
2024 set dummy cc; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_ac_ct_CC="cc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2064 if test -z "$CC"; then
2065 # Extract the first word of "cc", so it can be a program name with args.
2066 set dummy cc; ac_word=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2084 ac_prog_rejected=yes
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 if test $ac_prog_rejected = yes; then
2095 # We found a bogon in the path, so make sure we never use it.
2096 set dummy $ac_cv_prog_CC
2098 if test $# != 0; then
2099 # We chose a different compiler from the bogus one.
2100 # However, it has the same basename, so the bogon will be chosen
2101 # first if we set CC to just the basename; use the full file name.
2103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2109 if test -n "$CC"; then
2110 echo "$as_me:$LINENO: result: $CC" >&5
2111 echo "${ECHO_T}$CC" >&6
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2118 if test -z "$CC"; then
2119 if test -n "$ac_tool_prefix"; then
2122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 if test -n "$CC"; then
2150 echo "$as_me:$LINENO: result: $CC" >&5
2151 echo "${ECHO_T}$CC" >&6
2153 echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2157 test -n "$CC" && break
2160 if test -z "$CC"; then
2164 # Extract the first word of "$ac_prog", so it can be a program name with args.
2165 set dummy $ac_prog; ac_word=$2
2166 echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 if test -n "$ac_ct_CC"; then
2172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 ac_cv_prog_ac_ct_CC="$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2191 if test -n "$ac_ct_CC"; then
2192 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2193 echo "${ECHO_T}$ac_ct_CC" >&6
2195 echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6
2199 test -n "$ac_ct_CC" && break
2208 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: no acceptable C compiler found in \$PATH
2211 See \`config.log' for more details." >&2;}
2212 { (exit 1); exit 1; }; }
2214 # Provide some information about the compiler.
2215 echo "$as_me:$LINENO:" \
2216 "checking for C compiler version" >&5
2217 ac_compiler=`set X $ac_compile; echo $2`
2218 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2219 (eval $ac_compiler --version </dev/null >&5) 2>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }
2223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2224 (eval $ac_compiler -v </dev/null >&5) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }
2228 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2229 (eval $ac_compiler -V </dev/null >&5) 2>&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2234 cat >conftest.$ac_ext <<_ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2249 ac_clean_files_save=$ac_clean_files
2250 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2251 # Try to create an executable without -o first, disregard a.out.
2252 # It will help us diagnose broken compilers, and finding out an intuition
2254 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2255 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2256 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2257 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2258 (eval $ac_link_default) 2>&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; then
2262 # Find the output, starting from the most likely. This scheme is
2263 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2266 # Be careful to initialize this variable, since it used to be cached.
2267 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2269 # b.out is created by i960 compilers.
2270 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2272 test -f "$ac_file" || continue
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2277 # This is the source file.
2280 # We found the default executable, but exeext='' is most
2284 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285 # FIXME: I believe we export ac_cv_exeext for Libtool,
2286 # but it would be cool to find out if it's true. Does anybody
2287 # maintain Libtool? --akim.
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2298 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: C compiler cannot create executables
2301 See \`config.log' for more details." >&2;}
2302 { (exit 77); exit 77; }; }
2305 ac_exeext=$ac_cv_exeext
2306 echo "$as_me:$LINENO: result: $ac_file" >&5
2307 echo "${ECHO_T}$ac_file" >&6
2309 # Check the compiler produces executables we can run. If not, either
2310 # the compiler is broken, or we cross compile.
2311 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2312 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2313 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2314 # If not cross compiling, check that we can run a simple program.
2315 if test "$cross_compiling" != yes; then
2316 if { ac_try='./$ac_file'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; }; then
2324 if test "$cross_compiling" = maybe; then
2327 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2328 If you meant to cross compile, use \`--host'.
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2337 echo "$as_me:$LINENO: result: yes" >&5
2338 echo "${ECHO_T}yes" >&6
2340 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2341 ac_clean_files=$ac_clean_files_save
2342 # Check the compiler produces executables we can run. If not, either
2343 # the compiler is broken, or we cross compile.
2344 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2345 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2346 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2347 echo "${ECHO_T}$cross_compiling" >&6
2349 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2350 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2352 (eval $ac_link) 2>&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; then
2356 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2357 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2358 # work properly (i.e., refer to `conftest.exe'), while it won't with
2360 for ac_file in conftest.exe conftest conftest.*; do
2361 test -f "$ac_file" || continue
2363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2364 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2378 rm -f conftest$ac_cv_exeext
2379 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2380 echo "${ECHO_T}$ac_cv_exeext" >&6
2382 rm -f conftest.$ac_ext
2383 EXEEXT=$ac_cv_exeext
2385 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2386 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2387 if test "${ac_cv_objext+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 cat >conftest.$ac_ext <<_ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h. */
2405 rm -f conftest.o conftest.obj
2406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407 (eval $ac_compile) 2>&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; then
2411 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2422 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2425 See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2431 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2432 echo "${ECHO_T}$ac_cv_objext" >&6
2433 OBJEXT=$ac_cv_objext
2435 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2436 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2437 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 cat >conftest.$ac_ext <<_ACEOF
2443 cat confdefs.h >>conftest.$ac_ext
2444 cat >>conftest.$ac_ext <<_ACEOF
2445 /* end confdefs.h. */
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>conftest.er1
2462 grep -v '^ *+' conftest.er1 >conftest.err
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2490 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2491 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2492 GCC=`test $ac_compiler_gnu = yes && echo yes`
2493 ac_test_CFLAGS=${CFLAGS+set}
2494 ac_save_CFLAGS=$CFLAGS
2496 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2497 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2498 if test "${ac_cv_prog_cc_g+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>conftest.er1
2520 grep -v '^ *+' conftest.er1 >conftest.err
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2547 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2548 if test "$ac_test_CFLAGS" = set; then
2549 CFLAGS=$ac_save_CFLAGS
2550 elif test $ac_cv_prog_cc_g = yes; then
2551 if test "$GCC" = yes; then
2557 if test "$GCC" = yes; then
2563 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2564 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2565 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 ac_cv_prog_cc_stdc=no
2570 cat >conftest.$ac_ext <<_ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2578 #include <sys/types.h>
2579 #include <sys/stat.h>
2580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2581 struct buf { int x; };
2582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2583 static char *e (p, i)
2589 static char *f (char * (*g) (char **, int), char **p, ...)
2594 s = g (p, va_arg (v,int));
2599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2600 function prototypes and stuff, but not '\xHH' hex character constants.
2601 These don't provoke an error unfortunately, instead are silently treated
2602 as 'x'. The following induces an error, until -std1 is added to get
2603 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2604 array size at least. It's necessary to write '\x00'==0 to get something
2605 that's true only with -std1. */
2606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2608 int test (int i, double x);
2609 struct s1 {int (*f) (int a);};
2610 struct s2 {int (*f) (double a);};
2611 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2617 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2622 # Don't try gcc -ansi; that turns off useful extensions and
2623 # breaks some systems' header files.
2624 # AIX -qlanglvl=ansi
2625 # Ultrix and OSF/1 -std1
2626 # HP-UX 10.20 and later -Ae
2627 # HP-UX older versions -Aa -D_HPUX_SOURCE
2628 # SVR4 -Xc -D__EXTENSIONS__
2629 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2631 CC="$ac_save_CC $ac_arg"
2632 rm -f conftest.$ac_objext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634 (eval $ac_compile) 2>conftest.er1
2636 grep -v '^ *+' conftest.er1 >conftest.err
2638 cat conftest.err >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } &&
2641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; } &&
2647 { ac_try='test -s conftest.$ac_objext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2653 ac_cv_prog_cc_stdc=$ac_arg
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2660 rm -f conftest.err conftest.$ac_objext
2662 rm -f conftest.$ac_ext conftest.$ac_objext
2667 case "x$ac_cv_prog_cc_stdc" in
2669 echo "$as_me:$LINENO: result: none needed" >&5
2670 echo "${ECHO_T}none needed" >&6 ;;
2672 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2673 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2674 CC="$CC $ac_cv_prog_cc_stdc" ;;
2677 # Some people use a C++ compiler to compile C. Since we use `exit',
2678 # in C++ we need to declare it. In case someone uses the same compiler
2679 # for both compiling C and C++ we need to have the C++ compiler decide
2680 # the declaration of exit, since it's the most demanding environment.
2681 cat >conftest.$ac_ext <<_ACEOF
2686 rm -f conftest.$ac_objext
2687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688 (eval $ac_compile) 2>conftest.er1
2690 grep -v '^ *+' conftest.er1 >conftest.err
2692 cat conftest.err >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } &&
2695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 for ac_declaration in \
2709 'extern "C" void std::exit (int) throw (); using std::exit;' \
2710 'extern "C" void std::exit (int); using std::exit;' \
2711 'extern "C" void exit (int) throw ();' \
2712 'extern "C" void exit (int);' \
2715 cat >conftest.$ac_ext <<_ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2779 grep -v '^ *+' conftest.er1 >conftest.err
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 if test -n "$ac_declaration"; then
2806 echo '#ifdef __cplusplus' >>confdefs.h
2807 echo $ac_declaration >>confdefs.h
2808 echo '#endif' >>confdefs.h
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818 ac_cpp='$CPP $CPPFLAGS'
2819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823 # Find a good install program. We prefer a C program (faster),
2824 # so one script is as good as another. But avoid the broken or
2825 # incompatible versions:
2826 # SysV /etc/install, /usr/sbin/install
2827 # SunOS /usr/etc/install
2828 # IRIX /sbin/install
2830 # AmigaOS /C/install, which installs bootblocks on floppy discs
2831 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2834 # OS/2's system install, which has a completely different semantic
2835 # ./install, which can be erroneously created by make from ./install.sh.
2836 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2837 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2838 if test -z "$INSTALL"; then
2839 if test "${ac_cv_path_install+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 test -z "$as_dir" && as_dir=.
2847 # Account for people who put trailing slashes in PATH elements.
2849 ./ | .// | /cC/* | \
2850 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2851 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2854 # OSF1 and SCO ODT 3.0 have their own names for install.
2855 # Don't use installbsd from OSF since it installs stuff as root
2857 for ac_prog in ginstall scoinst install; do
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2860 if test $ac_prog = install &&
2861 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2862 # AIX install. It has an incompatible calling convention.
2864 elif test $ac_prog = install &&
2865 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2866 # program-specific install script used by HP pwplus--don't use.
2869 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2881 if test "${ac_cv_path_install+set}" = set; then
2882 INSTALL=$ac_cv_path_install
2884 # As a last resort, use the slow shell script. We don't cache a
2885 # path for INSTALL within a source directory, because that will
2886 # break other packages using the cache if that directory is
2887 # removed, or if the path is relative.
2888 INSTALL=$ac_install_sh
2891 echo "$as_me:$LINENO: result: $INSTALL" >&5
2892 echo "${ECHO_T}$INSTALL" >&6
2894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2895 # It thinks the first close brace ends the variable substitution.
2896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2902 # Check whether --enable-shared or --disable-shared was given.
2903 if test "${enable_shared+set}" = set; then
2904 enableval="$enable_shared"
2905 p=${PACKAGE-default}
2907 yes) enable_shared=yes ;;
2908 no) enable_shared=no ;;
2911 # Look at the argument we got. We use all the common list separators.
2912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2913 for pkg in $enableval; do
2915 if test "X$pkg" = "X$p"; then
2926 # Check whether --enable-static or --disable-static was given.
2927 if test "${enable_static+set}" = set; then
2928 enableval="$enable_static"
2929 p=${PACKAGE-default}
2931 yes) enable_static=yes ;;
2932 no) enable_static=no ;;
2935 # Look at the argument we got. We use all the common list separators.
2936 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2937 for pkg in $enableval; do
2939 if test "X$pkg" = "X$p"; then
2950 # Check whether --enable-fast-install or --disable-fast-install was given.
2951 if test "${enable_fast_install+set}" = set; then
2952 enableval="$enable_fast_install"
2953 p=${PACKAGE-default}
2955 yes) enable_fast_install=yes ;;
2956 no) enable_fast_install=no ;;
2958 enable_fast_install=no
2959 # Look at the argument we got. We use all the common list separators.
2960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2961 for pkg in $enableval; do
2963 if test "X$pkg" = "X$p"; then
2964 enable_fast_install=yes
2971 enable_fast_install=yes
2974 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2975 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2976 if test "${lt_cv_path_SED+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 # Loop through the user's path and test for sed and gsed.
2980 # Then use that list of sed's as ones to test for truncation.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for lt_ac_prog in sed gsed; do
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2989 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2996 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2997 # along with /bin/sed that truncates output.
2998 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2999 test ! -f $lt_ac_sed && continue
3000 cat /dev/null > conftest.in
3002 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3003 # Check for GNU sed and select it if it is found.
3004 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3005 lt_cv_path_SED=$lt_ac_sed
3009 cat conftest.in conftest.in >conftest.tmp
3010 mv conftest.tmp conftest.in
3011 cp conftest.in conftest.nl
3013 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3014 cmp -s conftest.out conftest.nl || break
3015 # 10000 chars as input seems more than enough
3016 test $lt_ac_count -gt 10 && break
3017 lt_ac_count=`expr $lt_ac_count + 1`
3018 if test $lt_ac_count -gt $lt_ac_max; then
3019 lt_ac_max=$lt_ac_count
3020 lt_cv_path_SED=$lt_ac_sed
3028 echo "$as_me:$LINENO: result: $SED" >&5
3029 echo "${ECHO_T}$SED" >&6
3031 echo "$as_me:$LINENO: checking for egrep" >&5
3032 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3033 if test "${ac_cv_prog_egrep+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3037 then ac_cv_prog_egrep='grep -E'
3038 else ac_cv_prog_egrep='egrep'
3041 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3042 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3043 EGREP=$ac_cv_prog_egrep
3047 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3048 if test "${with_gnu_ld+set}" = set; then
3049 withval="$with_gnu_ld"
3050 test "$withval" = no || with_gnu_ld=yes
3055 if test "$GCC" = yes; then
3056 # Check if gcc -print-prog-name=ld gives a path.
3057 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3058 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3061 # gcc leaves a trailing carriage return which upsets mingw
3062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3067 # Accept absolute paths.
3069 re_direlt='/[^/][^/]*/\.\./'
3070 # Canonicalize the pathname of ld
3071 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3072 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3073 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3075 test -z "$LD" && LD="$ac_prog"
3078 # If it fails, then pretend we aren't using GCC.
3082 # If it is relative, then search for the first ld in PATH.
3086 elif test "$with_gnu_ld" = yes; then
3087 echo "$as_me:$LINENO: checking for GNU ld" >&5
3088 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3090 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3091 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3093 if test "${lt_cv_path_LD+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 if test -z "$LD"; then
3097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3098 for ac_dir in $PATH; do
3100 test -z "$ac_dir" && ac_dir=.
3101 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3102 lt_cv_path_LD="$ac_dir/$ac_prog"
3103 # Check to see if the program is GNU ld. I'd rather use --version,
3104 # but apparently some variants of GNU ld only accept -v.
3105 # Break only if it was the GNU/non-GNU ld that we prefer.
3106 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3107 *GNU* | *'with BFD'*)
3108 test "$with_gnu_ld" != no && break
3111 test "$with_gnu_ld" != yes && break
3118 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3123 if test -n "$LD"; then
3124 echo "$as_me:$LINENO: result: $LD" >&5
3125 echo "${ECHO_T}$LD" >&6
3127 echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3130 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3131 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3132 { (exit 1); exit 1; }; }
3133 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3134 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3135 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3139 case `$LD -v 2>&1 </dev/null` in
3140 *GNU* | *'with BFD'*)
3141 lt_cv_prog_gnu_ld=yes
3144 lt_cv_prog_gnu_ld=no
3148 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3149 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3150 with_gnu_ld=$lt_cv_prog_gnu_ld
3153 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3154 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3155 if test "${lt_cv_ld_reload_flag+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 lt_cv_ld_reload_flag='-r'
3160 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3161 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3162 reload_flag=$lt_cv_ld_reload_flag
3163 case $reload_flag in
3165 *) reload_flag=" $reload_flag" ;;
3167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3170 if test "$GCC" = yes; then
3171 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3178 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3179 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3180 if test "${lt_cv_path_NM+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 if test -n "$NM"; then
3184 # Let the user override the test.
3187 lt_nm_to_check="${ac_tool_prefix}nm"
3188 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3189 lt_nm_to_check="$lt_nm_to_check nm"
3191 for lt_tmp_nm in $lt_nm_to_check; do
3192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3193 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3195 test -z "$ac_dir" && ac_dir=.
3196 tmp_nm="$ac_dir/$lt_tmp_nm"
3197 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3198 # Check to see if the nm accepts a BSD-compat flag.
3199 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3200 # nm: unknown option "B" ignored
3201 # Tru64's nm complains that /dev/null is an invalid object file
3202 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3203 */dev/null* | *'Invalid file or object type'*)
3204 lt_cv_path_NM="$tmp_nm -B"
3208 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3210 lt_cv_path_NM="$tmp_nm -p"
3214 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3215 continue # so that we can try to find one that supports BSD flags
3224 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3227 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3228 echo "${ECHO_T}$lt_cv_path_NM" >&6
3231 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3232 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3234 if test "$LN_S" = "ln -s"; then
3235 echo "$as_me:$LINENO: result: yes" >&5
3236 echo "${ECHO_T}yes" >&6
3238 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3239 echo "${ECHO_T}no, using $LN_S" >&6
3242 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3243 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3244 if test "${lt_cv_deplibs_check_method+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 lt_cv_file_magic_cmd='$MAGIC_CMD'
3248 lt_cv_file_magic_test_file=
3249 lt_cv_deplibs_check_method='unknown'
3250 # Need to set the preceding variable on all platforms that support
3251 # interlibrary dependencies.
3252 # 'none' -- dependencies not supported.
3253 # `unknown' -- same as none, but documents that we really don't know.
3254 # 'pass_all' -- all dependencies passed with no checks.
3255 # 'test_compile' -- check by making test program.
3256 # 'file_magic [[regex]]' -- check by looking for files in library path
3257 # which responds to the $file_magic_cmd with a given extended regex.
3258 # If you have `file' or equivalent on your system and you're not sure
3259 # whether `pass_all' will *always* work, you probably want this one.
3263 lt_cv_deplibs_check_method=pass_all
3267 lt_cv_deplibs_check_method=pass_all
3271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3272 lt_cv_file_magic_cmd='/usr/bin/file -L'
3273 lt_cv_file_magic_test_file=/shlib/libc.so
3277 # func_win32_libid is a shell function defined in ltmain.sh
3278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3279 lt_cv_file_magic_cmd='func_win32_libid'
3283 # Base MSYS/MinGW do not provide the 'file' command needed by
3284 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3285 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3286 lt_cv_file_magic_cmd='$OBJDUMP -f'
3289 darwin* | rhapsody*)
3290 lt_cv_deplibs_check_method=pass_all
3293 freebsd* | kfreebsd*-gnu | dragonfly*)
3294 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3297 # Not sure whether the presence of OpenBSD here was a mistake.
3298 # Let's accept both of them until this is cleared up.
3299 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3300 lt_cv_file_magic_cmd=/usr/bin/file
3301 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3305 lt_cv_deplibs_check_method=pass_all
3310 lt_cv_deplibs_check_method=pass_all
3313 hpux10.20* | hpux11*)
3314 lt_cv_file_magic_cmd=/usr/bin/file
3317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3318 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3321 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]'
3322 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3326 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3332 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3336 irix5* | irix6* | nonstopux*)
3338 *-32|*"-32 ") libmagic=32-bit;;
3339 *-n32|*"-n32 ") libmagic=N32;;
3340 *-64|*"-64 ") libmagic=64-bit;;
3341 *) libmagic=never-match;;
3343 lt_cv_deplibs_check_method=pass_all
3346 # This must be Linux ELF.
3348 lt_cv_deplibs_check_method=pass_all
3351 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3352 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3361 lt_cv_file_magic_cmd=/usr/bin/file
3362 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3366 lt_cv_deplibs_check_method=unknown
3370 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3377 osf3* | osf4* | osf5*)
3378 lt_cv_deplibs_check_method=pass_all
3382 lt_cv_deplibs_check_method=pass_all
3386 case $host_vendor in
3388 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]'
3389 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3392 lt_cv_deplibs_check_method=pass_all
3395 lt_cv_file_magic_cmd='/bin/file'
3396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3399 lt_cv_file_magic_cmd='/bin/file'
3400 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3401 lt_cv_file_magic_test_file=/lib/libc.so
3404 lt_cv_deplibs_check_method=pass_all
3407 lt_cv_deplibs_check_method=pass_all
3412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3413 lt_cv_deplibs_check_method=pass_all
3418 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3419 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3420 file_magic_cmd=$lt_cv_file_magic_cmd
3421 deplibs_check_method=$lt_cv_deplibs_check_method
3422 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3427 # If no C compiler was specified, use CC.
3430 # If no C compiler flags were specified, use CFLAGS.
3431 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3433 # Allow CC to be a program name with arguments.
3437 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3438 if test "${enable_libtool_lock+set}" = set; then
3439 enableval="$enable_libtool_lock"
3442 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3444 # Some flags need to be propagated to the compiler or linker for good
3448 # Find out which ABI we are using.
3449 echo 'int i;' > conftest.$ac_ext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451 (eval $ac_compile) 2>&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; then
3455 case `/usr/bin/file conftest.$ac_objext` in
3467 # Find out which ABI we are using.
3468 echo '#line 3468 "configure"' > conftest.$ac_ext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; then
3474 if test "$lt_cv_prog_gnu_ld" = yes; then
3475 case `/usr/bin/file conftest.$ac_objext` in
3477 LD="${LD-ld} -melf32bsmip"
3480 LD="${LD-ld} -melf32bmipn32"
3483 LD="${LD-ld} -melf64bmip"
3487 case `/usr/bin/file conftest.$ac_objext` in
3503 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3504 # Find out which ABI we are using.
3505 echo 'int i;' > conftest.$ac_ext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; then
3511 case `/usr/bin/file conftest.o` in
3515 LD="${LD-ld} -m elf_i386"
3517 ppc64-*linux*|powerpc64-*linux*)
3518 LD="${LD-ld} -m elf32ppclinux"
3521 LD="${LD-ld} -m elf_s390"
3524 LD="${LD-ld} -m elf32_sparc"
3531 LD="${LD-ld} -m elf_x86_64"
3533 ppc*-*linux*|powerpc*-*linux*)
3534 LD="${LD-ld} -m elf64ppc"
3537 LD="${LD-ld} -m elf64_s390"
3540 LD="${LD-ld} -m elf64_sparc"
3550 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3551 SAVE_CFLAGS="$CFLAGS"
3552 CFLAGS="$CFLAGS -belf"
3553 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3554 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3555 if test "${lt_cv_cc_needs_belf+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3579 rm -f conftest.$ac_objext conftest$ac_exeext
3580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3581 (eval $ac_link) 2>conftest.er1
3583 grep -v '^ *+' conftest.er1 >conftest.err
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } &&
3588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; } &&
3594 { ac_try='test -s conftest$ac_exeext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3600 lt_cv_cc_needs_belf=yes
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 lt_cv_cc_needs_belf=no
3607 rm -f conftest.err conftest.$ac_objext \
3608 conftest$ac_exeext conftest.$ac_ext
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3617 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3618 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3619 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3620 CFLAGS="$SAVE_CFLAGS"
3624 # Find out which ABI we are using.
3625 echo 'int i;' > conftest.$ac_ext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; then
3631 case `/usr/bin/file conftest.o` in
3633 case $lt_cv_prog_gnu_ld in
3634 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3635 *) LD="${LD-ld} -64" ;;
3646 need_locks="$enable_libtool_lock"
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3655 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3656 # On Suns, sometimes $CPP names a directory.
3657 if test -n "$CPP" && test -d "$CPP"; then
3660 if test -z "$CPP"; then
3661 if test "${ac_cv_prog_CPP+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 # Double quotes because CPP needs to be expanded
3665 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3668 for ac_c_preproc_warn_flag in '' yes
3670 # Use a header file that comes with gcc, so configuring glibc
3671 # with a fresh cross-compiler works.
3672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3673 # <limits.h> exists even on freestanding compilers.
3674 # On the NeXT, cc -E runs the code through the compiler's parser,
3675 # not just through cpp. "Syntax error" is here to catch this case.
3676 cat >conftest.$ac_ext <<_ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3683 # include <limits.h>
3685 # include <assert.h>
3689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3692 grep -v '^ *+' conftest.er1 >conftest.err
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } >/dev/null; then
3697 if test -s conftest.err; then
3698 ac_cpp_err=$ac_c_preproc_warn_flag
3699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3706 if test -z "$ac_cpp_err"; then
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 # Broken: fails on valid input.
3715 rm -f conftest.err conftest.$ac_ext
3717 # OK, works on sane cases. Now check whether non-existent headers
3718 # can be detected and how.
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 #include <ac_nonexistent.h>
3727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3730 grep -v '^ *+' conftest.er1 >conftest.err
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } >/dev/null; then
3735 if test -s conftest.err; then
3736 ac_cpp_err=$ac_c_preproc_warn_flag
3737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3744 if test -z "$ac_cpp_err"; then
3745 # Broken: success on invalid input.
3748 echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 # Passes both tests.
3755 rm -f conftest.err conftest.$ac_ext
3758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rm -f conftest.err conftest.$ac_ext
3760 if $ac_preproc_ok; then
3772 echo "$as_me:$LINENO: result: $CPP" >&5
3773 echo "${ECHO_T}$CPP" >&6
3775 for ac_c_preproc_warn_flag in '' yes
3777 # Use a header file that comes with gcc, so configuring glibc
3778 # with a fresh cross-compiler works.
3779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3780 # <limits.h> exists even on freestanding compilers.
3781 # On the NeXT, cc -E runs the code through the compiler's parser,
3782 # not just through cpp. "Syntax error" is here to catch this case.
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3790 # include <limits.h>
3792 # include <assert.h>
3796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3799 grep -v '^ *+' conftest.er1 >conftest.err
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } >/dev/null; then
3804 if test -s conftest.err; then
3805 ac_cpp_err=$ac_c_preproc_warn_flag
3806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3813 if test -z "$ac_cpp_err"; then
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 # Broken: fails on valid input.
3822 rm -f conftest.err conftest.$ac_ext
3824 # OK, works on sane cases. Now check whether non-existent headers
3825 # can be detected and how.
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 #include <ac_nonexistent.h>
3834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3837 grep -v '^ *+' conftest.er1 >conftest.err
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev/null; then
3842 if test -s conftest.err; then
3843 ac_cpp_err=$ac_c_preproc_warn_flag
3844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3851 if test -z "$ac_cpp_err"; then
3852 # Broken: success on invalid input.
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3858 # Passes both tests.
3862 rm -f conftest.err conftest.$ac_ext
3865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3866 rm -f conftest.err conftest.$ac_ext
3867 if $ac_preproc_ok; then
3870 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3871 See \`config.log' for more details." >&5
3872 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3873 See \`config.log' for more details." >&2;}
3874 { (exit 1); exit 1; }; }
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3885 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3886 if test "${ac_cv_header_stdc+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3908 rm -f conftest.$ac_objext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>conftest.er1
3912 grep -v '^ *+' conftest.er1 >conftest.err
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; } &&
3923 { ac_try='test -s conftest.$ac_objext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 ac_cv_header_stdc=yes
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 ac_cv_header_stdc=no
3936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3938 if test $ac_cv_header_stdc = yes; then
3939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3950 $EGREP "memchr" >/dev/null 2>&1; then
3953 ac_cv_header_stdc=no
3959 if test $ac_cv_header_stdc = yes; then
3960 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3961 cat >conftest.$ac_ext <<_ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971 $EGREP "free" >/dev/null 2>&1; then
3974 ac_cv_header_stdc=no
3980 if test $ac_cv_header_stdc = yes; then
3981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3982 if test "$cross_compiling" = yes; then
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3992 #if ((' ' & 0x0FF) == 0x020)
3993 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3994 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3996 # define ISLOWER(c) \
3997 (('a' <= (c) && (c) <= 'i') \
3998 || ('j' <= (c) && (c) <= 'r') \
3999 || ('s' <= (c) && (c) <= 'z'))
4000 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4003 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4008 for (i = 0; i < 256; i++)
4009 if (XOR (islower (i), ISLOWER (i))
4010 || toupper (i) != TOUPPER (i))
4015 rm -f conftest$ac_exeext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017 (eval $ac_link) 2>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4028 echo "$as_me: program exited with status $ac_status" >&5
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4033 ac_cv_header_stdc=no
4035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4039 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4040 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4041 if test $ac_cv_header_stdc = yes; then
4043 cat >>confdefs.h <<\_ACEOF
4044 #define STDC_HEADERS 1
4049 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4060 inttypes.h stdint.h unistd.h
4062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4063 echo "$as_me:$LINENO: checking for $ac_header" >&5
4064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 $ac_includes_default
4076 #include <$ac_header>
4078 rm -f conftest.$ac_objext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 eval "$as_ac_Header=yes"
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 eval "$as_ac_Header=no"
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4111 cat >>confdefs.h <<_ACEOF
4112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4121 for ac_header in dlfcn.h
4123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4125 echo "$as_me:$LINENO: checking for $ac_header" >&5
4126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4133 # Is the header compilable?
4134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 $ac_includes_default
4143 #include <$ac_header>
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 ac_header_compiler=yes
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_header_compiler=no
4173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4175 echo "${ECHO_T}$ac_header_compiler" >&6
4177 # Is the header present?
4178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #include <$ac_header>
4188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4191 grep -v '^ *+' conftest.er1 >conftest.err
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } >/dev/null; then
4196 if test -s conftest.err; then
4197 ac_cpp_err=$ac_c_preproc_warn_flag
4198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4205 if test -z "$ac_cpp_err"; then
4206 ac_header_preproc=yes
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 ac_header_preproc=no
4213 rm -f conftest.err conftest.$ac_ext
4214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4215 echo "${ECHO_T}$ac_header_preproc" >&6
4217 # So? What about this header?
4218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4224 ac_header_preproc=yes
4227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4241 ## ----------------------------------- ##
4242 ## Report this to the mod_chxj lists. ##
4243 ## ----------------------------------- ##
4246 sed "s/^/$as_me: WARNING: /" >&2
4249 echo "$as_me:$LINENO: checking for $ac_header" >&5
4250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 eval "$as_ac_Header=\$ac_header_preproc"
4256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4261 cat >>confdefs.h <<_ACEOF
4262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4270 ac_cpp='$CXXCPP $CPPFLAGS'
4271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4274 if test -n "$ac_tool_prefix"; then
4275 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_CXX+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 if test -n "$CXX"; then
4285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 if test -n "$CXX"; then
4305 echo "$as_me:$LINENO: result: $CXX" >&5
4306 echo "${ECHO_T}$CXX" >&6
4308 echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4312 test -n "$CXX" && break
4315 if test -z "$CXX"; then
4317 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4319 # Extract the first word of "$ac_prog", so it can be a program name with args.
4320 set dummy $ac_prog; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test -n "$ac_ct_CXX"; then
4327 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_ac_ct_CXX="$ac_prog"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4346 if test -n "$ac_ct_CXX"; then
4347 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4348 echo "${ECHO_T}$ac_ct_CXX" >&6
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4354 test -n "$ac_ct_CXX" && break
4356 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4362 # Provide some information about the compiler.
4363 echo "$as_me:$LINENO:" \
4364 "checking for C++ compiler version" >&5
4365 ac_compiler=`set X $ac_compile; echo $2`
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4367 (eval $ac_compiler --version </dev/null >&5) 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }
4371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4372 (eval $ac_compiler -v </dev/null >&5) 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }
4376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4377 (eval $ac_compiler -V </dev/null >&5) 2>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }
4382 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4383 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4384 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 cat >conftest.$ac_ext <<_ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4405 rm -f conftest.$ac_objext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; } &&
4420 { ac_try='test -s conftest.$ac_objext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4434 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4437 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4438 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4439 GXX=`test $ac_compiler_gnu = yes && echo yes`
4440 ac_test_CXXFLAGS=${CXXFLAGS+set}
4441 ac_save_CXXFLAGS=$CXXFLAGS
4443 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4444 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4445 if test "${ac_cv_prog_cxx_g+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4463 rm -f conftest.$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_cv_prog_cxx_g=yes
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4493 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4494 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4495 if test "$ac_test_CXXFLAGS" = set; then
4496 CXXFLAGS=$ac_save_CXXFLAGS
4497 elif test $ac_cv_prog_cxx_g = yes; then
4498 if test "$GXX" = yes; then
4504 if test "$GXX" = yes; then
4510 for ac_declaration in \
4512 'extern "C" void std::exit (int) throw (); using std::exit;' \
4513 'extern "C" void std::exit (int); using std::exit;' \
4514 'extern "C" void exit (int) throw ();' \
4515 'extern "C" void exit (int);' \
4518 cat >conftest.$ac_ext <<_ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>conftest.er1
4538 grep -v '^ *+' conftest.er1 >conftest.err
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; } &&
4549 { ac_try='test -s conftest.$ac_objext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4608 if test -n "$ac_declaration"; then
4609 echo '#ifdef __cplusplus' >>confdefs.h
4610 echo $ac_declaration >>confdefs.h
4611 echo '#endif' >>confdefs.h
4615 ac_cpp='$CXXCPP $CPPFLAGS'
4616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4622 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4623 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4624 (test "X$CXX" != "Xg++"))) ; then
4626 ac_cpp='$CXXCPP $CPPFLAGS'
4627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4630 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4631 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4632 if test -z "$CXXCPP"; then
4633 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 # Double quotes because CXXCPP needs to be expanded
4637 for CXXCPP in "$CXX -E" "/lib/cpp"
4640 for ac_cxx_preproc_warn_flag in '' yes
4642 # Use a header file that comes with gcc, so configuring glibc
4643 # with a fresh cross-compiler works.
4644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4645 # <limits.h> exists even on freestanding compilers.
4646 # On the NeXT, cc -E runs the code through the compiler's parser,
4647 # not just through cpp. "Syntax error" is here to catch this case.
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4655 # include <limits.h>
4657 # include <assert.h>
4661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4664 grep -v '^ *+' conftest.er1 >conftest.err
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } >/dev/null; then
4669 if test -s conftest.err; then
4670 ac_cpp_err=$ac_cxx_preproc_warn_flag
4671 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4678 if test -z "$ac_cpp_err"; then
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4684 # Broken: fails on valid input.
4687 rm -f conftest.err conftest.$ac_ext
4689 # OK, works on sane cases. Now check whether non-existent headers
4690 # can be detected and how.
4691 cat >conftest.$ac_ext <<_ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4697 #include <ac_nonexistent.h>
4699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4702 grep -v '^ *+' conftest.er1 >conftest.err
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } >/dev/null; then
4707 if test -s conftest.err; then
4708 ac_cpp_err=$ac_cxx_preproc_warn_flag
4709 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4716 if test -z "$ac_cpp_err"; then
4717 # Broken: success on invalid input.
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723 # Passes both tests.
4727 rm -f conftest.err conftest.$ac_ext
4730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4731 rm -f conftest.err conftest.$ac_ext
4732 if $ac_preproc_ok; then
4737 ac_cv_prog_CXXCPP=$CXXCPP
4740 CXXCPP=$ac_cv_prog_CXXCPP
4742 ac_cv_prog_CXXCPP=$CXXCPP
4744 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4745 echo "${ECHO_T}$CXXCPP" >&6
4747 for ac_cxx_preproc_warn_flag in '' yes
4749 # Use a header file that comes with gcc, so configuring glibc
4750 # with a fresh cross-compiler works.
4751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752 # <limits.h> exists even on freestanding compilers.
4753 # On the NeXT, cc -E runs the code through the compiler's parser,
4754 # not just through cpp. "Syntax error" is here to catch this case.
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4762 # include <limits.h>
4764 # include <assert.h>
4768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null; then
4776 if test -s conftest.err; then
4777 ac_cpp_err=$ac_cxx_preproc_warn_flag
4778 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4785 if test -z "$ac_cpp_err"; then
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 # Broken: fails on valid input.
4794 rm -f conftest.err conftest.$ac_ext
4796 # OK, works on sane cases. Now check whether non-existent headers
4797 # can be detected and how.
4798 cat >conftest.$ac_ext <<_ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 #include <ac_nonexistent.h>
4806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4809 grep -v '^ *+' conftest.er1 >conftest.err
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } >/dev/null; then
4814 if test -s conftest.err; then
4815 ac_cpp_err=$ac_cxx_preproc_warn_flag
4816 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4823 if test -z "$ac_cpp_err"; then
4824 # Broken: success on invalid input.
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4830 # Passes both tests.
4834 rm -f conftest.err conftest.$ac_ext
4837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4838 rm -f conftest.err conftest.$ac_ext
4839 if $ac_preproc_ok; then
4842 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4843 See \`config.log' for more details." >&5
4844 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4845 See \`config.log' for more details." >&2;}
4846 { (exit 1); exit 1; }; }
4850 ac_cpp='$CXXCPP $CPPFLAGS'
4851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4859 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4860 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4862 if test -n "$ac_tool_prefix"; then
4863 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4867 echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4869 if test "${ac_cv_prog_F77+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 if test -n "$F77"; then
4873 ac_cv_prog_F77="$F77" # Let the user override the test.
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 if test -n "$F77"; then
4893 echo "$as_me:$LINENO: result: $F77" >&5
4894 echo "${ECHO_T}$F77" >&6
4896 echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6
4900 test -n "$F77" && break
4903 if test -z "$F77"; then
4905 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4907 # Extract the first word of "$ac_prog", so it can be a program name with args.
4908 set dummy $ac_prog; ac_word=$2
4909 echo "$as_me:$LINENO: checking for $ac_word" >&5
4910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4911 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 if test -n "$ac_ct_F77"; then
4915 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_ac_ct_F77="$ac_prog"
4925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4934 if test -n "$ac_ct_F77"; then
4935 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4936 echo "${ECHO_T}$ac_ct_F77" >&6
4938 echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6
4942 test -n "$ac_ct_F77" && break
4949 # Provide some information about the compiler.
4950 echo "$as_me:4950:" \
4951 "checking for Fortran 77 compiler version" >&5
4952 ac_compiler=`set X $ac_compile; echo $2`
4953 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4954 (eval $ac_compiler --version </dev/null >&5) 2>&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }
4958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4959 (eval $ac_compiler -v </dev/null >&5) 2>&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }
4963 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4964 (eval $ac_compiler -V </dev/null >&5) 2>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }
4970 # If we don't use `.F' as extension, the preprocessor is not run on the
4971 # input file. (Note that this only needs to work for GNU compilers.)
4974 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4975 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4976 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 cat >conftest.$ac_ext <<_ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4991 grep -v '^ *+' conftest.er1 >conftest.err
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; } &&
5002 { ac_try='test -s conftest.$ac_objext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5016 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5019 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5020 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5022 ac_test_FFLAGS=${FFLAGS+set}
5023 ac_save_FFLAGS=$FFLAGS
5025 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5026 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5027 if test "${ac_cv_prog_f77_g+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 cat >conftest.$ac_ext <<_ACEOF
5036 rm -f conftest.$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>conftest.er1
5040 grep -v '^ *+' conftest.er1 >conftest.err
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; } &&
5051 { ac_try='test -s conftest.$ac_objext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 ac_cv_prog_f77_g=yes
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5067 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5068 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5069 if test "$ac_test_FFLAGS" = set; then
5070 FFLAGS=$ac_save_FFLAGS
5071 elif test $ac_cv_prog_f77_g = yes; then
5072 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5078 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5085 G77=`test $ac_compiler_gnu = yes && echo yes`
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5096 # find the maximum length of command line arguments
5097 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5098 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5099 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 # On DJGPP, this test can blow up pretty badly due to problems in libc
5108 # (any single argument exceeding 2000 bytes causes a buffer overrun
5109 # during glob expansion). Even if it were fixed, the result of this
5110 # check would be larger than it should be.
5111 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5115 # Under GNU Hurd, this test is not required because there is
5116 # no limit to the length of command line arguments.
5117 # Libtool will interpret -1 as no limit whatsoever
5118 lt_cv_sys_max_cmd_len=-1;
5122 # On Win9x/ME, this test blows up -- it succeeds, but takes
5123 # about 5 minutes as the teststring grows exponentially.
5124 # Worse, since 9x/ME are not pre-emptively multitasking,
5125 # you end up with a "frozen" computer, even though with patience
5126 # the test eventually succeeds (with a max line length of 256k).
5127 # Instead, let's just punt: use the minimum linelength reported by
5128 # all of the supported platforms: 8192 (on NT/2K/XP).
5129 lt_cv_sys_max_cmd_len=8192;
5133 # On AmigaOS with pdksh, this test takes hours, literally.
5134 # So we just punt and use a minimum line length of 8192.
5135 lt_cv_sys_max_cmd_len=8192;
5138 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5139 # This has been around since 386BSD, at least. Likely further.
5140 if test -x /sbin/sysctl; then
5141 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5142 elif test -x /usr/sbin/sysctl; then
5143 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5145 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5147 # And add a safety zone
5148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5153 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5154 lt_cv_sys_max_cmd_len=196608
5158 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5159 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5160 # nice to cause kernel panics so lets avoid the loop below.
5161 # First set a reasonable default.
5162 lt_cv_sys_max_cmd_len=16384
5164 if test -x /sbin/sysconfig; then
5165 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5166 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5171 lt_cv_sys_max_cmd_len=102400
5173 sysv5* | sco5v6* | sysv4.2uw2*)
5174 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5175 if test -n "$kargmax"; then
5176 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5178 lt_cv_sys_max_cmd_len=32768
5182 # If test is not a shell built-in, we'll probably end up computing a
5183 # maximum length that is only half of the actual maximum length, but
5185 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5186 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5187 = "XX$teststring") >/dev/null 2>&1 &&
5188 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5189 lt_cv_sys_max_cmd_len=$new_result &&
5190 test $i != 17 # 1/2 MB should be enough
5193 teststring=$teststring$teststring
5196 # Add a significant safety factor because C++ compilers can tack on massive
5197 # amounts of additional arguments before passing them to the linker.
5198 # It appears as though 1/2 is a usable value.
5199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5205 if test -n $lt_cv_sys_max_cmd_len ; then
5206 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5207 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5209 echo "$as_me:$LINENO: result: none" >&5
5210 echo "${ECHO_T}none" >&6
5216 # Check for command to grab the raw symbol name followed by C symbol from nm.
5217 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5218 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5219 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 # These are sane defaults that work on at least a few old systems.
5224 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5226 # Character class describing NM global symbol codes.
5227 symcode='[BCDEGRST]'
5229 # Regexp to match symbols that can be accessed directly from C.
5230 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5232 # Transform an extracted symbol line into a proper C declaration
5233 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5235 # Transform an extracted symbol line into symbol name and symbol address
5236 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'"
5238 # Define system-specific variables.
5243 cygwin* | mingw* | pw32*)
5244 symcode='[ABCDGISTW]'
5246 hpux*) # Its linker distinguishes data from code symbols
5247 if test "$host_cpu" = ia64; then
5248 symcode='[ABCDEGRST]'
5250 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5251 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'"
5254 if test "$host_cpu" = ia64; then
5255 symcode='[ABCDGIRSTW]'
5256 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5257 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'"
5261 symcode='[BCDEGRST]'
5264 symcode='[BCDEGQRST]'
5275 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5283 # Handle CRLF in mingw tool chain
5287 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5291 # If we're using GNU nm, then use its standard symbol codes.
5292 case `$NM -V 2>&1` in
5293 *GNU* | *'with BFD'*)
5294 symcode='[ABCDGIRSTW]' ;;
5297 # Try without a prefix undercore, then with it.
5298 for ac_symprfx in "" "_"; do
5300 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5301 symxfrm="\\1 $ac_symprfx\\2 \\2"
5303 # Write the raw and C identifiers.
5304 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5306 # Check to see that the pipe works correctly.
5310 cat > conftest.$ac_ext <<EOF
5315 void nm_test_func(){}
5319 int main(){nm_test_var='a';nm_test_func();return(0);}
5322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5323 (eval $ac_compile) 2>&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; then
5327 # Now try to grab the symbols.
5329 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5330 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } && test -s "$nlist"; then
5334 # Try sorting and uniquifying the output.
5335 if sort "$nlist" | uniq > "$nlist"T; then
5336 mv -f "$nlist"T "$nlist"
5341 # Make sure that we snagged all the symbols we need.
5342 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5343 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5344 cat <<EOF > conftest.$ac_ext
5350 # Now generate the symbol file.
5351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5353 cat <<EOF >> conftest.$ac_ext
5354 #if defined (__STDC__) && __STDC__
5355 # define lt_ptr_t void *
5357 # define lt_ptr_t char *
5361 /* The mapping between symbol names and symbols. */
5366 lt_preloaded_symbols[] =
5369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5370 cat <<\EOF >> conftest.$ac_ext
5378 # Now try linking the two files.
5379 mv conftest.$ac_objext conftstm.$ac_objext
5380 lt_save_LIBS="$LIBS"
5381 lt_save_CFLAGS="$CFLAGS"
5382 LIBS="conftstm.$ac_objext"
5383 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5385 (eval $ac_link) 2>&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5391 LIBS="$lt_save_LIBS"
5392 CFLAGS="$lt_save_CFLAGS"
5394 echo "cannot find nm_test_func in $nlist" >&5
5397 echo "cannot find nm_test_var in $nlist" >&5
5400 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5403 echo "$progname: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5406 rm -f conftest* conftst*
5408 # Do not use the global_symbol_pipe unless it works.
5409 if test "$pipe_works" = yes; then
5412 lt_cv_sys_global_symbol_pipe=
5418 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5419 lt_cv_sys_global_symbol_to_cdecl=
5421 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5422 echo "$as_me:$LINENO: result: failed" >&5
5423 echo "${ECHO_T}failed" >&6
5425 echo "$as_me:$LINENO: result: ok" >&5
5426 echo "${ECHO_T}ok" >&6
5429 echo "$as_me:$LINENO: checking for objdir" >&5
5430 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5431 if test "${lt_cv_objdir+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 rm -f .libs 2>/dev/null
5435 mkdir .libs 2>/dev/null
5436 if test -d .libs; then
5439 # MS-DOS does not allow filenames that begin with a dot.
5442 rmdir .libs 2>/dev/null
5444 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5445 echo "${ECHO_T}$lt_cv_objdir" >&6
5446 objdir=$lt_cv_objdir
5454 # AIX sometimes has problems with the GCC collect2 program. For some
5455 # reason, if we set the COLLECT_NAMES environment variable, the problems
5456 # vanish in a puff of smoke.
5457 if test "X${COLLECT_NAMES+set}" != Xset; then
5459 export COLLECT_NAMES
5464 # Sed substitution that helps us do robust quoting. It backslashifies
5465 # metacharacters that are still active within double-quoted strings.
5466 Xsed='sed -e 1s/^X//'
5467 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5469 # Same as above, but do not quote variable references.
5470 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5472 # Sed substitution to delay expansion of an escaped shell variable in a
5473 # double_quote_subst'ed string.
5474 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5476 # Sed substitution to avoid accidental globbing in evaled expressions
5477 no_glob_subst='s/\*/\\\*/g'
5483 default_ofile=libtool
5484 can_build_shared=yes
5486 # All known linkers require a `.a' archive for static linking (except MSVC,
5487 # which needs '.lib').
5489 ltmain="$ac_aux_dir/ltmain.sh"
5490 ofile="$default_ofile"
5491 with_gnu_ld="$lt_cv_prog_gnu_ld"
5493 if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}ar; ac_word=$2
5496 echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5498 if test "${ac_cv_prog_AR+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 if test -n "$AR"; then
5502 ac_cv_prog_AR="$AR" # Let the user override the test.
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511 ac_cv_prog_AR="${ac_tool_prefix}ar"
5512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 if test -n "$AR"; then
5522 echo "$as_me:$LINENO: result: $AR" >&5
5523 echo "${ECHO_T}$AR" >&6
5525 echo "$as_me:$LINENO: result: no" >&5
5526 echo "${ECHO_T}no" >&6
5530 if test -z "$ac_cv_prog_AR"; then
5532 # Extract the first word of "ar", so it can be a program name with args.
5533 set dummy ar; ac_word=$2
5534 echo "$as_me:$LINENO: checking for $ac_word" >&5
5535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5536 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 if test -n "$ac_ct_AR"; then
5540 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_ac_ct_AR="ar"
5550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5559 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5560 if test -n "$ac_ct_AR"; then
5561 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5562 echo "${ECHO_T}$ac_ct_AR" >&6
5564 echo "$as_me:$LINENO: result: no" >&5
5565 echo "${ECHO_T}no" >&6
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5576 echo "$as_me:$LINENO: checking for $ac_word" >&5
5577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5578 if test "${ac_cv_prog_RANLIB+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 if test -n "$RANLIB"; then
5582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 RANLIB=$ac_cv_prog_RANLIB
5601 if test -n "$RANLIB"; then
5602 echo "$as_me:$LINENO: result: $RANLIB" >&5
5603 echo "${ECHO_T}$RANLIB" >&6
5605 echo "$as_me:$LINENO: result: no" >&5
5606 echo "${ECHO_T}no" >&6
5610 if test -z "$ac_cv_prog_RANLIB"; then
5611 ac_ct_RANLIB=$RANLIB
5612 # Extract the first word of "ranlib", so it can be a program name with args.
5613 set dummy ranlib; ac_word=$2
5614 echo "$as_me:$LINENO: checking for $ac_word" >&5
5615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5616 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 if test -n "$ac_ct_RANLIB"; then
5620 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629 ac_cv_prog_ac_ct_RANLIB="ranlib"
5630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5640 if test -n "$ac_ct_RANLIB"; then
5641 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5642 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5644 echo "$as_me:$LINENO: result: no" >&5
5645 echo "${ECHO_T}no" >&6
5648 RANLIB=$ac_ct_RANLIB
5650 RANLIB="$ac_cv_prog_RANLIB"
5653 if test -n "$ac_tool_prefix"; then
5654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5655 set dummy ${ac_tool_prefix}strip; ac_word=$2
5656 echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5658 if test "${ac_cv_prog_STRIP+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 if test -n "$STRIP"; then
5662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 STRIP=$ac_cv_prog_STRIP
5681 if test -n "$STRIP"; then
5682 echo "$as_me:$LINENO: result: $STRIP" >&5
5683 echo "${ECHO_T}$STRIP" >&6
5685 echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6
5690 if test -z "$ac_cv_prog_STRIP"; then
5692 # Extract the first word of "strip", so it can be a program name with args.
5693 set dummy strip; ac_word=$2
5694 echo "$as_me:$LINENO: checking for $ac_word" >&5
5695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5696 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 if test -n "$ac_ct_STRIP"; then
5700 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709 ac_cv_prog_ac_ct_STRIP="strip"
5710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5719 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5720 if test -n "$ac_ct_STRIP"; then
5721 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5722 echo "${ECHO_T}$ac_ct_STRIP" >&6
5724 echo "$as_me:$LINENO: result: no" >&5
5725 echo "${ECHO_T}no" >&6
5730 STRIP="$ac_cv_prog_STRIP"
5735 old_CFLAGS="$CFLAGS"
5737 # Set sane defaults for various variables
5738 test -z "$AR" && AR=ar
5739 test -z "$AR_FLAGS" && AR_FLAGS=cru
5740 test -z "$AS" && AS=as
5741 test -z "$CC" && CC=cc
5742 test -z "$LTCC" && LTCC=$CC
5743 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5744 test -z "$DLLTOOL" && DLLTOOL=dlltool
5745 test -z "$LD" && LD=ld
5746 test -z "$LN_S" && LN_S="ln -s"
5747 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5748 test -z "$NM" && NM=nm
5749 test -z "$SED" && SED=sed
5750 test -z "$OBJDUMP" && OBJDUMP=objdump
5751 test -z "$RANLIB" && RANLIB=:
5752 test -z "$STRIP" && STRIP=:
5753 test -z "$ac_objext" && ac_objext=o
5755 # Determine commands to create old-style static archives.
5756 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5757 old_postinstall_cmds='chmod 644 $oldlib'
5758 old_postuninstall_cmds=
5760 if test -n "$RANLIB"; then
5763 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5766 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5769 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5772 for cc_temp in $compiler""; do
5774 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5775 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5780 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5783 # Only perform the check for file, if the check method requires it
5784 case $deplibs_check_method in
5786 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5787 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5788 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5789 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5797 lt_save_MAGIC_CMD="$MAGIC_CMD"
5798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5800 for ac_dir in $ac_dummy; do
5802 test -z "$ac_dir" && ac_dir=.
5803 if test -f $ac_dir/${ac_tool_prefix}file; then
5804 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5805 if test -n "$file_magic_test_file"; then
5806 case $deplibs_check_method in
5808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5811 $EGREP "$file_magic_regex" > /dev/null; then
5816 *** Warning: the command libtool uses to detect shared libraries,
5817 *** $file_magic_cmd, produces output that libtool cannot recognize.
5818 *** The result is that libtool may fail to recognize shared libraries
5819 *** as such. This will affect the creation of libtool libraries that
5820 *** depend on shared libraries, but programs linked with such libtool
5821 *** libraries will work regardless of this problem. Nevertheless, you
5822 *** may want to report the problem to your system manager and/or to
5823 *** bug-libtool@gnu.org
5833 MAGIC_CMD="$lt_save_MAGIC_CMD"
5838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5839 if test -n "$MAGIC_CMD"; then
5840 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5841 echo "${ECHO_T}$MAGIC_CMD" >&6
5843 echo "$as_me:$LINENO: result: no" >&5
5844 echo "${ECHO_T}no" >&6
5847 if test -z "$lt_cv_path_MAGIC_CMD"; then
5848 if test -n "$ac_tool_prefix"; then
5849 echo "$as_me:$LINENO: checking for file" >&5
5850 echo $ECHO_N "checking for file... $ECHO_C" >&6
5851 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5859 lt_save_MAGIC_CMD="$MAGIC_CMD"
5860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5861 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5862 for ac_dir in $ac_dummy; do
5864 test -z "$ac_dir" && ac_dir=.
5865 if test -f $ac_dir/file; then
5866 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5867 if test -n "$file_magic_test_file"; then
5868 case $deplibs_check_method in
5870 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5872 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5873 $EGREP "$file_magic_regex" > /dev/null; then
5878 *** Warning: the command libtool uses to detect shared libraries,
5879 *** $file_magic_cmd, produces output that libtool cannot recognize.
5880 *** The result is that libtool may fail to recognize shared libraries
5881 *** as such. This will affect the creation of libtool libraries that
5882 *** depend on shared libraries, but programs linked with such libtool
5883 *** libraries will work regardless of this problem. Nevertheless, you
5884 *** may want to report the problem to your system manager and/or to
5885 *** bug-libtool@gnu.org
5895 MAGIC_CMD="$lt_save_MAGIC_CMD"
5900 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5901 if test -n "$MAGIC_CMD"; then
5902 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5903 echo "${ECHO_T}$MAGIC_CMD" >&6
5905 echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5921 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5922 if test "${enable_libtool_lock+set}" = set; then
5923 enableval="$enable_libtool_lock"
5926 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5929 # Check whether --with-pic or --without-pic was given.
5930 if test "${with_pic+set}" = set; then
5936 test -z "$pic_mode" && pic_mode=default
5938 # Use C for the default configuration in the libtool script
5942 ac_cpp='$CPP $CPPFLAGS'
5943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5948 # Source file extension for C test sources.
5951 # Object file extension for compiled C test sources.
5955 # Code to be used in simple compile tests
5956 lt_simple_compile_test_code="int some_variable = 0;\n"
5958 # Code to be used in simple link tests
5959 lt_simple_link_test_code='int main(){return(0);}\n'
5962 # If no C compiler was specified, use CC.
5965 # If no C compiler flags were specified, use CFLAGS.
5966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5968 # Allow CC to be a program name with arguments.
5972 # save warnings/boilerplate of simple test code
5973 ac_outfile=conftest.$ac_objext
5974 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5975 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5976 _lt_compiler_boilerplate=`cat conftest.err`
5979 ac_outfile=conftest.$ac_objext
5980 printf "$lt_simple_link_test_code" >conftest.$ac_ext
5981 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5982 _lt_linker_boilerplate=`cat conftest.err`
5987 lt_prog_compiler_no_builtin_flag=
5989 if test "$GCC" = yes; then
5990 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5993 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5994 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5995 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 lt_cv_prog_compiler_rtti_exceptions=no
5999 ac_outfile=conftest.$ac_objext
6000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6001 lt_compiler_flag="-fno-rtti -fno-exceptions"
6002 # Insert the option either (1) after the last *FLAGS variable, or
6003 # (2) before a word containing "conftest.", or (3) at the end.
6004 # Note that $ac_compile itself does not contain backslashes and begins
6005 # with a dollar sign (not a hyphen), so the echo should work correctly.
6006 # The option is referenced via a variable to avoid confusing sed.
6007 lt_compile=`echo "$ac_compile" | $SED \
6008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6010 -e 's:$: $lt_compiler_flag:'`
6011 (eval echo "\"\$as_me:6011: $lt_compile\"" >&5)
6012 (eval "$lt_compile" 2>conftest.err)
6014 cat conftest.err >&5
6015 echo "$as_me:6015: \$? = $ac_status" >&5
6016 if (exit $ac_status) && test -s "$ac_outfile"; then
6017 # The compiler can only warn and ignore the option if not recognized
6018 # So say no if there are warnings other than the usual output.
6019 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6021 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6022 lt_cv_prog_compiler_rtti_exceptions=yes
6028 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6029 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6031 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6032 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6039 lt_prog_compiler_wl=
6040 lt_prog_compiler_pic=
6041 lt_prog_compiler_static=
6043 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6044 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6046 if test "$GCC" = yes; then
6047 lt_prog_compiler_wl='-Wl,'
6048 lt_prog_compiler_static='-static'
6052 # All AIX code is PIC.
6053 if test "$host_cpu" = ia64; then
6054 # AIX 5 now supports IA64 processor
6055 lt_prog_compiler_static='-Bstatic'
6060 # FIXME: we need at least 68020 code to build shared libraries, but
6061 # adding the `-m68020' flag to GCC prevents building anything better,
6063 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6066 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6067 # PIC is the default for these OSes.
6070 mingw* | pw32* | os2*)
6071 # This hack is so that the source file can tell whether it is being
6072 # built for inclusion in a dll (and should export symbols for example).
6073 lt_prog_compiler_pic='-DDLL_EXPORT'
6076 darwin* | rhapsody*)
6077 # PIC is the default on this platform
6078 # Common symbols not allowed in MH_DYLIB files
6079 lt_prog_compiler_pic='-fno-common'
6083 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6084 # Instead, we relocate shared libraries at runtime.
6088 # Just because we use GCC doesn't mean we suddenly get shared libraries
6089 # on systems that don't support them.
6090 lt_prog_compiler_can_build_shared=no
6095 if test -d /usr/nec; then
6096 lt_prog_compiler_pic=-Kconform_pic
6101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6108 lt_prog_compiler_pic='-fPIC'
6114 lt_prog_compiler_pic='-fPIC'
6118 # PORTME Check for flag to pass linker flags through the system compiler.
6121 lt_prog_compiler_wl='-Wl,'
6122 if test "$host_cpu" = ia64; then
6123 # AIX 5 now supports IA64 processor
6124 lt_prog_compiler_static='-Bstatic'
6126 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6130 # PIC is the default on this platform
6131 # Common symbols not allowed in MH_DYLIB files
6132 case $cc_basename in
6134 lt_prog_compiler_pic='-qnocommon'
6135 lt_prog_compiler_wl='-Wl,'
6140 mingw* | pw32* | os2*)
6141 # This hack is so that the source file can tell whether it is being
6142 # built for inclusion in a dll (and should export symbols for example).
6143 lt_prog_compiler_pic='-DDLL_EXPORT'
6146 hpux9* | hpux10* | hpux11*)
6147 lt_prog_compiler_wl='-Wl,'
6148 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6155 lt_prog_compiler_pic='+Z'
6158 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6159 lt_prog_compiler_static='${wl}-a ${wl}archive'
6162 irix5* | irix6* | nonstopux*)
6163 lt_prog_compiler_wl='-Wl,'
6164 # PIC (with -KPIC) is the default.
6165 lt_prog_compiler_static='-non_shared'
6169 lt_prog_compiler_pic='-KPIC'
6170 lt_prog_compiler_static='-Bstatic'
6174 case $cc_basename in
6176 lt_prog_compiler_wl='-Wl,'
6177 lt_prog_compiler_pic='-KPIC'
6178 lt_prog_compiler_static='-static'
6180 pgcc* | pgf77* | pgf90* | pgf95*)
6181 # Portland Group compilers (*not* the Pentium gcc compiler,
6182 # which looks to be a dead project)
6183 lt_prog_compiler_wl='-Wl,'
6184 lt_prog_compiler_pic='-fpic'
6185 lt_prog_compiler_static='-Bstatic'
6188 lt_prog_compiler_wl='-Wl,'
6189 # All Alpha code is PIC.
6190 lt_prog_compiler_static='-non_shared'
6195 osf3* | osf4* | osf5*)
6196 lt_prog_compiler_wl='-Wl,'
6197 # All OSF/1 code is PIC.
6198 lt_prog_compiler_static='-non_shared'
6202 lt_prog_compiler_pic='-KPIC'
6203 lt_prog_compiler_static='-Bstatic'
6204 case $cc_basename in
6206 lt_prog_compiler_wl='-Qoption ld ';;
6208 lt_prog_compiler_wl='-Wl,';;
6213 lt_prog_compiler_wl='-Qoption ld '
6214 lt_prog_compiler_pic='-PIC'
6215 lt_prog_compiler_static='-Bstatic'
6218 sysv4 | sysv4.2uw2* | sysv4.3*)
6219 lt_prog_compiler_wl='-Wl,'
6220 lt_prog_compiler_pic='-KPIC'
6221 lt_prog_compiler_static='-Bstatic'
6225 if test -d /usr/nec ;then
6226 lt_prog_compiler_pic='-Kconform_pic'
6227 lt_prog_compiler_static='-Bstatic'
6231 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6232 lt_prog_compiler_wl='-Wl,'
6233 lt_prog_compiler_pic='-KPIC'
6234 lt_prog_compiler_static='-Bstatic'
6238 lt_prog_compiler_wl='-Wl,'
6239 lt_prog_compiler_can_build_shared=no
6243 lt_prog_compiler_pic='-pic'
6244 lt_prog_compiler_static='-Bstatic'
6248 lt_prog_compiler_can_build_shared=no
6253 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6254 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6257 # Check to make sure the PIC flag actually works.
6259 if test -n "$lt_prog_compiler_pic"; then
6261 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6262 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6263 if test "${lt_prog_compiler_pic_works+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 lt_prog_compiler_pic_works=no
6267 ac_outfile=conftest.$ac_objext
6268 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6269 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6270 # Insert the option either (1) after the last *FLAGS variable, or
6271 # (2) before a word containing "conftest.", or (3) at the end.
6272 # Note that $ac_compile itself does not contain backslashes and begins
6273 # with a dollar sign (not a hyphen), so the echo should work correctly.
6274 # The option is referenced via a variable to avoid confusing sed.
6275 lt_compile=`echo "$ac_compile" | $SED \
6276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6278 -e 's:$: $lt_compiler_flag:'`
6279 (eval echo "\"\$as_me:6279: $lt_compile\"" >&5)
6280 (eval "$lt_compile" 2>conftest.err)
6282 cat conftest.err >&5
6283 echo "$as_me:6283: \$? = $ac_status" >&5
6284 if (exit $ac_status) && test -s "$ac_outfile"; then
6285 # The compiler can only warn and ignore the option if not recognized
6286 # So say no if there are warnings other than the usual output.
6287 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6290 lt_prog_compiler_pic_works=yes
6296 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6297 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6299 if test x"$lt_prog_compiler_pic_works" = xyes; then
6300 case $lt_prog_compiler_pic in
6302 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6305 lt_prog_compiler_pic=
6306 lt_prog_compiler_can_build_shared=no
6311 # For platforms which do not support PIC, -DPIC is meaningless:
6313 lt_prog_compiler_pic=
6316 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6321 # Check to make sure the static flag actually works.
6323 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6324 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6325 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6326 if test "${lt_prog_compiler_static_works+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 lt_prog_compiler_static_works=no
6330 save_LDFLAGS="$LDFLAGS"
6331 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6332 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6333 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6334 # The linker can only warn and ignore the option if not recognized
6335 # So say no if there are warnings
6336 if test -s conftest.err; then
6337 # Append any errors to the config.log.
6338 cat conftest.err 1>&5
6339 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6341 if diff conftest.exp conftest.er2 >/dev/null; then
6342 lt_prog_compiler_static_works=yes
6345 lt_prog_compiler_static_works=yes
6349 LDFLAGS="$save_LDFLAGS"
6352 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6353 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6355 if test x"$lt_prog_compiler_static_works" = xyes; then
6358 lt_prog_compiler_static=
6362 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6363 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6364 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 lt_cv_prog_compiler_c_o=no
6368 $rm -r conftest 2>/dev/null
6372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6374 lt_compiler_flag="-o out/conftest2.$ac_objext"
6375 # Insert the option either (1) after the last *FLAGS variable, or
6376 # (2) before a word containing "conftest.", or (3) at the end.
6377 # Note that $ac_compile itself does not contain backslashes and begins
6378 # with a dollar sign (not a hyphen), so the echo should work correctly.
6379 lt_compile=`echo "$ac_compile" | $SED \
6380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6382 -e 's:$: $lt_compiler_flag:'`
6383 (eval echo "\"\$as_me:6383: $lt_compile\"" >&5)
6384 (eval "$lt_compile" 2>out/conftest.err)
6386 cat out/conftest.err >&5
6387 echo "$as_me:6387: \$? = $ac_status" >&5
6388 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6390 # The compiler can only warn and ignore the option if not recognized
6391 # So say no if there are warnings
6392 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6393 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6394 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6395 lt_cv_prog_compiler_c_o=yes
6400 # SGI C++ compiler will create directory out/ii_files/ for
6401 # template instantiation
6402 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6403 $rm out/* && rmdir out
6409 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6410 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6413 hard_links="nottested"
6414 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6415 # do not overwrite the value of need_locks provided by the user
6416 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6417 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6420 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6422 ln conftest.a conftest.b 2>&5 || hard_links=no
6423 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6424 echo "$as_me:$LINENO: result: $hard_links" >&5
6425 echo "${ECHO_T}$hard_links" >&6
6426 if test "$hard_links" = no; then
6427 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6428 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6435 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6436 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6439 allow_undefined_flag=
6440 enable_shared_with_static_runtimes=no
6442 archive_expsym_cmds=
6443 old_archive_From_new_cmds=
6444 old_archive_from_expsyms_cmds=
6445 export_dynamic_flag_spec=
6446 whole_archive_flag_spec=
6447 thread_safe_flag_spec=
6448 hardcode_libdir_flag_spec=
6449 hardcode_libdir_flag_spec_ld=
6450 hardcode_libdir_separator=
6453 hardcode_shlibpath_var=unsupported
6454 link_all_deplibs=unknown
6455 hardcode_automatic=no
6458 always_export_symbols=no
6459 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6460 # include_expsyms should be a list of space-separated symbols to be *always*
6461 # included in the symbol list
6463 # exclude_expsyms can be an extended regexp of symbols to exclude
6464 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6465 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6466 # as well as any symbol that contains `d'.
6467 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6468 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6469 # platforms (ab)use it in PIC code, but their linkers get confused if
6470 # the symbol is explicitly referenced. Since portable code cannot
6471 # rely on this symbol name, it's probably fine to never include it in
6472 # preloaded symbol tables.
6473 extract_expsyms_cmds=
6474 # Just being paranoid about ensuring that cc_basename is set.
6475 for cc_temp in $compiler""; do
6477 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6478 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6483 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6486 cygwin* | mingw* | pw32*)
6487 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6488 # When not using gcc, we currently assume that we are using
6489 # Microsoft Visual C++.
6490 if test "$GCC" != yes; then
6495 # we just hope/assume this is gcc and not c89 (= MSVC++)
6504 if test "$with_gnu_ld" = yes; then
6505 # If archive_cmds runs LD, not CC, wlarc should be empty
6508 # Set some defaults for GNU ld with shared library support. These
6509 # are reset later if shared libraries are not supported. Putting them
6510 # here allows them to be overridden if necessary.
6511 runpath_var=LD_RUN_PATH
6512 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6513 export_dynamic_flag_spec='${wl}--export-dynamic'
6514 # ancient GNU ld didn't support --whole-archive et. al.
6515 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6516 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6518 whole_archive_flag_spec=
6520 supports_anon_versioning=no
6521 case `$LD -v 2>/dev/null` in
6522 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6523 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6524 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6525 *\ 2.11.*) ;; # other 2.11 versions
6526 *) supports_anon_versioning=yes ;;
6529 # See if GNU ld supports shared libraries.
6531 aix3* | aix4* | aix5*)
6532 # On AIX/PPC, the GNU linker is very broken
6533 if test "$host_cpu" != ia64; then
6537 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6538 *** to be unable to reliably create shared libraries on AIX.
6539 *** Therefore, libtool is disabling shared libraries support. If you
6540 *** really care for shared libraries, you may want to modify your PATH
6541 *** so that a non-GNU linker is found, and then restart.
6548 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)'
6549 hardcode_libdir_flag_spec='-L$libdir'
6550 hardcode_minus_L=yes
6552 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6553 # that the semantics of dynamic libraries on AmigaOS, at least up
6554 # to version 4, is to share data among multiple programs linked
6555 # with the same dynamic library. Since this doesn't match the
6556 # behavior of shared libraries on other platforms, we can't use
6562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6563 allow_undefined_flag=unsupported
6564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6565 # support --undefined. This deserves some investigation. FIXME
6566 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6572 cygwin* | mingw* | pw32*)
6573 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6574 # as there is no search path for DLLs.
6575 hardcode_libdir_flag_spec='-L$libdir'
6576 allow_undefined_flag=unsupported
6577 always_export_symbols=no
6578 enable_shared_with_static_runtimes=yes
6579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6581 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6583 # If the export-symbols file already is a .def file (1st line
6584 # is EXPORTS), use it as is; otherwise, prepend...
6585 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6586 cp $export_symbols $output_objdir/$soname.def;
6588 echo EXPORTS > $output_objdir/$soname.def;
6589 cat $export_symbols >> $output_objdir/$soname.def;
6591 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6599 hardcode_shlibpath_var=no
6600 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6601 export_dynamic_flag_spec='${wl}-E'
6602 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6603 # Instead, shared libraries are loaded at an image base (0x10000000 by
6604 # default) and relocated if they conflict, which is a slow very memory
6605 # consuming and fragmenting process. To avoid this, we pick a random,
6606 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6607 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6609 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6613 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6615 case $cc_basename,$host_cpu in
6616 pgcc*) # Portland Group C compiler
6617 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'
6618 tmp_addflag=' $pic_flag'
6620 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6621 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'
6622 tmp_addflag=' $pic_flag -Mnomain' ;;
6623 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6624 tmp_addflag=' -i_dynamic' ;;
6625 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6626 tmp_addflag=' -i_dynamic -nofor_main' ;;
6627 ifc* | ifort*) # Intel Fortran compiler
6628 tmp_addflag=' -nofor_main' ;;
6630 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6632 if test $supports_anon_versioning = yes; then
6633 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6635 $echo "local: *; };" >> $output_objdir/$libname.ver~
6636 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6644 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6646 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6655 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6659 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6660 *** create shared libraries on Solaris systems. Therefore, libtool
6661 *** is disabling shared libraries support. We urge you to upgrade GNU
6662 *** binutils to release 2.9.1 or newer. Another option is to modify
6663 *** your PATH or compiler configuration so that the native linker is
6664 *** used, and then restart.
6667 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6669 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6676 case `$LD -v 2>&1` in
6677 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6681 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6682 *** reliably create shared libraries on SCO systems. Therefore, libtool
6683 *** is disabling shared libraries support. We urge you to upgrade GNU
6684 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6685 *** your PATH or compiler configuration so that the native linker is
6686 *** used, and then restart.
6691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6692 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6703 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6706 hardcode_shlibpath_var=no
6710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6719 if test "$ld_shlibs" = no; then
6721 hardcode_libdir_flag_spec=
6722 export_dynamic_flag_spec=
6723 whole_archive_flag_spec=
6726 # PORTME fill in a description of your system's linker (not GNU ld)
6729 allow_undefined_flag=unsupported
6730 always_export_symbols=yes
6731 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'
6732 # Note: this linker hardcodes the directories in LIBPATH if there
6733 # are no directories specified by -L.
6734 hardcode_minus_L=yes
6735 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6736 # Neither direct hardcoding nor static linking is supported with a
6738 hardcode_direct=unsupported
6743 if test "$host_cpu" = ia64; then
6744 # On IA64, the linker does run time linking by default, so we don't
6745 # have to do anything special.
6746 aix_use_runtimelinking=no
6747 exp_sym_flag='-Bexport'
6750 # If we're using GNU nm, then we don't want the "-C" option.
6751 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6752 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6753 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'
6755 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'
6757 aix_use_runtimelinking=no
6759 # Test if we are trying to use run time linking or normal
6760 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6761 # need to do runtime linking.
6762 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6763 for ld_flag in $LDFLAGS; do
6764 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6765 aix_use_runtimelinking=yes
6772 exp_sym_flag='-bexport'
6773 no_entry_flag='-bnoentry'
6776 # When large executables or shared objects are built, AIX ld can
6777 # have problems creating the table of contents. If linking a library
6778 # or program results in "error TOC overflow" add -mminimal-toc to
6779 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6780 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6784 hardcode_libdir_separator=':'
6785 link_all_deplibs=yes
6787 if test "$GCC" = yes; then
6788 case $host_os in aix4.[012]|aix4.[012].*)
6789 # We only want to do this on AIX 4.2 and lower, the check
6790 # below for broken collect2 doesn't work under 4.3+
6791 collect2name=`${CC} -print-prog-name=collect2`
6792 if test -f "$collect2name" && \
6793 strings "$collect2name" | grep resolve_lib_name >/dev/null
6795 # We have reworked collect2
6798 # We have old collect2
6799 hardcode_direct=unsupported
6800 # It fails to find uninstalled libraries when the uninstalled
6801 # path is not listed in the libpath. Setting hardcode_minus_L
6802 # to unsupported forces relinking
6803 hardcode_minus_L=yes
6804 hardcode_libdir_flag_spec='-L$libdir'
6805 hardcode_libdir_separator=
6809 shared_flag='-shared'
6810 if test "$aix_use_runtimelinking" = yes; then
6811 shared_flag="$shared_flag "'${wl}-G'
6815 if test "$host_cpu" = ia64; then
6816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6817 # chokes on -Wl,-G. The following line is correct:
6820 if test "$aix_use_runtimelinking" = yes; then
6821 shared_flag='${wl}-G'
6823 shared_flag='${wl}-bM:SRE'
6828 # It seems that -bexpall does not export symbols beginning with
6829 # underscore (_), so it is better to generate a list of symbols to export.
6830 always_export_symbols=yes
6831 if test "$aix_use_runtimelinking" = yes; then
6832 # Warning - without using the other runtime loading flags (-brtl),
6833 # -berok will link without error, but may produce a broken library.
6834 allow_undefined_flag='-berok'
6835 # Determine the default libpath from the value encoded in an empty executable.
6836 cat >conftest.$ac_ext <<_ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; } &&
6866 { ac_try='test -s conftest$ac_exeext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6875 # Check for a 64-bit object if we didn't find anything.
6876 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; }
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6883 rm -f conftest.err conftest.$ac_objext \
6884 conftest$ac_exeext conftest.$ac_ext
6885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6887 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6888 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6890 if test "$host_cpu" = ia64; then
6891 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6892 allow_undefined_flag="-z nodefs"
6893 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6895 # Determine the default libpath from the value encoded in an empty executable.
6896 cat >conftest.$ac_ext <<_ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913 (eval $ac_link) 2>conftest.er1
6915 grep -v '^ *+' conftest.er1 >conftest.err
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; } &&
6926 { ac_try='test -s conftest$ac_exeext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6933 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6935 # Check for a 64-bit object if we didn't find anything.
6936 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; }
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6943 rm -f conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6947 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6948 # Warning - without using the other run time loading flags,
6949 # -berok will link without error, but may produce a broken library.
6950 no_undefined_flag=' ${wl}-bernotok'
6951 allow_undefined_flag=' ${wl}-berok'
6952 # Exported symbols can be pulled into shared objects from archives
6953 whole_archive_flag_spec='$convenience'
6954 archive_cmds_need_lc=yes
6955 # This is similar to how AIX traditionally builds its shared libraries.
6956 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6962 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)'
6963 hardcode_libdir_flag_spec='-L$libdir'
6964 hardcode_minus_L=yes
6965 # see comment about different semantics on the GNU ld section
6970 export_dynamic_flag_spec=-rdynamic
6973 cygwin* | mingw* | pw32*)
6974 # When not using gcc, we currently assume that we are using
6975 # Microsoft Visual C++.
6976 # hardcode_libdir_flag_spec is actually meaningless, as there is
6977 # no search path for DLLs.
6978 hardcode_libdir_flag_spec=' '
6979 allow_undefined_flag=unsupported
6980 # Tell ltmain to make .lib files, not .a files.
6982 # Tell ltmain to make .dll files, not .so files.
6984 # FIXME: Setting linknames here is a bad hack.
6985 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6986 # The linker will automatically build a .lib file if we build a DLL.
6987 old_archive_From_new_cmds='true'
6988 # FIXME: Should let the user specify the lib program.
6989 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6990 fix_srcfile_path='`cygpath -w "$srcfile"`'
6991 enable_shared_with_static_runtimes=yes
6994 darwin* | rhapsody*)
6996 rhapsody* | darwin1.[012])
6997 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7000 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7001 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7003 case ${MACOSX_DEPLOYMENT_TARGET} in
7005 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7008 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7014 archive_cmds_need_lc=no
7016 hardcode_automatic=yes
7017 hardcode_shlibpath_var=unsupported
7018 whole_archive_flag_spec=''
7019 link_all_deplibs=yes
7020 if test "$GCC" = yes ; then
7021 output_verbose_link_cmd='echo'
7022 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7023 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7024 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7025 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}'
7026 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}'
7028 case $cc_basename in
7030 output_verbose_link_cmd='echo'
7031 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7032 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7033 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7034 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}'
7035 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}'
7045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7046 hardcode_libdir_flag_spec='-L$libdir'
7047 hardcode_shlibpath_var=no
7054 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7055 # support. Future versions do this automatically, but an explicit c++rt0.o
7056 # does not break anything, and helps significantly (at the cost of a little
7059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7060 hardcode_libdir_flag_spec='-R$libdir'
7062 hardcode_shlibpath_var=no
7065 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7069 hardcode_minus_L=yes
7070 hardcode_shlibpath_var=no
7073 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7074 freebsd* | dragonfly*)
7075 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7076 hardcode_libdir_flag_spec='-R$libdir'
7078 hardcode_shlibpath_var=no
7081 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7083 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7084 hardcode_libdir_flag_spec='-R$libdir'
7086 hardcode_shlibpath_var=no
7091 if test "$GCC" = yes; then
7092 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'
7094 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'
7096 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7097 hardcode_libdir_separator=:
7100 # hardcode_minus_L: Not really in the search PATH,
7101 # but as the default location of the library.
7102 hardcode_minus_L=yes
7103 export_dynamic_flag_spec='${wl}-E'
7107 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7108 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7110 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7112 if test "$with_gnu_ld" = no; then
7113 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7114 hardcode_libdir_separator=:
7117 export_dynamic_flag_spec='${wl}-E'
7119 # hardcode_minus_L: Not really in the search PATH,
7120 # but as the default location of the library.
7121 hardcode_minus_L=yes
7126 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7129 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7132 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7135 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7141 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7144 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7147 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7151 if test "$with_gnu_ld" = no; then
7152 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7153 hardcode_libdir_separator=:
7157 hardcode_libdir_flag_spec_ld='+b $libdir'
7159 hardcode_shlibpath_var=no
7163 export_dynamic_flag_spec='${wl}-E'
7165 # hardcode_minus_L: Not really in the search PATH,
7166 # but as the default location of the library.
7167 hardcode_minus_L=yes
7173 irix5* | irix6* | nonstopux*)
7174 if test "$GCC" = yes; then
7175 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'
7177 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'
7178 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7181 hardcode_libdir_separator=:
7182 link_all_deplibs=yes
7185 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7189 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7191 hardcode_libdir_flag_spec='-R$libdir'
7193 hardcode_shlibpath_var=no
7197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200 hardcode_libdir_separator=:
7201 hardcode_shlibpath_var=no
7206 hardcode_shlibpath_var=no
7207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7209 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7210 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7211 export_dynamic_flag_spec='${wl}-E'
7214 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7216 hardcode_libdir_flag_spec='-R$libdir'
7219 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7220 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7227 hardcode_libdir_flag_spec='-L$libdir'
7228 hardcode_minus_L=yes
7229 allow_undefined_flag=unsupported
7230 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'
7231 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7235 if test "$GCC" = yes; then
7236 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7237 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'
7239 allow_undefined_flag=' -expect_unresolved \*'
7240 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'
7242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7243 hardcode_libdir_separator=:
7246 osf4* | osf5*) # as osf3* with the addition of -msym flag
7247 if test "$GCC" = yes; then
7248 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7249 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'
7250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7252 allow_undefined_flag=' -expect_unresolved \*'
7253 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'
7254 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7255 $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'
7257 # Both c and cxx compiler support -rpath directly
7258 hardcode_libdir_flag_spec='-rpath $libdir'
7260 hardcode_libdir_separator=:
7264 no_undefined_flag=' -z text'
7265 if test "$GCC" = yes; then
7267 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7268 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7269 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7272 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7273 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7274 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7276 hardcode_libdir_flag_spec='-R$libdir'
7277 hardcode_shlibpath_var=no
7279 solaris2.[0-5] | solaris2.[0-5].*) ;;
7281 # The compiler driver will combine linker options so we
7282 # cannot just pass the convience library names through
7283 # without $wl, iff we do not link with $LD.
7284 # Luckily, gcc supports the same syntax we need for Sun Studio.
7285 # Supported since Solaris 2.6 (maybe 2.5.1?)
7288 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7290 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' ;;
7293 link_all_deplibs=yes
7297 if test "x$host_vendor" = xsequent; then
7298 # Use $CC to link under sequent, because it throws in some extra .o
7299 # files that make .init and .fini sections work.
7300 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7302 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7304 hardcode_libdir_flag_spec='-L$libdir'
7306 hardcode_minus_L=yes
7307 hardcode_shlibpath_var=no
7311 case $host_vendor in
7313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7314 hardcode_direct=yes # is this really true???
7317 ## LD is ld it makes a PLAMLIB
7318 ## CC just makes a GrossModule.
7319 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7320 reload_cmds='$CC -r -o $output$reload_objs'
7324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7328 runpath_var='LD_RUN_PATH'
7329 hardcode_shlibpath_var=no
7333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7334 hardcode_shlibpath_var=no
7335 export_dynamic_flag_spec='-Bexport'
7339 if test -d /usr/nec; then
7340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7341 hardcode_shlibpath_var=no
7342 runpath_var=LD_RUN_PATH
7343 hardcode_runpath_var=yes
7348 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7349 no_undefined_flag='${wl}-z,text'
7350 archive_cmds_need_lc=no
7351 hardcode_shlibpath_var=no
7352 runpath_var='LD_RUN_PATH'
7354 if test "$GCC" = yes; then
7355 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7356 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7358 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7359 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7363 sysv5* | sco3.2v5* | sco5v6*)
7364 # Note: We can NOT use -z defs as we might desire, because we do not
7365 # link with -lc, and that would cause any symbols used from libc to
7366 # always be unresolved, which means just about no library would
7367 # ever link correctly. If we're not using GNU ld we use -z text
7368 # though, which does catch some bad symbols but isn't as heavy-handed
7370 no_undefined_flag='${wl}-z,text'
7371 allow_undefined_flag='${wl}-z,nodefs'
7372 archive_cmds_need_lc=no
7373 hardcode_shlibpath_var=no
7374 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7375 hardcode_libdir_separator=':'
7376 link_all_deplibs=yes
7377 export_dynamic_flag_spec='${wl}-Bexport'
7378 runpath_var='LD_RUN_PATH'
7380 if test "$GCC" = yes; then
7381 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7382 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7384 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7385 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391 hardcode_libdir_flag_spec='-L$libdir'
7392 hardcode_shlibpath_var=no
7401 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7402 echo "${ECHO_T}$ld_shlibs" >&6
7403 test "$ld_shlibs" = no && can_build_shared=no
7406 # Do we need to explicitly link libc?
7408 case "x$archive_cmds_need_lc" in
7410 # Assume -lc should be added
7411 archive_cmds_need_lc=yes
7413 if test "$enable_shared" = yes && test "$GCC" = yes; then
7414 case $archive_cmds in
7416 # FIXME: we may have to deal with multi-command sequences.
7419 # Test whether the compiler implicitly links with -lc since on some
7420 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7421 # to ld, don't add -lc before -lgcc.
7422 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7423 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7425 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428 (eval $ac_compile) 2>&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } 2>conftest.err; then
7434 libobjs=conftest.$ac_objext
7436 wl=$lt_prog_compiler_wl
7437 pic_flag=$lt_prog_compiler_pic
7443 lt_save_allow_undefined_flag=$allow_undefined_flag
7444 allow_undefined_flag=
7445 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7446 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }
7451 archive_cmds_need_lc=no
7453 archive_cmds_need_lc=yes
7455 allow_undefined_flag=$lt_save_allow_undefined_flag
7457 cat conftest.err 1>&5
7460 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7461 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7468 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7469 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7471 libname_spec='lib$name'
7479 shlibpath_overrides_runpath=unknown
7481 dynamic_linker="$host_os ld.so"
7482 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7483 if test "$GCC" = yes; then
7484 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7485 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7486 # if the path contains ";" then we assume it to be the separator
7487 # otherwise default to the standard path separator (i.e. ":") - it is
7488 # assumed that no part of a normal pathname contains ";" but that should
7489 # okay in the real world where ";" in dirpaths is itself problematic.
7490 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7495 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7497 need_lib_prefix=unknown
7498 hardcode_into_libs=no
7500 # when you set need_version to no, make sure it does not cause -set_version
7501 # flags to be left without arguments
7502 need_version=unknown
7507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7508 shlibpath_var=LIBPATH
7510 # AIX 3 has no versioning support, so we append a major version to the name.
7511 soname_spec='${libname}${release}${shared_ext}$major'
7518 hardcode_into_libs=yes
7519 if test "$host_cpu" = ia64; then
7520 # AIX 5 supports IA64
7521 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7522 shlibpath_var=LD_LIBRARY_PATH
7524 # With GCC up to 2.95.x, collect2 would create an import file
7525 # for dependence libraries. The import file would start with
7526 # the line `#! .'. This would cause the generated library to
7527 # depend on `.', always an invalid library. This was fixed in
7528 # development snapshots of GCC prior to 3.0.
7530 aix4 | aix4.[01] | aix4.[01].*)
7531 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7533 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7540 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7541 # soname into executable. Probably we can add versioning support to
7542 # collect2, so additional links can be useful in future.
7543 if test "$aix_use_runtimelinking" = yes; then
7544 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7545 # instead of lib<name>.a to let people know that these are not
7546 # typical AIX shared libraries.
7547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7549 # We preserve .a as extension for shared libraries through AIX4.2
7550 # and later when we are not doing run time linking.
7551 library_names_spec='${libname}${release}.a $libname.a'
7552 soname_spec='${libname}${release}${shared_ext}$major'
7554 shlibpath_var=LIBPATH
7559 library_names_spec='$libname.ixlibrary $libname.a'
7560 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7561 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'
7565 library_names_spec='${libname}${shared_ext}'
7566 dynamic_linker="$host_os ld.so"
7567 shlibpath_var=LIBRARY_PATH
7573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7574 soname_spec='${libname}${release}${shared_ext}$major'
7575 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7576 shlibpath_var=LD_LIBRARY_PATH
7577 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7578 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7579 # the default ld.so.conf also contains /usr/contrib/lib and
7580 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7581 # libtool to hard-code these into programs
7584 cygwin* | mingw* | pw32*)
7585 version_type=windows
7590 case $GCC,$host_os in
7591 yes,cygwin* | yes,mingw* | yes,pw32*)
7592 library_names_spec='$libname.dll.a'
7593 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7594 postinstall_cmds='base_file=`basename \${file}`~
7595 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7596 dldir=$destdir/`dirname \$dlpath`~
7597 test -d \$dldir || mkdir -p \$dldir~
7598 $install_prog $dir/$dlname \$dldir/$dlname~
7599 chmod a+x \$dldir/$dlname'
7600 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7601 dlpath=$dir/\$dldll~
7603 shlibpath_overrides_runpath=yes
7607 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7608 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7609 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7612 # MinGW DLLs use traditional 'lib' prefix
7613 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7614 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7615 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7616 # It is most probably a Windows format PATH printed by
7617 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7618 # path with ; separators, and with drive letters. We can handle the
7619 # drive letters (cygwin fileutils understands them), so leave them,
7620 # especially as we might pass files found there to a mingw objdump,
7621 # which wouldn't understand a cygwinified path. Ahh.
7622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7628 # pw32 DLLs use 'pw' prefix rather than 'lib'
7629 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7635 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7638 dynamic_linker='Win32 ld.exe'
7639 # FIXME: first we should search . and the directory the executable is in
7643 darwin* | rhapsody*)
7644 dynamic_linker="$host_os dyld"
7648 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7649 soname_spec='${libname}${release}${major}$shared_ext'
7650 shlibpath_overrides_runpath=yes
7651 shlibpath_var=DYLD_LIBRARY_PATH
7652 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7653 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7654 if test "$GCC" = yes; then
7655 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"`
7657 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7667 soname_spec='${libname}${release}${shared_ext}$major'
7668 shlibpath_var=LD_LIBRARY_PATH
7679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7680 soname_spec='${libname}${release}${shared_ext}$major'
7681 shlibpath_var=LD_LIBRARY_PATH
7682 shlibpath_overrides_runpath=no
7683 hardcode_into_libs=yes
7684 dynamic_linker='GNU ld.so'
7687 freebsd* | dragonfly*)
7688 # DragonFly does not have aout. When/if they implement a new
7689 # versioning mechanism, adjust this.
7690 if test -x /usr/bin/objformat; then
7691 objformat=`/usr/bin/objformat`
7694 freebsd[123]*) objformat=aout ;;
7698 version_type=freebsd-$objformat
7699 case $version_type in
7701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7710 shlibpath_var=LD_LIBRARY_PATH
7713 shlibpath_overrides_runpath=yes
7715 freebsd3.[01]* | freebsdelf3.[01]*)
7716 shlibpath_overrides_runpath=yes
7717 hardcode_into_libs=yes
7719 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7720 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7721 shlibpath_overrides_runpath=no
7722 hardcode_into_libs=yes
7724 freebsd*) # from 4.6 on
7725 shlibpath_overrides_runpath=yes
7726 hardcode_into_libs=yes
7735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7736 soname_spec='${libname}${release}${shared_ext}$major'
7737 shlibpath_var=LD_LIBRARY_PATH
7738 hardcode_into_libs=yes
7741 hpux9* | hpux10* | hpux11*)
7742 # Give a soname corresponding to the major version so that dld.sl refuses to
7743 # link against other versions.
7750 hardcode_into_libs=yes
7751 dynamic_linker="$host_os dld.so"
7752 shlibpath_var=LD_LIBRARY_PATH
7753 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7755 soname_spec='${libname}${release}${shared_ext}$major'
7756 if test "X$HPUX_IA64_MODE" = X32; then
7757 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7759 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7765 hardcode_into_libs=yes
7766 dynamic_linker="$host_os dld.sl"
7767 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7770 soname_spec='${libname}${release}${shared_ext}$major'
7771 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7776 dynamic_linker="$host_os dld.sl"
7777 shlibpath_var=SHLIB_PATH
7778 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7780 soname_spec='${libname}${release}${shared_ext}$major'
7783 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7784 postinstall_cmds='chmod 555 $lib'
7791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7792 soname_spec='${libname}${release}${shared_ext}$major'
7793 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7794 shlibpath_var=LD_LIBRARY_PATH
7795 shlibpath_overrides_runpath=no
7796 hardcode_into_libs=yes
7799 irix5* | irix6* | nonstopux*)
7801 nonstopux*) version_type=nonstopux ;;
7803 if test "$lt_cv_prog_gnu_ld" = yes; then
7811 soname_spec='${libname}${release}${shared_ext}$major'
7812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7814 irix5* | nonstopux*)
7818 case $LD in # libtool.m4 will add one of these switches to LD
7819 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7820 libsuff= shlibsuff= libmagic=32-bit;;
7821 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7822 libsuff=32 shlibsuff=N32 libmagic=N32;;
7823 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7824 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7825 *) libsuff= shlibsuff= libmagic=never-match;;
7829 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7830 shlibpath_overrides_runpath=no
7831 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7832 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7833 hardcode_into_libs=yes
7836 # No shared lib support for Linux oldld, aout, or coff.
7837 linux*oldld* | linux*aout* | linux*coff*)
7841 # This must be Linux ELF.
7846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7847 soname_spec='${libname}${release}${shared_ext}$major'
7848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7849 shlibpath_var=LD_LIBRARY_PATH
7850 shlibpath_overrides_runpath=no
7851 # This implies no fast_install, which is unacceptable.
7852 # Some rework will be needed to allow for fast_install
7853 # before this can be enabled.
7854 hardcode_into_libs=yes
7856 # Append ld.so.conf contents to the search path
7857 if test -f /etc/ld.so.conf; then
7858 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' ' '`
7859 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7862 # We used to test for /lib/ld.so.1 and disable shared libraries on
7863 # powerpc, because MkLinux only supported shared libraries with the
7864 # GNU dynamic linker. Since this was broken with cross compilers,
7865 # most powerpc-linux boxes support dynamic linking these days and
7866 # people can always --disable-shared, the test was removed, and we
7867 # assume the GNU/Linux dynamic linker is in use.
7868 dynamic_linker='GNU/Linux ld.so'
7875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7876 soname_spec='${libname}${release}${shared_ext}$major'
7877 shlibpath_var=LD_LIBRARY_PATH
7878 shlibpath_overrides_runpath=no
7879 hardcode_into_libs=yes
7880 dynamic_linker='NetBSD ld.elf_so'
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7888 soname_spec='${libname}${release}${shared_ext}$major'
7889 shlibpath_var=LD_LIBRARY_PATH
7890 shlibpath_overrides_runpath=no
7891 hardcode_into_libs=yes
7892 dynamic_linker='GNU ld.so'
7899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7902 dynamic_linker='NetBSD (a.out) ld.so'
7904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7905 soname_spec='${libname}${release}${shared_ext}$major'
7906 dynamic_linker='NetBSD ld.elf_so'
7908 shlibpath_var=LD_LIBRARY_PATH
7909 shlibpath_overrides_runpath=yes
7910 hardcode_into_libs=yes
7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7916 shlibpath_var=LD_LIBRARY_PATH
7917 shlibpath_overrides_runpath=yes
7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925 soname_spec='${libname}${release}${shared_ext}$major'
7926 shlibpath_var=LD_LIBRARY_PATH
7927 shlibpath_overrides_runpath=yes
7932 sys_lib_dlsearch_path_spec="/usr/lib"
7934 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7936 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7937 *) need_version=no ;;
7939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7941 shlibpath_var=LD_LIBRARY_PATH
7942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7944 openbsd2.[89] | openbsd2.[89].*)
7945 shlibpath_overrides_runpath=no
7948 shlibpath_overrides_runpath=yes
7952 shlibpath_overrides_runpath=yes
7957 libname_spec='$name'
7960 library_names_spec='$libname${shared_ext} $libname.a'
7961 dynamic_linker='OS/2 ld.exe'
7962 shlibpath_var=LIBPATH
7965 osf3* | osf4* | osf5*)
7969 soname_spec='${libname}${release}${shared_ext}$major'
7970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7971 shlibpath_var=LD_LIBRARY_PATH
7972 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7973 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981 soname_spec='${libname}${release}${shared_ext}$major'
7982 shlibpath_var=LD_LIBRARY_PATH
7983 shlibpath_overrides_runpath=yes
7984 hardcode_into_libs=yes
7985 # ldd complains unless libraries are executable
7986 postinstall_cmds='chmod +x $lib'
7991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7992 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7993 shlibpath_var=LD_LIBRARY_PATH
7994 shlibpath_overrides_runpath=yes
7995 if test "$with_gnu_ld" = yes; then
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004 soname_spec='${libname}${release}${shared_ext}$major'
8005 shlibpath_var=LD_LIBRARY_PATH
8006 case $host_vendor in
8008 shlibpath_overrides_runpath=no
8010 export_dynamic_flag_spec='${wl}-Blargedynsym'
8011 runpath_var=LD_RUN_PATH
8019 shlibpath_overrides_runpath=no
8020 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8026 if test -d /usr/nec ;then
8028 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8029 soname_spec='$libname${shared_ext}.$major'
8030 shlibpath_var=LD_LIBRARY_PATH
8034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8035 version_type=freebsd-elf
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8039 soname_spec='${libname}${release}${shared_ext}$major'
8040 shlibpath_var=LD_LIBRARY_PATH
8041 hardcode_into_libs=yes
8042 if test "$with_gnu_ld" = yes; then
8043 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8044 shlibpath_overrides_runpath=no
8046 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8047 shlibpath_overrides_runpath=yes
8050 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8054 sys_lib_dlsearch_path_spec='/usr/lib'
8059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8060 soname_spec='${libname}${release}${shared_ext}$major'
8061 shlibpath_var=LD_LIBRARY_PATH
8068 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8069 echo "${ECHO_T}$dynamic_linker" >&6
8070 test "$dynamic_linker" = no && can_build_shared=no
8072 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8073 if test "$GCC" = yes; then
8074 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8077 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8078 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8080 if test -n "$hardcode_libdir_flag_spec" || \
8081 test -n "$runpath_var" || \
8082 test "X$hardcode_automatic" = "Xyes" ; then
8084 # We can hardcode non-existant directories.
8085 if test "$hardcode_direct" != no &&
8086 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8087 # have to relink, otherwise we might link with an installed library
8088 # when we should be linking with a yet-to-be-installed one
8089 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8090 test "$hardcode_minus_L" != no; then
8091 # Linking always hardcodes the temporary library directory.
8092 hardcode_action=relink
8094 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8095 hardcode_action=immediate
8098 # We cannot hardcode anything, or else we can only hardcode existing
8100 hardcode_action=unsupported
8102 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8103 echo "${ECHO_T}$hardcode_action" >&6
8105 if test "$hardcode_action" = relink; then
8106 # Fast installation is not supported
8107 enable_fast_install=no
8108 elif test "$shlibpath_overrides_runpath" = yes ||
8109 test "$enable_shared" = no; then
8110 # Fast installation is not necessary
8111 enable_fast_install=needless
8116 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8117 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8118 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8119 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8120 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8121 echo "$as_me:$LINENO: result: yes" >&5
8122 echo "${ECHO_T}yes" >&6
8124 # FIXME - insert some real tests, host_os isn't really good enough
8127 if test -n "$STRIP" ; then
8128 striplib="$STRIP -x"
8129 echo "$as_me:$LINENO: result: yes" >&5
8130 echo "${ECHO_T}yes" >&6
8132 echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6
8137 echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6
8143 if test "x$enable_dlopen" != xyes; then
8144 enable_dlopen=unknown
8145 enable_dlopen_self=unknown
8146 enable_dlopen_self_static=unknown
8153 lt_cv_dlopen="load_add_on"
8155 lt_cv_dlopen_self=yes
8159 lt_cv_dlopen="LoadLibrary"
8164 lt_cv_dlopen="dlopen"
8169 # if libdl is installed we need to link against it
8170 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8171 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8172 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 ac_check_lib_save_LIBS=$LIBS
8177 cat >conftest.$ac_ext <<_ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8184 /* Override any gcc2 internal prototype to avoid an error. */
8188 /* We use char because int might match the return type of a gcc2
8189 builtin and then its argument prototype would still apply. */
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201 (eval $ac_link) 2>conftest.er1
8203 grep -v '^ *+' conftest.er1 >conftest.err
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest$ac_exeext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 ac_cv_lib_dl_dlopen=yes
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8225 ac_cv_lib_dl_dlopen=no
8227 rm -f conftest.err conftest.$ac_objext \
8228 conftest$ac_exeext conftest.$ac_ext
8229 LIBS=$ac_check_lib_save_LIBS
8231 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8232 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8233 if test $ac_cv_lib_dl_dlopen = yes; then
8234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8239 lt_cv_dlopen_self=yes
8246 echo "$as_me:$LINENO: checking for shl_load" >&5
8247 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8248 if test "${ac_cv_func_shl_load+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 cat >conftest.$ac_ext <<_ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8259 #define shl_load innocuous_shl_load
8261 /* System header to define __stub macros and hopefully few prototypes,
8262 which can conflict with char shl_load (); below.
8263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8264 <limits.h> exists even on freestanding compilers. */
8267 # include <limits.h>
8269 # include <assert.h>
8274 /* Override any gcc2 internal prototype to avoid an error. */
8279 /* We use char because int might match the return type of a gcc2
8280 builtin and then its argument prototype would still apply. */
8282 /* The GNU C library defines this for functions which it implements
8283 to always fail with ENOSYS. Some functions are actually named
8284 something starting with __ and the normal name is an alias. */
8285 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8288 char (*f) () = shl_load;
8297 return f != shl_load;
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304 (eval $ac_link) 2>conftest.er1
8306 grep -v '^ *+' conftest.er1 >conftest.err
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 ac_cv_func_shl_load=yes
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 ac_cv_func_shl_load=no
8330 rm -f conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8333 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8334 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8335 if test $ac_cv_func_shl_load = yes; then
8336 lt_cv_dlopen="shl_load"
8338 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8339 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8340 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 ac_check_lib_save_LIBS=$LIBS
8345 cat >conftest.$ac_ext <<_ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8352 /* Override any gcc2 internal prototype to avoid an error. */
8356 /* We use char because int might match the return type of a gcc2
8357 builtin and then its argument prototype would still apply. */
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>conftest.er1
8371 grep -v '^ *+' conftest.er1 >conftest.err
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest$ac_exeext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_lib_dld_shl_load=yes
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_cv_lib_dld_shl_load=no
8395 rm -f conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
8397 LIBS=$ac_check_lib_save_LIBS
8399 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8400 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8401 if test $ac_cv_lib_dld_shl_load = yes; then
8402 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8404 echo "$as_me:$LINENO: checking for dlopen" >&5
8405 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8406 if test "${ac_cv_func_dlopen+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 cat >conftest.$ac_ext <<_ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8417 #define dlopen innocuous_dlopen
8419 /* System header to define __stub macros and hopefully few prototypes,
8420 which can conflict with char dlopen (); below.
8421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8422 <limits.h> exists even on freestanding compilers. */
8425 # include <limits.h>
8427 # include <assert.h>
8432 /* Override any gcc2 internal prototype to avoid an error. */
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8440 /* The GNU C library defines this for functions which it implements
8441 to always fail with ENOSYS. Some functions are actually named
8442 something starting with __ and the normal name is an alias. */
8443 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8446 char (*f) () = dlopen;
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8462 (eval $ac_link) 2>conftest.er1
8464 grep -v '^ *+' conftest.er1 >conftest.err
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; } &&
8475 { ac_try='test -s conftest$ac_exeext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 ac_cv_func_dlopen=yes
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 ac_cv_func_dlopen=no
8488 rm -f conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8491 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8492 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8493 if test $ac_cv_func_dlopen = yes; then
8494 lt_cv_dlopen="dlopen"
8496 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8497 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8498 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 ac_check_lib_save_LIBS=$LIBS
8503 cat >conftest.$ac_ext <<_ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8510 /* Override any gcc2 internal prototype to avoid an error. */
8514 /* We use char because int might match the return type of a gcc2
8515 builtin and then its argument prototype would still apply. */
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 ac_cv_lib_dl_dlopen=yes
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 ac_cv_lib_dl_dlopen=no
8553 rm -f conftest.err conftest.$ac_objext \
8554 conftest$ac_exeext conftest.$ac_ext
8555 LIBS=$ac_check_lib_save_LIBS
8557 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8558 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8559 if test $ac_cv_lib_dl_dlopen = yes; then
8560 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8562 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8563 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8564 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 ac_check_lib_save_LIBS=$LIBS
8569 cat >conftest.$ac_ext <<_ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8576 /* Override any gcc2 internal prototype to avoid an error. */
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593 (eval $ac_link) 2>conftest.er1
8595 grep -v '^ *+' conftest.er1 >conftest.err
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; } &&
8606 { ac_try='test -s conftest$ac_exeext'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8612 ac_cv_lib_svld_dlopen=yes
8614 echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8617 ac_cv_lib_svld_dlopen=no
8619 rm -f conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
8621 LIBS=$ac_check_lib_save_LIBS
8623 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8624 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8625 if test $ac_cv_lib_svld_dlopen = yes; then
8626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8628 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8629 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8630 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 ac_check_lib_save_LIBS=$LIBS
8635 cat >conftest.$ac_ext <<_ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8642 /* Override any gcc2 internal prototype to avoid an error. */
8646 /* We use char because int might match the return type of a gcc2
8647 builtin and then its argument prototype would still apply. */
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>conftest.er1
8661 grep -v '^ *+' conftest.er1 >conftest.err
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } &&
8666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest$ac_exeext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_cv_lib_dld_dld_link=yes
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 ac_cv_lib_dld_dld_link=no
8685 rm -f conftest.err conftest.$ac_objext \
8686 conftest$ac_exeext conftest.$ac_ext
8687 LIBS=$ac_check_lib_save_LIBS
8689 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8690 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8691 if test $ac_cv_lib_dld_dld_link = yes; then
8692 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8713 if test "x$lt_cv_dlopen" != xno; then
8719 case $lt_cv_dlopen in
8721 save_CPPFLAGS="$CPPFLAGS"
8722 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8724 save_LDFLAGS="$LDFLAGS"
8725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8728 LIBS="$lt_cv_dlopen_libs $LIBS"
8730 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8731 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8732 if test "${lt_cv_dlopen_self+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 if test "$cross_compiling" = yes; then :
8736 lt_cv_dlopen_self=cross
8738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8739 lt_status=$lt_dlunknown
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8741 "configure"
8742 #include "confdefs.h"
8751 # define LT_DLGLOBAL RTLD_GLOBAL
8754 # define LT_DLGLOBAL DL_GLOBAL
8756 # define LT_DLGLOBAL 0
8760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8761 find out it does not work in some platform. */
8762 #ifndef LT_DLLAZY_OR_NOW
8764 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8767 # define LT_DLLAZY_OR_NOW DL_LAZY
8770 # define LT_DLLAZY_OR_NOW RTLD_NOW
8773 # define LT_DLLAZY_OR_NOW DL_NOW
8775 # define LT_DLLAZY_OR_NOW 0
8783 extern "C" void exit (int);
8786 void fnord() { int i=42;}
8789 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8790 int status = $lt_dlunknown;
8794 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8795 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8796 /* dlclose (self); */
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8809 (./conftest; exit; ) >&5 2>/dev/null
8812 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8813 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8814 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8817 # compilation failed
8818 lt_cv_dlopen_self=no
8825 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8826 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8828 if test "x$lt_cv_dlopen_self" = xyes; then
8829 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8830 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8831 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8832 if test "${lt_cv_dlopen_self_static+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 if test "$cross_compiling" = yes; then :
8836 lt_cv_dlopen_self_static=cross
8838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8839 lt_status=$lt_dlunknown
8840 cat > conftest.$ac_ext <<EOF
8841 #line 8841 "configure"
8842 #include "confdefs.h"
8851 # define LT_DLGLOBAL RTLD_GLOBAL
8854 # define LT_DLGLOBAL DL_GLOBAL
8856 # define LT_DLGLOBAL 0
8860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8861 find out it does not work in some platform. */
8862 #ifndef LT_DLLAZY_OR_NOW
8864 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8867 # define LT_DLLAZY_OR_NOW DL_LAZY
8870 # define LT_DLLAZY_OR_NOW RTLD_NOW
8873 # define LT_DLLAZY_OR_NOW DL_NOW
8875 # define LT_DLLAZY_OR_NOW 0
8883 extern "C" void exit (int);
8886 void fnord() { int i=42;}
8889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8890 int status = $lt_dlunknown;
8894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8895 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8896 /* dlclose (self); */
8904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905 (eval $ac_link) 2>&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8909 (./conftest; exit; ) >&5 2>/dev/null
8912 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8913 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8914 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8917 # compilation failed
8918 lt_cv_dlopen_self_static=no
8925 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8926 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8929 CPPFLAGS="$save_CPPFLAGS"
8930 LDFLAGS="$save_LDFLAGS"
8935 case $lt_cv_dlopen_self in
8936 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8937 *) enable_dlopen_self=unknown ;;
8940 case $lt_cv_dlopen_self_static in
8941 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8942 *) enable_dlopen_self_static=unknown ;;
8947 # Report which library types will actually be built
8948 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8949 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8950 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8951 echo "${ECHO_T}$can_build_shared" >&6
8953 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8954 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8955 test "$can_build_shared" = "no" && enable_shared=no
8957 # On AIX, shared libraries and static libraries use the same namespace, and
8958 # are all built from PIC.
8961 test "$enable_shared" = yes && enable_static=no
8962 if test -n "$RANLIB"; then
8963 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8964 postinstall_cmds='$RANLIB $lib'
8969 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8970 test "$enable_shared" = yes && enable_static=no
8974 echo "$as_me:$LINENO: result: $enable_shared" >&5
8975 echo "${ECHO_T}$enable_shared" >&6
8977 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8978 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8979 # Make sure either enable_shared or enable_static is yes.
8980 test "$enable_shared" = yes || enable_static=yes
8981 echo "$as_me:$LINENO: result: $enable_static" >&5
8982 echo "${ECHO_T}$enable_static" >&6
8984 # The else clause should only fire when bootstrapping the
8985 # libtool distribution, otherwise you forgot to ship ltmain.sh
8986 # with your package, and you will get complaints that there are
8987 # no rules to generate ltmain.sh.
8988 if test -f "$ltmain"; then
8989 # See if we are running on zsh, and set the options which allow our commands through
8990 # without removal of \ escapes.
8991 if test -n "${ZSH_VERSION+set}" ; then
8992 setopt NO_GLOB_SUBST
8994 # Now quote all the things that may contain metacharacters while being
8995 # careful not to overquote the AC_SUBSTed values. We take copies of the
8996 # variables and quote the copies for generation of the libtool script.
8997 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
8999 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9000 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9001 deplibs_check_method reload_flag reload_cmds need_locks \
9002 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9003 lt_cv_sys_global_symbol_to_c_name_address \
9004 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9005 old_postinstall_cmds old_postuninstall_cmds \
9009 lt_prog_compiler_wl \
9010 lt_prog_compiler_pic \
9011 lt_prog_compiler_static \
9012 lt_prog_compiler_no_builtin_flag \
9013 export_dynamic_flag_spec \
9014 thread_safe_flag_spec \
9015 whole_archive_flag_spec \
9016 enable_shared_with_static_runtimes \
9018 old_archive_from_new_cmds \
9023 compiler_lib_search_path \
9025 archive_expsym_cmds \
9027 postuninstall_cmds \
9028 old_archive_from_expsyms_cmds \
9029 allow_undefined_flag \
9031 export_symbols_cmds \
9032 hardcode_libdir_flag_spec \
9033 hardcode_libdir_flag_spec_ld \
9034 hardcode_libdir_separator \
9035 hardcode_automatic \
9037 module_expsym_cmds \
9038 lt_cv_prog_compiler_c_o \
9043 old_archive_cmds | \
9044 old_archive_from_new_cmds | \
9046 archive_expsym_cmds | \
9048 module_expsym_cmds | \
9049 old_archive_from_expsyms_cmds | \
9050 export_symbols_cmds | \
9051 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9052 postinstall_cmds | postuninstall_cmds | \
9053 old_postinstall_cmds | old_postuninstall_cmds | \
9054 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9055 # Double-quote double-evaled strings.
9056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9065 *'\$0 --fallback-echo"')
9066 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9071 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9073 { echo "$as_me:$LINENO: creating $ofile" >&5
9074 echo "$as_me: creating $ofile" >&6;}
9076 cat <<__EOF__ >> "$cfgfile"
9079 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9080 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9081 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9083 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9084 # Free Software Foundation, Inc.
9086 # This file is part of GNU Libtool:
9087 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9089 # This program is free software; you can redistribute it and/or modify
9090 # it under the terms of the GNU General Public License as published by
9091 # the Free Software Foundation; either version 2 of the License, or
9092 # (at your option) any later version.
9094 # This program is distributed in the hope that it will be useful, but
9095 # WITHOUT ANY WARRANTY; without even the implied warranty of
9096 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9097 # General Public License for more details.
9099 # You should have received a copy of the GNU General Public License
9100 # along with this program; if not, write to the Free Software
9101 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9103 # As a special exception to the GNU General Public License, if you
9104 # distribute this file as part of a program that contains a
9105 # configuration script generated by Autoconf, you may include it under
9106 # the same distribution terms that you use for the rest of that program.
9108 # A sed program that does not truncate output.
9111 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9112 Xsed="$SED -e 1s/^X//"
9114 # The HP-UX ksh and POSIX shell print the target directory to stdout
9116 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9118 # The names of the tagged configurations supported by this script.
9121 # ### BEGIN LIBTOOL CONFIG
9123 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9125 # Shell to use when invoking shell scripts.
9128 # Whether or not to build shared libraries.
9129 build_libtool_libs=$enable_shared
9131 # Whether or not to build static libraries.
9132 build_old_libs=$enable_static
9134 # Whether or not to add -lc for building shared libraries.
9135 build_libtool_need_lc=$archive_cmds_need_lc
9137 # Whether or not to disallow shared libs when runtime libs are static
9138 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9140 # Whether or not to optimize for fast installation.
9141 fast_install=$enable_fast_install
9144 host_alias=$host_alias
9149 build_alias=$build_alias
9153 # An echo program that does not interpret backslashes.
9158 AR_FLAGS=$lt_AR_FLAGS
9163 # LTCC compiler flags.
9164 LTCFLAGS=$lt_LTCFLAGS
9166 # A language-specific compiler.
9169 # Is the compiler the GNU C compiler?
9175 # The linker used to build libraries.
9178 # Whether we need hard or soft links.
9181 # A BSD-compatible nm program.
9184 # A symbol stripping program
9187 # Used to examine libraries when file_magic_cmd begins "file"
9188 MAGIC_CMD=$MAGIC_CMD
9190 # Used on cygwin: DLL creation program.
9193 # Used on cygwin: object dumper.
9196 # Used on cygwin: assembler.
9199 # The name of the directory that contains temporary libtool files.
9202 # How to create reloadable object files.
9203 reload_flag=$lt_reload_flag
9204 reload_cmds=$lt_reload_cmds
9206 # How to pass a linker flag through the compiler.
9207 wl=$lt_lt_prog_compiler_wl
9209 # Object file suffix (normally "o").
9212 # Old archive suffix (normally "a").
9215 # Shared library suffix (normally ".so").
9216 shrext_cmds='$shrext_cmds'
9218 # Executable file suffix (normally "").
9221 # Additional compiler flags for building library objects.
9222 pic_flag=$lt_lt_prog_compiler_pic
9225 # What is the maximum length of a command?
9226 max_cmd_len=$lt_cv_sys_max_cmd_len
9228 # Does compiler simultaneously support -c and -o options?
9229 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9231 # Must we lock files when doing compilation?
9232 need_locks=$lt_need_locks
9234 # Do we need the lib prefix for modules?
9235 need_lib_prefix=$need_lib_prefix
9237 # Do we need a version for libraries?
9238 need_version=$need_version
9240 # Whether dlopen is supported.
9241 dlopen_support=$enable_dlopen
9243 # Whether dlopen of programs is supported.
9244 dlopen_self=$enable_dlopen_self
9246 # Whether dlopen of statically linked programs is supported.
9247 dlopen_self_static=$enable_dlopen_self_static
9249 # Compiler flag to prevent dynamic linking.
9250 link_static_flag=$lt_lt_prog_compiler_static
9252 # Compiler flag to turn off builtin functions.
9253 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9255 # Compiler flag to allow reflexive dlopens.
9256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9258 # Compiler flag to generate shared objects directly from archives.
9259 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9261 # Compiler flag to generate thread-safe objects.
9262 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9264 # Library versioning type.
9265 version_type=$version_type
9267 # Format of library name prefix.
9268 libname_spec=$lt_libname_spec
9270 # List of archive names. First name is the real one, the rest are links.
9271 # The last name is the one that the linker finds with -lNAME.
9272 library_names_spec=$lt_library_names_spec
9274 # The coded name of the library, if different from the real name.
9275 soname_spec=$lt_soname_spec
9277 # Commands used to build and install an old-style archive.
9279 old_archive_cmds=$lt_old_archive_cmds
9280 old_postinstall_cmds=$lt_old_postinstall_cmds
9281 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9283 # Create an old-style archive from a shared archive.
9284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9286 # Create a temporary old-style archive to link instead of a shared archive.
9287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9289 # Commands used to build and install a shared archive.
9290 archive_cmds=$lt_archive_cmds
9291 archive_expsym_cmds=$lt_archive_expsym_cmds
9292 postinstall_cmds=$lt_postinstall_cmds
9293 postuninstall_cmds=$lt_postuninstall_cmds
9295 # Commands used to build a loadable module (assumed same as above if empty)
9296 module_cmds=$lt_module_cmds
9297 module_expsym_cmds=$lt_module_expsym_cmds
9299 # Commands to strip libraries.
9300 old_striplib=$lt_old_striplib
9301 striplib=$lt_striplib
9303 # Dependencies to place before the objects being linked to create a
9305 predep_objects=$lt_predep_objects
9307 # Dependencies to place after the objects being linked to create a
9309 postdep_objects=$lt_postdep_objects
9311 # Dependencies to place before the objects being linked to create a
9315 # Dependencies to place after the objects being linked to create a
9317 postdeps=$lt_postdeps
9319 # The library search path used internally by the compiler when linking
9321 compiler_lib_search_path=$lt_compiler_lib_search_path
9323 # Method to check whether dependent libraries are shared objects.
9324 deplibs_check_method=$lt_deplibs_check_method
9326 # Command to use when deplibs_check_method == file_magic.
9327 file_magic_cmd=$lt_file_magic_cmd
9329 # Flag that allows shared libraries with undefined symbols to be built.
9330 allow_undefined_flag=$lt_allow_undefined_flag
9332 # Flag that forces no undefined symbols.
9333 no_undefined_flag=$lt_no_undefined_flag
9335 # Commands used to finish a libtool library installation in a directory.
9336 finish_cmds=$lt_finish_cmds
9338 # Same as above, but a single script fragment to be evaled but not shown.
9339 finish_eval=$lt_finish_eval
9341 # Take the output of nm and produce a listing of raw symbols and C names.
9342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9344 # Transform the output of nm in a proper C declaration
9345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9347 # Transform the output of nm in a C name address pair
9348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9350 # This is the shared library runtime path variable.
9351 runpath_var=$runpath_var
9353 # This is the shared library path variable.
9354 shlibpath_var=$shlibpath_var
9356 # Is shlibpath searched before the hard-coded library search path?
9357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9359 # How to hardcode a shared library path into an executable.
9360 hardcode_action=$hardcode_action
9362 # Whether we should hardcode library paths into libraries.
9363 hardcode_into_libs=$hardcode_into_libs
9365 # Flag to hardcode \$libdir into a binary during linking.
9366 # This must work even if \$libdir does not exist.
9367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9369 # If ld is used when linking, flag to hardcode \$libdir into
9370 # a binary during linking. This must work even if \$libdir does
9372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9374 # Whether we need a single -rpath flag with a separated argument.
9375 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9377 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9379 hardcode_direct=$hardcode_direct
9381 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9383 hardcode_minus_L=$hardcode_minus_L
9385 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9386 # the resulting binary.
9387 hardcode_shlibpath_var=$hardcode_shlibpath_var
9389 # Set to yes if building a shared library automatically hardcodes DIR into the library
9390 # and all subsequent libraries and executables linked against it.
9391 hardcode_automatic=$hardcode_automatic
9393 # Variables whose values should be saved in libtool wrapper scripts and
9394 # restored at relink time.
9395 variables_saved_for_relink="$variables_saved_for_relink"
9397 # Whether libtool must link a program against all its dependency libraries.
9398 link_all_deplibs=$link_all_deplibs
9400 # Compile-time system search path for libraries
9401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9403 # Run-time system search path for libraries
9404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9406 # Fix the shell variable \$srcfile for the compiler.
9407 fix_srcfile_path="$fix_srcfile_path"
9409 # Set to yes if exported symbols are required.
9410 always_export_symbols=$always_export_symbols
9412 # The commands to list exported symbols.
9413 export_symbols_cmds=$lt_export_symbols_cmds
9415 # The commands to extract the exported symbol list from a shared archive.
9416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9418 # Symbols that should not be listed in the preloaded symbols.
9419 exclude_expsyms=$lt_exclude_expsyms
9421 # Symbols that must always be exported.
9422 include_expsyms=$lt_include_expsyms
9424 # ### END LIBTOOL CONFIG
9431 cat <<\EOF >> "$cfgfile"
9433 # AIX sometimes has problems with the GCC collect2 program. For some
9434 # reason, if we set the COLLECT_NAMES environment variable, the problems
9435 # vanish in a puff of smoke.
9436 if test "X${COLLECT_NAMES+set}" != Xset; then
9438 export COLLECT_NAMES
9444 # We use sed instead of cat because bash on DJGPP gets confused if
9445 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9446 # text mode, it properly converts lines to CR/LF. This bash problem
9447 # is reportedly fixed, but why not run on old versions too?
9448 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9450 mv -f "$cfgfile" "$ofile" || \
9451 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9455 # If there is no Makefile yet, we rely on a make rule to execute
9456 # `config.status --recheck' to rerun these tests and create the
9457 # libtool script then.
9458 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9459 if test -f "$ltmain_in"; then
9460 test -f Makefile && make "$ltmain"
9466 ac_cpp='$CPP $CPPFLAGS'
9467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9474 # Check whether --with-tags or --without-tags was given.
9475 if test "${with_tags+set}" = set; then
9476 withval="$with_tags"
9480 if test -f "$ltmain" && test -n "$tagnames"; then
9481 if test ! -f "${ofile}"; then
9482 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9483 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9486 if test -z "$LTCC"; then
9487 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9488 if test -z "$LTCC"; then
9489 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9490 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9492 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9493 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9496 if test -z "$LTCFLAGS"; then
9497 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9500 # Extract list of available tagged configurations in $ofile.
9501 # Note that this assumes the entire list is on one line.
9502 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9504 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9505 for tagname in $tagnames; do
9507 # Check whether tagname contains only valid characters
9508 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9510 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9511 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9512 { (exit 1); exit 1; }; }
9516 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9518 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9519 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9520 { (exit 1); exit 1; }; }
9523 # Update the list of available tags.
9524 if test -n "$tagname"; then
9525 echo appending configuration tag \"$tagname\" to $ofile
9529 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9530 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9531 (test "X$CXX" != "Xg++"))) ; then
9533 ac_cpp='$CXXCPP $CPPFLAGS'
9534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9541 archive_cmds_need_lc_CXX=no
9542 allow_undefined_flag_CXX=
9543 always_export_symbols_CXX=no
9544 archive_expsym_cmds_CXX=
9545 export_dynamic_flag_spec_CXX=
9546 hardcode_direct_CXX=no
9547 hardcode_libdir_flag_spec_CXX=
9548 hardcode_libdir_flag_spec_ld_CXX=
9549 hardcode_libdir_separator_CXX=
9550 hardcode_minus_L_CXX=no
9551 hardcode_shlibpath_var_CXX=unsupported
9552 hardcode_automatic_CXX=no
9554 module_expsym_cmds_CXX=
9555 link_all_deplibs_CXX=unknown
9556 old_archive_cmds_CXX=$old_archive_cmds
9557 no_undefined_flag_CXX=
9558 whole_archive_flag_spec_CXX=
9559 enable_shared_with_static_runtimes_CXX=no
9561 # Dependencies to place before and after the object being linked:
9563 postdep_objects_CXX=
9566 compiler_lib_search_path_CXX=
9568 # Source file extension for C++ test sources.
9571 # Object file extension for compiled C++ test sources.
9575 # Code to be used in simple compile tests
9576 lt_simple_compile_test_code="int some_variable = 0;\n"
9578 # Code to be used in simple link tests
9579 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9581 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9583 # If no C compiler was specified, use CC.
9586 # If no C compiler flags were specified, use CFLAGS.
9587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9589 # Allow CC to be a program name with arguments.
9593 # save warnings/boilerplate of simple test code
9594 ac_outfile=conftest.$ac_objext
9595 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9596 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9597 _lt_compiler_boilerplate=`cat conftest.err`
9600 ac_outfile=conftest.$ac_objext
9601 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9602 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9603 _lt_linker_boilerplate=`cat conftest.err`
9607 # Allow CC to be a program name with arguments.
9612 lt_save_with_gnu_ld=$with_gnu_ld
9613 lt_save_path_LD=$lt_cv_path_LD
9614 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9615 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9617 $as_unset lt_cv_prog_gnu_ld
9619 if test -n "${lt_cv_path_LDCXX+set}"; then
9620 lt_cv_path_LD=$lt_cv_path_LDCXX
9622 $as_unset lt_cv_path_LD
9624 test -z "${LDCXX+set}" || LD=$LDCXX
9628 for cc_temp in $compiler""; do
9630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9639 # We don't want -fno-exception wen compiling C++ code, so set the
9640 # no_builtin_flag separately
9641 if test "$GXX" = yes; then
9642 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9644 lt_prog_compiler_no_builtin_flag_CXX=
9647 if test "$GXX" = yes; then
9648 # Set up default GNU C++ configuration
9651 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9652 if test "${with_gnu_ld+set}" = set; then
9653 withval="$with_gnu_ld"
9654 test "$withval" = no || with_gnu_ld=yes
9659 if test "$GCC" = yes; then
9660 # Check if gcc -print-prog-name=ld gives a path.
9661 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9662 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9665 # gcc leaves a trailing carriage return which upsets mingw
9666 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9668 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9671 # Accept absolute paths.
9673 re_direlt='/[^/][^/]*/\.\./'
9674 # Canonicalize the pathname of ld
9675 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9676 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9677 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9679 test -z "$LD" && LD="$ac_prog"
9682 # If it fails, then pretend we aren't using GCC.
9686 # If it is relative, then search for the first ld in PATH.
9690 elif test "$with_gnu_ld" = yes; then
9691 echo "$as_me:$LINENO: checking for GNU ld" >&5
9692 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9694 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9695 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9697 if test "${lt_cv_path_LD+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 if test -z "$LD"; then
9701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9702 for ac_dir in $PATH; do
9704 test -z "$ac_dir" && ac_dir=.
9705 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9706 lt_cv_path_LD="$ac_dir/$ac_prog"
9707 # Check to see if the program is GNU ld. I'd rather use --version,
9708 # but apparently some variants of GNU ld only accept -v.
9709 # Break only if it was the GNU/non-GNU ld that we prefer.
9710 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9711 *GNU* | *'with BFD'*)
9712 test "$with_gnu_ld" != no && break
9715 test "$with_gnu_ld" != yes && break
9722 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9727 if test -n "$LD"; then
9728 echo "$as_me:$LINENO: result: $LD" >&5
9729 echo "${ECHO_T}$LD" >&6
9731 echo "$as_me:$LINENO: result: no" >&5
9732 echo "${ECHO_T}no" >&6
9734 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9735 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9736 { (exit 1); exit 1; }; }
9737 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9738 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9739 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9743 case `$LD -v 2>&1 </dev/null` in
9744 *GNU* | *'with BFD'*)
9745 lt_cv_prog_gnu_ld=yes
9748 lt_cv_prog_gnu_ld=no
9752 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9753 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9754 with_gnu_ld=$lt_cv_prog_gnu_ld
9758 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9759 # archiving commands below assume that GNU ld is being used.
9760 if test "$with_gnu_ld" = yes; then
9761 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9762 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'
9764 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9767 # If archive_cmds runs LD, not CC, wlarc should be empty
9768 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9769 # investigate it a little bit more. (MM)
9772 # ancient GNU ld didn't support --whole-archive et. al.
9773 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9774 grep 'no-whole-archive' > /dev/null; then
9775 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9777 whole_archive_flag_spec_CXX=
9783 # A generic and very simple default shared library creation
9784 # command for GNU C++ for the case where it uses the native
9785 # linker, instead of GNU ld. If possible, this setting should
9786 # overridden to take advantage of the native linker features on
9787 # the platform it is being used on.
9788 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9791 # Commands to make compiler produce verbose output that lists
9792 # what "hidden" libraries, object files and flags are used when
9793 # linking a shared library.
9794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9802 # PORTME: fill in a description of your system's C++ link characteristics
9803 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9808 # FIXME: insert proper C++ library support
9812 if test "$host_cpu" = ia64; then
9813 # On IA64, the linker does run time linking by default, so we don't
9814 # have to do anything special.
9815 aix_use_runtimelinking=no
9816 exp_sym_flag='-Bexport'
9819 aix_use_runtimelinking=no
9821 # Test if we are trying to use run time linking or normal
9822 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9823 # need to do runtime linking.
9824 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9825 for ld_flag in $LDFLAGS; do
9828 aix_use_runtimelinking=yes
9836 exp_sym_flag='-bexport'
9837 no_entry_flag='-bnoentry'
9840 # When large executables or shared objects are built, AIX ld can
9841 # have problems creating the table of contents. If linking a library
9842 # or program results in "error TOC overflow" add -mminimal-toc to
9843 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9844 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9847 hardcode_direct_CXX=yes
9848 hardcode_libdir_separator_CXX=':'
9849 link_all_deplibs_CXX=yes
9851 if test "$GXX" = yes; then
9852 case $host_os in aix4.[012]|aix4.[012].*)
9853 # We only want to do this on AIX 4.2 and lower, the check
9854 # below for broken collect2 doesn't work under 4.3+
9855 collect2name=`${CC} -print-prog-name=collect2`
9856 if test -f "$collect2name" && \
9857 strings "$collect2name" | grep resolve_lib_name >/dev/null
9859 # We have reworked collect2
9860 hardcode_direct_CXX=yes
9862 # We have old collect2
9863 hardcode_direct_CXX=unsupported
9864 # It fails to find uninstalled libraries when the uninstalled
9865 # path is not listed in the libpath. Setting hardcode_minus_L
9866 # to unsupported forces relinking
9867 hardcode_minus_L_CXX=yes
9868 hardcode_libdir_flag_spec_CXX='-L$libdir'
9869 hardcode_libdir_separator_CXX=
9873 shared_flag='-shared'
9874 if test "$aix_use_runtimelinking" = yes; then
9875 shared_flag="$shared_flag "'${wl}-G'
9879 if test "$host_cpu" = ia64; then
9880 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9881 # chokes on -Wl,-G. The following line is correct:
9884 if test "$aix_use_runtimelinking" = yes; then
9885 shared_flag='${wl}-G'
9887 shared_flag='${wl}-bM:SRE'
9892 # It seems that -bexpall does not export symbols beginning with
9893 # underscore (_), so it is better to generate a list of symbols to export.
9894 always_export_symbols_CXX=yes
9895 if test "$aix_use_runtimelinking" = yes; then
9896 # Warning - without using the other runtime loading flags (-brtl),
9897 # -berok will link without error, but may produce a broken library.
9898 allow_undefined_flag_CXX='-berok'
9899 # Determine the default libpath from the value encoded in an empty executable.
9900 cat >conftest.$ac_ext <<_ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9917 (eval $ac_link) 2>conftest.er1
9919 grep -v '^ *+' conftest.er1 >conftest.err
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest$ac_exeext'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9937 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9939 # Check for a 64-bit object if we didn't find anything.
9940 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; }
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9947 rm -f conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9951 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9953 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9955 if test "$host_cpu" = ia64; then
9956 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9957 allow_undefined_flag_CXX="-z nodefs"
9958 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9960 # Determine the default libpath from the value encoded in an empty executable.
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9978 (eval $ac_link) 2>conftest.er1
9980 grep -v '^ *+' conftest.er1 >conftest.err
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; } &&
9991 { ac_try='test -s conftest$ac_exeext'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10000 # Check for a 64-bit object if we didn't find anything.
10001 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; }
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10008 rm -f conftest.err conftest.$ac_objext \
10009 conftest$ac_exeext conftest.$ac_ext
10010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10012 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10013 # Warning - without using the other run time loading flags,
10014 # -berok will link without error, but may produce a broken library.
10015 no_undefined_flag_CXX=' ${wl}-bernotok'
10016 allow_undefined_flag_CXX=' ${wl}-berok'
10017 # Exported symbols can be pulled into shared objects from archives
10018 whole_archive_flag_spec_CXX='$convenience'
10019 archive_cmds_need_lc_CXX=yes
10020 # This is similar to how AIX traditionally builds its shared libraries.
10021 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10028 allow_undefined_flag_CXX=unsupported
10029 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10030 # support --undefined. This deserves some investigation. FIXME
10031 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10038 case $cc_basename in
10040 # FIXME: insert proper C++ library support
10046 cygwin* | mingw* | pw32*)
10047 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10048 # as there is no search path for DLLs.
10049 hardcode_libdir_flag_spec_CXX='-L$libdir'
10050 allow_undefined_flag_CXX=unsupported
10051 always_export_symbols_CXX=no
10052 enable_shared_with_static_runtimes_CXX=yes
10054 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10055 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10056 # If the export-symbols file already is a .def file (1st line
10057 # is EXPORTS), use it as is; otherwise, prepend...
10058 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10059 cp $export_symbols $output_objdir/$soname.def;
10061 echo EXPORTS > $output_objdir/$soname.def;
10062 cat $export_symbols >> $output_objdir/$soname.def;
10064 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10069 darwin* | rhapsody*)
10071 rhapsody* | darwin1.[012])
10072 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10075 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10076 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10078 case ${MACOSX_DEPLOYMENT_TARGET} in
10080 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10083 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10089 archive_cmds_need_lc_CXX=no
10090 hardcode_direct_CXX=no
10091 hardcode_automatic_CXX=yes
10092 hardcode_shlibpath_var_CXX=unsupported
10093 whole_archive_flag_spec_CXX=''
10094 link_all_deplibs_CXX=yes
10096 if test "$GXX" = yes ; then
10097 lt_int_apple_cc_single_mod=no
10098 output_verbose_link_cmd='echo'
10099 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10100 lt_int_apple_cc_single_mod=yes
10102 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10103 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10105 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'
10107 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10108 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10109 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10110 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}'
10112 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}'
10114 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}'
10116 case $cc_basename in
10118 output_verbose_link_cmd='echo'
10119 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'
10120 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10121 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10122 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}'
10123 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}'
10133 case $cc_basename in
10135 # FIXME: insert proper C++ library support
10139 # Green Hills C++ Compiler
10140 # FIXME: insert proper C++ library support
10144 # FIXME: insert proper C++ library support
10150 # C++ shared libraries reported to be fairly broken before switch to ELF
10154 archive_cmds_need_lc_CXX=no
10156 freebsd* | kfreebsd*-gnu | dragonfly*)
10157 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10164 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10165 hardcode_libdir_separator_CXX=:
10166 export_dynamic_flag_spec_CXX='${wl}-E'
10167 hardcode_direct_CXX=yes
10168 hardcode_minus_L_CXX=yes # Not in the search PATH,
10169 # but as the default
10170 # location of the library.
10172 case $cc_basename in
10174 # FIXME: insert proper C++ library support
10178 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'
10179 # Commands to make compiler produce verbose output that lists
10180 # what "hidden" libraries, object files and flags are used when
10181 # linking a shared library.
10183 # There doesn't appear to be a way to prevent this compiler from
10184 # explicitly linking system object files so we need to strip them
10185 # from the output so that they don't get included in the library
10187 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'
10190 if test "$GXX" = yes; then
10191 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'
10193 # FIXME: insert proper C++ library support
10200 if test $with_gnu_ld = no; then
10201 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10202 hardcode_libdir_separator_CXX=:
10206 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10209 export_dynamic_flag_spec_CXX='${wl}-E'
10215 hardcode_direct_CXX=no
10216 hardcode_shlibpath_var_CXX=no
10219 hardcode_direct_CXX=yes
10220 hardcode_minus_L_CXX=yes # Not in the search PATH,
10221 # but as the default
10222 # location of the library.
10226 case $cc_basename in
10228 # FIXME: insert proper C++ library support
10234 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10237 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10240 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10243 # Commands to make compiler produce verbose output that lists
10244 # what "hidden" libraries, object files and flags are used when
10245 # linking a shared library.
10247 # There doesn't appear to be a way to prevent this compiler from
10248 # explicitly linking system object files so we need to strip them
10249 # from the output so that they don't get included in the library
10251 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'
10254 if test "$GXX" = yes; then
10255 if test $with_gnu_ld = no; then
10258 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10261 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10264 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'
10269 # FIXME: insert proper C++ library support
10276 hardcode_direct_CXX=no
10277 hardcode_shlibpath_var_CXX=no
10278 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10279 export_dynamic_flag_spec_CXX='${wl}-E'
10280 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10281 # Instead, shared libraries are loaded at an image base (0x10000000 by
10282 # default) and relocated if they conflict, which is a slow very memory
10283 # consuming and fragmenting process. To avoid this, we pick a random,
10284 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10285 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10286 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10287 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10290 case $cc_basename in
10293 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'
10295 # Archives containing C++ object files must be created using
10296 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10297 # necessary to make sure instantiated templates are included
10299 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10302 if test "$GXX" = yes; then
10303 if test "$with_gnu_ld" = no; then
10304 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'
10306 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'
10309 link_all_deplibs_CXX=yes
10312 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10313 hardcode_libdir_separator_CXX=:
10316 case $cc_basename in
10318 # Kuck and Associates, Inc. (KAI) C++ Compiler
10320 # KCC will only create a shared library if the output file
10321 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10322 # to its proper name (with version) after linking.
10323 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'
10324 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'
10325 # Commands to make compiler produce verbose output that lists
10326 # what "hidden" libraries, object files and flags are used when
10327 # linking a shared library.
10329 # There doesn't appear to be a way to prevent this compiler from
10330 # explicitly linking system object files so we need to strip them
10331 # from the output so that they don't get included in the library
10333 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'
10335 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10338 # Archives containing C++ object files must be created using
10339 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10340 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10345 # version 8.0 and above of icpc choke on multiply defined symbols
10346 # if we add $predep_objects and $postdep_objects, however 7.1 and
10347 # earlier do not add the objects themselves.
10348 case `$CC -V 2>&1` in
10350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10351 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'
10353 *) # Version 8.0 or newer
10356 ia64*) tmp_idyn=' -i_dynamic';;
10358 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10359 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'
10362 archive_cmds_need_lc_CXX=no
10363 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10364 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10365 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10368 # Portland Group C++ compiler
10369 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10370 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'
10372 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10373 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10374 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'
10378 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10379 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'
10381 runpath_var=LD_RUN_PATH
10382 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10383 hardcode_libdir_separator_CXX=:
10385 # Commands to make compiler produce verbose output that lists
10386 # what "hidden" libraries, object files and flags are used when
10387 # linking a shared library.
10389 # There doesn't appear to be a way to prevent this compiler from
10390 # explicitly linking system object files so we need to strip them
10391 # from the output so that they don't get included in the library
10393 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'
10398 # FIXME: insert proper C++ library support
10402 # FIXME: insert proper C++ library support
10406 case $cc_basename in
10408 # FIXME: insert proper C++ library support
10412 # FIXME: insert proper C++ library support
10417 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10419 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10421 hardcode_libdir_flag_spec_CXX='-R$libdir'
10422 hardcode_direct_CXX=yes
10423 hardcode_shlibpath_var_CXX=no
10425 # Workaround some broken pre-1.5 toolchains
10426 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10429 # C++ shared libraries are fairly broken
10433 hardcode_direct_CXX=yes
10434 hardcode_shlibpath_var_CXX=no
10435 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10436 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10438 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10439 export_dynamic_flag_spec_CXX='${wl}-E'
10440 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10442 output_verbose_link_cmd='echo'
10445 case $cc_basename in
10447 # Kuck and Associates, Inc. (KAI) C++ Compiler
10449 # KCC will only create a shared library if the output file
10450 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10451 # to its proper name (with version) after linking.
10452 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10454 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10455 hardcode_libdir_separator_CXX=:
10457 # Archives containing C++ object files must be created using
10458 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10459 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10463 # Rational C++ 2.4.1
10464 # FIXME: insert proper C++ library support
10468 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10469 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'
10471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10472 hardcode_libdir_separator_CXX=:
10474 # Commands to make compiler produce verbose output that lists
10475 # what "hidden" libraries, object files and flags are used when
10476 # linking a shared library.
10478 # There doesn't appear to be a way to prevent this compiler from
10479 # explicitly linking system object files so we need to strip them
10480 # from the output so that they don't get included in the library
10482 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'
10485 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10486 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10487 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'
10489 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10490 hardcode_libdir_separator_CXX=:
10492 # Commands to make compiler produce verbose output that lists
10493 # what "hidden" libraries, object files and flags are used when
10494 # linking a shared library.
10495 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10498 # FIXME: insert proper C++ library support
10505 case $cc_basename in
10507 # Kuck and Associates, Inc. (KAI) C++ Compiler
10509 # KCC will only create a shared library if the output file
10510 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10511 # to its proper name (with version) after linking.
10512 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'
10514 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10515 hardcode_libdir_separator_CXX=:
10517 # Archives containing C++ object files must be created using
10518 # the KAI C++ compiler.
10519 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10522 # Rational C++ 2.4.1
10523 # FIXME: insert proper C++ library support
10527 allow_undefined_flag_CXX=' -expect_unresolved \*'
10528 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'
10529 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10530 echo "-hidden">> $lib.exp~
10531 $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~
10534 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10535 hardcode_libdir_separator_CXX=:
10537 # Commands to make compiler produce verbose output that lists
10538 # what "hidden" libraries, object files and flags are used when
10539 # linking a shared library.
10541 # There doesn't appear to be a way to prevent this compiler from
10542 # explicitly linking system object files so we need to strip them
10543 # from the output so that they don't get included in the library
10545 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'
10548 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10549 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10550 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'
10552 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10553 hardcode_libdir_separator_CXX=:
10555 # Commands to make compiler produce verbose output that lists
10556 # what "hidden" libraries, object files and flags are used when
10557 # linking a shared library.
10558 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10561 # FIXME: insert proper C++ library support
10568 # FIXME: insert proper C++ library support
10572 case $cc_basename in
10575 # FIXME: insert proper C++ library support
10580 # FIXME: insert proper C++ library support
10584 # FIXME: insert proper C++ library support
10590 case $cc_basename in
10592 # Sun C++ 4.2, 5.x and Centerline C++
10593 archive_cmds_need_lc_CXX=yes
10594 no_undefined_flag_CXX=' -zdefs'
10595 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10596 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10597 $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'
10599 hardcode_libdir_flag_spec_CXX='-R$libdir'
10600 hardcode_shlibpath_var_CXX=no
10602 solaris2.[0-5] | solaris2.[0-5].*) ;;
10604 # The C++ compiler is used as linker so we must use $wl
10605 # flag to pass the commands to the underlying system
10606 # linker. We must also pass each convience library through
10607 # to the system linker between allextract/defaultextract.
10608 # The C++ compiler will combine linker options so we
10609 # cannot just pass the convience library names through
10611 # Supported since Solaris 2.6 (maybe 2.5.1?)
10612 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'
10615 link_all_deplibs_CXX=yes
10617 output_verbose_link_cmd='echo'
10619 # Archives containing C++ object files must be created using
10620 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10621 # necessary to make sure instantiated templates are included
10623 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10626 # Green Hills C++ Compiler
10627 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10629 # The C++ compiler must be used to create the archive.
10630 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10633 # GNU C++ compiler with Solaris linker
10634 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10635 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10636 if $CC --version | grep -v '^2\.7' > /dev/null; then
10637 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10638 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10639 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10641 # Commands to make compiler produce verbose output that lists
10642 # what "hidden" libraries, object files and flags are used when
10643 # linking a shared library.
10644 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10646 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10648 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10649 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10650 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10652 # Commands to make compiler produce verbose output that lists
10653 # what "hidden" libraries, object files and flags are used when
10654 # linking a shared library.
10655 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10658 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10663 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10664 no_undefined_flag_CXX='${wl}-z,text'
10665 archive_cmds_need_lc_CXX=no
10666 hardcode_shlibpath_var_CXX=no
10667 runpath_var='LD_RUN_PATH'
10669 case $cc_basename in
10671 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10680 sysv5* | sco3.2v5* | sco5v6*)
10681 # Note: We can NOT use -z defs as we might desire, because we do not
10682 # link with -lc, and that would cause any symbols used from libc to
10683 # always be unresolved, which means just about no library would
10684 # ever link correctly. If we're not using GNU ld we use -z text
10685 # though, which does catch some bad symbols but isn't as heavy-handed
10687 # For security reasons, it is highly recommended that you always
10688 # use absolute paths for naming shared libraries, and exclude the
10689 # DT_RUNPATH tag from executables and libraries. But doing so
10690 # requires that you compile everything twice, which is a pain.
10691 # So that behaviour is only enabled if SCOABSPATH is set to a
10692 # non-empty value in the environment. Most likely only useful for
10693 # creating official distributions of packages.
10694 # This is a hack until libtool officially supports absolute path
10695 # names for shared libraries.
10696 no_undefined_flag_CXX='${wl}-z,text'
10697 allow_undefined_flag_CXX='${wl}-z,nodefs'
10698 archive_cmds_need_lc_CXX=no
10699 hardcode_shlibpath_var_CXX=no
10700 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10701 hardcode_libdir_separator_CXX=':'
10702 link_all_deplibs_CXX=yes
10703 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10704 runpath_var='LD_RUN_PATH'
10706 case $cc_basename in
10708 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10709 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10713 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10718 case $cc_basename in
10720 # NonStop-UX NCC 3.20
10721 # FIXME: insert proper C++ library support
10725 # FIXME: insert proper C++ library support
10731 # FIXME: insert proper C++ library support
10735 # FIXME: insert proper C++ library support
10739 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10740 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10741 test "$ld_shlibs_CXX" = no && can_build_shared=no
10747 cat > conftest.$ac_ext <<EOF
10751 Foo (void) { a = 0; }
10757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758 (eval $ac_compile) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; then
10762 # Parse the compiler output and extract the necessary
10763 # objects, libraries and library flags.
10765 # Sentinel used to keep track of whether or not we are before
10766 # the conftest object file.
10767 pre_test_object_deps_done=no
10769 # The `*' in the case matches for architectures that use `case' in
10770 # $output_verbose_cmd can trigger glob expansion during the loop
10771 # eval without this substitution.
10772 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10774 for p in `eval $output_verbose_link_cmd`; do
10778 # Some compilers place space between "-{L,R}" and the path.
10779 # Remove the space.
10780 if test $p = "-L" \
10781 || test $p = "-R"; then
10788 if test "$pre_test_object_deps_done" = no; then
10791 # Internal compiler library paths should come after those
10792 # provided the user. The postdeps already come after the
10793 # user supplied libs so there is no need to process them.
10794 if test -z "$compiler_lib_search_path_CXX"; then
10795 compiler_lib_search_path_CXX="${prev}${p}"
10797 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10800 # The "-l" case would never come before the object being
10801 # linked, so don't bother handling this case.
10804 if test -z "$postdeps_CXX"; then
10805 postdeps_CXX="${prev}${p}"
10807 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10813 # This assumes that the test object file only shows up
10814 # once in the compiler output.
10815 if test "$p" = "conftest.$objext"; then
10816 pre_test_object_deps_done=yes
10820 if test "$pre_test_object_deps_done" = no; then
10821 if test -z "$predep_objects_CXX"; then
10822 predep_objects_CXX="$p"
10824 predep_objects_CXX="$predep_objects_CXX $p"
10827 if test -z "$postdep_objects_CXX"; then
10828 postdep_objects_CXX="$p"
10830 postdep_objects_CXX="$postdep_objects_CXX $p"
10835 *) ;; # Ignore the rest.
10843 echo "libtool.m4: error: problem compiling CXX test program"
10846 $rm -f confest.$objext
10848 # PORTME: override above test on systems where it is broken
10851 # Interix 3.5 installs completely hosed .la files for C++, so rather than
10852 # hack all around it, let's just trust "g++" to DTRT.
10853 predep_objects_CXX=
10854 postdep_objects_CXX=
10859 case $cc_basename in
10861 # Adding this requires a known-good setup of shared libraries for
10862 # Sun compiler versions before 5.6, else PIC objects from an old
10863 # archive will be linked into the output, leading to subtle bugs.
10864 postdeps_CXX='-lCstd -lCrun'
10871 case " $postdeps_CXX " in
10872 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10875 lt_prog_compiler_wl_CXX=
10876 lt_prog_compiler_pic_CXX=
10877 lt_prog_compiler_static_CXX=
10879 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10880 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10882 # C++ specific cases for pic, static, wl, etc.
10883 if test "$GXX" = yes; then
10884 lt_prog_compiler_wl_CXX='-Wl,'
10885 lt_prog_compiler_static_CXX='-static'
10889 # All AIX code is PIC.
10890 if test "$host_cpu" = ia64; then
10891 # AIX 5 now supports IA64 processor
10892 lt_prog_compiler_static_CXX='-Bstatic'
10896 # FIXME: we need at least 68020 code to build shared libraries, but
10897 # adding the `-m68020' flag to GCC prevents building anything better,
10899 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10901 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10902 # PIC is the default for these OSes.
10904 mingw* | os2* | pw32*)
10905 # This hack is so that the source file can tell whether it is being
10906 # built for inclusion in a dll (and should export symbols for example).
10907 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10909 darwin* | rhapsody*)
10910 # PIC is the default on this platform
10911 # Common symbols not allowed in MH_DYLIB files
10912 lt_prog_compiler_pic_CXX='-fno-common'
10915 # DJGPP does not support shared libraries at all
10916 lt_prog_compiler_pic_CXX=
10919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10920 # Instead, we relocate shared libraries at runtime.
10923 if test -d /usr/nec; then
10924 lt_prog_compiler_pic_CXX=-Kconform_pic
10928 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10929 # not for PA HP-UX.
10934 lt_prog_compiler_pic_CXX='-fPIC'
10939 lt_prog_compiler_pic_CXX='-fPIC'
10945 # All AIX code is PIC.
10946 if test "$host_cpu" = ia64; then
10947 # AIX 5 now supports IA64 processor
10948 lt_prog_compiler_static_CXX='-Bstatic'
10950 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10954 case $cc_basename in
10956 # Green Hills C++ Compiler
10957 # _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"
10962 # PIC is the default on this platform
10963 # Common symbols not allowed in MH_DYLIB files
10964 case $cc_basename in
10966 lt_prog_compiler_pic_CXX='-qnocommon'
10967 lt_prog_compiler_wl_CXX='-Wl,'
10972 case $cc_basename in
10974 lt_prog_compiler_pic_CXX='-KPIC'
10977 # Green Hills C++ Compiler
10978 lt_prog_compiler_pic_CXX='-pic'
10984 freebsd* | kfreebsd*-gnu | dragonfly*)
10985 # FreeBSD uses GNU C++
10987 hpux9* | hpux10* | hpux11*)
10988 case $cc_basename in
10990 lt_prog_compiler_wl_CXX='-Wl,'
10991 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10992 if test "$host_cpu" != ia64; then
10993 lt_prog_compiler_pic_CXX='+Z'
10997 lt_prog_compiler_wl_CXX='-Wl,'
10998 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11004 lt_prog_compiler_pic_CXX='+Z'
11013 # This is c89, which is MS Visual C++ (no shared libs)
11014 # Anyone wants to do a port?
11016 irix5* | irix6* | nonstopux*)
11017 case $cc_basename in
11019 lt_prog_compiler_wl_CXX='-Wl,'
11020 lt_prog_compiler_static_CXX='-non_shared'
11021 # CC pic flag -KPIC is the default.
11028 case $cc_basename in
11031 lt_prog_compiler_wl_CXX='--backend -Wl,'
11032 lt_prog_compiler_pic_CXX='-fPIC'
11036 lt_prog_compiler_wl_CXX='-Wl,'
11037 lt_prog_compiler_pic_CXX='-KPIC'
11038 lt_prog_compiler_static_CXX='-static'
11041 # Portland Group C++ compiler.
11042 lt_prog_compiler_wl_CXX='-Wl,'
11043 lt_prog_compiler_pic_CXX='-fpic'
11044 lt_prog_compiler_static_CXX='-Bstatic'
11048 # Make sure the PIC flag is empty. It appears that all Alpha
11049 # Linux and Compaq Tru64 Unix objects are PIC.
11050 lt_prog_compiler_pic_CXX=
11051 lt_prog_compiler_static_CXX='-non_shared'
11062 case $cc_basename in
11064 lt_prog_compiler_pic_CXX='-W c,exportall'
11070 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11072 osf3* | osf4* | osf5*)
11073 case $cc_basename in
11075 lt_prog_compiler_wl_CXX='--backend -Wl,'
11078 # Rational C++ 2.4.1
11079 lt_prog_compiler_pic_CXX='-pic'
11082 # Digital/Compaq C++
11083 lt_prog_compiler_wl_CXX='-Wl,'
11084 # Make sure the PIC flag is empty. It appears that all Alpha
11085 # Linux and Compaq Tru64 Unix objects are PIC.
11086 lt_prog_compiler_pic_CXX=
11087 lt_prog_compiler_static_CXX='-non_shared'
11096 case $cc_basename in
11098 # Sun C++ 4.2, 5.x and Centerline C++
11099 lt_prog_compiler_pic_CXX='-KPIC'
11100 lt_prog_compiler_static_CXX='-Bstatic'
11101 lt_prog_compiler_wl_CXX='-Qoption ld '
11104 # Green Hills C++ Compiler
11105 lt_prog_compiler_pic_CXX='-PIC'
11112 case $cc_basename in
11115 lt_prog_compiler_pic_CXX='-pic'
11116 lt_prog_compiler_static_CXX='-Bstatic'
11120 lt_prog_compiler_pic_CXX='-pic'
11127 case $cc_basename in
11129 # NonStop-UX NCC 3.20
11130 lt_prog_compiler_pic_CXX='-KPIC'
11136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11137 case $cc_basename in
11139 lt_prog_compiler_wl_CXX='-Wl,'
11140 lt_prog_compiler_pic_CXX='-KPIC'
11141 lt_prog_compiler_static_CXX='-Bstatic'
11148 lt_prog_compiler_can_build_shared_CXX=no
11153 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11154 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11157 # Check to make sure the PIC flag actually works.
11159 if test -n "$lt_prog_compiler_pic_CXX"; then
11161 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11162 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11163 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11164 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 lt_prog_compiler_pic_works_CXX=no
11167 ac_outfile=conftest.$ac_objext
11168 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11169 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11170 # Insert the option either (1) after the last *FLAGS variable, or
11171 # (2) before a word containing "conftest.", or (3) at the end.
11172 # Note that $ac_compile itself does not contain backslashes and begins
11173 # with a dollar sign (not a hyphen), so the echo should work correctly.
11174 # The option is referenced via a variable to avoid confusing sed.
11175 lt_compile=`echo "$ac_compile" | $SED \
11176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11178 -e 's:$: $lt_compiler_flag:'`
11179 (eval echo "\"\$as_me:11179: $lt_compile\"" >&5)
11180 (eval "$lt_compile" 2>conftest.err)
11182 cat conftest.err >&5
11183 echo "$as_me:11183: \$? = $ac_status" >&5
11184 if (exit $ac_status) && test -s "$ac_outfile"; then
11185 # The compiler can only warn and ignore the option if not recognized
11186 # So say no if there are warnings other than the usual output.
11187 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11190 lt_prog_compiler_pic_works_CXX=yes
11196 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11197 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11199 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11200 case $lt_prog_compiler_pic_CXX in
11202 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11205 lt_prog_compiler_pic_CXX=
11206 lt_prog_compiler_can_build_shared_CXX=no
11211 # For platforms which do not support PIC, -DPIC is meaningless:
11213 lt_prog_compiler_pic_CXX=
11216 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11221 # Check to make sure the static flag actually works.
11223 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11224 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11225 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11226 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 lt_prog_compiler_static_works_CXX=no
11230 save_LDFLAGS="$LDFLAGS"
11231 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11232 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11234 # The linker can only warn and ignore the option if not recognized
11235 # So say no if there are warnings
11236 if test -s conftest.err; then
11237 # Append any errors to the config.log.
11238 cat conftest.err 1>&5
11239 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11241 if diff conftest.exp conftest.er2 >/dev/null; then
11242 lt_prog_compiler_static_works_CXX=yes
11245 lt_prog_compiler_static_works_CXX=yes
11249 LDFLAGS="$save_LDFLAGS"
11252 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11253 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11255 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11258 lt_prog_compiler_static_CXX=
11262 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11263 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11264 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 lt_cv_prog_compiler_c_o_CXX=no
11268 $rm -r conftest 2>/dev/null
11272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11274 lt_compiler_flag="-o out/conftest2.$ac_objext"
11275 # Insert the option either (1) after the last *FLAGS variable, or
11276 # (2) before a word containing "conftest.", or (3) at the end.
11277 # Note that $ac_compile itself does not contain backslashes and begins
11278 # with a dollar sign (not a hyphen), so the echo should work correctly.
11279 lt_compile=`echo "$ac_compile" | $SED \
11280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11282 -e 's:$: $lt_compiler_flag:'`
11283 (eval echo "\"\$as_me:11283: $lt_compile\"" >&5)
11284 (eval "$lt_compile" 2>out/conftest.err)
11286 cat out/conftest.err >&5
11287 echo "$as_me:11287: \$? = $ac_status" >&5
11288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11290 # The compiler can only warn and ignore the option if not recognized
11291 # So say no if there are warnings
11292 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11295 lt_cv_prog_compiler_c_o_CXX=yes
11300 # SGI C++ compiler will create directory out/ii_files/ for
11301 # template instantiation
11302 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11303 $rm out/* && rmdir out
11309 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11310 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11313 hard_links="nottested"
11314 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11315 # do not overwrite the value of need_locks provided by the user
11316 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11317 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11322 ln conftest.a conftest.b 2>&5 || hard_links=no
11323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11324 echo "$as_me:$LINENO: result: $hard_links" >&5
11325 echo "${ECHO_T}$hard_links" >&6
11326 if test "$hard_links" = no; then
11327 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11328 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11335 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11336 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11338 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11341 # If we're using GNU nm, then we don't want the "-C" option.
11342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11343 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11344 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'
11346 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'
11350 export_symbols_cmds_CXX="$ltdll_cmds"
11353 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'
11356 link_all_deplibs_CXX=no
11359 link_all_deplibs_CXX=no
11362 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11366 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11367 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11368 test "$ld_shlibs_CXX" = no && can_build_shared=no
11371 # Do we need to explicitly link libc?
11373 case "x$archive_cmds_need_lc_CXX" in
11375 # Assume -lc should be added
11376 archive_cmds_need_lc_CXX=yes
11378 if test "$enable_shared" = yes && test "$GCC" = yes; then
11379 case $archive_cmds_CXX in
11381 # FIXME: we may have to deal with multi-command sequences.
11384 # Test whether the compiler implicitly links with -lc since on some
11385 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11386 # to ld, don't add -lc before -lgcc.
11387 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11388 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } 2>conftest.err; then
11399 libobjs=conftest.$ac_objext
11401 wl=$lt_prog_compiler_wl_CXX
11402 pic_flag=$lt_prog_compiler_pic_CXX
11408 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11409 allow_undefined_flag_CXX=
11410 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11411 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }
11416 archive_cmds_need_lc_CXX=no
11418 archive_cmds_need_lc_CXX=yes
11420 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11422 cat conftest.err 1>&5
11425 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11426 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11433 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11434 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11435 library_names_spec=
11436 libname_spec='lib$name'
11440 postuninstall_cmds=
11444 shlibpath_overrides_runpath=unknown
11446 dynamic_linker="$host_os ld.so"
11447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11448 if test "$GCC" = yes; then
11449 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11450 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11451 # if the path contains ";" then we assume it to be the separator
11452 # otherwise default to the standard path separator (i.e. ":") - it is
11453 # assumed that no part of a normal pathname contains ";" but that should
11454 # okay in the real world where ";" in dirpaths is itself problematic.
11455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11462 need_lib_prefix=unknown
11463 hardcode_into_libs=no
11465 # when you set need_version to no, make sure it does not cause -set_version
11466 # flags to be left without arguments
11467 need_version=unknown
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11473 shlibpath_var=LIBPATH
11475 # AIX 3 has no versioning support, so we append a major version to the name.
11476 soname_spec='${libname}${release}${shared_ext}$major'
11483 hardcode_into_libs=yes
11484 if test "$host_cpu" = ia64; then
11485 # AIX 5 supports IA64
11486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11487 shlibpath_var=LD_LIBRARY_PATH
11489 # With GCC up to 2.95.x, collect2 would create an import file
11490 # for dependence libraries. The import file would start with
11491 # the line `#! .'. This would cause the generated library to
11492 # depend on `.', always an invalid library. This was fixed in
11493 # development snapshots of GCC prior to 3.0.
11495 aix4 | aix4.[01] | aix4.[01].*)
11496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11498 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11501 can_build_shared=no
11505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11506 # soname into executable. Probably we can add versioning support to
11507 # collect2, so additional links can be useful in future.
11508 if test "$aix_use_runtimelinking" = yes; then
11509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11510 # instead of lib<name>.a to let people know that these are not
11511 # typical AIX shared libraries.
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 # We preserve .a as extension for shared libraries through AIX4.2
11515 # and later when we are not doing run time linking.
11516 library_names_spec='${libname}${release}.a $libname.a'
11517 soname_spec='${libname}${release}${shared_ext}$major'
11519 shlibpath_var=LIBPATH
11524 library_names_spec='$libname.ixlibrary $libname.a'
11525 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11526 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'
11530 library_names_spec='${libname}${shared_ext}'
11531 dynamic_linker="$host_os ld.so"
11532 shlibpath_var=LIBRARY_PATH
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11544 # the default ld.so.conf also contains /usr/contrib/lib and
11545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11546 # libtool to hard-code these into programs
11549 cygwin* | mingw* | pw32*)
11550 version_type=windows
11555 case $GCC,$host_os in
11556 yes,cygwin* | yes,mingw* | yes,pw32*)
11557 library_names_spec='$libname.dll.a'
11558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11559 postinstall_cmds='base_file=`basename \${file}`~
11560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11561 dldir=$destdir/`dirname \$dlpath`~
11562 test -d \$dldir || mkdir -p \$dldir~
11563 $install_prog $dir/$dlname \$dldir/$dlname~
11564 chmod a+x \$dldir/$dlname'
11565 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11566 dlpath=$dir/\$dldll~
11568 shlibpath_overrides_runpath=yes
11572 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11573 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11574 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11577 # MinGW DLLs use traditional 'lib' prefix
11578 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11579 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11580 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11581 # It is most probably a Windows format PATH printed by
11582 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11583 # path with ; separators, and with drive letters. We can handle the
11584 # drive letters (cygwin fileutils understands them), so leave them,
11585 # especially as we might pass files found there to a mingw objdump,
11586 # which wouldn't understand a cygwinified path. Ahh.
11587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11593 # pw32 DLLs use 'pw' prefix rather than 'lib'
11594 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11600 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11603 dynamic_linker='Win32 ld.exe'
11604 # FIXME: first we should search . and the directory the executable is in
11608 darwin* | rhapsody*)
11609 dynamic_linker="$host_os dyld"
11610 version_type=darwin
11613 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11614 soname_spec='${libname}${release}${major}$shared_ext'
11615 shlibpath_overrides_runpath=yes
11616 shlibpath_var=DYLD_LIBRARY_PATH
11617 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11618 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11619 if test "$GCC" = yes; then
11620 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"`
11622 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11624 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 shlibpath_var=LD_LIBRARY_PATH
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11648 hardcode_into_libs=yes
11649 dynamic_linker='GNU ld.so'
11652 freebsd* | dragonfly*)
11653 # DragonFly does not have aout. When/if they implement a new
11654 # versioning mechanism, adjust this.
11655 if test -x /usr/bin/objformat; then
11656 objformat=`/usr/bin/objformat`
11659 freebsd[123]*) objformat=aout ;;
11660 *) objformat=elf ;;
11663 version_type=freebsd-$objformat
11664 case $version_type in
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11675 shlibpath_var=LD_LIBRARY_PATH
11678 shlibpath_overrides_runpath=yes
11680 freebsd3.[01]* | freebsdelf3.[01]*)
11681 shlibpath_overrides_runpath=yes
11682 hardcode_into_libs=yes
11684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11686 shlibpath_overrides_runpath=no
11687 hardcode_into_libs=yes
11689 freebsd*) # from 4.6 on
11690 shlibpath_overrides_runpath=yes
11691 hardcode_into_libs=yes
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 hardcode_into_libs=yes
11706 hpux9* | hpux10* | hpux11*)
11707 # Give a soname corresponding to the major version so that dld.sl refuses to
11708 # link against other versions.
11715 hardcode_into_libs=yes
11716 dynamic_linker="$host_os dld.so"
11717 shlibpath_var=LD_LIBRARY_PATH
11718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 soname_spec='${libname}${release}${shared_ext}$major'
11721 if test "X$HPUX_IA64_MODE" = X32; then
11722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11730 hardcode_into_libs=yes
11731 dynamic_linker="$host_os dld.sl"
11732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735 soname_spec='${libname}${release}${shared_ext}$major'
11736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11741 dynamic_linker="$host_os dld.sl"
11742 shlibpath_var=SHLIB_PATH
11743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745 soname_spec='${libname}${release}${shared_ext}$major'
11748 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11749 postinstall_cmds='chmod 555 $lib'
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11757 soname_spec='${libname}${release}${shared_ext}$major'
11758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=no
11761 hardcode_into_libs=yes
11764 irix5* | irix6* | nonstopux*)
11766 nonstopux*) version_type=nonstopux ;;
11768 if test "$lt_cv_prog_gnu_ld" = yes; then
11776 soname_spec='${libname}${release}${shared_ext}$major'
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11779 irix5* | nonstopux*)
11780 libsuff= shlibsuff=
11783 case $LD in # libtool.m4 will add one of these switches to LD
11784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11785 libsuff= shlibsuff= libmagic=32-bit;;
11786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11787 libsuff=32 shlibsuff=N32 libmagic=N32;;
11788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11790 *) libsuff= shlibsuff= libmagic=never-match;;
11794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11795 shlibpath_overrides_runpath=no
11796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11798 hardcode_into_libs=yes
11801 # No shared lib support for Linux oldld, aout, or coff.
11802 linux*oldld* | linux*aout* | linux*coff*)
11806 # This must be Linux ELF.
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 soname_spec='${libname}${release}${shared_ext}$major'
11813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=no
11816 # This implies no fast_install, which is unacceptable.
11817 # Some rework will be needed to allow for fast_install
11818 # before this can be enabled.
11819 hardcode_into_libs=yes
11821 # Append ld.so.conf contents to the search path
11822 if test -f /etc/ld.so.conf; then
11823 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' ' '`
11824 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11827 # We used to test for /lib/ld.so.1 and disable shared libraries on
11828 # powerpc, because MkLinux only supported shared libraries with the
11829 # GNU dynamic linker. Since this was broken with cross compilers,
11830 # most powerpc-linux boxes support dynamic linking these days and
11831 # people can always --disable-shared, the test was removed, and we
11832 # assume the GNU/Linux dynamic linker is in use.
11833 dynamic_linker='GNU/Linux ld.so'
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 shlibpath_overrides_runpath=no
11844 hardcode_into_libs=yes
11845 dynamic_linker='NetBSD ld.elf_so'
11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11853 soname_spec='${libname}${release}${shared_ext}$major'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=no
11856 hardcode_into_libs=yes
11857 dynamic_linker='GNU ld.so'
11864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11867 dynamic_linker='NetBSD (a.out) ld.so'
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11870 soname_spec='${libname}${release}${shared_ext}$major'
11871 dynamic_linker='NetBSD ld.elf_so'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 shlibpath_overrides_runpath=yes
11875 hardcode_into_libs=yes
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 shlibpath_overrides_runpath=yes
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11890 soname_spec='${libname}${release}${shared_ext}$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=yes
11897 sys_lib_dlsearch_path_spec="/usr/lib"
11899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11901 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11902 *) need_version=no ;;
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11909 openbsd2.[89] | openbsd2.[89].*)
11910 shlibpath_overrides_runpath=no
11913 shlibpath_overrides_runpath=yes
11917 shlibpath_overrides_runpath=yes
11922 libname_spec='$name'
11925 library_names_spec='$libname${shared_ext} $libname.a'
11926 dynamic_linker='OS/2 ld.exe'
11927 shlibpath_var=LIBPATH
11930 osf3* | osf4* | osf5*)
11934 soname_spec='${libname}${release}${shared_ext}$major'
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11936 shlibpath_var=LD_LIBRARY_PATH
11937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11938 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11947 shlibpath_var=LD_LIBRARY_PATH
11948 shlibpath_overrides_runpath=yes
11949 hardcode_into_libs=yes
11950 # ldd complains unless libraries are executable
11951 postinstall_cmds='chmod +x $lib'
11956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11957 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11958 shlibpath_var=LD_LIBRARY_PATH
11959 shlibpath_overrides_runpath=yes
11960 if test "$with_gnu_ld" = yes; then
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 shlibpath_var=LD_LIBRARY_PATH
11971 case $host_vendor in
11973 shlibpath_overrides_runpath=no
11975 export_dynamic_flag_spec='${wl}-Blargedynsym'
11976 runpath_var=LD_RUN_PATH
11984 shlibpath_overrides_runpath=no
11985 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11991 if test -d /usr/nec ;then
11993 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11994 soname_spec='$libname${shared_ext}.$major'
11995 shlibpath_var=LD_LIBRARY_PATH
11999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12000 version_type=freebsd-elf
12003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12004 soname_spec='${libname}${release}${shared_ext}$major'
12005 shlibpath_var=LD_LIBRARY_PATH
12006 hardcode_into_libs=yes
12007 if test "$with_gnu_ld" = yes; then
12008 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12009 shlibpath_overrides_runpath=no
12011 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12012 shlibpath_overrides_runpath=yes
12015 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12019 sys_lib_dlsearch_path_spec='/usr/lib'
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025 soname_spec='${libname}${release}${shared_ext}$major'
12026 shlibpath_var=LD_LIBRARY_PATH
12033 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12034 echo "${ECHO_T}$dynamic_linker" >&6
12035 test "$dynamic_linker" = no && can_build_shared=no
12037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12038 if test "$GCC" = yes; then
12039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12042 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12043 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12044 hardcode_action_CXX=
12045 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12046 test -n "$runpath_var_CXX" || \
12047 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12049 # We can hardcode non-existant directories.
12050 if test "$hardcode_direct_CXX" != no &&
12051 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12052 # have to relink, otherwise we might link with an installed library
12053 # when we should be linking with a yet-to-be-installed one
12054 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12055 test "$hardcode_minus_L_CXX" != no; then
12056 # Linking always hardcodes the temporary library directory.
12057 hardcode_action_CXX=relink
12059 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12060 hardcode_action_CXX=immediate
12063 # We cannot hardcode anything, or else we can only hardcode existing
12065 hardcode_action_CXX=unsupported
12067 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12068 echo "${ECHO_T}$hardcode_action_CXX" >&6
12070 if test "$hardcode_action_CXX" = relink; then
12071 # Fast installation is not supported
12072 enable_fast_install=no
12073 elif test "$shlibpath_overrides_runpath" = yes ||
12074 test "$enable_shared" = no; then
12075 # Fast installation is not necessary
12076 enable_fast_install=needless
12080 # The else clause should only fire when bootstrapping the
12081 # libtool distribution, otherwise you forgot to ship ltmain.sh
12082 # with your package, and you will get complaints that there are
12083 # no rules to generate ltmain.sh.
12084 if test -f "$ltmain"; then
12085 # See if we are running on zsh, and set the options which allow our commands through
12086 # without removal of \ escapes.
12087 if test -n "${ZSH_VERSION+set}" ; then
12088 setopt NO_GLOB_SUBST
12090 # Now quote all the things that may contain metacharacters while being
12091 # careful not to overquote the AC_SUBSTed values. We take copies of the
12092 # variables and quote the copies for generation of the libtool script.
12093 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12095 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12096 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12097 deplibs_check_method reload_flag reload_cmds need_locks \
12098 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12099 lt_cv_sys_global_symbol_to_c_name_address \
12100 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12101 old_postinstall_cmds old_postuninstall_cmds \
12105 lt_prog_compiler_wl_CXX \
12106 lt_prog_compiler_pic_CXX \
12107 lt_prog_compiler_static_CXX \
12108 lt_prog_compiler_no_builtin_flag_CXX \
12109 export_dynamic_flag_spec_CXX \
12110 thread_safe_flag_spec_CXX \
12111 whole_archive_flag_spec_CXX \
12112 enable_shared_with_static_runtimes_CXX \
12113 old_archive_cmds_CXX \
12114 old_archive_from_new_cmds_CXX \
12115 predep_objects_CXX \
12116 postdep_objects_CXX \
12119 compiler_lib_search_path_CXX \
12121 archive_expsym_cmds_CXX \
12122 postinstall_cmds_CXX \
12123 postuninstall_cmds_CXX \
12124 old_archive_from_expsyms_cmds_CXX \
12125 allow_undefined_flag_CXX \
12126 no_undefined_flag_CXX \
12127 export_symbols_cmds_CXX \
12128 hardcode_libdir_flag_spec_CXX \
12129 hardcode_libdir_flag_spec_ld_CXX \
12130 hardcode_libdir_separator_CXX \
12131 hardcode_automatic_CXX \
12133 module_expsym_cmds_CXX \
12134 lt_cv_prog_compiler_c_o_CXX \
12135 exclude_expsyms_CXX \
12136 include_expsyms_CXX; do
12139 old_archive_cmds_CXX | \
12140 old_archive_from_new_cmds_CXX | \
12141 archive_cmds_CXX | \
12142 archive_expsym_cmds_CXX | \
12143 module_cmds_CXX | \
12144 module_expsym_cmds_CXX | \
12145 old_archive_from_expsyms_cmds_CXX | \
12146 export_symbols_cmds_CXX | \
12147 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12148 postinstall_cmds | postuninstall_cmds | \
12149 old_postinstall_cmds | old_postuninstall_cmds | \
12150 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12151 # Double-quote double-evaled strings.
12152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12161 *'\$0 --fallback-echo"')
12162 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12168 cat <<__EOF__ >> "$cfgfile"
12169 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12173 # Shell to use when invoking shell scripts.
12176 # Whether or not to build shared libraries.
12177 build_libtool_libs=$enable_shared
12179 # Whether or not to build static libraries.
12180 build_old_libs=$enable_static
12182 # Whether or not to add -lc for building shared libraries.
12183 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12185 # Whether or not to disallow shared libs when runtime libs are static
12186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12188 # Whether or not to optimize for fast installation.
12189 fast_install=$enable_fast_install
12192 host_alias=$host_alias
12196 # The build system.
12197 build_alias=$build_alias
12201 # An echo program that does not interpret backslashes.
12206 AR_FLAGS=$lt_AR_FLAGS
12211 # LTCC compiler flags.
12212 LTCFLAGS=$lt_LTCFLAGS
12214 # A language-specific compiler.
12215 CC=$lt_compiler_CXX
12217 # Is the compiler the GNU C compiler?
12223 # The linker used to build libraries.
12226 # Whether we need hard or soft links.
12229 # A BSD-compatible nm program.
12232 # A symbol stripping program
12235 # Used to examine libraries when file_magic_cmd begins "file"
12236 MAGIC_CMD=$MAGIC_CMD
12238 # Used on cygwin: DLL creation program.
12241 # Used on cygwin: object dumper.
12244 # Used on cygwin: assembler.
12247 # The name of the directory that contains temporary libtool files.
12250 # How to create reloadable object files.
12251 reload_flag=$lt_reload_flag
12252 reload_cmds=$lt_reload_cmds
12254 # How to pass a linker flag through the compiler.
12255 wl=$lt_lt_prog_compiler_wl_CXX
12257 # Object file suffix (normally "o").
12258 objext="$ac_objext"
12260 # Old archive suffix (normally "a").
12263 # Shared library suffix (normally ".so").
12264 shrext_cmds='$shrext_cmds'
12266 # Executable file suffix (normally "").
12269 # Additional compiler flags for building library objects.
12270 pic_flag=$lt_lt_prog_compiler_pic_CXX
12273 # What is the maximum length of a command?
12274 max_cmd_len=$lt_cv_sys_max_cmd_len
12276 # Does compiler simultaneously support -c and -o options?
12277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12279 # Must we lock files when doing compilation?
12280 need_locks=$lt_need_locks
12282 # Do we need the lib prefix for modules?
12283 need_lib_prefix=$need_lib_prefix
12285 # Do we need a version for libraries?
12286 need_version=$need_version
12288 # Whether dlopen is supported.
12289 dlopen_support=$enable_dlopen
12291 # Whether dlopen of programs is supported.
12292 dlopen_self=$enable_dlopen_self
12294 # Whether dlopen of statically linked programs is supported.
12295 dlopen_self_static=$enable_dlopen_self_static
12297 # Compiler flag to prevent dynamic linking.
12298 link_static_flag=$lt_lt_prog_compiler_static_CXX
12300 # Compiler flag to turn off builtin functions.
12301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12303 # Compiler flag to allow reflexive dlopens.
12304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12306 # Compiler flag to generate shared objects directly from archives.
12307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12309 # Compiler flag to generate thread-safe objects.
12310 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12312 # Library versioning type.
12313 version_type=$version_type
12315 # Format of library name prefix.
12316 libname_spec=$lt_libname_spec
12318 # List of archive names. First name is the real one, the rest are links.
12319 # The last name is the one that the linker finds with -lNAME.
12320 library_names_spec=$lt_library_names_spec
12322 # The coded name of the library, if different from the real name.
12323 soname_spec=$lt_soname_spec
12325 # Commands used to build and install an old-style archive.
12327 old_archive_cmds=$lt_old_archive_cmds_CXX
12328 old_postinstall_cmds=$lt_old_postinstall_cmds
12329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12331 # Create an old-style archive from a shared archive.
12332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12334 # Create a temporary old-style archive to link instead of a shared archive.
12335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12337 # Commands used to build and install a shared archive.
12338 archive_cmds=$lt_archive_cmds_CXX
12339 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12340 postinstall_cmds=$lt_postinstall_cmds
12341 postuninstall_cmds=$lt_postuninstall_cmds
12343 # Commands used to build a loadable module (assumed same as above if empty)
12344 module_cmds=$lt_module_cmds_CXX
12345 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12347 # Commands to strip libraries.
12348 old_striplib=$lt_old_striplib
12349 striplib=$lt_striplib
12351 # Dependencies to place before the objects being linked to create a
12353 predep_objects=$lt_predep_objects_CXX
12355 # Dependencies to place after the objects being linked to create a
12357 postdep_objects=$lt_postdep_objects_CXX
12359 # Dependencies to place before the objects being linked to create a
12361 predeps=$lt_predeps_CXX
12363 # Dependencies to place after the objects being linked to create a
12365 postdeps=$lt_postdeps_CXX
12367 # The library search path used internally by the compiler when linking
12368 # a shared library.
12369 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12371 # Method to check whether dependent libraries are shared objects.
12372 deplibs_check_method=$lt_deplibs_check_method
12374 # Command to use when deplibs_check_method == file_magic.
12375 file_magic_cmd=$lt_file_magic_cmd
12377 # Flag that allows shared libraries with undefined symbols to be built.
12378 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12380 # Flag that forces no undefined symbols.
12381 no_undefined_flag=$lt_no_undefined_flag_CXX
12383 # Commands used to finish a libtool library installation in a directory.
12384 finish_cmds=$lt_finish_cmds
12386 # Same as above, but a single script fragment to be evaled but not shown.
12387 finish_eval=$lt_finish_eval
12389 # Take the output of nm and produce a listing of raw symbols and C names.
12390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12392 # Transform the output of nm in a proper C declaration
12393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12395 # Transform the output of nm in a C name address pair
12396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12398 # This is the shared library runtime path variable.
12399 runpath_var=$runpath_var
12401 # This is the shared library path variable.
12402 shlibpath_var=$shlibpath_var
12404 # Is shlibpath searched before the hard-coded library search path?
12405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12407 # How to hardcode a shared library path into an executable.
12408 hardcode_action=$hardcode_action_CXX
12410 # Whether we should hardcode library paths into libraries.
12411 hardcode_into_libs=$hardcode_into_libs
12413 # Flag to hardcode \$libdir into a binary during linking.
12414 # This must work even if \$libdir does not exist.
12415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12417 # If ld is used when linking, flag to hardcode \$libdir into
12418 # a binary during linking. This must work even if \$libdir does
12420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12422 # Whether we need a single -rpath flag with a separated argument.
12423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12426 # resulting binary.
12427 hardcode_direct=$hardcode_direct_CXX
12429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12430 # resulting binary.
12431 hardcode_minus_L=$hardcode_minus_L_CXX
12433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12434 # the resulting binary.
12435 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12437 # Set to yes if building a shared library automatically hardcodes DIR into the library
12438 # and all subsequent libraries and executables linked against it.
12439 hardcode_automatic=$hardcode_automatic_CXX
12441 # Variables whose values should be saved in libtool wrapper scripts and
12442 # restored at relink time.
12443 variables_saved_for_relink="$variables_saved_for_relink"
12445 # Whether libtool must link a program against all its dependency libraries.
12446 link_all_deplibs=$link_all_deplibs_CXX
12448 # Compile-time system search path for libraries
12449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12451 # Run-time system search path for libraries
12452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12454 # Fix the shell variable \$srcfile for the compiler.
12455 fix_srcfile_path="$fix_srcfile_path_CXX"
12457 # Set to yes if exported symbols are required.
12458 always_export_symbols=$always_export_symbols_CXX
12460 # The commands to list exported symbols.
12461 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12463 # The commands to extract the exported symbol list from a shared archive.
12464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12466 # Symbols that should not be listed in the preloaded symbols.
12467 exclude_expsyms=$lt_exclude_expsyms_CXX
12469 # Symbols that must always be exported.
12470 include_expsyms=$lt_include_expsyms_CXX
12472 # ### END LIBTOOL TAG CONFIG: $tagname
12478 # If there is no Makefile yet, we rely on a make rule to execute
12479 # `config.status --recheck' to rerun these tests and create the
12480 # libtool script then.
12481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12482 if test -f "$ltmain_in"; then
12483 test -f Makefile && make "$ltmain"
12489 ac_cpp='$CPP $CPPFLAGS'
12490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12498 with_gnu_ldcxx=$with_gnu_ld
12499 with_gnu_ld=$lt_save_with_gnu_ld
12500 lt_cv_path_LDCXX=$lt_cv_path_LD
12501 lt_cv_path_LD=$lt_save_path_LD
12502 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12503 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12511 if test -n "$F77" && test "X$F77" != "Xno"; then
12514 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12515 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12519 archive_cmds_need_lc_F77=no
12520 allow_undefined_flag_F77=
12521 always_export_symbols_F77=no
12522 archive_expsym_cmds_F77=
12523 export_dynamic_flag_spec_F77=
12524 hardcode_direct_F77=no
12525 hardcode_libdir_flag_spec_F77=
12526 hardcode_libdir_flag_spec_ld_F77=
12527 hardcode_libdir_separator_F77=
12528 hardcode_minus_L_F77=no
12529 hardcode_automatic_F77=no
12531 module_expsym_cmds_F77=
12532 link_all_deplibs_F77=unknown
12533 old_archive_cmds_F77=$old_archive_cmds
12534 no_undefined_flag_F77=
12535 whole_archive_flag_spec_F77=
12536 enable_shared_with_static_runtimes_F77=no
12538 # Source file extension for f77 test sources.
12541 # Object file extension for compiled f77 test sources.
12545 # Code to be used in simple compile tests
12546 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12548 # Code to be used in simple link tests
12549 lt_simple_link_test_code=" program t\n end\n"
12551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12553 # If no C compiler was specified, use CC.
12556 # If no C compiler flags were specified, use CFLAGS.
12557 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12559 # Allow CC to be a program name with arguments.
12563 # save warnings/boilerplate of simple test code
12564 ac_outfile=conftest.$ac_objext
12565 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12567 _lt_compiler_boilerplate=`cat conftest.err`
12570 ac_outfile=conftest.$ac_objext
12571 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12573 _lt_linker_boilerplate=`cat conftest.err`
12577 # Allow CC to be a program name with arguments.
12582 for cc_temp in $compiler""; do
12584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12590 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12593 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12594 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12595 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12596 echo "${ECHO_T}$can_build_shared" >&6
12598 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12599 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12600 test "$can_build_shared" = "no" && enable_shared=no
12602 # On AIX, shared libraries and static libraries use the same namespace, and
12603 # are all built from PIC.
12606 test "$enable_shared" = yes && enable_static=no
12607 if test -n "$RANLIB"; then
12608 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12609 postinstall_cmds='$RANLIB $lib'
12613 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12614 test "$enable_shared" = yes && enable_static=no
12618 echo "$as_me:$LINENO: result: $enable_shared" >&5
12619 echo "${ECHO_T}$enable_shared" >&6
12621 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12622 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12623 # Make sure either enable_shared or enable_static is yes.
12624 test "$enable_shared" = yes || enable_static=yes
12625 echo "$as_me:$LINENO: result: $enable_static" >&5
12626 echo "${ECHO_T}$enable_static" >&6
12631 lt_prog_compiler_wl_F77=
12632 lt_prog_compiler_pic_F77=
12633 lt_prog_compiler_static_F77=
12635 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12636 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12638 if test "$GCC" = yes; then
12639 lt_prog_compiler_wl_F77='-Wl,'
12640 lt_prog_compiler_static_F77='-static'
12644 # All AIX code is PIC.
12645 if test "$host_cpu" = ia64; then
12646 # AIX 5 now supports IA64 processor
12647 lt_prog_compiler_static_F77='-Bstatic'
12652 # FIXME: we need at least 68020 code to build shared libraries, but
12653 # adding the `-m68020' flag to GCC prevents building anything better,
12655 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12658 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12659 # PIC is the default for these OSes.
12662 mingw* | pw32* | os2*)
12663 # This hack is so that the source file can tell whether it is being
12664 # built for inclusion in a dll (and should export symbols for example).
12665 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12668 darwin* | rhapsody*)
12669 # PIC is the default on this platform
12670 # Common symbols not allowed in MH_DYLIB files
12671 lt_prog_compiler_pic_F77='-fno-common'
12675 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12676 # Instead, we relocate shared libraries at runtime.
12680 # Just because we use GCC doesn't mean we suddenly get shared libraries
12681 # on systems that don't support them.
12682 lt_prog_compiler_can_build_shared_F77=no
12687 if test -d /usr/nec; then
12688 lt_prog_compiler_pic_F77=-Kconform_pic
12693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12694 # not for PA HP-UX.
12700 lt_prog_compiler_pic_F77='-fPIC'
12706 lt_prog_compiler_pic_F77='-fPIC'
12710 # PORTME Check for flag to pass linker flags through the system compiler.
12713 lt_prog_compiler_wl_F77='-Wl,'
12714 if test "$host_cpu" = ia64; then
12715 # AIX 5 now supports IA64 processor
12716 lt_prog_compiler_static_F77='-Bstatic'
12718 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12722 # PIC is the default on this platform
12723 # Common symbols not allowed in MH_DYLIB files
12724 case $cc_basename in
12726 lt_prog_compiler_pic_F77='-qnocommon'
12727 lt_prog_compiler_wl_F77='-Wl,'
12732 mingw* | pw32* | os2*)
12733 # This hack is so that the source file can tell whether it is being
12734 # built for inclusion in a dll (and should export symbols for example).
12735 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12738 hpux9* | hpux10* | hpux11*)
12739 lt_prog_compiler_wl_F77='-Wl,'
12740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12741 # not for PA HP-UX.
12747 lt_prog_compiler_pic_F77='+Z'
12750 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12751 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12754 irix5* | irix6* | nonstopux*)
12755 lt_prog_compiler_wl_F77='-Wl,'
12756 # PIC (with -KPIC) is the default.
12757 lt_prog_compiler_static_F77='-non_shared'
12761 lt_prog_compiler_pic_F77='-KPIC'
12762 lt_prog_compiler_static_F77='-Bstatic'
12766 case $cc_basename in
12768 lt_prog_compiler_wl_F77='-Wl,'
12769 lt_prog_compiler_pic_F77='-KPIC'
12770 lt_prog_compiler_static_F77='-static'
12772 pgcc* | pgf77* | pgf90* | pgf95*)
12773 # Portland Group compilers (*not* the Pentium gcc compiler,
12774 # which looks to be a dead project)
12775 lt_prog_compiler_wl_F77='-Wl,'
12776 lt_prog_compiler_pic_F77='-fpic'
12777 lt_prog_compiler_static_F77='-Bstatic'
12780 lt_prog_compiler_wl_F77='-Wl,'
12781 # All Alpha code is PIC.
12782 lt_prog_compiler_static_F77='-non_shared'
12787 osf3* | osf4* | osf5*)
12788 lt_prog_compiler_wl_F77='-Wl,'
12789 # All OSF/1 code is PIC.
12790 lt_prog_compiler_static_F77='-non_shared'
12794 lt_prog_compiler_pic_F77='-KPIC'
12795 lt_prog_compiler_static_F77='-Bstatic'
12796 case $cc_basename in
12797 f77* | f90* | f95*)
12798 lt_prog_compiler_wl_F77='-Qoption ld ';;
12800 lt_prog_compiler_wl_F77='-Wl,';;
12805 lt_prog_compiler_wl_F77='-Qoption ld '
12806 lt_prog_compiler_pic_F77='-PIC'
12807 lt_prog_compiler_static_F77='-Bstatic'
12810 sysv4 | sysv4.2uw2* | sysv4.3*)
12811 lt_prog_compiler_wl_F77='-Wl,'
12812 lt_prog_compiler_pic_F77='-KPIC'
12813 lt_prog_compiler_static_F77='-Bstatic'
12817 if test -d /usr/nec ;then
12818 lt_prog_compiler_pic_F77='-Kconform_pic'
12819 lt_prog_compiler_static_F77='-Bstatic'
12823 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12824 lt_prog_compiler_wl_F77='-Wl,'
12825 lt_prog_compiler_pic_F77='-KPIC'
12826 lt_prog_compiler_static_F77='-Bstatic'
12830 lt_prog_compiler_wl_F77='-Wl,'
12831 lt_prog_compiler_can_build_shared_F77=no
12835 lt_prog_compiler_pic_F77='-pic'
12836 lt_prog_compiler_static_F77='-Bstatic'
12840 lt_prog_compiler_can_build_shared_F77=no
12845 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12846 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12849 # Check to make sure the PIC flag actually works.
12851 if test -n "$lt_prog_compiler_pic_F77"; then
12853 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12854 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12855 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 lt_prog_compiler_pic_works_F77=no
12859 ac_outfile=conftest.$ac_objext
12860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12861 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12862 # Insert the option either (1) after the last *FLAGS variable, or
12863 # (2) before a word containing "conftest.", or (3) at the end.
12864 # Note that $ac_compile itself does not contain backslashes and begins
12865 # with a dollar sign (not a hyphen), so the echo should work correctly.
12866 # The option is referenced via a variable to avoid confusing sed.
12867 lt_compile=`echo "$ac_compile" | $SED \
12868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12870 -e 's:$: $lt_compiler_flag:'`
12871 (eval echo "\"\$as_me:12871: $lt_compile\"" >&5)
12872 (eval "$lt_compile" 2>conftest.err)
12874 cat conftest.err >&5
12875 echo "$as_me:12875: \$? = $ac_status" >&5
12876 if (exit $ac_status) && test -s "$ac_outfile"; then
12877 # The compiler can only warn and ignore the option if not recognized
12878 # So say no if there are warnings other than the usual output.
12879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12881 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12882 lt_prog_compiler_pic_works_F77=yes
12888 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12889 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12891 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12892 case $lt_prog_compiler_pic_F77 in
12894 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12897 lt_prog_compiler_pic_F77=
12898 lt_prog_compiler_can_build_shared_F77=no
12903 # For platforms which do not support PIC, -DPIC is meaningless:
12905 lt_prog_compiler_pic_F77=
12908 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12913 # Check to make sure the static flag actually works.
12915 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12916 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12917 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12918 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 lt_prog_compiler_static_works_F77=no
12922 save_LDFLAGS="$LDFLAGS"
12923 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12924 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12925 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12926 # The linker can only warn and ignore the option if not recognized
12927 # So say no if there are warnings
12928 if test -s conftest.err; then
12929 # Append any errors to the config.log.
12930 cat conftest.err 1>&5
12931 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12933 if diff conftest.exp conftest.er2 >/dev/null; then
12934 lt_prog_compiler_static_works_F77=yes
12937 lt_prog_compiler_static_works_F77=yes
12941 LDFLAGS="$save_LDFLAGS"
12944 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
12945 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
12947 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
12950 lt_prog_compiler_static_F77=
12954 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12955 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12956 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 lt_cv_prog_compiler_c_o_F77=no
12960 $rm -r conftest 2>/dev/null
12964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12966 lt_compiler_flag="-o out/conftest2.$ac_objext"
12967 # Insert the option either (1) after the last *FLAGS variable, or
12968 # (2) before a word containing "conftest.", or (3) at the end.
12969 # Note that $ac_compile itself does not contain backslashes and begins
12970 # with a dollar sign (not a hyphen), so the echo should work correctly.
12971 lt_compile=`echo "$ac_compile" | $SED \
12972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12974 -e 's:$: $lt_compiler_flag:'`
12975 (eval echo "\"\$as_me:12975: $lt_compile\"" >&5)
12976 (eval "$lt_compile" 2>out/conftest.err)
12978 cat out/conftest.err >&5
12979 echo "$as_me:12979: \$? = $ac_status" >&5
12980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12982 # The compiler can only warn and ignore the option if not recognized
12983 # So say no if there are warnings
12984 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12987 lt_cv_prog_compiler_c_o_F77=yes
12992 # SGI C++ compiler will create directory out/ii_files/ for
12993 # template instantiation
12994 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12995 $rm out/* && rmdir out
13001 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13002 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13005 hard_links="nottested"
13006 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13007 # do not overwrite the value of need_locks provided by the user
13008 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13009 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13014 ln conftest.a conftest.b 2>&5 || hard_links=no
13015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13016 echo "$as_me:$LINENO: result: $hard_links" >&5
13017 echo "${ECHO_T}$hard_links" >&6
13018 if test "$hard_links" = no; then
13019 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13020 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13027 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13031 allow_undefined_flag_F77=
13032 enable_shared_with_static_runtimes_F77=no
13034 archive_expsym_cmds_F77=
13035 old_archive_From_new_cmds_F77=
13036 old_archive_from_expsyms_cmds_F77=
13037 export_dynamic_flag_spec_F77=
13038 whole_archive_flag_spec_F77=
13039 thread_safe_flag_spec_F77=
13040 hardcode_libdir_flag_spec_F77=
13041 hardcode_libdir_flag_spec_ld_F77=
13042 hardcode_libdir_separator_F77=
13043 hardcode_direct_F77=no
13044 hardcode_minus_L_F77=no
13045 hardcode_shlibpath_var_F77=unsupported
13046 link_all_deplibs_F77=unknown
13047 hardcode_automatic_F77=no
13049 module_expsym_cmds_F77=
13050 always_export_symbols_F77=no
13051 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13052 # include_expsyms should be a list of space-separated symbols to be *always*
13053 # included in the symbol list
13054 include_expsyms_F77=
13055 # exclude_expsyms can be an extended regexp of symbols to exclude
13056 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13057 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13058 # as well as any symbol that contains `d'.
13059 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13060 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13061 # platforms (ab)use it in PIC code, but their linkers get confused if
13062 # the symbol is explicitly referenced. Since portable code cannot
13063 # rely on this symbol name, it's probably fine to never include it in
13064 # preloaded symbol tables.
13065 extract_expsyms_cmds=
13066 # Just being paranoid about ensuring that cc_basename is set.
13067 for cc_temp in $compiler""; do
13069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13075 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13078 cygwin* | mingw* | pw32*)
13079 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13080 # When not using gcc, we currently assume that we are using
13081 # Microsoft Visual C++.
13082 if test "$GCC" != yes; then
13087 # we just hope/assume this is gcc and not c89 (= MSVC++)
13096 if test "$with_gnu_ld" = yes; then
13097 # If archive_cmds runs LD, not CC, wlarc should be empty
13100 # Set some defaults for GNU ld with shared library support. These
13101 # are reset later if shared libraries are not supported. Putting them
13102 # here allows them to be overridden if necessary.
13103 runpath_var=LD_RUN_PATH
13104 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13105 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13106 # ancient GNU ld didn't support --whole-archive et. al.
13107 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13108 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13110 whole_archive_flag_spec_F77=
13112 supports_anon_versioning=no
13113 case `$LD -v 2>/dev/null` in
13114 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13115 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13116 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13117 *\ 2.11.*) ;; # other 2.11 versions
13118 *) supports_anon_versioning=yes ;;
13121 # See if GNU ld supports shared libraries.
13123 aix3* | aix4* | aix5*)
13124 # On AIX/PPC, the GNU linker is very broken
13125 if test "$host_cpu" != ia64; then
13129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13130 *** to be unable to reliably create shared libraries on AIX.
13131 *** Therefore, libtool is disabling shared libraries support. If you
13132 *** really care for shared libraries, you may want to modify your PATH
13133 *** so that a non-GNU linker is found, and then restart.
13140 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)'
13141 hardcode_libdir_flag_spec_F77='-L$libdir'
13142 hardcode_minus_L_F77=yes
13144 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13145 # that the semantics of dynamic libraries on AmigaOS, at least up
13146 # to version 4, is to share data among multiple programs linked
13147 # with the same dynamic library. Since this doesn't match the
13148 # behavior of shared libraries on other platforms, we can't use
13154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13155 allow_undefined_flag_F77=unsupported
13156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13157 # support --undefined. This deserves some investigation. FIXME
13158 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13164 cygwin* | mingw* | pw32*)
13165 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13166 # as there is no search path for DLLs.
13167 hardcode_libdir_flag_spec_F77='-L$libdir'
13168 allow_undefined_flag_F77=unsupported
13169 always_export_symbols_F77=no
13170 enable_shared_with_static_runtimes_F77=yes
13171 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13173 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13174 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13175 # If the export-symbols file already is a .def file (1st line
13176 # is EXPORTS), use it as is; otherwise, prepend...
13177 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13178 cp $export_symbols $output_objdir/$soname.def;
13180 echo EXPORTS > $output_objdir/$soname.def;
13181 cat $export_symbols >> $output_objdir/$soname.def;
13183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13190 hardcode_direct_F77=no
13191 hardcode_shlibpath_var_F77=no
13192 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13193 export_dynamic_flag_spec_F77='${wl}-E'
13194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13195 # Instead, shared libraries are loaded at an image base (0x10000000 by
13196 # default) and relocated if they conflict, which is a slow very memory
13197 # consuming and fragmenting process. To avoid this, we pick a random,
13198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13199 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13200 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13201 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13207 case $cc_basename,$host_cpu in
13208 pgcc*) # Portland Group C compiler
13209 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'
13210 tmp_addflag=' $pic_flag'
13212 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13213 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'
13214 tmp_addflag=' $pic_flag -Mnomain' ;;
13215 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13216 tmp_addflag=' -i_dynamic' ;;
13217 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13218 tmp_addflag=' -i_dynamic -nofor_main' ;;
13219 ifc* | ifort*) # Intel Fortran compiler
13220 tmp_addflag=' -nofor_main' ;;
13222 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13224 if test $supports_anon_versioning = yes; then
13225 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13227 $echo "local: *; };" >> $output_objdir/$libname.ver~
13228 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13230 link_all_deplibs_F77=no
13236 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13238 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13241 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13242 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13247 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13252 *** create shared libraries on Solaris systems. Therefore, libtool
13253 *** is disabling shared libraries support. We urge you to upgrade GNU
13254 *** binutils to release 2.9.1 or newer. Another option is to modify
13255 *** your PATH or compiler configuration so that the native linker is
13256 *** used, and then restart.
13259 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13260 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13268 case `$LD -v 2>&1` in
13269 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13274 *** reliably create shared libraries on SCO systems. Therefore, libtool
13275 *** is disabling shared libraries support. We urge you to upgrade GNU
13276 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13277 *** your PATH or compiler configuration so that the native linker is
13278 *** used, and then restart.
13283 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13284 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13285 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13286 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13295 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13297 hardcode_direct_F77=yes
13298 hardcode_shlibpath_var_F77=no
13302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13303 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13304 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13311 if test "$ld_shlibs_F77" = no; then
13313 hardcode_libdir_flag_spec_F77=
13314 export_dynamic_flag_spec_F77=
13315 whole_archive_flag_spec_F77=
13318 # PORTME fill in a description of your system's linker (not GNU ld)
13321 allow_undefined_flag_F77=unsupported
13322 always_export_symbols_F77=yes
13323 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'
13324 # Note: this linker hardcodes the directories in LIBPATH if there
13325 # are no directories specified by -L.
13326 hardcode_minus_L_F77=yes
13327 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13328 # Neither direct hardcoding nor static linking is supported with a
13330 hardcode_direct_F77=unsupported
13335 if test "$host_cpu" = ia64; then
13336 # On IA64, the linker does run time linking by default, so we don't
13337 # have to do anything special.
13338 aix_use_runtimelinking=no
13339 exp_sym_flag='-Bexport'
13342 # If we're using GNU nm, then we don't want the "-C" option.
13343 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13344 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13345 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'
13347 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'
13349 aix_use_runtimelinking=no
13351 # Test if we are trying to use run time linking or normal
13352 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13353 # need to do runtime linking.
13354 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13355 for ld_flag in $LDFLAGS; do
13356 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13357 aix_use_runtimelinking=yes
13364 exp_sym_flag='-bexport'
13365 no_entry_flag='-bnoentry'
13368 # When large executables or shared objects are built, AIX ld can
13369 # have problems creating the table of contents. If linking a library
13370 # or program results in "error TOC overflow" add -mminimal-toc to
13371 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13372 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13374 archive_cmds_F77=''
13375 hardcode_direct_F77=yes
13376 hardcode_libdir_separator_F77=':'
13377 link_all_deplibs_F77=yes
13379 if test "$GCC" = yes; then
13380 case $host_os in aix4.[012]|aix4.[012].*)
13381 # We only want to do this on AIX 4.2 and lower, the check
13382 # below for broken collect2 doesn't work under 4.3+
13383 collect2name=`${CC} -print-prog-name=collect2`
13384 if test -f "$collect2name" && \
13385 strings "$collect2name" | grep resolve_lib_name >/dev/null
13387 # We have reworked collect2
13388 hardcode_direct_F77=yes
13390 # We have old collect2
13391 hardcode_direct_F77=unsupported
13392 # It fails to find uninstalled libraries when the uninstalled
13393 # path is not listed in the libpath. Setting hardcode_minus_L
13394 # to unsupported forces relinking
13395 hardcode_minus_L_F77=yes
13396 hardcode_libdir_flag_spec_F77='-L$libdir'
13397 hardcode_libdir_separator_F77=
13401 shared_flag='-shared'
13402 if test "$aix_use_runtimelinking" = yes; then
13403 shared_flag="$shared_flag "'${wl}-G'
13407 if test "$host_cpu" = ia64; then
13408 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13409 # chokes on -Wl,-G. The following line is correct:
13412 if test "$aix_use_runtimelinking" = yes; then
13413 shared_flag='${wl}-G'
13415 shared_flag='${wl}-bM:SRE'
13420 # It seems that -bexpall does not export symbols beginning with
13421 # underscore (_), so it is better to generate a list of symbols to export.
13422 always_export_symbols_F77=yes
13423 if test "$aix_use_runtimelinking" = yes; then
13424 # Warning - without using the other runtime loading flags (-brtl),
13425 # -berok will link without error, but may produce a broken library.
13426 allow_undefined_flag_F77='-berok'
13427 # Determine the default libpath from the value encoded in an empty executable.
13428 cat >conftest.$ac_ext <<_ACEOF
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435 (eval $ac_link) 2>conftest.er1
13437 grep -v '^ *+' conftest.er1 >conftest.err
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } &&
13448 { ac_try='test -s conftest$ac_exeext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13457 # Check for a 64-bit object if we didn't find anything.
13458 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; }
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13465 rm -f conftest.err conftest.$ac_objext \
13466 conftest$ac_exeext conftest.$ac_ext
13467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13469 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13470 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13472 if test "$host_cpu" = ia64; then
13473 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13474 allow_undefined_flag_F77="-z nodefs"
13475 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13477 # Determine the default libpath from the value encoded in an empty executable.
13478 cat >conftest.$ac_ext <<_ACEOF
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13485 (eval $ac_link) 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; } &&
13498 { ac_try='test -s conftest$ac_exeext'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13507 # Check for a 64-bit object if we didn't find anything.
13508 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; }
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13515 rm -f conftest.err conftest.$ac_objext \
13516 conftest$ac_exeext conftest.$ac_ext
13517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13519 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13520 # Warning - without using the other run time loading flags,
13521 # -berok will link without error, but may produce a broken library.
13522 no_undefined_flag_F77=' ${wl}-bernotok'
13523 allow_undefined_flag_F77=' ${wl}-berok'
13524 # Exported symbols can be pulled into shared objects from archives
13525 whole_archive_flag_spec_F77='$convenience'
13526 archive_cmds_need_lc_F77=yes
13527 # This is similar to how AIX traditionally builds its shared libraries.
13528 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13534 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)'
13535 hardcode_libdir_flag_spec_F77='-L$libdir'
13536 hardcode_minus_L_F77=yes
13537 # see comment about different semantics on the GNU ld section
13542 export_dynamic_flag_spec_F77=-rdynamic
13545 cygwin* | mingw* | pw32*)
13546 # When not using gcc, we currently assume that we are using
13547 # Microsoft Visual C++.
13548 # hardcode_libdir_flag_spec is actually meaningless, as there is
13549 # no search path for DLLs.
13550 hardcode_libdir_flag_spec_F77=' '
13551 allow_undefined_flag_F77=unsupported
13552 # Tell ltmain to make .lib files, not .a files.
13554 # Tell ltmain to make .dll files, not .so files.
13556 # FIXME: Setting linknames here is a bad hack.
13557 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13558 # The linker will automatically build a .lib file if we build a DLL.
13559 old_archive_From_new_cmds_F77='true'
13560 # FIXME: Should let the user specify the lib program.
13561 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13562 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13563 enable_shared_with_static_runtimes_F77=yes
13566 darwin* | rhapsody*)
13568 rhapsody* | darwin1.[012])
13569 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13572 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13573 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13575 case ${MACOSX_DEPLOYMENT_TARGET} in
13577 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13580 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13586 archive_cmds_need_lc_F77=no
13587 hardcode_direct_F77=no
13588 hardcode_automatic_F77=yes
13589 hardcode_shlibpath_var_F77=unsupported
13590 whole_archive_flag_spec_F77=''
13591 link_all_deplibs_F77=yes
13592 if test "$GCC" = yes ; then
13593 output_verbose_link_cmd='echo'
13594 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13595 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13596 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13597 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}'
13598 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}'
13600 case $cc_basename in
13602 output_verbose_link_cmd='echo'
13603 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13604 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13605 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13606 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}'
13607 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}'
13617 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618 hardcode_libdir_flag_spec_F77='-L$libdir'
13619 hardcode_shlibpath_var_F77=no
13626 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13627 # support. Future versions do this automatically, but an explicit c++rt0.o
13628 # does not break anything, and helps significantly (at the cost of a little
13631 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13632 hardcode_libdir_flag_spec_F77='-R$libdir'
13633 hardcode_direct_F77=yes
13634 hardcode_shlibpath_var_F77=no
13637 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13639 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13640 hardcode_direct_F77=yes
13641 hardcode_minus_L_F77=yes
13642 hardcode_shlibpath_var_F77=no
13645 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13646 freebsd* | dragonfly*)
13647 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13648 hardcode_libdir_flag_spec_F77='-R$libdir'
13649 hardcode_direct_F77=yes
13650 hardcode_shlibpath_var_F77=no
13653 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13655 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13656 hardcode_libdir_flag_spec_F77='-R$libdir'
13657 hardcode_direct_F77=yes
13658 hardcode_shlibpath_var_F77=no
13659 link_all_deplibs_F77=no
13663 if test "$GCC" = yes; then
13664 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'
13666 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'
13668 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13669 hardcode_libdir_separator_F77=:
13670 hardcode_direct_F77=yes
13672 # hardcode_minus_L: Not really in the search PATH,
13673 # but as the default location of the library.
13674 hardcode_minus_L_F77=yes
13675 export_dynamic_flag_spec_F77='${wl}-E'
13679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13680 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13682 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13684 if test "$with_gnu_ld" = no; then
13685 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13686 hardcode_libdir_separator_F77=:
13688 hardcode_direct_F77=yes
13689 export_dynamic_flag_spec_F77='${wl}-E'
13691 # hardcode_minus_L: Not really in the search PATH,
13692 # but as the default location of the library.
13693 hardcode_minus_L_F77=yes
13698 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13701 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13704 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13707 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13713 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13716 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13719 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13723 if test "$with_gnu_ld" = no; then
13724 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13725 hardcode_libdir_separator_F77=:
13729 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13730 hardcode_direct_F77=no
13731 hardcode_shlibpath_var_F77=no
13734 hardcode_direct_F77=yes
13735 export_dynamic_flag_spec_F77='${wl}-E'
13737 # hardcode_minus_L: Not really in the search PATH,
13738 # but as the default location of the library.
13739 hardcode_minus_L_F77=yes
13745 irix5* | irix6* | nonstopux*)
13746 if test "$GCC" = yes; then
13747 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'
13749 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'
13750 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13752 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13753 hardcode_libdir_separator_F77=:
13754 link_all_deplibs_F77=yes
13757 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13758 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13759 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13761 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13763 hardcode_libdir_flag_spec_F77='-R$libdir'
13764 hardcode_direct_F77=yes
13765 hardcode_shlibpath_var_F77=no
13769 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13770 hardcode_direct_F77=yes
13771 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13772 hardcode_libdir_separator_F77=:
13773 hardcode_shlibpath_var_F77=no
13777 hardcode_direct_F77=yes
13778 hardcode_shlibpath_var_F77=no
13779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13780 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13781 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13782 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13783 export_dynamic_flag_spec_F77='${wl}-E'
13786 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13787 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13788 hardcode_libdir_flag_spec_F77='-R$libdir'
13791 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13792 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13799 hardcode_libdir_flag_spec_F77='-L$libdir'
13800 hardcode_minus_L_F77=yes
13801 allow_undefined_flag_F77=unsupported
13802 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'
13803 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13807 if test "$GCC" = yes; then
13808 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13809 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'
13811 allow_undefined_flag_F77=' -expect_unresolved \*'
13812 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'
13814 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13815 hardcode_libdir_separator_F77=:
13818 osf4* | osf5*) # as osf3* with the addition of -msym flag
13819 if test "$GCC" = yes; then
13820 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13821 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'
13822 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13824 allow_undefined_flag_F77=' -expect_unresolved \*'
13825 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'
13826 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~
13827 $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'
13829 # Both c and cxx compiler support -rpath directly
13830 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13832 hardcode_libdir_separator_F77=:
13836 no_undefined_flag_F77=' -z text'
13837 if test "$GCC" = yes; then
13839 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13841 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13844 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13845 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13848 hardcode_libdir_flag_spec_F77='-R$libdir'
13849 hardcode_shlibpath_var_F77=no
13851 solaris2.[0-5] | solaris2.[0-5].*) ;;
13853 # The compiler driver will combine linker options so we
13854 # cannot just pass the convience library names through
13855 # without $wl, iff we do not link with $LD.
13856 # Luckily, gcc supports the same syntax we need for Sun Studio.
13857 # Supported since Solaris 2.6 (maybe 2.5.1?)
13860 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13862 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' ;;
13865 link_all_deplibs_F77=yes
13869 if test "x$host_vendor" = xsequent; then
13870 # Use $CC to link under sequent, because it throws in some extra .o
13871 # files that make .init and .fini sections work.
13872 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13874 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13876 hardcode_libdir_flag_spec_F77='-L$libdir'
13877 hardcode_direct_F77=yes
13878 hardcode_minus_L_F77=yes
13879 hardcode_shlibpath_var_F77=no
13883 case $host_vendor in
13885 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886 hardcode_direct_F77=yes # is this really true???
13889 ## LD is ld it makes a PLAMLIB
13890 ## CC just makes a GrossModule.
13891 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13892 reload_cmds_F77='$CC -r -o $output$reload_objs'
13893 hardcode_direct_F77=no
13896 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13897 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13900 runpath_var='LD_RUN_PATH'
13901 hardcode_shlibpath_var_F77=no
13905 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13906 hardcode_shlibpath_var_F77=no
13907 export_dynamic_flag_spec_F77='-Bexport'
13911 if test -d /usr/nec; then
13912 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13913 hardcode_shlibpath_var_F77=no
13914 runpath_var=LD_RUN_PATH
13915 hardcode_runpath_var=yes
13920 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
13921 no_undefined_flag_F77='${wl}-z,text'
13922 archive_cmds_need_lc_F77=no
13923 hardcode_shlibpath_var_F77=no
13924 runpath_var='LD_RUN_PATH'
13926 if test "$GCC" = yes; then
13927 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13928 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13930 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13931 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13935 sysv5* | sco3.2v5* | sco5v6*)
13936 # Note: We can NOT use -z defs as we might desire, because we do not
13937 # link with -lc, and that would cause any symbols used from libc to
13938 # always be unresolved, which means just about no library would
13939 # ever link correctly. If we're not using GNU ld we use -z text
13940 # though, which does catch some bad symbols but isn't as heavy-handed
13942 no_undefined_flag_F77='${wl}-z,text'
13943 allow_undefined_flag_F77='${wl}-z,nodefs'
13944 archive_cmds_need_lc_F77=no
13945 hardcode_shlibpath_var_F77=no
13946 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13947 hardcode_libdir_separator_F77=':'
13948 link_all_deplibs_F77=yes
13949 export_dynamic_flag_spec_F77='${wl}-Bexport'
13950 runpath_var='LD_RUN_PATH'
13952 if test "$GCC" = yes; then
13953 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13954 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13957 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13962 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13963 hardcode_libdir_flag_spec_F77='-L$libdir'
13964 hardcode_shlibpath_var_F77=no
13973 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13974 echo "${ECHO_T}$ld_shlibs_F77" >&6
13975 test "$ld_shlibs_F77" = no && can_build_shared=no
13978 # Do we need to explicitly link libc?
13980 case "x$archive_cmds_need_lc_F77" in
13982 # Assume -lc should be added
13983 archive_cmds_need_lc_F77=yes
13985 if test "$enable_shared" = yes && test "$GCC" = yes; then
13986 case $archive_cmds_F77 in
13988 # FIXME: we may have to deal with multi-command sequences.
13991 # Test whether the compiler implicitly links with -lc since on some
13992 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13993 # to ld, don't add -lc before -lgcc.
13994 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13995 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000 (eval $ac_compile) 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } 2>conftest.err; then
14006 libobjs=conftest.$ac_objext
14008 wl=$lt_prog_compiler_wl_F77
14009 pic_flag=$lt_prog_compiler_pic_F77
14015 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14016 allow_undefined_flag_F77=
14017 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14018 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }
14023 archive_cmds_need_lc_F77=no
14025 archive_cmds_need_lc_F77=yes
14027 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14029 cat conftest.err 1>&5
14032 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14033 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14040 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14041 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14042 library_names_spec=
14043 libname_spec='lib$name'
14047 postuninstall_cmds=
14051 shlibpath_overrides_runpath=unknown
14053 dynamic_linker="$host_os ld.so"
14054 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14055 if test "$GCC" = yes; then
14056 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14057 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14058 # if the path contains ";" then we assume it to be the separator
14059 # otherwise default to the standard path separator (i.e. ":") - it is
14060 # assumed that no part of a normal pathname contains ";" but that should
14061 # okay in the real world where ";" in dirpaths is itself problematic.
14062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14067 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14069 need_lib_prefix=unknown
14070 hardcode_into_libs=no
14072 # when you set need_version to no, make sure it does not cause -set_version
14073 # flags to be left without arguments
14074 need_version=unknown
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14080 shlibpath_var=LIBPATH
14082 # AIX 3 has no versioning support, so we append a major version to the name.
14083 soname_spec='${libname}${release}${shared_ext}$major'
14090 hardcode_into_libs=yes
14091 if test "$host_cpu" = ia64; then
14092 # AIX 5 supports IA64
14093 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14094 shlibpath_var=LD_LIBRARY_PATH
14096 # With GCC up to 2.95.x, collect2 would create an import file
14097 # for dependence libraries. The import file would start with
14098 # the line `#! .'. This would cause the generated library to
14099 # depend on `.', always an invalid library. This was fixed in
14100 # development snapshots of GCC prior to 3.0.
14102 aix4 | aix4.[01] | aix4.[01].*)
14103 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14105 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14108 can_build_shared=no
14112 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14113 # soname into executable. Probably we can add versioning support to
14114 # collect2, so additional links can be useful in future.
14115 if test "$aix_use_runtimelinking" = yes; then
14116 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14117 # instead of lib<name>.a to let people know that these are not
14118 # typical AIX shared libraries.
14119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 # We preserve .a as extension for shared libraries through AIX4.2
14122 # and later when we are not doing run time linking.
14123 library_names_spec='${libname}${release}.a $libname.a'
14124 soname_spec='${libname}${release}${shared_ext}$major'
14126 shlibpath_var=LIBPATH
14131 library_names_spec='$libname.ixlibrary $libname.a'
14132 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14133 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'
14137 library_names_spec='${libname}${shared_ext}'
14138 dynamic_linker="$host_os ld.so"
14139 shlibpath_var=LIBRARY_PATH
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14148 shlibpath_var=LD_LIBRARY_PATH
14149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14151 # the default ld.so.conf also contains /usr/contrib/lib and
14152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14153 # libtool to hard-code these into programs
14156 cygwin* | mingw* | pw32*)
14157 version_type=windows
14162 case $GCC,$host_os in
14163 yes,cygwin* | yes,mingw* | yes,pw32*)
14164 library_names_spec='$libname.dll.a'
14165 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14166 postinstall_cmds='base_file=`basename \${file}`~
14167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14168 dldir=$destdir/`dirname \$dlpath`~
14169 test -d \$dldir || mkdir -p \$dldir~
14170 $install_prog $dir/$dlname \$dldir/$dlname~
14171 chmod a+x \$dldir/$dlname'
14172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14173 dlpath=$dir/\$dldll~
14175 shlibpath_overrides_runpath=yes
14179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14181 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14184 # MinGW DLLs use traditional 'lib' prefix
14185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14186 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14187 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14188 # It is most probably a Windows format PATH printed by
14189 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14190 # path with ; separators, and with drive letters. We can handle the
14191 # drive letters (cygwin fileutils understands them), so leave them,
14192 # especially as we might pass files found there to a mingw objdump,
14193 # which wouldn't understand a cygwinified path. Ahh.
14194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14200 # pw32 DLLs use 'pw' prefix rather than 'lib'
14201 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14207 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14210 dynamic_linker='Win32 ld.exe'
14211 # FIXME: first we should search . and the directory the executable is in
14215 darwin* | rhapsody*)
14216 dynamic_linker="$host_os dyld"
14217 version_type=darwin
14220 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14221 soname_spec='${libname}${release}${major}$shared_ext'
14222 shlibpath_overrides_runpath=yes
14223 shlibpath_var=DYLD_LIBRARY_PATH
14224 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14225 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14226 if test "$GCC" = yes; then
14227 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"`
14229 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14239 soname_spec='${libname}${release}${shared_ext}$major'
14240 shlibpath_var=LD_LIBRARY_PATH
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14252 soname_spec='${libname}${release}${shared_ext}$major'
14253 shlibpath_var=LD_LIBRARY_PATH
14254 shlibpath_overrides_runpath=no
14255 hardcode_into_libs=yes
14256 dynamic_linker='GNU ld.so'
14259 freebsd* | dragonfly*)
14260 # DragonFly does not have aout. When/if they implement a new
14261 # versioning mechanism, adjust this.
14262 if test -x /usr/bin/objformat; then
14263 objformat=`/usr/bin/objformat`
14266 freebsd[123]*) objformat=aout ;;
14267 *) objformat=elf ;;
14270 version_type=freebsd-$objformat
14271 case $version_type in
14273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14282 shlibpath_var=LD_LIBRARY_PATH
14285 shlibpath_overrides_runpath=yes
14287 freebsd3.[01]* | freebsdelf3.[01]*)
14288 shlibpath_overrides_runpath=yes
14289 hardcode_into_libs=yes
14291 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14292 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14293 shlibpath_overrides_runpath=no
14294 hardcode_into_libs=yes
14296 freebsd*) # from 4.6 on
14297 shlibpath_overrides_runpath=yes
14298 hardcode_into_libs=yes
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14308 soname_spec='${libname}${release}${shared_ext}$major'
14309 shlibpath_var=LD_LIBRARY_PATH
14310 hardcode_into_libs=yes
14313 hpux9* | hpux10* | hpux11*)
14314 # Give a soname corresponding to the major version so that dld.sl refuses to
14315 # link against other versions.
14322 hardcode_into_libs=yes
14323 dynamic_linker="$host_os dld.so"
14324 shlibpath_var=LD_LIBRARY_PATH
14325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14327 soname_spec='${libname}${release}${shared_ext}$major'
14328 if test "X$HPUX_IA64_MODE" = X32; then
14329 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14331 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14337 hardcode_into_libs=yes
14338 dynamic_linker="$host_os dld.sl"
14339 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342 soname_spec='${libname}${release}${shared_ext}$major'
14343 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14348 dynamic_linker="$host_os dld.sl"
14349 shlibpath_var=SHLIB_PATH
14350 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14352 soname_spec='${libname}${release}${shared_ext}$major'
14355 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14356 postinstall_cmds='chmod 555 $lib'
14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14366 shlibpath_var=LD_LIBRARY_PATH
14367 shlibpath_overrides_runpath=no
14368 hardcode_into_libs=yes
14371 irix5* | irix6* | nonstopux*)
14373 nonstopux*) version_type=nonstopux ;;
14375 if test "$lt_cv_prog_gnu_ld" = yes; then
14383 soname_spec='${libname}${release}${shared_ext}$major'
14384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14386 irix5* | nonstopux*)
14387 libsuff= shlibsuff=
14390 case $LD in # libtool.m4 will add one of these switches to LD
14391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14392 libsuff= shlibsuff= libmagic=32-bit;;
14393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14394 libsuff=32 shlibsuff=N32 libmagic=N32;;
14395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14397 *) libsuff= shlibsuff= libmagic=never-match;;
14401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14402 shlibpath_overrides_runpath=no
14403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14405 hardcode_into_libs=yes
14408 # No shared lib support for Linux oldld, aout, or coff.
14409 linux*oldld* | linux*aout* | linux*coff*)
14413 # This must be Linux ELF.
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14421 shlibpath_var=LD_LIBRARY_PATH
14422 shlibpath_overrides_runpath=no
14423 # This implies no fast_install, which is unacceptable.
14424 # Some rework will be needed to allow for fast_install
14425 # before this can be enabled.
14426 hardcode_into_libs=yes
14428 # Append ld.so.conf contents to the search path
14429 if test -f /etc/ld.so.conf; then
14430 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' ' '`
14431 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14434 # We used to test for /lib/ld.so.1 and disable shared libraries on
14435 # powerpc, because MkLinux only supported shared libraries with the
14436 # GNU dynamic linker. Since this was broken with cross compilers,
14437 # most powerpc-linux boxes support dynamic linking these days and
14438 # people can always --disable-shared, the test was removed, and we
14439 # assume the GNU/Linux dynamic linker is in use.
14440 dynamic_linker='GNU/Linux ld.so'
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 shlibpath_var=LD_LIBRARY_PATH
14450 shlibpath_overrides_runpath=no
14451 hardcode_into_libs=yes
14452 dynamic_linker='NetBSD ld.elf_so'
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 shlibpath_var=LD_LIBRARY_PATH
14462 shlibpath_overrides_runpath=no
14463 hardcode_into_libs=yes
14464 dynamic_linker='GNU ld.so'
14471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14474 dynamic_linker='NetBSD (a.out) ld.so'
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14477 soname_spec='${libname}${release}${shared_ext}$major'
14478 dynamic_linker='NetBSD ld.elf_so'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 shlibpath_overrides_runpath=yes
14482 hardcode_into_libs=yes
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488 shlibpath_var=LD_LIBRARY_PATH
14489 shlibpath_overrides_runpath=yes
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 shlibpath_var=LD_LIBRARY_PATH
14499 shlibpath_overrides_runpath=yes
14504 sys_lib_dlsearch_path_spec="/usr/lib"
14506 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14508 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14509 *) need_version=no ;;
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14516 openbsd2.[89] | openbsd2.[89].*)
14517 shlibpath_overrides_runpath=no
14520 shlibpath_overrides_runpath=yes
14524 shlibpath_overrides_runpath=yes
14529 libname_spec='$name'
14532 library_names_spec='$libname${shared_ext} $libname.a'
14533 dynamic_linker='OS/2 ld.exe'
14534 shlibpath_var=LIBPATH
14537 osf3* | osf4* | osf5*)
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14545 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553 soname_spec='${libname}${release}${shared_ext}$major'
14554 shlibpath_var=LD_LIBRARY_PATH
14555 shlibpath_overrides_runpath=yes
14556 hardcode_into_libs=yes
14557 # ldd complains unless libraries are executable
14558 postinstall_cmds='chmod +x $lib'
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14565 shlibpath_var=LD_LIBRARY_PATH
14566 shlibpath_overrides_runpath=yes
14567 if test "$with_gnu_ld" = yes; then
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 case $host_vendor in
14580 shlibpath_overrides_runpath=no
14582 export_dynamic_flag_spec='${wl}-Blargedynsym'
14583 runpath_var=LD_RUN_PATH
14591 shlibpath_overrides_runpath=no
14592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14598 if test -d /usr/nec ;then
14600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14601 soname_spec='$libname${shared_ext}.$major'
14602 shlibpath_var=LD_LIBRARY_PATH
14606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14607 version_type=freebsd-elf
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 hardcode_into_libs=yes
14614 if test "$with_gnu_ld" = yes; then
14615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14616 shlibpath_overrides_runpath=no
14618 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14619 shlibpath_overrides_runpath=yes
14622 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14626 sys_lib_dlsearch_path_spec='/usr/lib'
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 shlibpath_var=LD_LIBRARY_PATH
14640 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14641 echo "${ECHO_T}$dynamic_linker" >&6
14642 test "$dynamic_linker" = no && can_build_shared=no
14644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14645 if test "$GCC" = yes; then
14646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14649 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14650 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14651 hardcode_action_F77=
14652 if test -n "$hardcode_libdir_flag_spec_F77" || \
14653 test -n "$runpath_var_F77" || \
14654 test "X$hardcode_automatic_F77" = "Xyes" ; then
14656 # We can hardcode non-existant directories.
14657 if test "$hardcode_direct_F77" != no &&
14658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14659 # have to relink, otherwise we might link with an installed library
14660 # when we should be linking with a yet-to-be-installed one
14661 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14662 test "$hardcode_minus_L_F77" != no; then
14663 # Linking always hardcodes the temporary library directory.
14664 hardcode_action_F77=relink
14666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14667 hardcode_action_F77=immediate
14670 # We cannot hardcode anything, or else we can only hardcode existing
14672 hardcode_action_F77=unsupported
14674 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14675 echo "${ECHO_T}$hardcode_action_F77" >&6
14677 if test "$hardcode_action_F77" = relink; then
14678 # Fast installation is not supported
14679 enable_fast_install=no
14680 elif test "$shlibpath_overrides_runpath" = yes ||
14681 test "$enable_shared" = no; then
14682 # Fast installation is not necessary
14683 enable_fast_install=needless
14687 # The else clause should only fire when bootstrapping the
14688 # libtool distribution, otherwise you forgot to ship ltmain.sh
14689 # with your package, and you will get complaints that there are
14690 # no rules to generate ltmain.sh.
14691 if test -f "$ltmain"; then
14692 # See if we are running on zsh, and set the options which allow our commands through
14693 # without removal of \ escapes.
14694 if test -n "${ZSH_VERSION+set}" ; then
14695 setopt NO_GLOB_SUBST
14697 # Now quote all the things that may contain metacharacters while being
14698 # careful not to overquote the AC_SUBSTed values. We take copies of the
14699 # variables and quote the copies for generation of the libtool script.
14700 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14702 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14703 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14704 deplibs_check_method reload_flag reload_cmds need_locks \
14705 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14706 lt_cv_sys_global_symbol_to_c_name_address \
14707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14708 old_postinstall_cmds old_postuninstall_cmds \
14712 lt_prog_compiler_wl_F77 \
14713 lt_prog_compiler_pic_F77 \
14714 lt_prog_compiler_static_F77 \
14715 lt_prog_compiler_no_builtin_flag_F77 \
14716 export_dynamic_flag_spec_F77 \
14717 thread_safe_flag_spec_F77 \
14718 whole_archive_flag_spec_F77 \
14719 enable_shared_with_static_runtimes_F77 \
14720 old_archive_cmds_F77 \
14721 old_archive_from_new_cmds_F77 \
14722 predep_objects_F77 \
14723 postdep_objects_F77 \
14726 compiler_lib_search_path_F77 \
14728 archive_expsym_cmds_F77 \
14729 postinstall_cmds_F77 \
14730 postuninstall_cmds_F77 \
14731 old_archive_from_expsyms_cmds_F77 \
14732 allow_undefined_flag_F77 \
14733 no_undefined_flag_F77 \
14734 export_symbols_cmds_F77 \
14735 hardcode_libdir_flag_spec_F77 \
14736 hardcode_libdir_flag_spec_ld_F77 \
14737 hardcode_libdir_separator_F77 \
14738 hardcode_automatic_F77 \
14740 module_expsym_cmds_F77 \
14741 lt_cv_prog_compiler_c_o_F77 \
14742 exclude_expsyms_F77 \
14743 include_expsyms_F77; do
14746 old_archive_cmds_F77 | \
14747 old_archive_from_new_cmds_F77 | \
14748 archive_cmds_F77 | \
14749 archive_expsym_cmds_F77 | \
14750 module_cmds_F77 | \
14751 module_expsym_cmds_F77 | \
14752 old_archive_from_expsyms_cmds_F77 | \
14753 export_symbols_cmds_F77 | \
14754 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14755 postinstall_cmds | postuninstall_cmds | \
14756 old_postinstall_cmds | old_postuninstall_cmds | \
14757 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14758 # Double-quote double-evaled strings.
14759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14768 *'\$0 --fallback-echo"')
14769 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14775 cat <<__EOF__ >> "$cfgfile"
14776 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14778 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14780 # Shell to use when invoking shell scripts.
14783 # Whether or not to build shared libraries.
14784 build_libtool_libs=$enable_shared
14786 # Whether or not to build static libraries.
14787 build_old_libs=$enable_static
14789 # Whether or not to add -lc for building shared libraries.
14790 build_libtool_need_lc=$archive_cmds_need_lc_F77
14792 # Whether or not to disallow shared libs when runtime libs are static
14793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14795 # Whether or not to optimize for fast installation.
14796 fast_install=$enable_fast_install
14799 host_alias=$host_alias
14803 # The build system.
14804 build_alias=$build_alias
14808 # An echo program that does not interpret backslashes.
14813 AR_FLAGS=$lt_AR_FLAGS
14818 # LTCC compiler flags.
14819 LTCFLAGS=$lt_LTCFLAGS
14821 # A language-specific compiler.
14822 CC=$lt_compiler_F77
14824 # Is the compiler the GNU C compiler?
14830 # The linker used to build libraries.
14833 # Whether we need hard or soft links.
14836 # A BSD-compatible nm program.
14839 # A symbol stripping program
14842 # Used to examine libraries when file_magic_cmd begins "file"
14843 MAGIC_CMD=$MAGIC_CMD
14845 # Used on cygwin: DLL creation program.
14848 # Used on cygwin: object dumper.
14851 # Used on cygwin: assembler.
14854 # The name of the directory that contains temporary libtool files.
14857 # How to create reloadable object files.
14858 reload_flag=$lt_reload_flag
14859 reload_cmds=$lt_reload_cmds
14861 # How to pass a linker flag through the compiler.
14862 wl=$lt_lt_prog_compiler_wl_F77
14864 # Object file suffix (normally "o").
14865 objext="$ac_objext"
14867 # Old archive suffix (normally "a").
14870 # Shared library suffix (normally ".so").
14871 shrext_cmds='$shrext_cmds'
14873 # Executable file suffix (normally "").
14876 # Additional compiler flags for building library objects.
14877 pic_flag=$lt_lt_prog_compiler_pic_F77
14880 # What is the maximum length of a command?
14881 max_cmd_len=$lt_cv_sys_max_cmd_len
14883 # Does compiler simultaneously support -c and -o options?
14884 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14886 # Must we lock files when doing compilation?
14887 need_locks=$lt_need_locks
14889 # Do we need the lib prefix for modules?
14890 need_lib_prefix=$need_lib_prefix
14892 # Do we need a version for libraries?
14893 need_version=$need_version
14895 # Whether dlopen is supported.
14896 dlopen_support=$enable_dlopen
14898 # Whether dlopen of programs is supported.
14899 dlopen_self=$enable_dlopen_self
14901 # Whether dlopen of statically linked programs is supported.
14902 dlopen_self_static=$enable_dlopen_self_static
14904 # Compiler flag to prevent dynamic linking.
14905 link_static_flag=$lt_lt_prog_compiler_static_F77
14907 # Compiler flag to turn off builtin functions.
14908 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14910 # Compiler flag to allow reflexive dlopens.
14911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14913 # Compiler flag to generate shared objects directly from archives.
14914 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14916 # Compiler flag to generate thread-safe objects.
14917 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14919 # Library versioning type.
14920 version_type=$version_type
14922 # Format of library name prefix.
14923 libname_spec=$lt_libname_spec
14925 # List of archive names. First name is the real one, the rest are links.
14926 # The last name is the one that the linker finds with -lNAME.
14927 library_names_spec=$lt_library_names_spec
14929 # The coded name of the library, if different from the real name.
14930 soname_spec=$lt_soname_spec
14932 # Commands used to build and install an old-style archive.
14934 old_archive_cmds=$lt_old_archive_cmds_F77
14935 old_postinstall_cmds=$lt_old_postinstall_cmds
14936 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14938 # Create an old-style archive from a shared archive.
14939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14941 # Create a temporary old-style archive to link instead of a shared archive.
14942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14944 # Commands used to build and install a shared archive.
14945 archive_cmds=$lt_archive_cmds_F77
14946 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14947 postinstall_cmds=$lt_postinstall_cmds
14948 postuninstall_cmds=$lt_postuninstall_cmds
14950 # Commands used to build a loadable module (assumed same as above if empty)
14951 module_cmds=$lt_module_cmds_F77
14952 module_expsym_cmds=$lt_module_expsym_cmds_F77
14954 # Commands to strip libraries.
14955 old_striplib=$lt_old_striplib
14956 striplib=$lt_striplib
14958 # Dependencies to place before the objects being linked to create a
14960 predep_objects=$lt_predep_objects_F77
14962 # Dependencies to place after the objects being linked to create a
14964 postdep_objects=$lt_postdep_objects_F77
14966 # Dependencies to place before the objects being linked to create a
14968 predeps=$lt_predeps_F77
14970 # Dependencies to place after the objects being linked to create a
14972 postdeps=$lt_postdeps_F77
14974 # The library search path used internally by the compiler when linking
14975 # a shared library.
14976 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14978 # Method to check whether dependent libraries are shared objects.
14979 deplibs_check_method=$lt_deplibs_check_method
14981 # Command to use when deplibs_check_method == file_magic.
14982 file_magic_cmd=$lt_file_magic_cmd
14984 # Flag that allows shared libraries with undefined symbols to be built.
14985 allow_undefined_flag=$lt_allow_undefined_flag_F77
14987 # Flag that forces no undefined symbols.
14988 no_undefined_flag=$lt_no_undefined_flag_F77
14990 # Commands used to finish a libtool library installation in a directory.
14991 finish_cmds=$lt_finish_cmds
14993 # Same as above, but a single script fragment to be evaled but not shown.
14994 finish_eval=$lt_finish_eval
14996 # Take the output of nm and produce a listing of raw symbols and C names.
14997 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14999 # Transform the output of nm in a proper C declaration
15000 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15002 # Transform the output of nm in a C name address pair
15003 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15005 # This is the shared library runtime path variable.
15006 runpath_var=$runpath_var
15008 # This is the shared library path variable.
15009 shlibpath_var=$shlibpath_var
15011 # Is shlibpath searched before the hard-coded library search path?
15012 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15014 # How to hardcode a shared library path into an executable.
15015 hardcode_action=$hardcode_action_F77
15017 # Whether we should hardcode library paths into libraries.
15018 hardcode_into_libs=$hardcode_into_libs
15020 # Flag to hardcode \$libdir into a binary during linking.
15021 # This must work even if \$libdir does not exist.
15022 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15024 # If ld is used when linking, flag to hardcode \$libdir into
15025 # a binary during linking. This must work even if \$libdir does
15027 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15029 # Whether we need a single -rpath flag with a separated argument.
15030 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15032 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15033 # resulting binary.
15034 hardcode_direct=$hardcode_direct_F77
15036 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15037 # resulting binary.
15038 hardcode_minus_L=$hardcode_minus_L_F77
15040 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15041 # the resulting binary.
15042 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15044 # Set to yes if building a shared library automatically hardcodes DIR into the library
15045 # and all subsequent libraries and executables linked against it.
15046 hardcode_automatic=$hardcode_automatic_F77
15048 # Variables whose values should be saved in libtool wrapper scripts and
15049 # restored at relink time.
15050 variables_saved_for_relink="$variables_saved_for_relink"
15052 # Whether libtool must link a program against all its dependency libraries.
15053 link_all_deplibs=$link_all_deplibs_F77
15055 # Compile-time system search path for libraries
15056 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15058 # Run-time system search path for libraries
15059 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15061 # Fix the shell variable \$srcfile for the compiler.
15062 fix_srcfile_path="$fix_srcfile_path_F77"
15064 # Set to yes if exported symbols are required.
15065 always_export_symbols=$always_export_symbols_F77
15067 # The commands to list exported symbols.
15068 export_symbols_cmds=$lt_export_symbols_cmds_F77
15070 # The commands to extract the exported symbol list from a shared archive.
15071 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15073 # Symbols that should not be listed in the preloaded symbols.
15074 exclude_expsyms=$lt_exclude_expsyms_F77
15076 # Symbols that must always be exported.
15077 include_expsyms=$lt_include_expsyms_F77
15079 # ### END LIBTOOL TAG CONFIG: $tagname
15085 # If there is no Makefile yet, we rely on a make rule to execute
15086 # `config.status --recheck' to rerun these tests and create the
15087 # libtool script then.
15088 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15089 if test -f "$ltmain_in"; then
15090 test -f Makefile && make "$ltmain"
15096 ac_cpp='$CPP $CPPFLAGS'
15097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15109 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15113 # Source file extension for Java test sources.
15116 # Object file extension for compiled Java test sources.
15120 # Code to be used in simple compile tests
15121 lt_simple_compile_test_code="class foo {}\n"
15123 # Code to be used in simple link tests
15124 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15126 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15128 # If no C compiler was specified, use CC.
15131 # If no C compiler flags were specified, use CFLAGS.
15132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15134 # Allow CC to be a program name with arguments.
15138 # save warnings/boilerplate of simple test code
15139 ac_outfile=conftest.$ac_objext
15140 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15141 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15142 _lt_compiler_boilerplate=`cat conftest.err`
15145 ac_outfile=conftest.$ac_objext
15146 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15147 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15148 _lt_linker_boilerplate=`cat conftest.err`
15152 # Allow CC to be a program name with arguments.
15157 for cc_temp in $compiler""; do
15159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15165 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15168 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15169 archive_cmds_need_lc_GCJ=no
15171 old_archive_cmds_GCJ=$old_archive_cmds
15174 lt_prog_compiler_no_builtin_flag_GCJ=
15176 if test "$GCC" = yes; then
15177 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15180 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15181 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 lt_cv_prog_compiler_rtti_exceptions=no
15186 ac_outfile=conftest.$ac_objext
15187 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15188 lt_compiler_flag="-fno-rtti -fno-exceptions"
15189 # Insert the option either (1) after the last *FLAGS variable, or
15190 # (2) before a word containing "conftest.", or (3) at the end.
15191 # Note that $ac_compile itself does not contain backslashes and begins
15192 # with a dollar sign (not a hyphen), so the echo should work correctly.
15193 # The option is referenced via a variable to avoid confusing sed.
15194 lt_compile=`echo "$ac_compile" | $SED \
15195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15197 -e 's:$: $lt_compiler_flag:'`
15198 (eval echo "\"\$as_me:15198: $lt_compile\"" >&5)
15199 (eval "$lt_compile" 2>conftest.err)
15201 cat conftest.err >&5
15202 echo "$as_me:15202: \$? = $ac_status" >&5
15203 if (exit $ac_status) && test -s "$ac_outfile"; then
15204 # The compiler can only warn and ignore the option if not recognized
15205 # So say no if there are warnings other than the usual output.
15206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15209 lt_cv_prog_compiler_rtti_exceptions=yes
15215 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15219 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15226 lt_prog_compiler_wl_GCJ=
15227 lt_prog_compiler_pic_GCJ=
15228 lt_prog_compiler_static_GCJ=
15230 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15233 if test "$GCC" = yes; then
15234 lt_prog_compiler_wl_GCJ='-Wl,'
15235 lt_prog_compiler_static_GCJ='-static'
15239 # All AIX code is PIC.
15240 if test "$host_cpu" = ia64; then
15241 # AIX 5 now supports IA64 processor
15242 lt_prog_compiler_static_GCJ='-Bstatic'
15247 # FIXME: we need at least 68020 code to build shared libraries, but
15248 # adding the `-m68020' flag to GCC prevents building anything better,
15250 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15253 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15254 # PIC is the default for these OSes.
15257 mingw* | pw32* | os2*)
15258 # This hack is so that the source file can tell whether it is being
15259 # built for inclusion in a dll (and should export symbols for example).
15260 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15263 darwin* | rhapsody*)
15264 # PIC is the default on this platform
15265 # Common symbols not allowed in MH_DYLIB files
15266 lt_prog_compiler_pic_GCJ='-fno-common'
15270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15271 # Instead, we relocate shared libraries at runtime.
15275 # Just because we use GCC doesn't mean we suddenly get shared libraries
15276 # on systems that don't support them.
15277 lt_prog_compiler_can_build_shared_GCJ=no
15282 if test -d /usr/nec; then
15283 lt_prog_compiler_pic_GCJ=-Kconform_pic
15288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15289 # not for PA HP-UX.
15295 lt_prog_compiler_pic_GCJ='-fPIC'
15301 lt_prog_compiler_pic_GCJ='-fPIC'
15305 # PORTME Check for flag to pass linker flags through the system compiler.
15308 lt_prog_compiler_wl_GCJ='-Wl,'
15309 if test "$host_cpu" = ia64; then
15310 # AIX 5 now supports IA64 processor
15311 lt_prog_compiler_static_GCJ='-Bstatic'
15313 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15317 # PIC is the default on this platform
15318 # Common symbols not allowed in MH_DYLIB files
15319 case $cc_basename in
15321 lt_prog_compiler_pic_GCJ='-qnocommon'
15322 lt_prog_compiler_wl_GCJ='-Wl,'
15327 mingw* | pw32* | os2*)
15328 # This hack is so that the source file can tell whether it is being
15329 # built for inclusion in a dll (and should export symbols for example).
15330 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15333 hpux9* | hpux10* | hpux11*)
15334 lt_prog_compiler_wl_GCJ='-Wl,'
15335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15336 # not for PA HP-UX.
15342 lt_prog_compiler_pic_GCJ='+Z'
15345 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15346 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15349 irix5* | irix6* | nonstopux*)
15350 lt_prog_compiler_wl_GCJ='-Wl,'
15351 # PIC (with -KPIC) is the default.
15352 lt_prog_compiler_static_GCJ='-non_shared'
15356 lt_prog_compiler_pic_GCJ='-KPIC'
15357 lt_prog_compiler_static_GCJ='-Bstatic'
15361 case $cc_basename in
15363 lt_prog_compiler_wl_GCJ='-Wl,'
15364 lt_prog_compiler_pic_GCJ='-KPIC'
15365 lt_prog_compiler_static_GCJ='-static'
15367 pgcc* | pgf77* | pgf90* | pgf95*)
15368 # Portland Group compilers (*not* the Pentium gcc compiler,
15369 # which looks to be a dead project)
15370 lt_prog_compiler_wl_GCJ='-Wl,'
15371 lt_prog_compiler_pic_GCJ='-fpic'
15372 lt_prog_compiler_static_GCJ='-Bstatic'
15375 lt_prog_compiler_wl_GCJ='-Wl,'
15376 # All Alpha code is PIC.
15377 lt_prog_compiler_static_GCJ='-non_shared'
15382 osf3* | osf4* | osf5*)
15383 lt_prog_compiler_wl_GCJ='-Wl,'
15384 # All OSF/1 code is PIC.
15385 lt_prog_compiler_static_GCJ='-non_shared'
15389 lt_prog_compiler_pic_GCJ='-KPIC'
15390 lt_prog_compiler_static_GCJ='-Bstatic'
15391 case $cc_basename in
15392 f77* | f90* | f95*)
15393 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15395 lt_prog_compiler_wl_GCJ='-Wl,';;
15400 lt_prog_compiler_wl_GCJ='-Qoption ld '
15401 lt_prog_compiler_pic_GCJ='-PIC'
15402 lt_prog_compiler_static_GCJ='-Bstatic'
15405 sysv4 | sysv4.2uw2* | sysv4.3*)
15406 lt_prog_compiler_wl_GCJ='-Wl,'
15407 lt_prog_compiler_pic_GCJ='-KPIC'
15408 lt_prog_compiler_static_GCJ='-Bstatic'
15412 if test -d /usr/nec ;then
15413 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15414 lt_prog_compiler_static_GCJ='-Bstatic'
15418 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15419 lt_prog_compiler_wl_GCJ='-Wl,'
15420 lt_prog_compiler_pic_GCJ='-KPIC'
15421 lt_prog_compiler_static_GCJ='-Bstatic'
15425 lt_prog_compiler_wl_GCJ='-Wl,'
15426 lt_prog_compiler_can_build_shared_GCJ=no
15430 lt_prog_compiler_pic_GCJ='-pic'
15431 lt_prog_compiler_static_GCJ='-Bstatic'
15435 lt_prog_compiler_can_build_shared_GCJ=no
15440 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15441 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15444 # Check to make sure the PIC flag actually works.
15446 if test -n "$lt_prog_compiler_pic_GCJ"; then
15448 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15450 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 lt_prog_compiler_pic_works_GCJ=no
15454 ac_outfile=conftest.$ac_objext
15455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15456 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15457 # Insert the option either (1) after the last *FLAGS variable, or
15458 # (2) before a word containing "conftest.", or (3) at the end.
15459 # Note that $ac_compile itself does not contain backslashes and begins
15460 # with a dollar sign (not a hyphen), so the echo should work correctly.
15461 # The option is referenced via a variable to avoid confusing sed.
15462 lt_compile=`echo "$ac_compile" | $SED \
15463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15465 -e 's:$: $lt_compiler_flag:'`
15466 (eval echo "\"\$as_me:15466: $lt_compile\"" >&5)
15467 (eval "$lt_compile" 2>conftest.err)
15469 cat conftest.err >&5
15470 echo "$as_me:15470: \$? = $ac_status" >&5
15471 if (exit $ac_status) && test -s "$ac_outfile"; then
15472 # The compiler can only warn and ignore the option if not recognized
15473 # So say no if there are warnings other than the usual output.
15474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15477 lt_prog_compiler_pic_works_GCJ=yes
15483 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15484 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15486 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15487 case $lt_prog_compiler_pic_GCJ in
15489 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15492 lt_prog_compiler_pic_GCJ=
15493 lt_prog_compiler_can_build_shared_GCJ=no
15498 # For platforms which do not support PIC, -DPIC is meaningless:
15500 lt_prog_compiler_pic_GCJ=
15503 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15508 # Check to make sure the static flag actually works.
15510 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15511 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15512 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15513 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 lt_prog_compiler_static_works_GCJ=no
15517 save_LDFLAGS="$LDFLAGS"
15518 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15519 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15520 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15521 # The linker can only warn and ignore the option if not recognized
15522 # So say no if there are warnings
15523 if test -s conftest.err; then
15524 # Append any errors to the config.log.
15525 cat conftest.err 1>&5
15526 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15528 if diff conftest.exp conftest.er2 >/dev/null; then
15529 lt_prog_compiler_static_works_GCJ=yes
15532 lt_prog_compiler_static_works_GCJ=yes
15536 LDFLAGS="$save_LDFLAGS"
15539 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15540 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15542 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15545 lt_prog_compiler_static_GCJ=
15549 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15550 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15551 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15554 lt_cv_prog_compiler_c_o_GCJ=no
15555 $rm -r conftest 2>/dev/null
15559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15561 lt_compiler_flag="-o out/conftest2.$ac_objext"
15562 # Insert the option either (1) after the last *FLAGS variable, or
15563 # (2) before a word containing "conftest.", or (3) at the end.
15564 # Note that $ac_compile itself does not contain backslashes and begins
15565 # with a dollar sign (not a hyphen), so the echo should work correctly.
15566 lt_compile=`echo "$ac_compile" | $SED \
15567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15569 -e 's:$: $lt_compiler_flag:'`
15570 (eval echo "\"\$as_me:15570: $lt_compile\"" >&5)
15571 (eval "$lt_compile" 2>out/conftest.err)
15573 cat out/conftest.err >&5
15574 echo "$as_me:15574: \$? = $ac_status" >&5
15575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15577 # The compiler can only warn and ignore the option if not recognized
15578 # So say no if there are warnings
15579 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15582 lt_cv_prog_compiler_c_o_GCJ=yes
15587 # SGI C++ compiler will create directory out/ii_files/ for
15588 # template instantiation
15589 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15590 $rm out/* && rmdir out
15596 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15600 hard_links="nottested"
15601 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15602 # do not overwrite the value of need_locks provided by the user
15603 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15609 ln conftest.a conftest.b 2>&5 || hard_links=no
15610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15611 echo "$as_me:$LINENO: result: $hard_links" >&5
15612 echo "${ECHO_T}$hard_links" >&6
15613 if test "$hard_links" = no; then
15614 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15622 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15626 allow_undefined_flag_GCJ=
15627 enable_shared_with_static_runtimes_GCJ=no
15629 archive_expsym_cmds_GCJ=
15630 old_archive_From_new_cmds_GCJ=
15631 old_archive_from_expsyms_cmds_GCJ=
15632 export_dynamic_flag_spec_GCJ=
15633 whole_archive_flag_spec_GCJ=
15634 thread_safe_flag_spec_GCJ=
15635 hardcode_libdir_flag_spec_GCJ=
15636 hardcode_libdir_flag_spec_ld_GCJ=
15637 hardcode_libdir_separator_GCJ=
15638 hardcode_direct_GCJ=no
15639 hardcode_minus_L_GCJ=no
15640 hardcode_shlibpath_var_GCJ=unsupported
15641 link_all_deplibs_GCJ=unknown
15642 hardcode_automatic_GCJ=no
15644 module_expsym_cmds_GCJ=
15645 always_export_symbols_GCJ=no
15646 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15647 # include_expsyms should be a list of space-separated symbols to be *always*
15648 # included in the symbol list
15649 include_expsyms_GCJ=
15650 # exclude_expsyms can be an extended regexp of symbols to exclude
15651 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15652 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15653 # as well as any symbol that contains `d'.
15654 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15655 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15656 # platforms (ab)use it in PIC code, but their linkers get confused if
15657 # the symbol is explicitly referenced. Since portable code cannot
15658 # rely on this symbol name, it's probably fine to never include it in
15659 # preloaded symbol tables.
15660 extract_expsyms_cmds=
15661 # Just being paranoid about ensuring that cc_basename is set.
15662 for cc_temp in $compiler""; do
15664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15673 cygwin* | mingw* | pw32*)
15674 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15675 # When not using gcc, we currently assume that we are using
15676 # Microsoft Visual C++.
15677 if test "$GCC" != yes; then
15682 # we just hope/assume this is gcc and not c89 (= MSVC++)
15691 if test "$with_gnu_ld" = yes; then
15692 # If archive_cmds runs LD, not CC, wlarc should be empty
15695 # Set some defaults for GNU ld with shared library support. These
15696 # are reset later if shared libraries are not supported. Putting them
15697 # here allows them to be overridden if necessary.
15698 runpath_var=LD_RUN_PATH
15699 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15700 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15701 # ancient GNU ld didn't support --whole-archive et. al.
15702 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15703 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15705 whole_archive_flag_spec_GCJ=
15707 supports_anon_versioning=no
15708 case `$LD -v 2>/dev/null` in
15709 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15712 *\ 2.11.*) ;; # other 2.11 versions
15713 *) supports_anon_versioning=yes ;;
15716 # See if GNU ld supports shared libraries.
15718 aix3* | aix4* | aix5*)
15719 # On AIX/PPC, the GNU linker is very broken
15720 if test "$host_cpu" != ia64; then
15724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15725 *** to be unable to reliably create shared libraries on AIX.
15726 *** Therefore, libtool is disabling shared libraries support. If you
15727 *** really care for shared libraries, you may want to modify your PATH
15728 *** so that a non-GNU linker is found, and then restart.
15735 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)'
15736 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15737 hardcode_minus_L_GCJ=yes
15739 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15740 # that the semantics of dynamic libraries on AmigaOS, at least up
15741 # to version 4, is to share data among multiple programs linked
15742 # with the same dynamic library. Since this doesn't match the
15743 # behavior of shared libraries on other platforms, we can't use
15749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15750 allow_undefined_flag_GCJ=unsupported
15751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15752 # support --undefined. This deserves some investigation. FIXME
15753 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15759 cygwin* | mingw* | pw32*)
15760 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15761 # as there is no search path for DLLs.
15762 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15763 allow_undefined_flag_GCJ=unsupported
15764 always_export_symbols_GCJ=no
15765 enable_shared_with_static_runtimes_GCJ=yes
15766 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15768 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15769 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15770 # If the export-symbols file already is a .def file (1st line
15771 # is EXPORTS), use it as is; otherwise, prepend...
15772 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15773 cp $export_symbols $output_objdir/$soname.def;
15775 echo EXPORTS > $output_objdir/$soname.def;
15776 cat $export_symbols >> $output_objdir/$soname.def;
15778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15785 hardcode_direct_GCJ=no
15786 hardcode_shlibpath_var_GCJ=no
15787 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15788 export_dynamic_flag_spec_GCJ='${wl}-E'
15789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15790 # Instead, shared libraries are loaded at an image base (0x10000000 by
15791 # default) and relocated if they conflict, which is a slow very memory
15792 # consuming and fragmenting process. To avoid this, we pick a random,
15793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15795 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15796 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15802 case $cc_basename,$host_cpu in
15803 pgcc*) # Portland Group C compiler
15804 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'
15805 tmp_addflag=' $pic_flag'
15807 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15808 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'
15809 tmp_addflag=' $pic_flag -Mnomain' ;;
15810 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15811 tmp_addflag=' -i_dynamic' ;;
15812 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15813 tmp_addflag=' -i_dynamic -nofor_main' ;;
15814 ifc* | ifort*) # Intel Fortran compiler
15815 tmp_addflag=' -nofor_main' ;;
15817 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15819 if test $supports_anon_versioning = yes; then
15820 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15821 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15822 $echo "local: *; };" >> $output_objdir/$libname.ver~
15823 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15825 link_all_deplibs_GCJ=no
15831 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15833 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15836 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15837 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15842 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15847 *** create shared libraries on Solaris systems. Therefore, libtool
15848 *** is disabling shared libraries support. We urge you to upgrade GNU
15849 *** binutils to release 2.9.1 or newer. Another option is to modify
15850 *** your PATH or compiler configuration so that the native linker is
15851 *** used, and then restart.
15854 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15855 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15863 case `$LD -v 2>&1` in
15864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15868 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15869 *** reliably create shared libraries on SCO systems. Therefore, libtool
15870 *** is disabling shared libraries support. We urge you to upgrade GNU
15871 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15872 *** your PATH or compiler configuration so that the native linker is
15873 *** used, and then restart.
15878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15879 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15880 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15881 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15890 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15892 hardcode_direct_GCJ=yes
15893 hardcode_shlibpath_var_GCJ=no
15897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15898 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15899 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15906 if test "$ld_shlibs_GCJ" = no; then
15908 hardcode_libdir_flag_spec_GCJ=
15909 export_dynamic_flag_spec_GCJ=
15910 whole_archive_flag_spec_GCJ=
15913 # PORTME fill in a description of your system's linker (not GNU ld)
15916 allow_undefined_flag_GCJ=unsupported
15917 always_export_symbols_GCJ=yes
15918 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'
15919 # Note: this linker hardcodes the directories in LIBPATH if there
15920 # are no directories specified by -L.
15921 hardcode_minus_L_GCJ=yes
15922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15923 # Neither direct hardcoding nor static linking is supported with a
15925 hardcode_direct_GCJ=unsupported
15930 if test "$host_cpu" = ia64; then
15931 # On IA64, the linker does run time linking by default, so we don't
15932 # have to do anything special.
15933 aix_use_runtimelinking=no
15934 exp_sym_flag='-Bexport'
15937 # If we're using GNU nm, then we don't want the "-C" option.
15938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15939 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15940 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'
15942 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'
15944 aix_use_runtimelinking=no
15946 # Test if we are trying to use run time linking or normal
15947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15948 # need to do runtime linking.
15949 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15950 for ld_flag in $LDFLAGS; do
15951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15952 aix_use_runtimelinking=yes
15959 exp_sym_flag='-bexport'
15960 no_entry_flag='-bnoentry'
15963 # When large executables or shared objects are built, AIX ld can
15964 # have problems creating the table of contents. If linking a library
15965 # or program results in "error TOC overflow" add -mminimal-toc to
15966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15969 archive_cmds_GCJ=''
15970 hardcode_direct_GCJ=yes
15971 hardcode_libdir_separator_GCJ=':'
15972 link_all_deplibs_GCJ=yes
15974 if test "$GCC" = yes; then
15975 case $host_os in aix4.[012]|aix4.[012].*)
15976 # We only want to do this on AIX 4.2 and lower, the check
15977 # below for broken collect2 doesn't work under 4.3+
15978 collect2name=`${CC} -print-prog-name=collect2`
15979 if test -f "$collect2name" && \
15980 strings "$collect2name" | grep resolve_lib_name >/dev/null
15982 # We have reworked collect2
15983 hardcode_direct_GCJ=yes
15985 # We have old collect2
15986 hardcode_direct_GCJ=unsupported
15987 # It fails to find uninstalled libraries when the uninstalled
15988 # path is not listed in the libpath. Setting hardcode_minus_L
15989 # to unsupported forces relinking
15990 hardcode_minus_L_GCJ=yes
15991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15992 hardcode_libdir_separator_GCJ=
15996 shared_flag='-shared'
15997 if test "$aix_use_runtimelinking" = yes; then
15998 shared_flag="$shared_flag "'${wl}-G'
16002 if test "$host_cpu" = ia64; then
16003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16004 # chokes on -Wl,-G. The following line is correct:
16007 if test "$aix_use_runtimelinking" = yes; then
16008 shared_flag='${wl}-G'
16010 shared_flag='${wl}-bM:SRE'
16015 # It seems that -bexpall does not export symbols beginning with
16016 # underscore (_), so it is better to generate a list of symbols to export.
16017 always_export_symbols_GCJ=yes
16018 if test "$aix_use_runtimelinking" = yes; then
16019 # Warning - without using the other runtime loading flags (-brtl),
16020 # -berok will link without error, but may produce a broken library.
16021 allow_undefined_flag_GCJ='-berok'
16022 # Determine the default libpath from the value encoded in an empty executable.
16023 cat >conftest.$ac_ext <<_ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16038 rm -f conftest.$ac_objext conftest$ac_exeext
16039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040 (eval $ac_link) 2>conftest.er1
16042 grep -v '^ *+' conftest.er1 >conftest.err
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } &&
16053 { ac_try='test -s conftest$ac_exeext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16062 # Check for a 64-bit object if we didn't find anything.
16063 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; }
16066 echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16070 rm -f conftest.err conftest.$ac_objext \
16071 conftest$ac_exeext conftest.$ac_ext
16072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16074 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16075 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16077 if test "$host_cpu" = ia64; then
16078 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16079 allow_undefined_flag_GCJ="-z nodefs"
16080 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16082 # Determine the default libpath from the value encoded in an empty executable.
16083 cat >conftest.$ac_ext <<_ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16098 rm -f conftest.$ac_objext conftest$ac_exeext
16099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16100 (eval $ac_link) 2>conftest.er1
16102 grep -v '^ *+' conftest.er1 >conftest.err
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } &&
16107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109 (eval $ac_try) 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; } &&
16113 { ac_try='test -s conftest$ac_exeext'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; }; then
16120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16122 # Check for a 64-bit object if we didn't find anything.
16123 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; }
16126 echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16130 rm -f conftest.err conftest.$ac_objext \
16131 conftest$ac_exeext conftest.$ac_ext
16132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16134 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16135 # Warning - without using the other run time loading flags,
16136 # -berok will link without error, but may produce a broken library.
16137 no_undefined_flag_GCJ=' ${wl}-bernotok'
16138 allow_undefined_flag_GCJ=' ${wl}-berok'
16139 # Exported symbols can be pulled into shared objects from archives
16140 whole_archive_flag_spec_GCJ='$convenience'
16141 archive_cmds_need_lc_GCJ=yes
16142 # This is similar to how AIX traditionally builds its shared libraries.
16143 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16149 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)'
16150 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16151 hardcode_minus_L_GCJ=yes
16152 # see comment about different semantics on the GNU ld section
16157 export_dynamic_flag_spec_GCJ=-rdynamic
16160 cygwin* | mingw* | pw32*)
16161 # When not using gcc, we currently assume that we are using
16162 # Microsoft Visual C++.
16163 # hardcode_libdir_flag_spec is actually meaningless, as there is
16164 # no search path for DLLs.
16165 hardcode_libdir_flag_spec_GCJ=' '
16166 allow_undefined_flag_GCJ=unsupported
16167 # Tell ltmain to make .lib files, not .a files.
16169 # Tell ltmain to make .dll files, not .so files.
16171 # FIXME: Setting linknames here is a bad hack.
16172 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16173 # The linker will automatically build a .lib file if we build a DLL.
16174 old_archive_From_new_cmds_GCJ='true'
16175 # FIXME: Should let the user specify the lib program.
16176 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16177 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16178 enable_shared_with_static_runtimes_GCJ=yes
16181 darwin* | rhapsody*)
16183 rhapsody* | darwin1.[012])
16184 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16187 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16188 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16190 case ${MACOSX_DEPLOYMENT_TARGET} in
16192 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16195 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16201 archive_cmds_need_lc_GCJ=no
16202 hardcode_direct_GCJ=no
16203 hardcode_automatic_GCJ=yes
16204 hardcode_shlibpath_var_GCJ=unsupported
16205 whole_archive_flag_spec_GCJ=''
16206 link_all_deplibs_GCJ=yes
16207 if test "$GCC" = yes ; then
16208 output_verbose_link_cmd='echo'
16209 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16210 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16211 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16212 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}'
16213 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}'
16215 case $cc_basename in
16217 output_verbose_link_cmd='echo'
16218 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16219 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16220 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16221 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}'
16222 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}'
16232 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16234 hardcode_shlibpath_var_GCJ=no
16241 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16242 # support. Future versions do this automatically, but an explicit c++rt0.o
16243 # does not break anything, and helps significantly (at the cost of a little
16246 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16247 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16248 hardcode_direct_GCJ=yes
16249 hardcode_shlibpath_var_GCJ=no
16252 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16254 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16255 hardcode_direct_GCJ=yes
16256 hardcode_minus_L_GCJ=yes
16257 hardcode_shlibpath_var_GCJ=no
16260 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16261 freebsd* | dragonfly*)
16262 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16263 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16264 hardcode_direct_GCJ=yes
16265 hardcode_shlibpath_var_GCJ=no
16268 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16270 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16271 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16272 hardcode_direct_GCJ=yes
16273 hardcode_shlibpath_var_GCJ=no
16274 link_all_deplibs_GCJ=no
16278 if test "$GCC" = yes; then
16279 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'
16281 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'
16283 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16284 hardcode_libdir_separator_GCJ=:
16285 hardcode_direct_GCJ=yes
16287 # hardcode_minus_L: Not really in the search PATH,
16288 # but as the default location of the library.
16289 hardcode_minus_L_GCJ=yes
16290 export_dynamic_flag_spec_GCJ='${wl}-E'
16294 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16295 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16297 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16299 if test "$with_gnu_ld" = no; then
16300 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16301 hardcode_libdir_separator_GCJ=:
16303 hardcode_direct_GCJ=yes
16304 export_dynamic_flag_spec_GCJ='${wl}-E'
16306 # hardcode_minus_L: Not really in the search PATH,
16307 # but as the default location of the library.
16308 hardcode_minus_L_GCJ=yes
16313 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16316 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16319 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16322 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16328 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16331 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16334 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16338 if test "$with_gnu_ld" = no; then
16339 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16340 hardcode_libdir_separator_GCJ=:
16344 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16345 hardcode_direct_GCJ=no
16346 hardcode_shlibpath_var_GCJ=no
16349 hardcode_direct_GCJ=yes
16350 export_dynamic_flag_spec_GCJ='${wl}-E'
16352 # hardcode_minus_L: Not really in the search PATH,
16353 # but as the default location of the library.
16354 hardcode_minus_L_GCJ=yes
16360 irix5* | irix6* | nonstopux*)
16361 if test "$GCC" = yes; then
16362 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'
16364 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'
16365 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16367 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16368 hardcode_libdir_separator_GCJ=:
16369 link_all_deplibs_GCJ=yes
16372 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16374 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16376 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16379 hardcode_direct_GCJ=yes
16380 hardcode_shlibpath_var_GCJ=no
16384 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16385 hardcode_direct_GCJ=yes
16386 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16387 hardcode_libdir_separator_GCJ=:
16388 hardcode_shlibpath_var_GCJ=no
16392 hardcode_direct_GCJ=yes
16393 hardcode_shlibpath_var_GCJ=no
16394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16395 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16396 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16397 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16398 export_dynamic_flag_spec_GCJ='${wl}-E'
16401 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16402 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16403 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16406 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16414 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16415 hardcode_minus_L_GCJ=yes
16416 allow_undefined_flag_GCJ=unsupported
16417 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'
16418 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16422 if test "$GCC" = yes; then
16423 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16424 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'
16426 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16427 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'
16429 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16430 hardcode_libdir_separator_GCJ=:
16433 osf4* | osf5*) # as osf3* with the addition of -msym flag
16434 if test "$GCC" = yes; then
16435 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16436 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'
16437 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16439 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16440 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'
16441 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~
16442 $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'
16444 # Both c and cxx compiler support -rpath directly
16445 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16447 hardcode_libdir_separator_GCJ=:
16451 no_undefined_flag_GCJ=' -z text'
16452 if test "$GCC" = yes; then
16454 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16455 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16456 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16459 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16460 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16461 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16464 hardcode_shlibpath_var_GCJ=no
16466 solaris2.[0-5] | solaris2.[0-5].*) ;;
16468 # The compiler driver will combine linker options so we
16469 # cannot just pass the convience library names through
16470 # without $wl, iff we do not link with $LD.
16471 # Luckily, gcc supports the same syntax we need for Sun Studio.
16472 # Supported since Solaris 2.6 (maybe 2.5.1?)
16475 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16477 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' ;;
16480 link_all_deplibs_GCJ=yes
16484 if test "x$host_vendor" = xsequent; then
16485 # Use $CC to link under sequent, because it throws in some extra .o
16486 # files that make .init and .fini sections work.
16487 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16489 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16491 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16492 hardcode_direct_GCJ=yes
16493 hardcode_minus_L_GCJ=yes
16494 hardcode_shlibpath_var_GCJ=no
16498 case $host_vendor in
16500 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_direct_GCJ=yes # is this really true???
16504 ## LD is ld it makes a PLAMLIB
16505 ## CC just makes a GrossModule.
16506 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16507 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16508 hardcode_direct_GCJ=no
16511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16515 runpath_var='LD_RUN_PATH'
16516 hardcode_shlibpath_var_GCJ=no
16520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521 hardcode_shlibpath_var_GCJ=no
16522 export_dynamic_flag_spec_GCJ='-Bexport'
16526 if test -d /usr/nec; then
16527 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16528 hardcode_shlibpath_var_GCJ=no
16529 runpath_var=LD_RUN_PATH
16530 hardcode_runpath_var=yes
16535 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16536 no_undefined_flag_GCJ='${wl}-z,text'
16537 archive_cmds_need_lc_GCJ=no
16538 hardcode_shlibpath_var_GCJ=no
16539 runpath_var='LD_RUN_PATH'
16541 if test "$GCC" = yes; then
16542 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16545 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16546 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16550 sysv5* | sco3.2v5* | sco5v6*)
16551 # Note: We can NOT use -z defs as we might desire, because we do not
16552 # link with -lc, and that would cause any symbols used from libc to
16553 # always be unresolved, which means just about no library would
16554 # ever link correctly. If we're not using GNU ld we use -z text
16555 # though, which does catch some bad symbols but isn't as heavy-handed
16557 no_undefined_flag_GCJ='${wl}-z,text'
16558 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16559 archive_cmds_need_lc_GCJ=no
16560 hardcode_shlibpath_var_GCJ=no
16561 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16562 hardcode_libdir_separator_GCJ=':'
16563 link_all_deplibs_GCJ=yes
16564 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16565 runpath_var='LD_RUN_PATH'
16567 if test "$GCC" = yes; then
16568 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16571 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16572 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16579 hardcode_shlibpath_var_GCJ=no
16588 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16589 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16590 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16593 # Do we need to explicitly link libc?
16595 case "x$archive_cmds_need_lc_GCJ" in
16597 # Assume -lc should be added
16598 archive_cmds_need_lc_GCJ=yes
16600 if test "$enable_shared" = yes && test "$GCC" = yes; then
16601 case $archive_cmds_GCJ in
16603 # FIXME: we may have to deal with multi-command sequences.
16606 # Test whether the compiler implicitly links with -lc since on some
16607 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16608 # to ld, don't add -lc before -lgcc.
16609 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16610 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615 (eval $ac_compile) 2>&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } 2>conftest.err; then
16621 libobjs=conftest.$ac_objext
16623 wl=$lt_prog_compiler_wl_GCJ
16624 pic_flag=$lt_prog_compiler_pic_GCJ
16630 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16631 allow_undefined_flag_GCJ=
16632 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16633 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }
16638 archive_cmds_need_lc_GCJ=no
16640 archive_cmds_need_lc_GCJ=yes
16642 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16644 cat conftest.err 1>&5
16647 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16648 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16655 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16656 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16657 library_names_spec=
16658 libname_spec='lib$name'
16662 postuninstall_cmds=
16666 shlibpath_overrides_runpath=unknown
16668 dynamic_linker="$host_os ld.so"
16669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16670 if test "$GCC" = yes; then
16671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16672 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16673 # if the path contains ";" then we assume it to be the separator
16674 # otherwise default to the standard path separator (i.e. ":") - it is
16675 # assumed that no part of a normal pathname contains ";" but that should
16676 # okay in the real world where ";" in dirpaths is itself problematic.
16677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16682 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16684 need_lib_prefix=unknown
16685 hardcode_into_libs=no
16687 # when you set need_version to no, make sure it does not cause -set_version
16688 # flags to be left without arguments
16689 need_version=unknown
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16695 shlibpath_var=LIBPATH
16697 # AIX 3 has no versioning support, so we append a major version to the name.
16698 soname_spec='${libname}${release}${shared_ext}$major'
16705 hardcode_into_libs=yes
16706 if test "$host_cpu" = ia64; then
16707 # AIX 5 supports IA64
16708 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16709 shlibpath_var=LD_LIBRARY_PATH
16711 # With GCC up to 2.95.x, collect2 would create an import file
16712 # for dependence libraries. The import file would start with
16713 # the line `#! .'. This would cause the generated library to
16714 # depend on `.', always an invalid library. This was fixed in
16715 # development snapshots of GCC prior to 3.0.
16717 aix4 | aix4.[01] | aix4.[01].*)
16718 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16720 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16723 can_build_shared=no
16727 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16728 # soname into executable. Probably we can add versioning support to
16729 # collect2, so additional links can be useful in future.
16730 if test "$aix_use_runtimelinking" = yes; then
16731 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16732 # instead of lib<name>.a to let people know that these are not
16733 # typical AIX shared libraries.
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736 # We preserve .a as extension for shared libraries through AIX4.2
16737 # and later when we are not doing run time linking.
16738 library_names_spec='${libname}${release}.a $libname.a'
16739 soname_spec='${libname}${release}${shared_ext}$major'
16741 shlibpath_var=LIBPATH
16746 library_names_spec='$libname.ixlibrary $libname.a'
16747 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16748 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'
16752 library_names_spec='${libname}${shared_ext}'
16753 dynamic_linker="$host_os ld.so"
16754 shlibpath_var=LIBRARY_PATH
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16761 soname_spec='${libname}${release}${shared_ext}$major'
16762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16766 # the default ld.so.conf also contains /usr/contrib/lib and
16767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16768 # libtool to hard-code these into programs
16771 cygwin* | mingw* | pw32*)
16772 version_type=windows
16777 case $GCC,$host_os in
16778 yes,cygwin* | yes,mingw* | yes,pw32*)
16779 library_names_spec='$libname.dll.a'
16780 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16781 postinstall_cmds='base_file=`basename \${file}`~
16782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16783 dldir=$destdir/`dirname \$dlpath`~
16784 test -d \$dldir || mkdir -p \$dldir~
16785 $install_prog $dir/$dlname \$dldir/$dlname~
16786 chmod a+x \$dldir/$dlname'
16787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16788 dlpath=$dir/\$dldll~
16790 shlibpath_overrides_runpath=yes
16794 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16795 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16796 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16799 # MinGW DLLs use traditional 'lib' prefix
16800 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16801 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16802 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16803 # It is most probably a Windows format PATH printed by
16804 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16805 # path with ; separators, and with drive letters. We can handle the
16806 # drive letters (cygwin fileutils understands them), so leave them,
16807 # especially as we might pass files found there to a mingw objdump,
16808 # which wouldn't understand a cygwinified path. Ahh.
16809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16815 # pw32 DLLs use 'pw' prefix rather than 'lib'
16816 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16822 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16825 dynamic_linker='Win32 ld.exe'
16826 # FIXME: first we should search . and the directory the executable is in
16830 darwin* | rhapsody*)
16831 dynamic_linker="$host_os dyld"
16832 version_type=darwin
16835 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16836 soname_spec='${libname}${release}${major}$shared_ext'
16837 shlibpath_overrides_runpath=yes
16838 shlibpath_var=DYLD_LIBRARY_PATH
16839 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16840 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16841 if test "$GCC" = yes; then
16842 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"`
16844 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16846 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16854 soname_spec='${libname}${release}${shared_ext}$major'
16855 shlibpath_var=LD_LIBRARY_PATH
16866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16867 soname_spec='${libname}${release}${shared_ext}$major'
16868 shlibpath_var=LD_LIBRARY_PATH
16869 shlibpath_overrides_runpath=no
16870 hardcode_into_libs=yes
16871 dynamic_linker='GNU ld.so'
16874 freebsd* | dragonfly*)
16875 # DragonFly does not have aout. When/if they implement a new
16876 # versioning mechanism, adjust this.
16877 if test -x /usr/bin/objformat; then
16878 objformat=`/usr/bin/objformat`
16881 freebsd[123]*) objformat=aout ;;
16882 *) objformat=elf ;;
16885 version_type=freebsd-$objformat
16886 case $version_type in
16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16897 shlibpath_var=LD_LIBRARY_PATH
16900 shlibpath_overrides_runpath=yes
16902 freebsd3.[01]* | freebsdelf3.[01]*)
16903 shlibpath_overrides_runpath=yes
16904 hardcode_into_libs=yes
16906 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16907 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16908 shlibpath_overrides_runpath=no
16909 hardcode_into_libs=yes
16911 freebsd*) # from 4.6 on
16912 shlibpath_overrides_runpath=yes
16913 hardcode_into_libs=yes
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16923 soname_spec='${libname}${release}${shared_ext}$major'
16924 shlibpath_var=LD_LIBRARY_PATH
16925 hardcode_into_libs=yes
16928 hpux9* | hpux10* | hpux11*)
16929 # Give a soname corresponding to the major version so that dld.sl refuses to
16930 # link against other versions.
16937 hardcode_into_libs=yes
16938 dynamic_linker="$host_os dld.so"
16939 shlibpath_var=LD_LIBRARY_PATH
16940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
16943 if test "X$HPUX_IA64_MODE" = X32; then
16944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16952 hardcode_into_libs=yes
16953 dynamic_linker="$host_os dld.sl"
16954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957 soname_spec='${libname}${release}${shared_ext}$major'
16958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16963 dynamic_linker="$host_os dld.sl"
16964 shlibpath_var=SHLIB_PATH
16965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967 soname_spec='${libname}${release}${shared_ext}$major'
16970 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16971 postinstall_cmds='chmod 555 $lib'
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16979 soname_spec='${libname}${release}${shared_ext}$major'
16980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16981 shlibpath_var=LD_LIBRARY_PATH
16982 shlibpath_overrides_runpath=no
16983 hardcode_into_libs=yes
16986 irix5* | irix6* | nonstopux*)
16988 nonstopux*) version_type=nonstopux ;;
16990 if test "$lt_cv_prog_gnu_ld" = yes; then
16998 soname_spec='${libname}${release}${shared_ext}$major'
16999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17001 irix5* | nonstopux*)
17002 libsuff= shlibsuff=
17005 case $LD in # libtool.m4 will add one of these switches to LD
17006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17007 libsuff= shlibsuff= libmagic=32-bit;;
17008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17009 libsuff=32 shlibsuff=N32 libmagic=N32;;
17010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17012 *) libsuff= shlibsuff= libmagic=never-match;;
17016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17017 shlibpath_overrides_runpath=no
17018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17020 hardcode_into_libs=yes
17023 # No shared lib support for Linux oldld, aout, or coff.
17024 linux*oldld* | linux*aout* | linux*coff*)
17028 # This must be Linux ELF.
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034 soname_spec='${libname}${release}${shared_ext}$major'
17035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17036 shlibpath_var=LD_LIBRARY_PATH
17037 shlibpath_overrides_runpath=no
17038 # This implies no fast_install, which is unacceptable.
17039 # Some rework will be needed to allow for fast_install
17040 # before this can be enabled.
17041 hardcode_into_libs=yes
17043 # Append ld.so.conf contents to the search path
17044 if test -f /etc/ld.so.conf; then
17045 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' ' '`
17046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17049 # We used to test for /lib/ld.so.1 and disable shared libraries on
17050 # powerpc, because MkLinux only supported shared libraries with the
17051 # GNU dynamic linker. Since this was broken with cross compilers,
17052 # most powerpc-linux boxes support dynamic linking these days and
17053 # people can always --disable-shared, the test was removed, and we
17054 # assume the GNU/Linux dynamic linker is in use.
17055 dynamic_linker='GNU/Linux ld.so'
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=no
17066 hardcode_into_libs=yes
17067 dynamic_linker='NetBSD ld.elf_so'
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 shlibpath_var=LD_LIBRARY_PATH
17077 shlibpath_overrides_runpath=no
17078 hardcode_into_libs=yes
17079 dynamic_linker='GNU ld.so'
17086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17089 dynamic_linker='NetBSD (a.out) ld.so'
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 dynamic_linker='NetBSD ld.elf_so'
17095 shlibpath_var=LD_LIBRARY_PATH
17096 shlibpath_overrides_runpath=yes
17097 hardcode_into_libs=yes
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103 shlibpath_var=LD_LIBRARY_PATH
17104 shlibpath_overrides_runpath=yes
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17112 soname_spec='${libname}${release}${shared_ext}$major'
17113 shlibpath_var=LD_LIBRARY_PATH
17114 shlibpath_overrides_runpath=yes
17119 sys_lib_dlsearch_path_spec="/usr/lib"
17121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17124 *) need_version=no ;;
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17128 shlibpath_var=LD_LIBRARY_PATH
17129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17131 openbsd2.[89] | openbsd2.[89].*)
17132 shlibpath_overrides_runpath=no
17135 shlibpath_overrides_runpath=yes
17139 shlibpath_overrides_runpath=yes
17144 libname_spec='$name'
17147 library_names_spec='$libname${shared_ext} $libname.a'
17148 dynamic_linker='OS/2 ld.exe'
17149 shlibpath_var=LIBPATH
17152 osf3* | osf4* | osf5*)
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158 shlibpath_var=LD_LIBRARY_PATH
17159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168 soname_spec='${libname}${release}${shared_ext}$major'
17169 shlibpath_var=LD_LIBRARY_PATH
17170 shlibpath_overrides_runpath=yes
17171 hardcode_into_libs=yes
17172 # ldd complains unless libraries are executable
17173 postinstall_cmds='chmod +x $lib'
17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17180 shlibpath_var=LD_LIBRARY_PATH
17181 shlibpath_overrides_runpath=yes
17182 if test "$with_gnu_ld" = yes; then
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17191 soname_spec='${libname}${release}${shared_ext}$major'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 case $host_vendor in
17195 shlibpath_overrides_runpath=no
17197 export_dynamic_flag_spec='${wl}-Blargedynsym'
17198 runpath_var=LD_RUN_PATH
17206 shlibpath_overrides_runpath=no
17207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17213 if test -d /usr/nec ;then
17215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17216 soname_spec='$libname${shared_ext}.$major'
17217 shlibpath_var=LD_LIBRARY_PATH
17221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17222 version_type=freebsd-elf
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17226 soname_spec='${libname}${release}${shared_ext}$major'
17227 shlibpath_var=LD_LIBRARY_PATH
17228 hardcode_into_libs=yes
17229 if test "$with_gnu_ld" = yes; then
17230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17231 shlibpath_overrides_runpath=no
17233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17234 shlibpath_overrides_runpath=yes
17237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17241 sys_lib_dlsearch_path_spec='/usr/lib'
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 soname_spec='${libname}${release}${shared_ext}$major'
17248 shlibpath_var=LD_LIBRARY_PATH
17255 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17256 echo "${ECHO_T}$dynamic_linker" >&6
17257 test "$dynamic_linker" = no && can_build_shared=no
17259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17260 if test "$GCC" = yes; then
17261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17264 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17266 hardcode_action_GCJ=
17267 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17268 test -n "$runpath_var_GCJ" || \
17269 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17271 # We can hardcode non-existant directories.
17272 if test "$hardcode_direct_GCJ" != no &&
17273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17274 # have to relink, otherwise we might link with an installed library
17275 # when we should be linking with a yet-to-be-installed one
17276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17277 test "$hardcode_minus_L_GCJ" != no; then
17278 # Linking always hardcodes the temporary library directory.
17279 hardcode_action_GCJ=relink
17281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17282 hardcode_action_GCJ=immediate
17285 # We cannot hardcode anything, or else we can only hardcode existing
17287 hardcode_action_GCJ=unsupported
17289 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17290 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17292 if test "$hardcode_action_GCJ" = relink; then
17293 # Fast installation is not supported
17294 enable_fast_install=no
17295 elif test "$shlibpath_overrides_runpath" = yes ||
17296 test "$enable_shared" = no; then
17297 # Fast installation is not necessary
17298 enable_fast_install=needless
17302 # The else clause should only fire when bootstrapping the
17303 # libtool distribution, otherwise you forgot to ship ltmain.sh
17304 # with your package, and you will get complaints that there are
17305 # no rules to generate ltmain.sh.
17306 if test -f "$ltmain"; then
17307 # See if we are running on zsh, and set the options which allow our commands through
17308 # without removal of \ escapes.
17309 if test -n "${ZSH_VERSION+set}" ; then
17310 setopt NO_GLOB_SUBST
17312 # Now quote all the things that may contain metacharacters while being
17313 # careful not to overquote the AC_SUBSTed values. We take copies of the
17314 # variables and quote the copies for generation of the libtool script.
17315 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17319 deplibs_check_method reload_flag reload_cmds need_locks \
17320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17321 lt_cv_sys_global_symbol_to_c_name_address \
17322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17323 old_postinstall_cmds old_postuninstall_cmds \
17327 lt_prog_compiler_wl_GCJ \
17328 lt_prog_compiler_pic_GCJ \
17329 lt_prog_compiler_static_GCJ \
17330 lt_prog_compiler_no_builtin_flag_GCJ \
17331 export_dynamic_flag_spec_GCJ \
17332 thread_safe_flag_spec_GCJ \
17333 whole_archive_flag_spec_GCJ \
17334 enable_shared_with_static_runtimes_GCJ \
17335 old_archive_cmds_GCJ \
17336 old_archive_from_new_cmds_GCJ \
17337 predep_objects_GCJ \
17338 postdep_objects_GCJ \
17341 compiler_lib_search_path_GCJ \
17343 archive_expsym_cmds_GCJ \
17344 postinstall_cmds_GCJ \
17345 postuninstall_cmds_GCJ \
17346 old_archive_from_expsyms_cmds_GCJ \
17347 allow_undefined_flag_GCJ \
17348 no_undefined_flag_GCJ \
17349 export_symbols_cmds_GCJ \
17350 hardcode_libdir_flag_spec_GCJ \
17351 hardcode_libdir_flag_spec_ld_GCJ \
17352 hardcode_libdir_separator_GCJ \
17353 hardcode_automatic_GCJ \
17355 module_expsym_cmds_GCJ \
17356 lt_cv_prog_compiler_c_o_GCJ \
17357 exclude_expsyms_GCJ \
17358 include_expsyms_GCJ; do
17361 old_archive_cmds_GCJ | \
17362 old_archive_from_new_cmds_GCJ | \
17363 archive_cmds_GCJ | \
17364 archive_expsym_cmds_GCJ | \
17365 module_cmds_GCJ | \
17366 module_expsym_cmds_GCJ | \
17367 old_archive_from_expsyms_cmds_GCJ | \
17368 export_symbols_cmds_GCJ | \
17369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17370 postinstall_cmds | postuninstall_cmds | \
17371 old_postinstall_cmds | old_postuninstall_cmds | \
17372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17373 # Double-quote double-evaled strings.
17374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17383 *'\$0 --fallback-echo"')
17384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17390 cat <<__EOF__ >> "$cfgfile"
17391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17395 # Shell to use when invoking shell scripts.
17398 # Whether or not to build shared libraries.
17399 build_libtool_libs=$enable_shared
17401 # Whether or not to build static libraries.
17402 build_old_libs=$enable_static
17404 # Whether or not to add -lc for building shared libraries.
17405 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17407 # Whether or not to disallow shared libs when runtime libs are static
17408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17410 # Whether or not to optimize for fast installation.
17411 fast_install=$enable_fast_install
17414 host_alias=$host_alias
17418 # The build system.
17419 build_alias=$build_alias
17423 # An echo program that does not interpret backslashes.
17428 AR_FLAGS=$lt_AR_FLAGS
17433 # LTCC compiler flags.
17434 LTCFLAGS=$lt_LTCFLAGS
17436 # A language-specific compiler.
17437 CC=$lt_compiler_GCJ
17439 # Is the compiler the GNU C compiler?
17445 # The linker used to build libraries.
17448 # Whether we need hard or soft links.
17451 # A BSD-compatible nm program.
17454 # A symbol stripping program
17457 # Used to examine libraries when file_magic_cmd begins "file"
17458 MAGIC_CMD=$MAGIC_CMD
17460 # Used on cygwin: DLL creation program.
17463 # Used on cygwin: object dumper.
17466 # Used on cygwin: assembler.
17469 # The name of the directory that contains temporary libtool files.
17472 # How to create reloadable object files.
17473 reload_flag=$lt_reload_flag
17474 reload_cmds=$lt_reload_cmds
17476 # How to pass a linker flag through the compiler.
17477 wl=$lt_lt_prog_compiler_wl_GCJ
17479 # Object file suffix (normally "o").
17480 objext="$ac_objext"
17482 # Old archive suffix (normally "a").
17485 # Shared library suffix (normally ".so").
17486 shrext_cmds='$shrext_cmds'
17488 # Executable file suffix (normally "").
17491 # Additional compiler flags for building library objects.
17492 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17495 # What is the maximum length of a command?
17496 max_cmd_len=$lt_cv_sys_max_cmd_len
17498 # Does compiler simultaneously support -c and -o options?
17499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17501 # Must we lock files when doing compilation?
17502 need_locks=$lt_need_locks
17504 # Do we need the lib prefix for modules?
17505 need_lib_prefix=$need_lib_prefix
17507 # Do we need a version for libraries?
17508 need_version=$need_version
17510 # Whether dlopen is supported.
17511 dlopen_support=$enable_dlopen
17513 # Whether dlopen of programs is supported.
17514 dlopen_self=$enable_dlopen_self
17516 # Whether dlopen of statically linked programs is supported.
17517 dlopen_self_static=$enable_dlopen_self_static
17519 # Compiler flag to prevent dynamic linking.
17520 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17522 # Compiler flag to turn off builtin functions.
17523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17525 # Compiler flag to allow reflexive dlopens.
17526 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17528 # Compiler flag to generate shared objects directly from archives.
17529 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17531 # Compiler flag to generate thread-safe objects.
17532 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17534 # Library versioning type.
17535 version_type=$version_type
17537 # Format of library name prefix.
17538 libname_spec=$lt_libname_spec
17540 # List of archive names. First name is the real one, the rest are links.
17541 # The last name is the one that the linker finds with -lNAME.
17542 library_names_spec=$lt_library_names_spec
17544 # The coded name of the library, if different from the real name.
17545 soname_spec=$lt_soname_spec
17547 # Commands used to build and install an old-style archive.
17549 old_archive_cmds=$lt_old_archive_cmds_GCJ
17550 old_postinstall_cmds=$lt_old_postinstall_cmds
17551 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17553 # Create an old-style archive from a shared archive.
17554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17556 # Create a temporary old-style archive to link instead of a shared archive.
17557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17559 # Commands used to build and install a shared archive.
17560 archive_cmds=$lt_archive_cmds_GCJ
17561 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17562 postinstall_cmds=$lt_postinstall_cmds
17563 postuninstall_cmds=$lt_postuninstall_cmds
17565 # Commands used to build a loadable module (assumed same as above if empty)
17566 module_cmds=$lt_module_cmds_GCJ
17567 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17569 # Commands to strip libraries.
17570 old_striplib=$lt_old_striplib
17571 striplib=$lt_striplib
17573 # Dependencies to place before the objects being linked to create a
17575 predep_objects=$lt_predep_objects_GCJ
17577 # Dependencies to place after the objects being linked to create a
17579 postdep_objects=$lt_postdep_objects_GCJ
17581 # Dependencies to place before the objects being linked to create a
17583 predeps=$lt_predeps_GCJ
17585 # Dependencies to place after the objects being linked to create a
17587 postdeps=$lt_postdeps_GCJ
17589 # The library search path used internally by the compiler when linking
17590 # a shared library.
17591 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17593 # Method to check whether dependent libraries are shared objects.
17594 deplibs_check_method=$lt_deplibs_check_method
17596 # Command to use when deplibs_check_method == file_magic.
17597 file_magic_cmd=$lt_file_magic_cmd
17599 # Flag that allows shared libraries with undefined symbols to be built.
17600 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17602 # Flag that forces no undefined symbols.
17603 no_undefined_flag=$lt_no_undefined_flag_GCJ
17605 # Commands used to finish a libtool library installation in a directory.
17606 finish_cmds=$lt_finish_cmds
17608 # Same as above, but a single script fragment to be evaled but not shown.
17609 finish_eval=$lt_finish_eval
17611 # Take the output of nm and produce a listing of raw symbols and C names.
17612 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17614 # Transform the output of nm in a proper C declaration
17615 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17617 # Transform the output of nm in a C name address pair
17618 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17620 # This is the shared library runtime path variable.
17621 runpath_var=$runpath_var
17623 # This is the shared library path variable.
17624 shlibpath_var=$shlibpath_var
17626 # Is shlibpath searched before the hard-coded library search path?
17627 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17629 # How to hardcode a shared library path into an executable.
17630 hardcode_action=$hardcode_action_GCJ
17632 # Whether we should hardcode library paths into libraries.
17633 hardcode_into_libs=$hardcode_into_libs
17635 # Flag to hardcode \$libdir into a binary during linking.
17636 # This must work even if \$libdir does not exist.
17637 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17639 # If ld is used when linking, flag to hardcode \$libdir into
17640 # a binary during linking. This must work even if \$libdir does
17642 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17644 # Whether we need a single -rpath flag with a separated argument.
17645 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17647 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17648 # resulting binary.
17649 hardcode_direct=$hardcode_direct_GCJ
17651 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17652 # resulting binary.
17653 hardcode_minus_L=$hardcode_minus_L_GCJ
17655 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17656 # the resulting binary.
17657 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17659 # Set to yes if building a shared library automatically hardcodes DIR into the library
17660 # and all subsequent libraries and executables linked against it.
17661 hardcode_automatic=$hardcode_automatic_GCJ
17663 # Variables whose values should be saved in libtool wrapper scripts and
17664 # restored at relink time.
17665 variables_saved_for_relink="$variables_saved_for_relink"
17667 # Whether libtool must link a program against all its dependency libraries.
17668 link_all_deplibs=$link_all_deplibs_GCJ
17670 # Compile-time system search path for libraries
17671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17673 # Run-time system search path for libraries
17674 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17676 # Fix the shell variable \$srcfile for the compiler.
17677 fix_srcfile_path="$fix_srcfile_path_GCJ"
17679 # Set to yes if exported symbols are required.
17680 always_export_symbols=$always_export_symbols_GCJ
17682 # The commands to list exported symbols.
17683 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17685 # The commands to extract the exported symbol list from a shared archive.
17686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17688 # Symbols that should not be listed in the preloaded symbols.
17689 exclude_expsyms=$lt_exclude_expsyms_GCJ
17691 # Symbols that must always be exported.
17692 include_expsyms=$lt_include_expsyms_GCJ
17694 # ### END LIBTOOL TAG CONFIG: $tagname
17700 # If there is no Makefile yet, we rely on a make rule to execute
17701 # `config.status --recheck' to rerun these tests and create the
17702 # libtool script then.
17703 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17704 if test -f "$ltmain_in"; then
17705 test -f Makefile && make "$ltmain"
17711 ac_cpp='$CPP $CPPFLAGS'
17712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17727 # Source file extension for RC test sources.
17730 # Object file extension for compiled RC test sources.
17734 # Code to be used in simple compile tests
17735 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17737 # Code to be used in simple link tests
17738 lt_simple_link_test_code="$lt_simple_compile_test_code"
17740 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17742 # If no C compiler was specified, use CC.
17745 # If no C compiler flags were specified, use CFLAGS.
17746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17748 # Allow CC to be a program name with arguments.
17752 # save warnings/boilerplate of simple test code
17753 ac_outfile=conftest.$ac_objext
17754 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17755 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17756 _lt_compiler_boilerplate=`cat conftest.err`
17759 ac_outfile=conftest.$ac_objext
17760 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17761 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17762 _lt_linker_boilerplate=`cat conftest.err`
17766 # Allow CC to be a program name with arguments.
17771 for cc_temp in $compiler""; do
17773 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17774 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17779 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17781 lt_cv_prog_compiler_c_o_RC=yes
17783 # The else clause should only fire when bootstrapping the
17784 # libtool distribution, otherwise you forgot to ship ltmain.sh
17785 # with your package, and you will get complaints that there are
17786 # no rules to generate ltmain.sh.
17787 if test -f "$ltmain"; then
17788 # See if we are running on zsh, and set the options which allow our commands through
17789 # without removal of \ escapes.
17790 if test -n "${ZSH_VERSION+set}" ; then
17791 setopt NO_GLOB_SUBST
17793 # Now quote all the things that may contain metacharacters while being
17794 # careful not to overquote the AC_SUBSTed values. We take copies of the
17795 # variables and quote the copies for generation of the libtool script.
17796 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17798 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17799 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17800 deplibs_check_method reload_flag reload_cmds need_locks \
17801 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17802 lt_cv_sys_global_symbol_to_c_name_address \
17803 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17804 old_postinstall_cmds old_postuninstall_cmds \
17808 lt_prog_compiler_wl_RC \
17809 lt_prog_compiler_pic_RC \
17810 lt_prog_compiler_static_RC \
17811 lt_prog_compiler_no_builtin_flag_RC \
17812 export_dynamic_flag_spec_RC \
17813 thread_safe_flag_spec_RC \
17814 whole_archive_flag_spec_RC \
17815 enable_shared_with_static_runtimes_RC \
17816 old_archive_cmds_RC \
17817 old_archive_from_new_cmds_RC \
17818 predep_objects_RC \
17819 postdep_objects_RC \
17822 compiler_lib_search_path_RC \
17824 archive_expsym_cmds_RC \
17825 postinstall_cmds_RC \
17826 postuninstall_cmds_RC \
17827 old_archive_from_expsyms_cmds_RC \
17828 allow_undefined_flag_RC \
17829 no_undefined_flag_RC \
17830 export_symbols_cmds_RC \
17831 hardcode_libdir_flag_spec_RC \
17832 hardcode_libdir_flag_spec_ld_RC \
17833 hardcode_libdir_separator_RC \
17834 hardcode_automatic_RC \
17836 module_expsym_cmds_RC \
17837 lt_cv_prog_compiler_c_o_RC \
17838 exclude_expsyms_RC \
17839 include_expsyms_RC; do
17842 old_archive_cmds_RC | \
17843 old_archive_from_new_cmds_RC | \
17844 archive_cmds_RC | \
17845 archive_expsym_cmds_RC | \
17847 module_expsym_cmds_RC | \
17848 old_archive_from_expsyms_cmds_RC | \
17849 export_symbols_cmds_RC | \
17850 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17851 postinstall_cmds | postuninstall_cmds | \
17852 old_postinstall_cmds | old_postuninstall_cmds | \
17853 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17854 # Double-quote double-evaled strings.
17855 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17864 *'\$0 --fallback-echo"')
17865 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17871 cat <<__EOF__ >> "$cfgfile"
17872 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17874 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17876 # Shell to use when invoking shell scripts.
17879 # Whether or not to build shared libraries.
17880 build_libtool_libs=$enable_shared
17882 # Whether or not to build static libraries.
17883 build_old_libs=$enable_static
17885 # Whether or not to add -lc for building shared libraries.
17886 build_libtool_need_lc=$archive_cmds_need_lc_RC
17888 # Whether or not to disallow shared libs when runtime libs are static
17889 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17891 # Whether or not to optimize for fast installation.
17892 fast_install=$enable_fast_install
17895 host_alias=$host_alias
17899 # The build system.
17900 build_alias=$build_alias
17904 # An echo program that does not interpret backslashes.
17909 AR_FLAGS=$lt_AR_FLAGS
17914 # LTCC compiler flags.
17915 LTCFLAGS=$lt_LTCFLAGS
17917 # A language-specific compiler.
17920 # Is the compiler the GNU C compiler?
17926 # The linker used to build libraries.
17929 # Whether we need hard or soft links.
17932 # A BSD-compatible nm program.
17935 # A symbol stripping program
17938 # Used to examine libraries when file_magic_cmd begins "file"
17939 MAGIC_CMD=$MAGIC_CMD
17941 # Used on cygwin: DLL creation program.
17944 # Used on cygwin: object dumper.
17947 # Used on cygwin: assembler.
17950 # The name of the directory that contains temporary libtool files.
17953 # How to create reloadable object files.
17954 reload_flag=$lt_reload_flag
17955 reload_cmds=$lt_reload_cmds
17957 # How to pass a linker flag through the compiler.
17958 wl=$lt_lt_prog_compiler_wl_RC
17960 # Object file suffix (normally "o").
17961 objext="$ac_objext"
17963 # Old archive suffix (normally "a").
17966 # Shared library suffix (normally ".so").
17967 shrext_cmds='$shrext_cmds'
17969 # Executable file suffix (normally "").
17972 # Additional compiler flags for building library objects.
17973 pic_flag=$lt_lt_prog_compiler_pic_RC
17976 # What is the maximum length of a command?
17977 max_cmd_len=$lt_cv_sys_max_cmd_len
17979 # Does compiler simultaneously support -c and -o options?
17980 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17982 # Must we lock files when doing compilation?
17983 need_locks=$lt_need_locks
17985 # Do we need the lib prefix for modules?
17986 need_lib_prefix=$need_lib_prefix
17988 # Do we need a version for libraries?
17989 need_version=$need_version
17991 # Whether dlopen is supported.
17992 dlopen_support=$enable_dlopen
17994 # Whether dlopen of programs is supported.
17995 dlopen_self=$enable_dlopen_self
17997 # Whether dlopen of statically linked programs is supported.
17998 dlopen_self_static=$enable_dlopen_self_static
18000 # Compiler flag to prevent dynamic linking.
18001 link_static_flag=$lt_lt_prog_compiler_static_RC
18003 # Compiler flag to turn off builtin functions.
18004 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18006 # Compiler flag to allow reflexive dlopens.
18007 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18009 # Compiler flag to generate shared objects directly from archives.
18010 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18012 # Compiler flag to generate thread-safe objects.
18013 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18015 # Library versioning type.
18016 version_type=$version_type
18018 # Format of library name prefix.
18019 libname_spec=$lt_libname_spec
18021 # List of archive names. First name is the real one, the rest are links.
18022 # The last name is the one that the linker finds with -lNAME.
18023 library_names_spec=$lt_library_names_spec
18025 # The coded name of the library, if different from the real name.
18026 soname_spec=$lt_soname_spec
18028 # Commands used to build and install an old-style archive.
18030 old_archive_cmds=$lt_old_archive_cmds_RC
18031 old_postinstall_cmds=$lt_old_postinstall_cmds
18032 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18034 # Create an old-style archive from a shared archive.
18035 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18037 # Create a temporary old-style archive to link instead of a shared archive.
18038 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18040 # Commands used to build and install a shared archive.
18041 archive_cmds=$lt_archive_cmds_RC
18042 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18043 postinstall_cmds=$lt_postinstall_cmds
18044 postuninstall_cmds=$lt_postuninstall_cmds
18046 # Commands used to build a loadable module (assumed same as above if empty)
18047 module_cmds=$lt_module_cmds_RC
18048 module_expsym_cmds=$lt_module_expsym_cmds_RC
18050 # Commands to strip libraries.
18051 old_striplib=$lt_old_striplib
18052 striplib=$lt_striplib
18054 # Dependencies to place before the objects being linked to create a
18056 predep_objects=$lt_predep_objects_RC
18058 # Dependencies to place after the objects being linked to create a
18060 postdep_objects=$lt_postdep_objects_RC
18062 # Dependencies to place before the objects being linked to create a
18064 predeps=$lt_predeps_RC
18066 # Dependencies to place after the objects being linked to create a
18068 postdeps=$lt_postdeps_RC
18070 # The library search path used internally by the compiler when linking
18071 # a shared library.
18072 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18074 # Method to check whether dependent libraries are shared objects.
18075 deplibs_check_method=$lt_deplibs_check_method
18077 # Command to use when deplibs_check_method == file_magic.
18078 file_magic_cmd=$lt_file_magic_cmd
18080 # Flag that allows shared libraries with undefined symbols to be built.
18081 allow_undefined_flag=$lt_allow_undefined_flag_RC
18083 # Flag that forces no undefined symbols.
18084 no_undefined_flag=$lt_no_undefined_flag_RC
18086 # Commands used to finish a libtool library installation in a directory.
18087 finish_cmds=$lt_finish_cmds
18089 # Same as above, but a single script fragment to be evaled but not shown.
18090 finish_eval=$lt_finish_eval
18092 # Take the output of nm and produce a listing of raw symbols and C names.
18093 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18095 # Transform the output of nm in a proper C declaration
18096 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18098 # Transform the output of nm in a C name address pair
18099 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18101 # This is the shared library runtime path variable.
18102 runpath_var=$runpath_var
18104 # This is the shared library path variable.
18105 shlibpath_var=$shlibpath_var
18107 # Is shlibpath searched before the hard-coded library search path?
18108 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18110 # How to hardcode a shared library path into an executable.
18111 hardcode_action=$hardcode_action_RC
18113 # Whether we should hardcode library paths into libraries.
18114 hardcode_into_libs=$hardcode_into_libs
18116 # Flag to hardcode \$libdir into a binary during linking.
18117 # This must work even if \$libdir does not exist.
18118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18120 # If ld is used when linking, flag to hardcode \$libdir into
18121 # a binary during linking. This must work even if \$libdir does
18123 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18125 # Whether we need a single -rpath flag with a separated argument.
18126 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18128 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18129 # resulting binary.
18130 hardcode_direct=$hardcode_direct_RC
18132 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18133 # resulting binary.
18134 hardcode_minus_L=$hardcode_minus_L_RC
18136 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18137 # the resulting binary.
18138 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18140 # Set to yes if building a shared library automatically hardcodes DIR into the library
18141 # and all subsequent libraries and executables linked against it.
18142 hardcode_automatic=$hardcode_automatic_RC
18144 # Variables whose values should be saved in libtool wrapper scripts and
18145 # restored at relink time.
18146 variables_saved_for_relink="$variables_saved_for_relink"
18148 # Whether libtool must link a program against all its dependency libraries.
18149 link_all_deplibs=$link_all_deplibs_RC
18151 # Compile-time system search path for libraries
18152 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18154 # Run-time system search path for libraries
18155 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18157 # Fix the shell variable \$srcfile for the compiler.
18158 fix_srcfile_path="$fix_srcfile_path_RC"
18160 # Set to yes if exported symbols are required.
18161 always_export_symbols=$always_export_symbols_RC
18163 # The commands to list exported symbols.
18164 export_symbols_cmds=$lt_export_symbols_cmds_RC
18166 # The commands to extract the exported symbol list from a shared archive.
18167 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18169 # Symbols that should not be listed in the preloaded symbols.
18170 exclude_expsyms=$lt_exclude_expsyms_RC
18172 # Symbols that must always be exported.
18173 include_expsyms=$lt_include_expsyms_RC
18175 # ### END LIBTOOL TAG CONFIG: $tagname
18181 # If there is no Makefile yet, we rely on a make rule to execute
18182 # `config.status --recheck' to rerun these tests and create the
18183 # libtool script then.
18184 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18185 if test -f "$ltmain_in"; then
18186 test -f Makefile && make "$ltmain"
18192 ac_cpp='$CPP $CPPFLAGS'
18193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18202 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18203 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18204 { (exit 1); exit 1; }; }
18208 # Append the new tag name to the list of available tags.
18209 if test -n "$tagname" ; then
18210 available_tags="$available_tags $tagname"
18216 # Now substitute the updated list of available tags.
18217 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18218 mv "${ofile}T" "$ofile"
18222 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18223 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18224 { (exit 1); exit 1; }; }
18230 # This can be used to rebuild libtool when needed
18231 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18233 # Always use our own libtool.
18234 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18236 # Prevent multiple expansion
18258 # Checks for libraries.
18260 echo "$as_me:$LINENO: checking for main in -lapr-0" >&5
18261 echo $ECHO_N "checking for main in -lapr-0... $ECHO_C" >&6
18262 if test "${ac_cv_lib_apr_0_main+set}" = set; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18265 ac_check_lib_save_LIBS=$LIBS
18266 LIBS="-lapr-0 $LIBS"
18267 cat >conftest.$ac_ext <<_ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18283 rm -f conftest.$ac_objext conftest$ac_exeext
18284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18285 (eval $ac_link) 2>conftest.er1
18287 grep -v '^ *+' conftest.er1 >conftest.err
18289 cat conftest.err >&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } &&
18292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; } &&
18298 { ac_try='test -s conftest$ac_exeext'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 ac_cv_lib_apr_0_main=yes
18306 echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18309 ac_cv_lib_apr_0_main=no
18311 rm -f conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
18313 LIBS=$ac_check_lib_save_LIBS
18315 echo "$as_me:$LINENO: result: $ac_cv_lib_apr_0_main" >&5
18316 echo "${ECHO_T}$ac_cv_lib_apr_0_main" >&6
18317 if test $ac_cv_lib_apr_0_main = yes; then
18318 cat >>confdefs.h <<_ACEOF
18319 #define HAVE_LIBAPR_0 1
18322 LIBS="-lapr-0 $LIBS"
18328 # Check whether --with-apache-header or --without-apache-header was given.
18329 if test "${with_apache_header+set}" = set; then
18330 withval="$with_apache_header"
18333 #[, ACTION-IF-GIVEN[, ACTION-IF-NOT-GIVEN]])
18334 if test "x$with_apache_header" = "x"; then
18335 { { echo "$as_me:$LINENO: error:
18336 Please specify the --with-apache-header option.
18338 echo "$as_me: error:
18339 Please specify the --with-apache-header option.
18341 { (exit 1); exit 1; }; }
18343 if test "x$with_apache_header" = "xyes"; then
18344 { { echo "$as_me:$LINENO: error:
18345 Please specify the --with-apache-header option. And, please specify the place of the header file.
18348 echo "$as_me: error:
18349 Please specify the --with-apache-header option. And, please specify the place of the header file.
18352 { (exit 1); exit 1; }; }
18356 # Check whether --with-apxs or --without-apxs was given.
18357 if test "${with_apxs+set}" = set; then
18358 withval="$with_apxs"
18361 if test "x$with_apxs" = "x" ; then
18364 if test "x$with_apxs" = "xyes" ; then
18365 { { echo "$as_me:$LINENO: error:
18366 Please specify the --with-apxs option. And, please specify the place of the apxs program.
18368 echo "$as_me: error:
18369 Please specify the --with-apxs option. And, please specify the place of the apxs program.
18371 { (exit 1); exit 1; }; }
18375 # Check whether --with-apr-config or --without-apr-config was given.
18376 if test "${with_apr_config+set}" = set; then
18377 withval="$with_apr_config"
18380 if test "x$with_apr_config" = "xyes" ; then
18381 { { echo "$as_me:$LINENO: error:
18382 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
18384 echo "$as_me: error:
18385 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
18387 { (exit 1); exit 1; }; }
18391 # Check whether --enable-img-conv-f or --disable-img-conv-f was given.
18392 if test "${enable_img_conv_f+set}" = set; then
18393 enableval="$enable_img_conv_f"
18396 if test "x$enable_img_conv_f" = "xyes"; then
18399 QDEFS="-DIMG_NOT_CONVERT_FILENAME"
18402 # Check whether --enable-dump-log or --disable-dump-log was given.
18403 if test "${enable_dump_log+set}" = set; then
18404 enableval="$enable_dump_log"
18407 if test "x$enable_dump_log" = "xyes"; then
18408 DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
18410 if test "x$enable_dump_log" != "x" ; then
18411 DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
18416 if test "x$with_apxs" = "x" ; then
18417 # Extract the first word of "apxs", so it can be a program name with args.
18418 set dummy apxs; ac_word=$2
18419 echo "$as_me:$LINENO: checking for $ac_word" >&5
18420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18421 if test "${ac_cv_path_APXS+set}" = set; then
18422 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
18429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18430 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
18431 for as_dir in $as_dummy
18434 test -z "$as_dir" && as_dir=.
18435 for ac_exec_ext in '' $ac_executable_extensions; do
18436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18437 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
18438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18444 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
18448 APXS=$ac_cv_path_APXS
18450 if test -n "$APXS"; then
18451 echo "$as_me:$LINENO: result: $APXS" >&5
18452 echo "${ECHO_T}$APXS" >&6
18454 echo "$as_me:$LINENO: result: no" >&5
18455 echo "${ECHO_T}no" >&6
18458 if test "x$APXS" = "xno"; then
18459 { { echo "$as_me:$LINENO: error: apxs not found." >&5
18460 echo "$as_me: error: apxs not found." >&2;}
18461 { (exit 1); exit 1; }; }
18464 if test "x$with_apxs" != "x" ; then
18468 # Extract the first word of "libtool", so it can be a program name with args.
18469 set dummy libtool; ac_word=$2
18470 echo "$as_me:$LINENO: checking for $ac_word" >&5
18471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18472 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18481 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
18482 for as_dir in $as_dummy
18485 test -z "$as_dir" && as_dir=.
18486 for ac_exec_ext in '' $ac_executable_extensions; do
18487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18488 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18495 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
18499 LIBTOOL=$ac_cv_path_LIBTOOL
18501 if test -n "$LIBTOOL"; then
18502 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18503 echo "${ECHO_T}$LIBTOOL" >&6
18505 echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6
18509 if test "x$LIBTOOL" = "xno"; then
18510 { { echo "$as_me:$LINENO: error: libtool not found." >&5
18511 echo "$as_me: error: libtool not found." >&2;}
18512 { (exit 1); exit 1; }; }
18516 # Extract the first word of "Wand-config", so it can be a program name with args.
18517 set dummy Wand-config; ac_word=$2
18518 echo "$as_me:$LINENO: checking for $ac_word" >&5
18519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18520 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 case $WAND_CONFIG in
18525 ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
18528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
18530 for as_dir in $as_dummy
18533 test -z "$as_dir" && as_dir=.
18534 for ac_exec_ext in '' $ac_executable_extensions; do
18535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18536 ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18543 test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
18547 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
18549 if test -n "$WAND_CONFIG"; then
18550 echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
18551 echo "${ECHO_T}$WAND_CONFIG" >&6
18553 echo "$as_me:$LINENO: result: no" >&5
18554 echo "${ECHO_T}no" >&6
18557 if test "x$WAND_CONFIG" = "xno" ; then
18558 { { echo "$as_me:$LINENO: error: wand-config not found." >&5
18559 echo "$as_me: error: wand-config not found." >&2;}
18560 { (exit 1); exit 1; }; }
18563 if test "x$with_apr_config" = "x" ; then
18564 # Extract the first word of "apr-config", so it can be a program name with args.
18565 set dummy apr-config; ac_word=$2
18566 echo "$as_me:$LINENO: checking for $ac_word" >&5
18567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18568 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 case $APR_CONFIG in
18573 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
18576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18577 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
18578 for as_dir in $as_dummy
18581 test -z "$as_dir" && as_dir=.
18582 for ac_exec_ext in '' $ac_executable_extensions; do
18583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18584 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18591 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
18595 APR_CONFIG=$ac_cv_path_APR_CONFIG
18597 if test -n "$APR_CONFIG"; then
18598 echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
18599 echo "${ECHO_T}$APR_CONFIG" >&6
18601 echo "$as_me:$LINENO: result: no" >&5
18602 echo "${ECHO_T}no" >&6
18605 if test "x$APR_CONFIG" = "xno" ; then
18606 { { echo "$as_me:$LINENO: error: apr-config not found." >&5
18607 echo "$as_me: error: apr-config not found." >&2;}
18608 { (exit 1); exit 1; }; }
18611 if test "x$with_apr_config" != "x" ; then
18612 APR_CONFIG=$with_apr_config
18616 # Check whether --with-iconv or --without-iconv was given.
18617 if test "${with_iconv+set}" = set; then
18618 withval="$with_iconv"
18622 # Check whether --with-iconv_hook or --without-iconv_hook was given.
18623 if test "${with_iconv_hook+set}" = set; then
18624 withval="$with_iconv_hook"
18627 if test "x$with_iconv" = "x" -a "x$with_iconv_hook" = "x" ; then
18628 echo "$as_me:$LINENO: checking for iconv_open in -liconv_hook" >&5
18629 echo $ECHO_N "checking for iconv_open in -liconv_hook... $ECHO_C" >&6
18630 if test "${ac_cv_lib_iconv_hook_iconv_open+set}" = set; then
18631 echo $ECHO_N "(cached) $ECHO_C" >&6
18633 ac_check_lib_save_LIBS=$LIBS
18634 LIBS="-liconv_hook $LIBS"
18635 cat >conftest.$ac_ext <<_ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18642 /* Override any gcc2 internal prototype to avoid an error. */
18646 /* We use char because int might match the return type of a gcc2
18647 builtin and then its argument prototype would still apply. */
18648 char iconv_open ();
18657 rm -f conftest.$ac_objext conftest$ac_exeext
18658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18659 (eval $ac_link) 2>conftest.er1
18661 grep -v '^ *+' conftest.er1 >conftest.err
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; } &&
18672 { ac_try='test -s conftest$ac_exeext'
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; }; then
18678 ac_cv_lib_iconv_hook_iconv_open=yes
18680 echo "$as_me: failed program was:" >&5
18681 sed 's/^/| /' conftest.$ac_ext >&5
18683 ac_cv_lib_iconv_hook_iconv_open=no
18685 rm -f conftest.err conftest.$ac_objext \
18686 conftest$ac_exeext conftest.$ac_ext
18687 LIBS=$ac_check_lib_save_LIBS
18689 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_hook_iconv_open" >&5
18690 echo "${ECHO_T}$ac_cv_lib_iconv_hook_iconv_open" >&6
18691 if test $ac_cv_lib_iconv_hook_iconv_open = yes; then
18695 cat >>confdefs.h <<\_ACEOF
18696 #define HAVE_LIBICONV_HOOK
18702 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
18703 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
18704 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18707 ac_check_lib_save_LIBS=$LIBS
18708 LIBS="-liconv $LIBS"
18709 cat >conftest.$ac_ext <<_ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18716 /* Override any gcc2 internal prototype to avoid an error. */
18720 /* We use char because int might match the return type of a gcc2
18721 builtin and then its argument prototype would still apply. */
18722 char iconv_open ();
18731 rm -f conftest.$ac_objext conftest$ac_exeext
18732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18733 (eval $ac_link) 2>conftest.er1
18735 grep -v '^ *+' conftest.er1 >conftest.err
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
18740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; } &&
18746 { ac_try='test -s conftest$ac_exeext'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_cv_lib_iconv_iconv_open=yes
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18757 ac_cv_lib_iconv_iconv_open=no
18759 rm -f conftest.err conftest.$ac_objext \
18760 conftest$ac_exeext conftest.$ac_ext
18761 LIBS=$ac_check_lib_save_LIBS
18763 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
18764 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
18765 if test $ac_cv_lib_iconv_iconv_open = yes; then
18769 cat >>confdefs.h <<\_ACEOF
18770 #define HAVE_LIBICONV
18785 if test "x$with_iconv" != "xok" ; then
18786 if test "x$with_iconv" = "xyes" ; then
18787 { { echo "$as_me:$LINENO: error:
18788 Please specify the --with-iconv option. And, please specify the place of the libiconv program.
18790 echo "$as_me: error:
18791 Please specify the --with-iconv option. And, please specify the place of the libiconv program.
18793 { (exit 1); exit 1; }; }
18795 if test "x$with_iconv" != "x" ; then
18796 LIBS="${LIBS} -L$with_iconv -liconv "
18798 cat >>confdefs.h <<\_ACEOF
18799 #define HAVE_LIBICONV
18804 if test "x$with_iconv" = "x" ; then
18805 if test "x$with_iconv_hook" = "xyes" ; then
18806 { { echo "$as_me:$LINENO: error:
18807 Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
18809 echo "$as_me: error:
18810 Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
18812 { (exit 1); exit 1; }; }
18814 if test "x$with_iconv_hook" != "x" ; then
18815 LIBS="${LIBS} -L${with_iconv_hook} -liconv_hook "
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE_LIBICONV_HOOK
18822 if test "x$with_iconv_hook" = "x" ; then
18823 { { echo "$as_me:$LINENO: error:
18824 Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
18826 echo "$as_me: error:
18827 Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
18829 { (exit 1); exit 1; }; }
18836 CFLAGS="${CFLAGS} -I/usr/local/include "
18841 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
18842 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
18843 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
18844 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
18852 # Checks for header files.
18853 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18854 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18855 if test "${ac_cv_header_stdc+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 cat >conftest.$ac_ext <<_ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18864 #include <stdlib.h>
18865 #include <stdarg.h>
18866 #include <string.h>
18877 rm -f conftest.$ac_objext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18879 (eval $ac_compile) 2>conftest.er1
18881 grep -v '^ *+' conftest.er1 >conftest.err
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest.$ac_objext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_header_stdc=yes
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ac_cv_header_stdc=no
18905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18907 if test $ac_cv_header_stdc = yes; then
18908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18909 cat >conftest.$ac_ext <<_ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h. */
18915 #include <string.h>
18918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18919 $EGREP "memchr" >/dev/null 2>&1; then
18922 ac_cv_header_stdc=no
18928 if test $ac_cv_header_stdc = yes; then
18929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 #include <stdlib.h>
18939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18940 $EGREP "free" >/dev/null 2>&1; then
18943 ac_cv_header_stdc=no
18949 if test $ac_cv_header_stdc = yes; then
18950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18951 if test "$cross_compiling" = yes; then
18954 cat >conftest.$ac_ext <<_ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18961 #if ((' ' & 0x0FF) == 0x020)
18962 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18963 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18965 # define ISLOWER(c) \
18966 (('a' <= (c) && (c) <= 'i') \
18967 || ('j' <= (c) && (c) <= 'r') \
18968 || ('s' <= (c) && (c) <= 'z'))
18969 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18972 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18977 for (i = 0; i < 256; i++)
18978 if (XOR (islower (i), ISLOWER (i))
18979 || toupper (i) != TOUPPER (i))
18984 rm -f conftest$ac_exeext
18985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18986 (eval $ac_link) 2>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18997 echo "$as_me: program exited with status $ac_status" >&5
18998 echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19001 ( exit $ac_status )
19002 ac_cv_header_stdc=no
19004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19008 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19009 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19010 if test $ac_cv_header_stdc = yes; then
19012 cat >>confdefs.h <<\_ACEOF
19013 #define STDC_HEADERS 1
19026 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
19028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19030 echo "$as_me:$LINENO: checking for $ac_header" >&5
19031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19038 # Is the header compilable?
19039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19041 cat >conftest.$ac_ext <<_ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 $ac_includes_default
19048 #include <$ac_header>
19050 rm -f conftest.$ac_objext
19051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19052 (eval $ac_compile) 2>conftest.er1
19054 grep -v '^ *+' conftest.er1 >conftest.err
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
19059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest.$ac_objext'
19066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 (eval $ac_try) 2>&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; }; then
19071 ac_header_compiler=yes
19073 echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19076 ac_header_compiler=no
19078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19080 echo "${ECHO_T}$ac_header_compiler" >&6
19082 # Is the header present?
19083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 #include <$ac_header>
19093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19096 grep -v '^ *+' conftest.er1 >conftest.err
19098 cat conftest.err >&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } >/dev/null; then
19101 if test -s conftest.err; then
19102 ac_cpp_err=$ac_c_preproc_warn_flag
19103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19110 if test -z "$ac_cpp_err"; then
19111 ac_header_preproc=yes
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 ac_header_preproc=no
19118 rm -f conftest.err conftest.$ac_ext
19119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19120 echo "${ECHO_T}$ac_header_preproc" >&6
19122 # So? What about this header?
19123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19129 ac_header_preproc=yes
19132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19146 ## ----------------------------------- ##
19147 ## Report this to the mod_chxj lists. ##
19148 ## ----------------------------------- ##
19151 sed "s/^/$as_me: WARNING: /" >&2
19154 echo "$as_me:$LINENO: checking for $ac_header" >&5
19155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19159 eval "$as_ac_Header=\$ac_header_preproc"
19161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19166 cat >>confdefs.h <<_ACEOF
19167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19174 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
19177 for ac_header in $APR_HEADER_DIR/apr_shm.h $APR_HEADER_DIR/apr_global_mutex.h
19179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19181 echo "$as_me:$LINENO: checking for $ac_header" >&5
19182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19189 # Is the header compilable?
19190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19192 cat >conftest.$ac_ext <<_ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19198 $ac_includes_default
19199 #include <$ac_header>
19201 rm -f conftest.$ac_objext
19202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203 (eval $ac_compile) 2>conftest.er1
19205 grep -v '^ *+' conftest.er1 >conftest.err
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
19210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; } &&
19216 { ac_try='test -s conftest.$ac_objext'
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
19222 ac_header_compiler=yes
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19227 ac_header_compiler=no
19229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19231 echo "${ECHO_T}$ac_header_compiler" >&6
19233 # Is the header present?
19234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 #include <$ac_header>
19244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19247 grep -v '^ *+' conftest.er1 >conftest.err
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } >/dev/null; then
19252 if test -s conftest.err; then
19253 ac_cpp_err=$ac_c_preproc_warn_flag
19254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19261 if test -z "$ac_cpp_err"; then
19262 ac_header_preproc=yes
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19267 ac_header_preproc=no
19269 rm -f conftest.err conftest.$ac_ext
19270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19271 echo "${ECHO_T}$ac_header_preproc" >&6
19273 # So? What about this header?
19274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19280 ac_header_preproc=yes
19283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19297 ## ----------------------------------- ##
19298 ## Report this to the mod_chxj lists. ##
19299 ## ----------------------------------- ##
19302 sed "s/^/$as_me: WARNING: /" >&2
19305 echo "$as_me:$LINENO: checking for $ac_header" >&5
19306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19310 eval "$as_ac_Header=\$ac_header_preproc"
19312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19317 cat >>confdefs.h <<_ACEOF
19318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19326 for ac_header in $with_apache_header/ap_regex.h
19328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19330 echo "$as_me:$LINENO: checking for $ac_header" >&5
19331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19338 # Is the header compilable?
19339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19341 cat >conftest.$ac_ext <<_ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19347 $ac_includes_default
19348 #include <$ac_header>
19350 rm -f conftest.$ac_objext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19352 (eval $ac_compile) 2>conftest.er1
19354 grep -v '^ *+' conftest.er1 >conftest.err
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest.$ac_objext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 ac_header_compiler=yes
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19376 ac_header_compiler=no
19378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19380 echo "${ECHO_T}$ac_header_compiler" >&6
19382 # Is the header present?
19383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19385 cat >conftest.$ac_ext <<_ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19391 #include <$ac_header>
19393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19396 grep -v '^ *+' conftest.er1 >conftest.err
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } >/dev/null; then
19401 if test -s conftest.err; then
19402 ac_cpp_err=$ac_c_preproc_warn_flag
19403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19410 if test -z "$ac_cpp_err"; then
19411 ac_header_preproc=yes
19413 echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19416 ac_header_preproc=no
19418 rm -f conftest.err conftest.$ac_ext
19419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19420 echo "${ECHO_T}$ac_header_preproc" >&6
19422 # So? What about this header?
19423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19429 ac_header_preproc=yes
19432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19446 ## ----------------------------------- ##
19447 ## Report this to the mod_chxj lists. ##
19448 ## ----------------------------------- ##
19451 sed "s/^/$as_me: WARNING: /" >&2
19454 echo "$as_me:$LINENO: checking for $ac_header" >&5
19455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
19459 eval "$as_ac_Header=\$ac_header_preproc"
19461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19466 cat >>confdefs.h <<_ACEOF
19467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19470 cat >>confdefs.h <<\_ACEOF
19471 #define HAVE_AP_REGEX_H
19479 # Checks for typedefs, structures, and compiler characteristics.
19480 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19481 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19482 if test "${ac_cv_c_const+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19485 cat >conftest.$ac_ext <<_ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19495 /* FIXME: Include the comments suggested by Paul. */
19496 #ifndef __cplusplus
19497 /* Ultrix mips cc rejects this. */
19498 typedef int charset[2];
19500 /* SunOS 4.1.1 cc rejects this. */
19501 char const *const *ccp;
19503 /* NEC SVR4.0.2 mips cc rejects this. */
19504 struct point {int x, y;};
19505 static struct point const zero = {0,0};
19506 /* AIX XL C 1.02.0.0 rejects this.
19507 It does not let you subtract one const X* pointer from another in
19508 an arm of an if-expression whose if-part is not a constant
19510 const char *g = "string";
19511 ccp = &g + (g ? g-g : 0);
19512 /* HPUX 7.0 cc rejects these. */
19515 ccp = (char const *const *) p;
19516 { /* SCO 3.2v4 cc rejects this. */
19518 char const *s = 0 ? (char *) 0 : (char const *) 0;
19522 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19523 int x[] = {25, 17};
19524 const int *foo = &x[0];
19527 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19528 typedef const int *iptr;
19532 { /* AIX XL C 1.02.0.0 rejects this saying
19533 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19534 struct s { int j; const int *ap[3]; };
19535 struct s *b; b->j = 5;
19537 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19538 const int foo = 10;
19546 rm -f conftest.$ac_objext
19547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548 (eval $ac_compile) 2>conftest.er1
19550 grep -v '^ *+' conftest.er1 >conftest.err
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
19555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; } &&
19561 { ac_try='test -s conftest.$ac_objext'
19562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563 (eval $ac_try) 2>&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19576 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19577 echo "${ECHO_T}$ac_cv_c_const" >&6
19578 if test $ac_cv_c_const = no; then
19580 cat >>confdefs.h <<\_ACEOF
19587 # Checks for library functions.
19589 for ac_header in stdlib.h
19591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19593 echo "$as_me:$LINENO: checking for $ac_header" >&5
19594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19601 # Is the header compilable?
19602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 $ac_includes_default
19611 #include <$ac_header>
19613 rm -f conftest.$ac_objext
19614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19615 (eval $ac_compile) 2>conftest.er1
19617 grep -v '^ *+' conftest.er1 >conftest.err
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; } &&
19628 { ac_try='test -s conftest.$ac_objext'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 ac_header_compiler=yes
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ac_header_compiler=no
19641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19643 echo "${ECHO_T}$ac_header_compiler" >&6
19645 # Is the header present?
19646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19654 #include <$ac_header>
19656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19659 grep -v '^ *+' conftest.er1 >conftest.err
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } >/dev/null; then
19664 if test -s conftest.err; then
19665 ac_cpp_err=$ac_c_preproc_warn_flag
19666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19673 if test -z "$ac_cpp_err"; then
19674 ac_header_preproc=yes
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19679 ac_header_preproc=no
19681 rm -f conftest.err conftest.$ac_ext
19682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19683 echo "${ECHO_T}$ac_header_preproc" >&6
19685 # So? What about this header?
19686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19692 ac_header_preproc=yes
19695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19709 ## ----------------------------------- ##
19710 ## Report this to the mod_chxj lists. ##
19711 ## ----------------------------------- ##
19714 sed "s/^/$as_me: WARNING: /" >&2
19717 echo "$as_me:$LINENO: checking for $ac_header" >&5
19718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19722 eval "$as_ac_Header=\$ac_header_preproc"
19724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19729 cat >>confdefs.h <<_ACEOF
19730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19737 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19738 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
19739 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 if test "$cross_compiling" = yes; then
19743 ac_cv_func_malloc_0_nonnull=no
19745 cat >conftest.$ac_ext <<_ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19751 #if STDC_HEADERS || HAVE_STDLIB_H
19752 # include <stdlib.h>
19760 exit (malloc (0) ? 0 : 1);
19765 rm -f conftest$ac_exeext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19767 (eval $ac_link) 2>&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; }; then
19776 ac_cv_func_malloc_0_nonnull=yes
19778 echo "$as_me: program exited with status $ac_status" >&5
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19782 ( exit $ac_status )
19783 ac_cv_func_malloc_0_nonnull=no
19785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19788 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19789 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
19790 if test $ac_cv_func_malloc_0_nonnull = yes; then
19792 cat >>confdefs.h <<\_ACEOF
19793 #define HAVE_MALLOC 1
19797 cat >>confdefs.h <<\_ACEOF
19798 #define HAVE_MALLOC 0
19802 "malloc.$ac_objext" | \
19803 *" malloc.$ac_objext" | \
19804 "malloc.$ac_objext "* | \
19805 *" malloc.$ac_objext "* ) ;;
19806 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
19810 cat >>confdefs.h <<\_ACEOF
19811 #define malloc rpl_malloc
19826 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
19828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19829 echo "$as_me:$LINENO: checking for $ac_func" >&5
19830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19831 if eval "test \"\${$as_ac_var+set}\" = set"; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19842 #define $ac_func innocuous_$ac_func
19844 /* System header to define __stub macros and hopefully few prototypes,
19845 which can conflict with char $ac_func (); below.
19846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19847 <limits.h> exists even on freestanding compilers. */
19850 # include <limits.h>
19852 # include <assert.h>
19857 /* Override any gcc2 internal prototype to avoid an error. */
19862 /* We use char because int might match the return type of a gcc2
19863 builtin and then its argument prototype would still apply. */
19865 /* The GNU C library defines this for functions which it implements
19866 to always fail with ENOSYS. Some functions are actually named
19867 something starting with __ and the normal name is an alias. */
19868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19871 char (*f) () = $ac_func;
19880 return f != $ac_func;
19885 rm -f conftest.$ac_objext conftest$ac_exeext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19887 (eval $ac_link) 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; } &&
19900 { ac_try='test -s conftest$ac_exeext'
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 eval "$as_ac_var=yes"
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 eval "$as_ac_var=no"
19913 rm -f conftest.err conftest.$ac_objext \
19914 conftest$ac_exeext conftest.$ac_ext
19916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19918 if test `eval echo '${'$as_ac_var'}'` = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19929 ac_config_files="$ac_config_files Makefile src/Makefile"
19931 cat >confcache <<\_ACEOF
19932 # This file is a shell script that caches the results of configure
19933 # tests run on this system so they can be shared between configure
19934 # scripts and configure runs, see configure's option --config-cache.
19935 # It is not useful on other systems. If it contains results you don't
19936 # want to keep, you may remove or edit it.
19938 # config.status only pays attention to the cache file if you give it
19939 # the --recheck option to rerun configure.
19941 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19942 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19943 # following values.
19947 # The following way of writing the cache mishandles newlines in values,
19948 # but we know of no workaround that is simple, portable, and efficient.
19949 # So, don't put newlines in cache variables' values.
19950 # Ultrix sh set writes to stderr and can't be redirected directly,
19951 # and sets the high bit in the cache file unless we assign to the vars.
19954 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19956 # `set' does not quote correctly, so add quotes (double-quote
19957 # substitution turns \\\\ into \\, and sed turns \\ into \).
19960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19963 # `set' quotes correctly as required by POSIX, so do not add quotes.
19965 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19974 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19976 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19977 if test -w $cache_file; then
19978 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19979 cat confcache >$cache_file
19981 echo "not updating unwritable cache $cache_file"
19986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19987 # Let make expand exec_prefix.
19988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19990 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19991 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19992 # trailing colons and then remove the whole line if VPATH becomes empty
19993 # (actually we leave an empty line to preserve line numbers).
19994 if test "x$srcdir" = x.; then
19995 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19996 s/:*\$(srcdir):*/:/;
19997 s/:*\${srcdir}:*/:/;
19999 s/^\([^=]*=[ ]*\):*/\1/;
20005 DEFS=-DHAVE_CONFIG_H
20009 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20010 # 1. Remove the extension, and $U if already installed.
20011 ac_i=`echo "$ac_i" |
20012 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20014 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20015 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20017 LIBOBJS=$ac_libobjs
20019 LTLIBOBJS=$ac_ltlibobjs
20023 : ${CONFIG_STATUS=./config.status}
20024 ac_clean_files_save=$ac_clean_files
20025 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20026 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20027 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20028 cat >$CONFIG_STATUS <<_ACEOF
20030 # Generated by $as_me.
20031 # Run this file to recreate the current configuration.
20032 # Compiler output produced by configure, useful for debugging
20033 # configure, is in config.log if it exists.
20036 ac_cs_recheck=false
20038 SHELL=\${CONFIG_SHELL-$SHELL}
20041 cat >>$CONFIG_STATUS <<\_ACEOF
20042 ## --------------------- ##
20043 ## M4sh Initialization. ##
20044 ## --------------------- ##
20046 # Be Bourne compatible
20047 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20050 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20051 # is contrary to our usage. Disable this feature.
20052 alias -g '${1+"$@"}'='"$@"'
20053 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20056 DUALCASE=1; export DUALCASE # for MKS sh
20058 # Support unset when possible.
20059 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20066 # Work around bugs in pre-3.0 UWIN ksh.
20067 $as_unset ENV MAIL MAILPATH
20074 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20075 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20076 LC_TELEPHONE LC_TIME
20078 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20079 eval $as_var=C; export $as_var
20085 # Required to use basename.
20086 if expr a : '\(a\)' >/dev/null 2>&1; then
20092 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20093 as_basename=basename
20099 # Name of the executable.
20100 as_me=`$as_basename "$0" ||
20101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20102 X"$0" : 'X\(//\)$' \| \
20103 X"$0" : 'X\(/\)$' \| \
20104 . : '\(.\)' 2>/dev/null ||
20106 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20107 /^X\/\(\/\/\)$/{ s//\1/; q; }
20108 /^X\/\(\/\).*/{ s//\1/; q; }
20112 # PATH needs CR, and LINENO needs CR and PATH.
20113 # Avoid depending upon Character Ranges.
20114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20117 as_cr_digits='0123456789'
20118 as_cr_alnum=$as_cr_Letters$as_cr_digits
20120 # The user is always right.
20121 if test "${PATH_SEPARATOR+set}" != set; then
20122 echo "#! /bin/sh" >conf$$.sh
20123 echo "exit 0" >>conf$$.sh
20125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20134 as_lineno_1=$LINENO
20135 as_lineno_2=$LINENO
20136 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20137 test "x$as_lineno_1" != "x$as_lineno_2" &&
20138 test "x$as_lineno_3" = "x$as_lineno_2" || {
20139 # Find who we are. Look in the path if we contain no path at all
20142 *[\\/]* ) as_myself=$0 ;;
20143 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20144 for as_dir in $PATH
20147 test -z "$as_dir" && as_dir=.
20148 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20153 # We did not find ourselves, most probably we were run as `sh COMMAND'
20154 # in which case we are not to be found in the path.
20155 if test "x$as_myself" = x; then
20158 if test ! -f "$as_myself"; then
20159 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20160 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20161 { (exit 1); exit 1; }; }
20163 case $CONFIG_SHELL in
20165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20169 test -z "$as_dir" && as_dir=.
20170 for as_base in sh bash ksh sh5; do
20173 if ("$as_dir/$as_base" -c '
20174 as_lineno_1=$LINENO
20175 as_lineno_2=$LINENO
20176 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20177 test "x$as_lineno_1" != "x$as_lineno_2" &&
20178 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20179 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20180 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20181 CONFIG_SHELL=$as_dir/$as_base
20182 export CONFIG_SHELL
20183 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20191 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20192 # uniformly replaced by the line number. The first 'sed' inserts a
20193 # line-number line before each line; the second 'sed' does the real
20194 # work. The second script uses 'N' to pair each line-number line
20195 # with the numbered line, and appends trailing '-' during
20196 # substitution so that $LINENO is not a special case at line end.
20197 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20198 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20199 sed '=' <$as_myself |
20204 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20207 s,^['$as_cr_digits']*\n,,
20208 ' >$as_me.lineno &&
20209 chmod +x $as_me.lineno ||
20210 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20211 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20212 { (exit 1); exit 1; }; }
20214 # Don't try to exec as it changes $[0], causing all sort of problems
20215 # (the dirname of $[0] is not the place where we might find the
20216 # original and so on. Autoconf is especially sensible to this).
20218 # Exit status is that of the last command.
20223 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20224 *c*,-n*) ECHO_N= ECHO_C='
20226 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20227 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20230 if expr a : '\(a\)' >/dev/null 2>&1; then
20236 rm -f conf$$ conf$$.exe conf$$.file
20238 if ln -s conf$$.file conf$$ 2>/dev/null; then
20239 # We could just check for DJGPP; but this test a) works b) is more generic
20240 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20241 if test -f conf$$.exe; then
20242 # Don't use ln at all; we don't have any links
20247 elif ln conf$$.file conf$$ 2>/dev/null; then
20252 rm -f conf$$ conf$$.exe conf$$.file
20254 if mkdir -p . 2>/dev/null; then
20257 test -d ./-p && rmdir ./-p
20261 as_executable_p="test -f"
20263 # Sed expression to map a string onto a valid CPP name.
20264 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20266 # Sed expression to map a string onto a valid variable name.
20267 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20271 # We need space, tab and new line, in precisely that order.
20281 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20282 # report actual input values of CONFIG_FILES etc. instead of their
20283 # values after options handling. Logging --version etc. is OK.
20287 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20288 ## Running $as_me. ##
20293 This file was extended by mod_chxj $as_me 0.6.0-stable, which was
20294 generated by GNU Autoconf 2.59. Invocation command line was
20296 CONFIG_FILES = $CONFIG_FILES
20297 CONFIG_HEADERS = $CONFIG_HEADERS
20298 CONFIG_LINKS = $CONFIG_LINKS
20299 CONFIG_COMMANDS = $CONFIG_COMMANDS
20303 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20307 # Files that config.status was made for.
20308 if test -n "$ac_config_files"; then
20309 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20312 if test -n "$ac_config_headers"; then
20313 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20316 if test -n "$ac_config_links"; then
20317 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20320 if test -n "$ac_config_commands"; then
20321 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20324 cat >>$CONFIG_STATUS <<\_ACEOF
20327 \`$as_me' instantiates files from templates according to the
20328 current configuration.
20330 Usage: $0 [OPTIONS] [FILE]...
20332 -h, --help print this help, then exit
20333 -V, --version print version number, then exit
20334 -q, --quiet do not print progress messages
20335 -d, --debug don't remove temporary files
20336 --recheck update $as_me by reconfiguring in the same conditions
20337 --file=FILE[:TEMPLATE]
20338 instantiate the configuration file FILE
20339 --header=FILE[:TEMPLATE]
20340 instantiate the configuration header FILE
20342 Configuration files:
20345 Configuration headers:
20348 Configuration commands:
20351 Report bugs to <bug-autoconf@gnu.org>."
20354 cat >>$CONFIG_STATUS <<_ACEOF
20356 mod_chxj config.status 0.6.0-stable
20357 configured by $0, generated by GNU Autoconf 2.59,
20358 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20360 Copyright (C) 2003 Free Software Foundation, Inc.
20361 This config.status script is free software; the Free Software Foundation
20362 gives unlimited permission to copy, distribute and modify it."
20367 cat >>$CONFIG_STATUS <<\_ACEOF
20368 # If no file are specified by the user, then we need to provide default
20369 # value. By we need to know if files were specified by the user.
20375 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20376 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20384 *) # This is not an option, so the user has probably given explicit
20387 ac_need_defaults=false;;
20391 # Handling of the options.
20393 cat >>$CONFIG_STATUS <<\_ACEOF
20394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20396 --version | --vers* | -V )
20397 echo "$ac_cs_version"; exit 0 ;;
20399 # Conflict between --help and --header
20400 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20401 Try \`$0 --help' for more information." >&5
20402 echo "$as_me: error: ambiguous option: $1
20403 Try \`$0 --help' for more information." >&2;}
20404 { (exit 1); exit 1; }; };;
20405 --help | --hel | -h )
20406 echo "$ac_cs_usage"; exit 0 ;;
20407 --debug | --d* | -d )
20409 --file | --fil | --fi | --f )
20411 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20412 ac_need_defaults=false;;
20413 --header | --heade | --head | --hea )
20415 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20416 ac_need_defaults=false;;
20417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20418 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20421 # This is an error.
20422 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20423 Try \`$0 --help' for more information." >&5
20424 echo "$as_me: error: unrecognized option: $1
20425 Try \`$0 --help' for more information." >&2;}
20426 { (exit 1); exit 1; }; } ;;
20428 *) ac_config_targets="$ac_config_targets $1" ;;
20434 ac_configure_extra_args=
20436 if $ac_cs_silent; then
20438 ac_configure_extra_args="$ac_configure_extra_args --silent"
20442 cat >>$CONFIG_STATUS <<_ACEOF
20443 if \$ac_cs_recheck; then
20444 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20445 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20450 cat >>$CONFIG_STATUS <<_ACEOF
20452 # INIT-COMMANDS section.
20461 cat >>$CONFIG_STATUS <<\_ACEOF
20462 for ac_config_target in $ac_config_targets
20464 case "$ac_config_target" in
20465 # Handling of arguments.
20466 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20467 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20468 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20469 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20470 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20471 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20472 { (exit 1); exit 1; }; };;
20476 # If the user did not use the arguments to specify the items to instantiate,
20477 # then the envvar interface is used. Set only those that are not.
20478 # We use the long form for the default assignment because of an extremely
20479 # bizarre bug on SunOS 4.1.3.
20480 if $ac_need_defaults; then
20481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20482 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20483 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20486 # Have a temporary directory for convenience. Make it in the build tree
20487 # simply because there is no reason to put it here, and in addition,
20488 # creating and moving files from /tmp can sometimes cause problems.
20489 # Create a temporary directory, and hook for its removal unless debugging.
20492 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20493 trap '{ (exit 1); exit 1; }' 1 2 13 15
20496 # Create a (secure) tmp directory for tmp files.
20499 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20500 test -n "$tmp" && test -d "$tmp"
20503 tmp=./confstat$$-$RANDOM
20504 (umask 077 && mkdir $tmp)
20507 echo "$me: cannot create a temporary directory in ." >&2
20508 { (exit 1); exit 1; }
20513 cat >>$CONFIG_STATUS <<_ACEOF
20516 # CONFIG_FILES section.
20519 # No need to generate the scripts if there are no CONFIG_FILES.
20520 # This happens for instance when ./config.status config.h
20521 if test -n "\$CONFIG_FILES"; then
20522 # Protect against being on the right side of a sed subst in config.status.
20523 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20524 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20525 s,@SHELL@,$SHELL,;t t
20526 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20527 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20528 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20529 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20530 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20531 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20532 s,@exec_prefix@,$exec_prefix,;t t
20533 s,@prefix@,$prefix,;t t
20534 s,@program_transform_name@,$program_transform_name,;t t
20535 s,@bindir@,$bindir,;t t
20536 s,@sbindir@,$sbindir,;t t
20537 s,@libexecdir@,$libexecdir,;t t
20538 s,@datadir@,$datadir,;t t
20539 s,@sysconfdir@,$sysconfdir,;t t
20540 s,@sharedstatedir@,$sharedstatedir,;t t
20541 s,@localstatedir@,$localstatedir,;t t
20542 s,@libdir@,$libdir,;t t
20543 s,@includedir@,$includedir,;t t
20544 s,@oldincludedir@,$oldincludedir,;t t
20545 s,@infodir@,$infodir,;t t
20546 s,@mandir@,$mandir,;t t
20547 s,@build_alias@,$build_alias,;t t
20548 s,@host_alias@,$host_alias,;t t
20549 s,@target_alias@,$target_alias,;t t
20550 s,@DEFS@,$DEFS,;t t
20551 s,@ECHO_C@,$ECHO_C,;t t
20552 s,@ECHO_N@,$ECHO_N,;t t
20553 s,@ECHO_T@,$ECHO_T,;t t
20554 s,@LIBS@,$LIBS,;t t
20555 s,@build@,$build,;t t
20556 s,@build_cpu@,$build_cpu,;t t
20557 s,@build_vendor@,$build_vendor,;t t
20558 s,@build_os@,$build_os,;t t
20559 s,@host@,$host,;t t
20560 s,@host_cpu@,$host_cpu,;t t
20561 s,@host_vendor@,$host_vendor,;t t
20562 s,@host_os@,$host_os,;t t
20563 s,@target@,$target,;t t
20564 s,@target_cpu@,$target_cpu,;t t
20565 s,@target_vendor@,$target_vendor,;t t
20566 s,@target_os@,$target_os,;t t
20567 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20568 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20569 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20570 s,@PACKAGE@,$PACKAGE,;t t
20571 s,@VERSION@,$VERSION,;t t
20572 s,@ACLOCAL@,$ACLOCAL,;t t
20573 s,@AUTOCONF@,$AUTOCONF,;t t
20574 s,@AUTOMAKE@,$AUTOMAKE,;t t
20575 s,@AUTOHEADER@,$AUTOHEADER,;t t
20576 s,@MAKEINFO@,$MAKEINFO,;t t
20577 s,@SET_MAKE@,$SET_MAKE,;t t
20579 s,@CFLAGS@,$CFLAGS,;t t
20580 s,@LDFLAGS@,$LDFLAGS,;t t
20581 s,@CPPFLAGS@,$CPPFLAGS,;t t
20582 s,@ac_ct_CC@,$ac_ct_CC,;t t
20583 s,@EXEEXT@,$EXEEXT,;t t
20584 s,@OBJEXT@,$OBJEXT,;t t
20585 s,@EGREP@,$EGREP,;t t
20586 s,@LN_S@,$LN_S,;t t
20587 s,@ECHO@,$ECHO,;t t
20589 s,@ac_ct_AR@,$ac_ct_AR,;t t
20590 s,@RANLIB@,$RANLIB,;t t
20591 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20592 s,@STRIP@,$STRIP,;t t
20593 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20596 s,@CXXFLAGS@,$CXXFLAGS,;t t
20597 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20598 s,@CXXCPP@,$CXXCPP,;t t
20600 s,@FFLAGS@,$FFLAGS,;t t
20601 s,@ac_ct_F77@,$ac_ct_F77,;t t
20602 s,@LIBTOOL@,$LIBTOOL,;t t
20603 s,@APXS@,$APXS,;t t
20604 s,@WAND_CONFIG@,$WAND_CONFIG,;t t
20605 s,@APR_CONFIG@,$APR_CONFIG,;t t
20606 s,@with_apache_header@,$with_apache_header,;t t
20607 s,@QDEFS@,$QDEFS,;t t
20608 s,@DDEFS@,$DDEFS,;t t
20609 s,@LIBOBJS@,$LIBOBJS,;t t
20610 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20615 cat >>$CONFIG_STATUS <<\_ACEOF
20616 # Split the substitutions into bite-sized pieces for seds with
20617 # small command number limits, like on Digital OSF/1 and HP-UX.
20618 ac_max_sed_lines=48
20619 ac_sed_frag=1 # Number of current file.
20620 ac_beg=1 # First line for current file.
20621 ac_end=$ac_max_sed_lines # Line after last line for current file.
20624 while $ac_more_lines; do
20625 if test $ac_beg -gt 1; then
20626 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20628 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20630 if test ! -s $tmp/subs.frag; then
20631 ac_more_lines=false
20633 # The purpose of the label and of the branching condition is to
20634 # speed up the sed processing (if there are no `@' at all, there
20635 # is no need to browse any of the substitutions).
20636 # These are the two extra sed commands mentioned above.
20638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20639 if test -z "$ac_sed_cmds"; then
20640 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20642 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20644 ac_sed_frag=`expr $ac_sed_frag + 1`
20646 ac_end=`expr $ac_end + $ac_max_sed_lines`
20649 if test -z "$ac_sed_cmds"; then
20652 fi # test -n "$CONFIG_FILES"
20655 cat >>$CONFIG_STATUS <<\_ACEOF
20656 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20657 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20659 - | *:- | *:-:* ) # input from stdin
20661 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20662 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20663 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20665 * ) ac_file_in=$ac_file.in ;;
20668 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20669 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20671 X"$ac_file" : 'X\(//\)[^/]' \| \
20672 X"$ac_file" : 'X\(//\)$' \| \
20673 X"$ac_file" : 'X\(/\)' \| \
20674 . : '\(.\)' 2>/dev/null ||
20676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20678 /^X\(\/\/\)$/{ s//\1/; q; }
20679 /^X\(\/\).*/{ s//\1/; q; }
20681 { if $as_mkdir_p; then
20686 while test ! -d "$as_dir"; do
20687 as_dirs="$as_dir $as_dirs"
20688 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20690 X"$as_dir" : 'X\(//\)[^/]' \| \
20691 X"$as_dir" : 'X\(//\)$' \| \
20692 X"$as_dir" : 'X\(/\)' \| \
20693 . : '\(.\)' 2>/dev/null ||
20695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20697 /^X\(\/\/\)$/{ s//\1/; q; }
20698 /^X\(\/\).*/{ s//\1/; q; }
20701 test ! -n "$as_dirs" || mkdir $as_dirs
20702 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20703 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20704 { (exit 1); exit 1; }; }; }
20708 if test "$ac_dir" != .; then
20709 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20710 # A "../" for each directory in $ac_dir_suffix.
20711 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20713 ac_dir_suffix= ac_top_builddir=
20717 .) # No --srcdir option. We are building in place.
20719 if test -z "$ac_top_builddir"; then
20722 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20724 [\\/]* | ?:[\\/]* ) # Absolute path.
20725 ac_srcdir=$srcdir$ac_dir_suffix;
20726 ac_top_srcdir=$srcdir ;;
20727 *) # Relative path.
20728 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20729 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20732 # Do not use `cd foo && pwd` to compute absolute paths, because
20733 # the directories may not exist.
20735 .) ac_abs_builddir="$ac_dir";;
20738 .) ac_abs_builddir=`pwd`;;
20739 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20740 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20743 case $ac_abs_builddir in
20744 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20746 case ${ac_top_builddir}. in
20747 .) ac_abs_top_builddir=$ac_abs_builddir;;
20748 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20749 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20752 case $ac_abs_builddir in
20753 .) ac_abs_srcdir=$ac_srcdir;;
20756 .) ac_abs_srcdir=$ac_abs_builddir;;
20757 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20758 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20761 case $ac_abs_builddir in
20762 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20764 case $ac_top_srcdir in
20765 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20766 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20767 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20774 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20777 # Let's still pretend it is `configure' which instantiates (i.e., don't
20778 # use $as_me), people would be surprised to read:
20779 # /* config.h. Generated by config.status. */
20780 if test x"$ac_file" = x-; then
20783 configure_input="$ac_file. "
20785 configure_input=$configure_input"Generated from `echo $ac_file_in |
20786 sed 's,.*/,,'` by configure."
20788 # First look for the input files in the build tree, otherwise in the
20790 ac_file_inputs=`IFS=:
20791 for f in $ac_file_in; do
20793 -) echo $tmp/stdin ;;
20795 # Absolute (can't be DOS-style, as IFS=:)
20796 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20797 echo "$as_me: error: cannot find input file: $f" >&2;}
20798 { (exit 1); exit 1; }; }
20801 if test -f "$f"; then
20804 elif test -f "$srcdir/$f"; then
20809 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20810 echo "$as_me: error: cannot find input file: $f" >&2;}
20811 { (exit 1); exit 1; }; }
20814 done` || { (exit 1); exit 1; }
20816 if test x"$ac_file" != x-; then
20817 { echo "$as_me:$LINENO: creating $ac_file" >&5
20818 echo "$as_me: creating $ac_file" >&6;}
20822 cat >>$CONFIG_STATUS <<_ACEOF
20826 cat >>$CONFIG_STATUS <<\_ACEOF
20828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20829 s,@configure_input@,$configure_input,;t t
20830 s,@srcdir@,$ac_srcdir,;t t
20831 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20832 s,@top_srcdir@,$ac_top_srcdir,;t t
20833 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20834 s,@builddir@,$ac_builddir,;t t
20835 s,@abs_builddir@,$ac_abs_builddir,;t t
20836 s,@top_builddir@,$ac_top_builddir,;t t
20837 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20838 s,@INSTALL@,$ac_INSTALL,;t t
20839 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20841 if test x"$ac_file" != x-; then
20842 mv $tmp/out $ac_file
20850 cat >>$CONFIG_STATUS <<\_ACEOF
20853 # CONFIG_HEADER section.
20856 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20857 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20859 # ac_d sets the value in "#define NAME VALUE" lines.
20860 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20861 ac_dB='[ ].*$,\1#\2'
20864 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20865 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20866 ac_uB='$,\1#\2define\3'
20870 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20871 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20873 - | *:- | *:-:* ) # input from stdin
20875 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20877 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20878 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20879 * ) ac_file_in=$ac_file.in ;;
20882 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20883 echo "$as_me: creating $ac_file" >&6;}
20885 # First look for the input files in the build tree, otherwise in the
20887 ac_file_inputs=`IFS=:
20888 for f in $ac_file_in; do
20890 -) echo $tmp/stdin ;;
20892 # Absolute (can't be DOS-style, as IFS=:)
20893 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20894 echo "$as_me: error: cannot find input file: $f" >&2;}
20895 { (exit 1); exit 1; }; }
20896 # Do quote $f, to prevent DOS paths from being IFS'd.
20899 if test -f "$f"; then
20902 elif test -f "$srcdir/$f"; then
20907 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20908 echo "$as_me: error: cannot find input file: $f" >&2;}
20909 { (exit 1); exit 1; }; }
20912 done` || { (exit 1); exit 1; }
20913 # Remove the trailing spaces.
20914 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20918 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20919 # `conftest.undefs', that substitutes the proper values into
20920 # config.h.in to produce config.h. The first handles `#define'
20921 # templates, and the second `#undef' templates.
20922 # And first: Protect against being on the right side of a sed subst in
20923 # config.status. Protect against being in an unquoted here document
20924 # in config.status.
20925 rm -f conftest.defines conftest.undefs
20926 # Using a here document instead of a string reduces the quoting nightmare.
20927 # Putting comments in sed scripts is not portable.
20929 # `end' is used to avoid that the second main sed command (meant for
20930 # 0-ary CPP macros) applies to n-ary macro definitions.
20931 # See the Autoconf documentation for `clear'.
20932 cat >confdef2sed.sed <<\_ACEOF
20937 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20939 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20942 # If some macros were called several times there might be several times
20943 # the same #defines, which is useless. Nevertheless, we may not want to
20944 # sort them, since we want the *last* AC-DEFINE to be honored.
20945 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20946 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20947 rm -f confdef2sed.sed
20949 # This sed command replaces #undef with comments. This is necessary, for
20950 # example, in the case of _POSIX_SOURCE, which is predefined and required
20951 # on some systems where configure will not decide to define it.
20952 cat >>conftest.undefs <<\_ACEOF
20953 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20956 # Break up conftest.defines because some shells have a limit on the size
20957 # of here documents, and old seds have small limits too (100 cmds).
20958 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20959 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20960 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20961 echo ' :' >>$CONFIG_STATUS
20962 rm -f conftest.tail
20963 while grep . conftest.defines >/dev/null
20965 # Write a limited-size here document to $tmp/defines.sed.
20966 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20967 # Speed up: don't consider the non `#define' lines.
20968 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20969 # Work around the forget-to-reset-the-flag bug.
20970 echo 't clr' >>$CONFIG_STATUS
20971 echo ': clr' >>$CONFIG_STATUS
20972 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20974 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20976 mv $tmp/out $tmp/in
20978 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20979 rm -f conftest.defines
20980 mv conftest.tail conftest.defines
20982 rm -f conftest.defines
20983 echo ' fi # grep' >>$CONFIG_STATUS
20984 echo >>$CONFIG_STATUS
20986 # Break up conftest.undefs because some shells have a limit on the size
20987 # of here documents, and old seds have small limits too (100 cmds).
20988 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20989 rm -f conftest.tail
20990 while grep . conftest.undefs >/dev/null
20992 # Write a limited-size here document to $tmp/undefs.sed.
20993 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20994 # Speed up: don't consider the non `#undef'
20995 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20996 # Work around the forget-to-reset-the-flag bug.
20997 echo 't clr' >>$CONFIG_STATUS
20998 echo ': clr' >>$CONFIG_STATUS
20999 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21001 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21003 mv $tmp/out $tmp/in
21005 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21006 rm -f conftest.undefs
21007 mv conftest.tail conftest.undefs
21009 rm -f conftest.undefs
21011 cat >>$CONFIG_STATUS <<\_ACEOF
21012 # Let's still pretend it is `configure' which instantiates (i.e., don't
21013 # use $as_me), people would be surprised to read:
21014 # /* config.h. Generated by config.status. */
21015 if test x"$ac_file" = x-; then
21016 echo "/* Generated by configure. */" >$tmp/config.h
21018 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21020 cat $tmp/in >>$tmp/config.h
21022 if test x"$ac_file" != x-; then
21023 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21024 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21025 echo "$as_me: $ac_file is unchanged" >&6;}
21027 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21029 X"$ac_file" : 'X\(//\)[^/]' \| \
21030 X"$ac_file" : 'X\(//\)$' \| \
21031 X"$ac_file" : 'X\(/\)' \| \
21032 . : '\(.\)' 2>/dev/null ||
21034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21036 /^X\(\/\/\)$/{ s//\1/; q; }
21037 /^X\(\/\).*/{ s//\1/; q; }
21039 { if $as_mkdir_p; then
21044 while test ! -d "$as_dir"; do
21045 as_dirs="$as_dir $as_dirs"
21046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21048 X"$as_dir" : 'X\(//\)[^/]' \| \
21049 X"$as_dir" : 'X\(//\)$' \| \
21050 X"$as_dir" : 'X\(/\)' \| \
21051 . : '\(.\)' 2>/dev/null ||
21053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21055 /^X\(\/\/\)$/{ s//\1/; q; }
21056 /^X\(\/\).*/{ s//\1/; q; }
21059 test ! -n "$as_dirs" || mkdir $as_dirs
21060 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21062 { (exit 1); exit 1; }; }; }
21065 mv $tmp/config.h $ac_file
21069 rm -f $tmp/config.h
21073 cat >>$CONFIG_STATUS <<\_ACEOF
21076 # CONFIG_COMMANDS section.
21078 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21079 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21080 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21081 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21082 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21083 X"$ac_dest" : 'X\(//\)[^/]' \| \
21084 X"$ac_dest" : 'X\(//\)$' \| \
21085 X"$ac_dest" : 'X\(/\)' \| \
21086 . : '\(.\)' 2>/dev/null ||
21088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21090 /^X\(\/\/\)$/{ s//\1/; q; }
21091 /^X\(\/\).*/{ s//\1/; q; }
21093 { if $as_mkdir_p; then
21098 while test ! -d "$as_dir"; do
21099 as_dirs="$as_dir $as_dirs"
21100 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21102 X"$as_dir" : 'X\(//\)[^/]' \| \
21103 X"$as_dir" : 'X\(//\)$' \| \
21104 X"$as_dir" : 'X\(/\)' \| \
21105 . : '\(.\)' 2>/dev/null ||
21107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21109 /^X\(\/\/\)$/{ s//\1/; q; }
21110 /^X\(\/\).*/{ s//\1/; q; }
21113 test ! -n "$as_dirs" || mkdir $as_dirs
21114 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21115 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21116 { (exit 1); exit 1; }; }; }
21120 if test "$ac_dir" != .; then
21121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21122 # A "../" for each directory in $ac_dir_suffix.
21123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21125 ac_dir_suffix= ac_top_builddir=
21129 .) # No --srcdir option. We are building in place.
21131 if test -z "$ac_top_builddir"; then
21134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21136 [\\/]* | ?:[\\/]* ) # Absolute path.
21137 ac_srcdir=$srcdir$ac_dir_suffix;
21138 ac_top_srcdir=$srcdir ;;
21139 *) # Relative path.
21140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21144 # Do not use `cd foo && pwd` to compute absolute paths, because
21145 # the directories may not exist.
21147 .) ac_abs_builddir="$ac_dir";;
21150 .) ac_abs_builddir=`pwd`;;
21151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21155 case $ac_abs_builddir in
21156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21158 case ${ac_top_builddir}. in
21159 .) ac_abs_top_builddir=$ac_abs_builddir;;
21160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21164 case $ac_abs_builddir in
21165 .) ac_abs_srcdir=$ac_srcdir;;
21168 .) ac_abs_srcdir=$ac_abs_builddir;;
21169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21173 case $ac_abs_builddir in
21174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21176 case $ac_top_srcdir in
21177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21184 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21185 echo "$as_me: executing $ac_dest commands" >&6;}
21187 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;;
21192 cat >>$CONFIG_STATUS <<\_ACEOF
21194 { (exit 0); exit 0; }
21196 chmod +x $CONFIG_STATUS
21197 ac_clean_files=$ac_clean_files_save
21200 # configure is writing to config.log, and then calls config.status.
21201 # config.status does its own redirection, appending to config.log.
21202 # Unfortunately, on DOS this fails, as config.log is still kept open
21203 # by configure, so config.status won't be able to write to it; its
21204 # output is simply discarded. So we exec the FD to /dev/null,
21205 # effectively closing config.log, so it can be properly (re)opened and
21206 # appended to by config.status. When coming back to configure, we
21207 # need to make the FD available again.
21208 if test "$no_create" != yes; then
21210 ac_config_status_args=
21211 test "$silent" = yes &&
21212 ac_config_status_args="$ac_config_status_args --quiet"
21214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21217 # would make configure fail if this is the last instruction.
21218 $ac_cs_success || { (exit 1); exit 1; }