2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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.
428 ac_unique_file="README"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTVERSION ICONV_CFLAGS LIBOBJS RCPATH 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_CXX_set=${CXX+set}
924 ac_env_CXX_value=$CXX
925 ac_cv_env_CXX_set=${CXX+set}
926 ac_cv_env_CXX_value=$CXX
927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_env_CXXFLAGS_value=$CXXFLAGS
929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
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 this package 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]
1019 if test -n "$ac_init_help"; then
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-maintainer-mode enable make rules and dependencies not useful
1027 (and sometimes confusing) to the casual installer
1028 --disable-dependency-tracking speeds up one-time build
1029 --enable-dependency-tracking do not reject slow dependency extractors
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1042 --with-pic try to use only PIC/non-PIC objects [default=use
1045 include additional configurations [automatic]
1046 --with-darts=DIR specify a path for the header file of Darts
1047 --with-libiconv=DIR use libiconv in DIR
1049 Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1069 if test "$ac_init_help" = "recursive"; then
1070 # If there are subdirs, report their specific --help.
1072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073 test -d $ac_dir || continue
1076 if test "$ac_dir" != .; then
1077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078 # A "../" for each directory in $ac_dir_suffix.
1079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 ac_dir_suffix= ac_top_builddir=
1085 .) # No --srcdir option. We are building in place.
1087 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 [\\/]* | ?:[\\/]* ) # Absolute path.
1093 ac_srcdir=$srcdir$ac_dir_suffix;
1094 ac_top_srcdir=$srcdir ;;
1096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1103 .) ac_abs_builddir="$ac_dir";;
1106 .) ac_abs_builddir=`pwd`;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 case ${ac_top_builddir}. in
1115 .) ac_abs_top_builddir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1124 .) ac_abs_srcdir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 case $ac_top_srcdir in
1133 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 # Check for guested configure; otherwise get Cygnus style configure.
1141 if test -f $ac_srcdir/configure.gnu; then
1143 $SHELL $ac_srcdir/configure.gnu --help=recursive
1144 elif test -f $ac_srcdir/configure; then
1146 $SHELL $ac_srcdir/configure --help=recursive
1147 elif test -f $ac_srcdir/configure.ac ||
1148 test -f $ac_srcdir/configure.in; then
1150 $ac_configure --help
1152 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59. Invocation command line was
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 test -z "$as_dir" && as_dir=.
1209 echo "PATH: $as_dir"
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_must_keep_next=false
1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250 if test $ac_must_keep_next = true; then
1251 ac_must_keep_next=false # Got value, back to normal.
1254 *=* | --config-cache | -C | -disable-* | --disable-* \
1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257 | -with-* | --with-* | -without-* | --without-* | --x)
1258 case "$ac_configure_args0 " in
1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 -* ) ac_must_keep_next=true ;;
1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266 # Get rid of the leading space.
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log. We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281 # Save into config.log some information that might help in debugging.
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1291 # The following way of writing the cache mishandles newlines in values,
1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1314 for ac_var in $ac_subst_vars
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -n "$ac_subst_files"; then
1328 for ac_var in $ac_subst_files
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -s confdefs.h; then
1343 sed "/^$/d" confdefs.h | sort
1346 test "$ac_signal" != 0 &&
1347 echo "$as_me: caught signal $ac_signal"
1348 echo "$as_me: exit $exit_status"
1350 rm -f core *.core &&
1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354 for ac_signal in 1 2 13 15; do
1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 # Predefined preprocessor variables.
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394 if test "x$prefix" != xNONE; then
1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 for ac_site_file in $CONFIG_SITE; do
1401 if test -r "$ac_site_file"; then
1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404 sed 's/^/| /' "$ac_site_file" >&5
1409 if test -r "$cache_file"; then
1410 # Some versions of bash will fail to source /dev/null (special
1411 # files actually), so we avoid doing that.
1412 if test -f "$cache_file"; then
1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1416 [\\/]* | ?:[\\/]* ) . $cache_file;;
1417 *) . ./$cache_file;;
1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1426 # Check that the precious variables saved in the cache have kept the same
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432 eval ac_new_set=\$ac_env_${ac_var}_set
1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434 eval ac_new_val="\$ac_env_${ac_var}_value"
1435 case $ac_old_set,$ac_new_set in
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1446 if test "x$ac_old_val" != "x$ac_new_val"; then
1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1450 echo "$as_me: former value: $ac_old_val" >&2;}
1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1452 echo "$as_me: current value: $ac_new_val" >&2;}
1453 ac_cache_corrupted=:
1456 # Pass precious variables to config.status.
1457 if test "$ac_new_set" = set; then
1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 *) ac_arg=$ac_var=$ac_new_val ;;
1463 case " $ac_configure_args " in
1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 if $ac_cache_corrupted; then
1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474 { (exit 1); exit 1; }; }
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502 am__api_version="1.9"
1504 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1505 if test -f $ac_dir/install-sh; then
1507 ac_install_sh="$ac_aux_dir/install-sh -c"
1509 elif test -f $ac_dir/install.sh; then
1511 ac_install_sh="$ac_aux_dir/install.sh -c"
1513 elif test -f $ac_dir/shtool; then
1515 ac_install_sh="$ac_aux_dir/shtool install -c"
1519 if test -z "$ac_aux_dir"; then
1520 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1521 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1522 { (exit 1); exit 1; }; }
1524 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1528 # Find a good install program. We prefer a C program (faster),
1529 # so one script is as good as another. But avoid the broken or
1530 # incompatible versions:
1531 # SysV /etc/install, /usr/sbin/install
1532 # SunOS /usr/etc/install
1533 # IRIX /sbin/install
1535 # AmigaOS /C/install, which installs bootblocks on floppy discs
1536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1539 # OS/2's system install, which has a completely different semantic
1540 # ./install, which can be erroneously created by make from ./install.sh.
1541 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1542 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1543 if test -z "$INSTALL"; then
1544 if test "${ac_cv_path_install+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir=.
1552 # Account for people who put trailing slashes in PATH elements.
1554 ./ | .// | /cC/* | \
1555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1556 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1559 # OSF1 and SCO ODT 3.0 have their own names for install.
1560 # Don't use installbsd from OSF since it installs stuff as root
1562 for ac_prog in ginstall scoinst install; do
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1565 if test $ac_prog = install &&
1566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1567 # AIX install. It has an incompatible calling convention.
1569 elif test $ac_prog = install &&
1570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1571 # program-specific install script used by HP pwplus--don't use.
1574 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1586 if test "${ac_cv_path_install+set}" = set; then
1587 INSTALL=$ac_cv_path_install
1589 # As a last resort, use the slow shell script. We don't cache a
1590 # path for INSTALL within a source directory, because that will
1591 # break other packages using the cache if that directory is
1592 # removed, or if the path is relative.
1593 INSTALL=$ac_install_sh
1596 echo "$as_me:$LINENO: result: $INSTALL" >&5
1597 echo "${ECHO_T}$INSTALL" >&6
1599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1600 # It thinks the first close brace ends the variable substitution.
1601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1607 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1608 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1611 echo timestamp > conftest.file
1612 # Do `set' in a subshell so we don't clobber the current shell's
1613 # arguments. Must try -L first in case configure is actually a
1614 # symlink; some systems play weird games with the mod time of symlinks
1615 # (eg FreeBSD returns the mod time of the symlink's containing
1618 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1619 if test "$*" = "X"; then
1621 set X `ls -t $srcdir/configure conftest.file`
1624 if test "$*" != "X $srcdir/configure conftest.file" \
1625 && test "$*" != "X conftest.file $srcdir/configure"; then
1627 # If neither matched, then we have a broken ls. This can happen
1628 # if, for instance, CONFIG_SHELL is bash and it inherits a
1629 # broken ls alias from the environment. This has actually
1630 # happened. Such a system could not be considered "sane".
1631 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1632 alias in your environment" >&5
1633 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1634 alias in your environment" >&2;}
1635 { (exit 1); exit 1; }; }
1638 test "$2" = conftest.file
1644 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1645 Check your system clock" >&5
1646 echo "$as_me: error: newly created file is older than distributed files!
1647 Check your system clock" >&2;}
1648 { (exit 1); exit 1; }; }
1650 echo "$as_me:$LINENO: result: yes" >&5
1651 echo "${ECHO_T}yes" >&6
1652 test "$program_prefix" != NONE &&
1653 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1654 # Use a double $ so make ignores it.
1655 test "$program_suffix" != NONE &&
1656 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1657 # Double any \ or $. echo might interpret backslashes.
1658 # By default was `s,x,x', remove it if useless.
1659 cat <<\_ACEOF >conftest.sed
1660 s/[\\$]/&&/g;s/;s,x,x,$//
1662 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1665 # expand $ac_aux_dir to an absolute path
1666 am_aux_dir=`cd $ac_aux_dir && pwd`
1668 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1669 # Use eval to expand $SHELL
1670 if eval "$MISSING --run true"; then
1671 am_missing_run="$MISSING --run "
1674 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1675 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1678 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1679 # We used to keeping the `.' as first argument, in order to
1680 # allow $(mkdir_p) to be used without argument. As in
1681 # $(mkdir_p) $(somedir)
1682 # where $(somedir) is conditionally defined. However this is wrong
1684 # 1. if the package is installed by a user who cannot write `.'
1685 # make install will fail,
1686 # 2. the above comment should most certainly read
1687 # $(mkdir_p) $(DESTDIR)$(somedir)
1688 # so it does not work when $(somedir) is undefined and
1689 # $(DESTDIR) is not.
1690 # To support the latter case, we have to write
1691 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1692 # so the `.' trick is pointless.
1693 mkdir_p='mkdir -p --'
1695 # On NextStep and OpenStep, the `mkdir' command does not
1696 # recognize any option. It will interpret all options as
1697 # directories to create, and then abort because `.' already
1699 for d in ./-p ./--version;
1701 test -d $d && rmdir $d
1703 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1704 if test -f "$ac_aux_dir/mkinstalldirs"; then
1705 mkdir_p='$(mkinstalldirs)'
1707 mkdir_p='$(install_sh) -d'
1711 for ac_prog in gawk mawk nawk awk
1713 # Extract the first word of "$ac_prog", so it can be a program name with args.
1714 set dummy $ac_prog; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_AWK+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 if test -n "$AWK"; then
1721 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_AWK="$ac_prog"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 if test -n "$AWK"; then
1741 echo "$as_me:$LINENO: result: $AWK" >&5
1742 echo "${ECHO_T}$AWK" >&6
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1748 test -n "$AWK" && break
1751 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1752 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1753 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1754 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 cat >conftest.make <<\_ACEOF
1759 @echo 'ac_maketemp="$(MAKE)"'
1761 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1762 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1763 if test -n "$ac_maketemp"; then
1764 eval ac_cv_prog_make_${ac_make}_set=yes
1766 eval ac_cv_prog_make_${ac_make}_set=no
1770 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1771 echo "$as_me:$LINENO: result: yes" >&5
1772 echo "${ECHO_T}yes" >&6
1775 echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1777 SET_MAKE="MAKE=${MAKE-make}"
1780 rm -rf .tst 2>/dev/null
1781 mkdir .tst 2>/dev/null
1782 if test -d .tst; then
1787 rmdir .tst 2>/dev/null
1789 # test to see if srcdir already configured
1790 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1791 test -f $srcdir/config.status; then
1792 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1793 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1794 { (exit 1); exit 1; }; }
1797 # test whether we have cygpath
1798 if test -z "$CYGPATH_W"; then
1799 if (cygpath --version) >/dev/null 2>/dev/null; then
1800 CYGPATH_W='cygpath -w'
1807 # Define the identity of the package.
1809 VERSION=2.4.0-preview2
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE "$PACKAGE"
1817 cat >>confdefs.h <<_ACEOF
1818 #define VERSION "$VERSION"
1821 # Some tools Automake needs.
1823 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1826 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1829 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1832 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1835 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1837 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1839 # Installed binaries are usually stripped using `strip' when the user
1840 # run `make install-strip'. However `strip' might not be the right
1841 # tool to use in cross-compilation environments, therefore Automake
1842 # will honor the `STRIP' environment variable to overrule this program.
1843 if test "$cross_compiling" != no; then
1844 if test -n "$ac_tool_prefix"; then
1845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}strip; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_STRIP+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 if test -n "$STRIP"; then
1853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 STRIP=$ac_cv_prog_STRIP
1872 if test -n "$STRIP"; then
1873 echo "$as_me:$LINENO: result: $STRIP" >&5
1874 echo "${ECHO_T}$STRIP" >&6
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1881 if test -z "$ac_cv_prog_STRIP"; then
1883 # Extract the first word of "strip", so it can be a program name with args.
1884 set dummy strip; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 if test -n "$ac_ct_STRIP"; then
1891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_ac_ct_STRIP="strip"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1911 if test -n "$ac_ct_STRIP"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1913 echo "${ECHO_T}$ac_ct_STRIP" >&6
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1921 STRIP="$ac_cv_prog_STRIP"
1925 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1927 # We need awk for the "check" target. The system "awk" is bad on
1929 # Always define AMTAR for backward compatibility.
1931 AMTAR=${AMTAR-"${am_missing_run}tar"}
1933 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1939 ac_config_headers="$ac_config_headers config.h"
1941 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1942 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1943 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1944 if test "${enable_maintainer_mode+set}" = set; then
1945 enableval="$enable_maintainer_mode"
1946 USE_MAINTAINER_MODE=$enableval
1948 USE_MAINTAINER_MODE=no
1950 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1951 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1954 if test $USE_MAINTAINER_MODE = yes; then
1955 MAINTAINER_MODE_TRUE=
1956 MAINTAINER_MODE_FALSE='#'
1958 MAINTAINER_MODE_TRUE='#'
1959 MAINTAINER_MODE_FALSE=
1962 MAINT=$MAINTAINER_MODE_TRUE
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 if test -n "$ac_tool_prefix"; then
1972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test -n "$CC"; then
2000 echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2008 if test -z "$ac_cv_prog_CC"; then
2010 # Extract the first word of "gcc", so it can be a program name with args.
2011 set dummy gcc; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$ac_ct_CC"; then
2018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027 ac_cv_prog_ac_ct_CC="gcc"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2037 if test -n "$ac_ct_CC"; then
2038 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2039 echo "${ECHO_T}$ac_ct_CC" >&6
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2050 if test -z "$CC"; then
2051 if test -n "$ac_tool_prefix"; then
2052 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069 ac_cv_prog_CC="${ac_tool_prefix}cc"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 if test -n "$CC"; then
2080 echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6
2083 echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2088 if test -z "$ac_cv_prog_CC"; then
2090 # Extract the first word of "cc", so it can be a program name with args.
2091 set dummy cc; ac_word=$2
2092 echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 if test -n "$ac_ct_CC"; then
2098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107 ac_cv_prog_ac_ct_CC="cc"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2117 if test -n "$ac_ct_CC"; then
2118 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2119 echo "${ECHO_T}$ac_ct_CC" >&6
2121 echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6
2131 if test -z "$CC"; then
2132 # Extract the first word of "cc", so it can be a program name with args.
2133 set dummy cc; ac_word=$2
2134 echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2151 ac_prog_rejected=yes
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 if test $ac_prog_rejected = yes; then
2162 # We found a bogon in the path, so make sure we never use it.
2163 set dummy $ac_cv_prog_CC
2165 if test $# != 0; then
2166 # We chose a different compiler from the bogus one.
2167 # However, it has the same basename, so the bogon will be chosen
2168 # first if we set CC to just the basename; use the full file name.
2170 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2176 if test -n "$CC"; then
2177 echo "$as_me:$LINENO: result: $CC" >&5
2178 echo "${ECHO_T}$CC" >&6
2180 echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6
2185 if test -z "$CC"; then
2186 if test -n "$ac_tool_prefix"; then
2189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2191 echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2193 if test "${ac_cv_prog_CC+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 if test -n "$CC"; then
2217 echo "$as_me:$LINENO: result: $CC" >&5
2218 echo "${ECHO_T}$CC" >&6
2220 echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6
2224 test -n "$CC" && break
2227 if test -z "$CC"; then
2231 # Extract the first word of "$ac_prog", so it can be a program name with args.
2232 set dummy $ac_prog; ac_word=$2
2233 echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 if test -n "$ac_ct_CC"; then
2239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248 ac_cv_prog_ac_ct_CC="$ac_prog"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258 if test -n "$ac_ct_CC"; then
2259 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260 echo "${ECHO_T}$ac_ct_CC" >&6
2262 echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2266 test -n "$ac_ct_CC" && break
2275 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: no acceptable C compiler found in \$PATH
2278 See \`config.log' for more details." >&2;}
2279 { (exit 1); exit 1; }; }
2281 # Provide some information about the compiler.
2282 echo "$as_me:$LINENO:" \
2283 "checking for C compiler version" >&5
2284 ac_compiler=`set X $ac_compile; echo $2`
2285 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2286 (eval $ac_compiler --version </dev/null >&5) 2>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }
2290 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2291 (eval $ac_compiler -v </dev/null >&5) 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }
2295 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2296 (eval $ac_compiler -V </dev/null >&5) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }
2301 cat >conftest.$ac_ext <<_ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2316 ac_clean_files_save=$ac_clean_files
2317 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2318 # Try to create an executable without -o first, disregard a.out.
2319 # It will help us diagnose broken compilers, and finding out an intuition
2321 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2322 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2323 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2324 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2325 (eval $ac_link_default) 2>&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; then
2329 # Find the output, starting from the most likely. This scheme is
2330 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2333 # Be careful to initialize this variable, since it used to be cached.
2334 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2336 # b.out is created by i960 compilers.
2337 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2339 test -f "$ac_file" || continue
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2344 # This is the source file.
2347 # We found the default executable, but exeext='' is most
2351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2352 # FIXME: I believe we export ac_cv_exeext for Libtool,
2353 # but it would be cool to find out if it's true. Does anybody
2354 # maintain Libtool? --akim.
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2365 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2366 See \`config.log' for more details." >&5
2367 echo "$as_me: error: C compiler cannot create executables
2368 See \`config.log' for more details." >&2;}
2369 { (exit 77); exit 77; }; }
2372 ac_exeext=$ac_cv_exeext
2373 echo "$as_me:$LINENO: result: $ac_file" >&5
2374 echo "${ECHO_T}$ac_file" >&6
2376 # Check the compiler produces executables we can run. If not, either
2377 # the compiler is broken, or we cross compile.
2378 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2379 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2380 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2381 # If not cross compiling, check that we can run a simple program.
2382 if test "$cross_compiling" != yes; then
2383 if { ac_try='./$ac_file'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; }; then
2391 if test "$cross_compiling" = maybe; then
2394 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2395 If you meant to cross compile, use \`--host'.
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: cannot run C compiled programs.
2398 If you meant to cross compile, use \`--host'.
2399 See \`config.log' for more details." >&2;}
2400 { (exit 1); exit 1; }; }
2404 echo "$as_me:$LINENO: result: yes" >&5
2405 echo "${ECHO_T}yes" >&6
2407 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2408 ac_clean_files=$ac_clean_files_save
2409 # Check the compiler produces executables we can run. If not, either
2410 # the compiler is broken, or we cross compile.
2411 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2412 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2413 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2414 echo "${ECHO_T}$cross_compiling" >&6
2416 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2417 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2419 (eval $ac_link) 2>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; then
2423 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2424 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2425 # work properly (i.e., refer to `conftest.exe'), while it won't with
2427 for ac_file in conftest.exe conftest conftest.*; do
2428 test -f "$ac_file" || continue
2430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2431 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2439 See \`config.log' for more details." >&5
2440 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2441 See \`config.log' for more details." >&2;}
2442 { (exit 1); exit 1; }; }
2445 rm -f conftest$ac_cv_exeext
2446 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2447 echo "${ECHO_T}$ac_cv_exeext" >&6
2449 rm -f conftest.$ac_ext
2450 EXEEXT=$ac_cv_exeext
2452 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2453 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2454 if test "${ac_cv_objext+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 cat >conftest.$ac_ext <<_ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2472 rm -f conftest.o conftest.obj
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; then
2478 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2489 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2492 See \`config.log' for more details." >&2;}
2493 { (exit 1); exit 1; }; }
2496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2498 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2499 echo "${ECHO_T}$ac_cv_objext" >&6
2500 OBJEXT=$ac_cv_objext
2502 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2503 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2504 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 cat >conftest.$ac_ext <<_ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2529 grep -v '^ *+' conftest.er1 >conftest.err
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_c_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2558 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2559 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2560 GCC=`test $ac_compiler_gnu = yes && echo yes`
2561 ac_test_CFLAGS=${CFLAGS+set}
2562 ac_save_CFLAGS=$CFLAGS
2564 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2565 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2566 if test "${ac_cv_prog_cc_g+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 cat >conftest.$ac_ext <<_ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2588 grep -v '^ *+' conftest.er1 >conftest.err
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -z "$ac_c_werror_flag"
2594 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2617 if test "$ac_test_CFLAGS" = set; then
2618 CFLAGS=$ac_save_CFLAGS
2619 elif test $ac_cv_prog_cc_g = yes; then
2620 if test "$GCC" = yes; then
2626 if test "$GCC" = yes; then
2632 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2633 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2634 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 ac_cv_prog_cc_stdc=no
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2647 #include <sys/types.h>
2648 #include <sys/stat.h>
2649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2650 struct buf { int x; };
2651 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652 static char *e (p, i)
2658 static char *f (char * (*g) (char **, int), char **p, ...)
2663 s = g (p, va_arg (v,int));
2668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2669 function prototypes and stuff, but not '\xHH' hex character constants.
2670 These don't provoke an error unfortunately, instead are silently treated
2671 as 'x'. The following induces an error, until -std1 is added to get
2672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2673 array size at least. It's necessary to write '\x00'==0 to get something
2674 that's true only with -std1. */
2675 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2677 int test (int i, double x);
2678 struct s1 {int (*f) (int a);};
2679 struct s2 {int (*f) (double a);};
2680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2691 # Don't try gcc -ansi; that turns off useful extensions and
2692 # breaks some systems' header files.
2693 # AIX -qlanglvl=ansi
2694 # Ultrix and OSF/1 -std1
2695 # HP-UX 10.20 and later -Ae
2696 # HP-UX older versions -Aa -D_HPUX_SOURCE
2697 # SVR4 -Xc -D__EXTENSIONS__
2698 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2700 CC="$ac_save_CC $ac_arg"
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag"
2711 || test ! -s conftest.err'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 ac_cv_prog_cc_stdc=$ac_arg
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2730 rm -f conftest.err conftest.$ac_objext
2732 rm -f conftest.$ac_ext conftest.$ac_objext
2737 case "x$ac_cv_prog_cc_stdc" in
2739 echo "$as_me:$LINENO: result: none needed" >&5
2740 echo "${ECHO_T}none needed" >&6 ;;
2742 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2743 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2744 CC="$CC $ac_cv_prog_cc_stdc" ;;
2747 # Some people use a C++ compiler to compile C. Since we use `exit',
2748 # in C++ we need to declare it. In case someone uses the same compiler
2749 # for both compiling C and C++ we need to have the C++ compiler decide
2750 # the declaration of exit, since it's the most demanding environment.
2751 cat >conftest.$ac_ext <<_ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2760 grep -v '^ *+' conftest.er1 >conftest.err
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 for ac_declaration in \
2780 'extern "C" void std::exit (int) throw (); using std::exit;' \
2781 'extern "C" void std::exit (int); using std::exit;' \
2782 'extern "C" void exit (int) throw ();' \
2783 'extern "C" void exit (int);' \
2786 cat >conftest.$ac_ext <<_ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2806 grep -v '^ *+' conftest.er1 >conftest.err
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_c_werror_flag"
2812 || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 cat >conftest.$ac_ext <<_ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1 >conftest.err
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_c_werror_flag"
2857 || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2878 if test -n "$ac_declaration"; then
2879 echo '#ifdef __cplusplus' >>confdefs.h
2880 echo $ac_declaration >>confdefs.h
2881 echo '#endif' >>confdefs.h
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 DEPDIR="${am__leading_dot}deps"
2897 ac_config_commands="$ac_config_commands depfiles"
2900 am_make=${MAKE-make}
2901 cat > confinc << 'END'
2906 # If we don't find an include directive, just comment out the code.
2907 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2908 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2912 # First try GNU make style include.
2913 echo "include confinc" > confmf
2914 # We grep out `Entering directory' and `Leaving directory'
2915 # messages which can occur if `w' ends up in MAKEFLAGS.
2916 # In particular we don't look at `^make:' because GNU make might
2917 # be invoked under some other name (usually "gmake"), in which
2918 # case it prints its new name instead of `make'.
2919 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2924 # Now try BSD make style include.
2925 if test "$am__include" = "#"; then
2926 echo '.include "confinc"' > confmf
2927 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2928 am__include=.include
2935 echo "$as_me:$LINENO: result: $_am_result" >&5
2936 echo "${ECHO_T}$_am_result" >&6
2937 rm -f confinc confmf
2939 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2940 if test "${enable_dependency_tracking+set}" = set; then
2941 enableval="$enable_dependency_tracking"
2944 if test "x$enable_dependency_tracking" != xno; then
2945 am_depcomp="$ac_aux_dir/depcomp"
2950 if test "x$enable_dependency_tracking" != xno; then
2961 depcc="$CC" am_compiler_list=
2963 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2964 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2965 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2969 # We make a subdir and do the tests there. Otherwise we can end up
2970 # making bogus files that we don't know about and never remove. For
2971 # instance it was reported that on HP-UX the gcc test will end up
2972 # making a dummy file named `D' -- because `-MD' means `put the output
2975 # Copy depcomp to subdir because otherwise we won't find it if we're
2976 # using a relative directory.
2977 cp "$am_depcomp" conftest.dir
2979 # We will build objects and dependencies in a subdirectory because
2980 # it helps to detect inapplicable dependency modes. For instance
2981 # both Tru64's cc and ICC support -MD to output dependencies as a
2982 # side effect of compilation, but ICC will put the dependencies in
2983 # the current directory while Tru64 will put them in the object
2987 am_cv_CC_dependencies_compiler_type=none
2988 if test "$am_compiler_list" = ""; then
2989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2991 for depmode in $am_compiler_list; do
2992 # Setup a source with many dependencies, because some compilers
2993 # like to wrap large dependency lists on column 80 (with \), and
2994 # we should not choose a depcomp mode which is confused by this.
2996 # We need to recreate these files for each test, as the compiler may
2997 # overwrite some of them when testing with obscure command lines.
2998 # This happens at least with the AIX C compiler.
3000 for i in 1 2 3 4 5 6; do
3001 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3002 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3003 # Solaris 8's {/usr,}/bin/sh.
3004 touch sub/conftst$i.h
3006 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3010 # after this tag, mechanisms are not by side-effect, so they'll
3011 # only be used when explicitly requested
3012 if test "x$enable_dependency_tracking" = xyes; then
3020 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3021 # mode. It turns out that the SunPro C++ compiler does not properly
3022 # handle `-M -o', and we need to detect this.
3023 if depmode=$depmode \
3024 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3025 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3026 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3027 >/dev/null 2>conftest.err &&
3028 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3029 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3030 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3031 # icc doesn't choke on unknown options, it will just issue warnings
3032 # or remarks (even with -Werror). So we grep stderr for any message
3033 # that says an option was ignored or not supported.
3034 # When given -MP, icc 7.0 and 7.1 complain thusly:
3035 # icc: Command line warning: ignoring option '-M'; no argument required
3036 # The diagnosis changed in icc 8.0:
3037 # icc: Command line remark: option '-MP' not supported
3038 if (grep 'ignoring option' conftest.err ||
3039 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3040 am_cv_CC_dependencies_compiler_type=$depmode
3049 am_cv_CC_dependencies_compiler_type=none
3053 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3054 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3055 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3060 test "x$enable_dependency_tracking" != xno \
3061 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3063 am__fastdepCC_FALSE='#'
3065 am__fastdepCC_TRUE='#'
3066 am__fastdepCC_FALSE=
3071 ac_cpp='$CXXCPP $CPPFLAGS'
3072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3075 if test -n "$ac_tool_prefix"; then
3076 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3080 echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3082 if test "${ac_cv_prog_CXX+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 if test -n "$CXX"; then
3086 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 if test -n "$CXX"; then
3106 echo "$as_me:$LINENO: result: $CXX" >&5
3107 echo "${ECHO_T}$CXX" >&6
3109 echo "$as_me:$LINENO: result: no" >&5
3110 echo "${ECHO_T}no" >&6
3113 test -n "$CXX" && break
3116 if test -z "$CXX"; then
3118 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3120 # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 if test -n "$ac_ct_CXX"; then
3128 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_CXX="$ac_prog"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3147 if test -n "$ac_ct_CXX"; then
3148 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3149 echo "${ECHO_T}$ac_ct_CXX" >&6
3151 echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6
3155 test -n "$ac_ct_CXX" && break
3157 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3163 # Provide some information about the compiler.
3164 echo "$as_me:$LINENO:" \
3165 "checking for C++ compiler version" >&5
3166 ac_compiler=`set X $ac_compile; echo $2`
3167 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3168 (eval $ac_compiler --version </dev/null >&5) 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }
3172 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3173 (eval $ac_compiler -v </dev/null >&5) 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }
3177 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3178 (eval $ac_compiler -V </dev/null >&5) 2>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }
3183 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3184 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3185 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3206 rm -f conftest.$ac_objext
3207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } &&
3215 { ac_try='test -z "$ac_cxx_werror_flag"
3216 || test ! -s conftest.err'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3239 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3240 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3241 GXX=`test $ac_compiler_gnu = yes && echo yes`
3242 ac_test_CXXFLAGS=${CXXFLAGS+set}
3243 ac_save_CXXFLAGS=$CXXFLAGS
3245 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3246 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3247 if test "${ac_cv_prog_cxx_g+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>conftest.er1
3269 grep -v '^ *+' conftest.er1 >conftest.err
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -z "$ac_cxx_werror_flag"
3275 || test ! -s conftest.err'
3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; } &&
3281 { ac_try='test -s conftest.$ac_objext'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; }; then
3287 ac_cv_prog_cxx_g=yes
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3296 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3297 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3298 if test "$ac_test_CXXFLAGS" = set; then
3299 CXXFLAGS=$ac_save_CXXFLAGS
3300 elif test $ac_cv_prog_cxx_g = yes; then
3301 if test "$GXX" = yes; then
3307 if test "$GXX" = yes; then
3313 for ac_declaration in \
3315 'extern "C" void std::exit (int) throw (); using std::exit;' \
3316 'extern "C" void std::exit (int); using std::exit;' \
3317 'extern "C" void exit (int) throw ();' \
3318 'extern "C" void exit (int);' \
3321 cat >conftest.$ac_ext <<_ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3337 rm -f conftest.$ac_objext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339 (eval $ac_compile) 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -z "$ac_cxx_werror_flag"
3347 || test ! -s conftest.err'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; } &&
3353 { ac_try='test -s conftest.$ac_objext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3367 cat >conftest.$ac_ext <<_ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>conftest.er1
3386 grep -v '^ *+' conftest.er1 >conftest.err
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try='test -z "$ac_cxx_werror_flag"
3392 || test ! -s conftest.err'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413 if test -n "$ac_declaration"; then
3414 echo '#ifdef __cplusplus' >>confdefs.h
3415 echo $ac_declaration >>confdefs.h
3416 echo '#endif' >>confdefs.h
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 depcc="$CXX" am_compiler_list=
3427 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3428 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3429 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3433 # We make a subdir and do the tests there. Otherwise we can end up
3434 # making bogus files that we don't know about and never remove. For
3435 # instance it was reported that on HP-UX the gcc test will end up
3436 # making a dummy file named `D' -- because `-MD' means `put the output
3439 # Copy depcomp to subdir because otherwise we won't find it if we're
3440 # using a relative directory.
3441 cp "$am_depcomp" conftest.dir
3443 # We will build objects and dependencies in a subdirectory because
3444 # it helps to detect inapplicable dependency modes. For instance
3445 # both Tru64's cc and ICC support -MD to output dependencies as a
3446 # side effect of compilation, but ICC will put the dependencies in
3447 # the current directory while Tru64 will put them in the object
3451 am_cv_CXX_dependencies_compiler_type=none
3452 if test "$am_compiler_list" = ""; then
3453 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3455 for depmode in $am_compiler_list; do
3456 # Setup a source with many dependencies, because some compilers
3457 # like to wrap large dependency lists on column 80 (with \), and
3458 # we should not choose a depcomp mode which is confused by this.
3460 # We need to recreate these files for each test, as the compiler may
3461 # overwrite some of them when testing with obscure command lines.
3462 # This happens at least with the AIX C compiler.
3464 for i in 1 2 3 4 5 6; do
3465 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3466 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3467 # Solaris 8's {/usr,}/bin/sh.
3468 touch sub/conftst$i.h
3470 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3474 # after this tag, mechanisms are not by side-effect, so they'll
3475 # only be used when explicitly requested
3476 if test "x$enable_dependency_tracking" = xyes; then
3484 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3485 # mode. It turns out that the SunPro C++ compiler does not properly
3486 # handle `-M -o', and we need to detect this.
3487 if depmode=$depmode \
3488 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3489 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3490 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3491 >/dev/null 2>conftest.err &&
3492 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3493 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3494 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3495 # icc doesn't choke on unknown options, it will just issue warnings
3496 # or remarks (even with -Werror). So we grep stderr for any message
3497 # that says an option was ignored or not supported.
3498 # When given -MP, icc 7.0 and 7.1 complain thusly:
3499 # icc: Command line warning: ignoring option '-M'; no argument required
3500 # The diagnosis changed in icc 8.0:
3501 # icc: Command line remark: option '-MP' not supported
3502 if (grep 'ignoring option' conftest.err ||
3503 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3504 am_cv_CXX_dependencies_compiler_type=$depmode
3513 am_cv_CXX_dependencies_compiler_type=none
3517 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3518 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3519 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3524 test "x$enable_dependency_tracking" != xno \
3525 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3526 am__fastdepCXX_TRUE=
3527 am__fastdepCXX_FALSE='#'
3529 am__fastdepCXX_TRUE='#'
3530 am__fastdepCXX_FALSE=
3534 # Check whether --enable-shared or --disable-shared was given.
3535 if test "${enable_shared+set}" = set; then
3536 enableval="$enable_shared"
3537 p=${PACKAGE-default}
3539 yes) enable_shared=yes ;;
3540 no) enable_shared=no ;;
3543 # Look at the argument we got. We use all the common list separators.
3544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3545 for pkg in $enableval; do
3547 if test "X$pkg" = "X$p"; then
3558 # Check whether --enable-static or --disable-static was given.
3559 if test "${enable_static+set}" = set; then
3560 enableval="$enable_static"
3561 p=${PACKAGE-default}
3563 yes) enable_static=yes ;;
3564 no) enable_static=no ;;
3567 # Look at the argument we got. We use all the common list separators.
3568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3569 for pkg in $enableval; do
3571 if test "X$pkg" = "X$p"; then
3582 # Check whether --enable-fast-install or --disable-fast-install was given.
3583 if test "${enable_fast_install+set}" = set; then
3584 enableval="$enable_fast_install"
3585 p=${PACKAGE-default}
3587 yes) enable_fast_install=yes ;;
3588 no) enable_fast_install=no ;;
3590 enable_fast_install=no
3591 # Look at the argument we got. We use all the common list separators.
3592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3593 for pkg in $enableval; do
3595 if test "X$pkg" = "X$p"; then
3596 enable_fast_install=yes
3603 enable_fast_install=yes
3606 # Make sure we can run config.sub.
3607 $ac_config_sub sun4 >/dev/null 2>&1 ||
3608 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3609 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3610 { (exit 1); exit 1; }; }
3612 echo "$as_me:$LINENO: checking build system type" >&5
3613 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3614 if test "${ac_cv_build+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 ac_cv_build_alias=$build_alias
3618 test -z "$ac_cv_build_alias" &&
3619 ac_cv_build_alias=`$ac_config_guess`
3620 test -z "$ac_cv_build_alias" &&
3621 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3622 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3623 { (exit 1); exit 1; }; }
3624 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3626 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3627 { (exit 1); exit 1; }; }
3630 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3631 echo "${ECHO_T}$ac_cv_build" >&6
3633 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3634 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3635 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3638 echo "$as_me:$LINENO: checking host system type" >&5
3639 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3640 if test "${ac_cv_host+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 ac_cv_host_alias=$host_alias
3644 test -z "$ac_cv_host_alias" &&
3645 ac_cv_host_alias=$ac_cv_build_alias
3646 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3647 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3648 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3649 { (exit 1); exit 1; }; }
3652 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3653 echo "${ECHO_T}$ac_cv_host" >&6
3655 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3656 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3657 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3660 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3661 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3662 if test "${lt_cv_path_SED+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 # Loop through the user's path and test for sed and gsed.
3666 # Then use that list of sed's as ones to test for truncation.
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 test -z "$as_dir" && as_dir=.
3672 for lt_ac_prog in sed gsed; do
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3675 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3682 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3683 # along with /bin/sed that truncates output.
3684 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3685 test ! -f $lt_ac_sed && break
3686 cat /dev/null > conftest.in
3688 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3689 # Check for GNU sed and select it if it is found.
3690 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3691 lt_cv_path_SED=$lt_ac_sed
3695 cat conftest.in conftest.in >conftest.tmp
3696 mv conftest.tmp conftest.in
3697 cp conftest.in conftest.nl
3699 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3700 cmp -s conftest.out conftest.nl || break
3701 # 10000 chars as input seems more than enough
3702 test $lt_ac_count -gt 10 && break
3703 lt_ac_count=`expr $lt_ac_count + 1`
3704 if test $lt_ac_count -gt $lt_ac_max; then
3705 lt_ac_max=$lt_ac_count
3706 lt_cv_path_SED=$lt_ac_sed
3714 echo "$as_me:$LINENO: result: $SED" >&5
3715 echo "${ECHO_T}$SED" >&6
3717 echo "$as_me:$LINENO: checking for egrep" >&5
3718 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3719 if test "${ac_cv_prog_egrep+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3723 then ac_cv_prog_egrep='grep -E'
3724 else ac_cv_prog_egrep='egrep'
3727 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3728 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3729 EGREP=$ac_cv_prog_egrep
3733 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3734 if test "${with_gnu_ld+set}" = set; then
3735 withval="$with_gnu_ld"
3736 test "$withval" = no || with_gnu_ld=yes
3741 if test "$GCC" = yes; then
3742 # Check if gcc -print-prog-name=ld gives a path.
3743 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3744 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3747 # gcc leaves a trailing carriage return which upsets mingw
3748 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3750 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3753 # Accept absolute paths.
3755 re_direlt='/[^/][^/]*/\.\./'
3756 # Canonicalize the pathname of ld
3757 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3758 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3759 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3761 test -z "$LD" && LD="$ac_prog"
3764 # If it fails, then pretend we aren't using GCC.
3768 # If it is relative, then search for the first ld in PATH.
3772 elif test "$with_gnu_ld" = yes; then
3773 echo "$as_me:$LINENO: checking for GNU ld" >&5
3774 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3776 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3777 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3779 if test "${lt_cv_path_LD+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 if test -z "$LD"; then
3783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3784 for ac_dir in $PATH; do
3786 test -z "$ac_dir" && ac_dir=.
3787 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3788 lt_cv_path_LD="$ac_dir/$ac_prog"
3789 # Check to see if the program is GNU ld. I'd rather use --version,
3790 # but apparently some GNU ld's only accept -v.
3791 # Break only if it was the GNU/non-GNU ld that we prefer.
3792 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3793 *GNU* | *'with BFD'*)
3794 test "$with_gnu_ld" != no && break
3797 test "$with_gnu_ld" != yes && break
3804 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3809 if test -n "$LD"; then
3810 echo "$as_me:$LINENO: result: $LD" >&5
3811 echo "${ECHO_T}$LD" >&6
3813 echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3816 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3817 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3818 { (exit 1); exit 1; }; }
3819 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3820 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3821 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3825 case `$LD -v 2>&1 </dev/null` in
3826 *GNU* | *'with BFD'*)
3827 lt_cv_prog_gnu_ld=yes
3830 lt_cv_prog_gnu_ld=no
3834 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3835 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3836 with_gnu_ld=$lt_cv_prog_gnu_ld
3839 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3840 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3841 if test "${lt_cv_ld_reload_flag+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 lt_cv_ld_reload_flag='-r'
3846 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3847 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3848 reload_flag=$lt_cv_ld_reload_flag
3849 case $reload_flag in
3851 *) reload_flag=" $reload_flag" ;;
3853 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3855 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3856 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3857 if test "${lt_cv_path_NM+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 if test -n "$NM"; then
3861 # Let the user override the test.
3864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3865 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3867 test -z "$ac_dir" && ac_dir=.
3868 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3869 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3870 # Check to see if the nm accepts a BSD-compat flag.
3871 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3872 # nm: unknown option "B" ignored
3873 # Tru64's nm complains that /dev/null is an invalid object file
3874 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3875 */dev/null* | *'Invalid file or object type'*)
3876 lt_cv_path_NM="$tmp_nm -B"
3880 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3882 lt_cv_path_NM="$tmp_nm -p"
3886 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3887 continue # so that we can try to find one that supports BSD flags
3894 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3897 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3898 echo "${ECHO_T}$lt_cv_path_NM" >&6
3901 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3902 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3904 if test "$LN_S" = "ln -s"; then
3905 echo "$as_me:$LINENO: result: yes" >&5
3906 echo "${ECHO_T}yes" >&6
3908 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3909 echo "${ECHO_T}no, using $LN_S" >&6
3912 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3913 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3914 if test "${lt_cv_deplibs_check_method+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 lt_cv_file_magic_cmd='$MAGIC_CMD'
3918 lt_cv_file_magic_test_file=
3919 lt_cv_deplibs_check_method='unknown'
3920 # Need to set the preceding variable on all platforms that support
3921 # interlibrary dependencies.
3922 # 'none' -- dependencies not supported.
3923 # `unknown' -- same as none, but documents that we really don't know.
3924 # 'pass_all' -- all dependencies passed with no checks.
3925 # 'test_compile' -- check by making test program.
3926 # 'file_magic [[regex]]' -- check by looking for files in library path
3927 # which responds to the $file_magic_cmd with a given extended regex.
3928 # If you have `file' or equivalent on your system and you're not sure
3929 # whether `pass_all' will *always* work, you probably want this one.
3933 lt_cv_deplibs_check_method=pass_all
3937 lt_cv_deplibs_check_method=pass_all
3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3942 lt_cv_file_magic_cmd='/usr/bin/file -L'
3943 lt_cv_file_magic_test_file=/shlib/libc.so
3947 # func_win32_libid is a shell function defined in ltmain.sh
3948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3949 lt_cv_file_magic_cmd='func_win32_libid'
3953 # Base MSYS/MinGW do not provide the 'file' command needed by
3954 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3955 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3956 lt_cv_file_magic_cmd='$OBJDUMP -f'
3959 darwin* | rhapsody*)
3960 lt_cv_deplibs_check_method=pass_all
3963 freebsd* | kfreebsd*-gnu)
3964 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3967 # Not sure whether the presence of OpenBSD here was a mistake.
3968 # Let's accept both of them until this is cleared up.
3969 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3970 lt_cv_file_magic_cmd=/usr/bin/file
3971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3975 lt_cv_deplibs_check_method=pass_all
3980 lt_cv_deplibs_check_method=pass_all
3983 hpux10.20* | hpux11*)
3984 lt_cv_file_magic_cmd=/usr/bin/file
3987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3988 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3991 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]'
3992 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3996 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4001 irix5* | irix6* | nonstopux*)
4003 *-32|*"-32 ") libmagic=32-bit;;
4004 *-n32|*"-n32 ") libmagic=N32;;
4005 *-64|*"-64 ") libmagic=64-bit;;
4006 *) libmagic=never-match;;
4008 lt_cv_deplibs_check_method=pass_all
4011 # This must be Linux ELF.
4014 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4015 lt_cv_deplibs_check_method=pass_all ;;
4017 # glibc up to 2.1.1 does not perform some relocations on ARM
4018 # this will be overridden with pass_all, but let us keep it just in case
4019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4021 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4022 lt_cv_deplibs_check_method=pass_all
4026 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4035 lt_cv_file_magic_cmd=/usr/bin/file
4036 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4040 lt_cv_deplibs_check_method=unknown
4044 lt_cv_file_magic_cmd=/usr/bin/file
4045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4046 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4049 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4053 osf3* | osf4* | osf5*)
4054 lt_cv_deplibs_check_method=pass_all
4058 lt_cv_deplibs_check_method=pass_all
4062 lt_cv_deplibs_check_method=pass_all
4065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4066 case $host_vendor in
4068 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]'
4069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4072 lt_cv_deplibs_check_method=pass_all
4075 lt_cv_file_magic_cmd='/bin/file'
4076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4079 lt_cv_file_magic_cmd='/bin/file'
4080 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4081 lt_cv_file_magic_test_file=/lib/libc.so
4084 lt_cv_deplibs_check_method=pass_all
4089 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4090 lt_cv_deplibs_check_method=pass_all
4095 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4096 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4097 file_magic_cmd=$lt_cv_file_magic_cmd
4098 deplibs_check_method=$lt_cv_deplibs_check_method
4099 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4104 # If no C compiler was specified, use CC.
4107 # Allow CC to be a program name with arguments.
4111 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4112 if test "${enable_libtool_lock+set}" = set; then
4113 enableval="$enable_libtool_lock"
4116 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4118 # Some flags need to be propagated to the compiler or linker for good
4122 # Find out which ABI we are using.
4123 echo 'int i;' > conftest.$ac_ext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; then
4129 case `/usr/bin/file conftest.$ac_objext` in
4141 # Find out which ABI we are using.
4142 echo '#line 4142 "configure"' > conftest.$ac_ext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144 (eval $ac_compile) 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; then
4148 if test "$lt_cv_prog_gnu_ld" = yes; then
4149 case `/usr/bin/file conftest.$ac_objext` in
4151 LD="${LD-ld} -melf32bsmip"
4154 LD="${LD-ld} -melf32bmipn32"
4157 LD="${LD-ld} -melf64bmip"
4161 case `/usr/bin/file conftest.$ac_objext` in
4177 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4178 # Find out which ABI we are using.
4179 echo 'int i;' > conftest.$ac_ext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; then
4185 case "`/usr/bin/file conftest.o`" in
4189 LD="${LD-ld} -m elf_i386"
4191 ppc64-*linux*|powerpc64-*linux*)
4192 LD="${LD-ld} -m elf32ppclinux"
4195 LD="${LD-ld} -m elf_s390"
4198 LD="${LD-ld} -m elf32_sparc"
4205 LD="${LD-ld} -m elf_x86_64"
4207 ppc*-*linux*|powerpc*-*linux*)
4208 LD="${LD-ld} -m elf64ppc"
4211 LD="${LD-ld} -m elf64_s390"
4214 LD="${LD-ld} -m elf64_sparc"
4224 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4225 SAVE_CFLAGS="$CFLAGS"
4226 CFLAGS="$CFLAGS -belf"
4227 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4228 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4229 if test "${lt_cv_cc_needs_belf+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238 cat >conftest.$ac_ext <<_ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4253 rm -f conftest.$ac_objext conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255 (eval $ac_link) 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 lt_cv_cc_needs_belf=yes
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 lt_cv_cc_needs_belf=no
4282 rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4292 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4293 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4294 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4295 CFLAGS="$SAVE_CFLAGS"
4301 need_locks="$enable_libtool_lock"
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4315 if test -z "$CPP"; then
4316 if test "${ac_cv_prog_CPP+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 # Double quotes because CPP needs to be expanded
4320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4323 for ac_c_preproc_warn_flag in '' yes
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4338 # include <limits.h>
4340 # include <assert.h>
4344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } >/dev/null; then
4352 if test -s conftest.err; then
4353 ac_cpp_err=$ac_c_preproc_warn_flag
4354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4361 if test -z "$ac_cpp_err"; then
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 # Broken: fails on valid input.
4370 rm -f conftest.err conftest.$ac_ext
4372 # OK, works on sane cases. Now check whether non-existent headers
4373 # can be detected and how.
4374 cat >conftest.$ac_ext <<_ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #include <ac_nonexistent.h>
4382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev/null; then
4390 if test -s conftest.err; then
4391 ac_cpp_err=$ac_c_preproc_warn_flag
4392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4399 if test -z "$ac_cpp_err"; then
4400 # Broken: success on invalid input.
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 # Passes both tests.
4410 rm -f conftest.err conftest.$ac_ext
4413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414 rm -f conftest.err conftest.$ac_ext
4415 if $ac_preproc_ok; then
4427 echo "$as_me:$LINENO: result: $CPP" >&5
4428 echo "${ECHO_T}$CPP" >&6
4430 for ac_c_preproc_warn_flag in '' yes
4432 # Use a header file that comes with gcc, so configuring glibc
4433 # with a fresh cross-compiler works.
4434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435 # <limits.h> exists even on freestanding compilers.
4436 # On the NeXT, cc -E runs the code through the compiler's parser,
4437 # not just through cpp. "Syntax error" is here to catch this case.
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4445 # include <limits.h>
4447 # include <assert.h>
4451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } >/dev/null; then
4459 if test -s conftest.err; then
4460 ac_cpp_err=$ac_c_preproc_warn_flag
4461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4468 if test -z "$ac_cpp_err"; then
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 # Broken: fails on valid input.
4477 rm -f conftest.err conftest.$ac_ext
4479 # OK, works on sane cases. Now check whether non-existent headers
4480 # can be detected and how.
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 #include <ac_nonexistent.h>
4489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1 >conftest.err
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev/null; then
4497 if test -s conftest.err; then
4498 ac_cpp_err=$ac_c_preproc_warn_flag
4499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4506 if test -z "$ac_cpp_err"; then
4507 # Broken: success on invalid input.
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 # Passes both tests.
4517 rm -f conftest.err conftest.$ac_ext
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.err conftest.$ac_ext
4522 if $ac_preproc_ok; then
4525 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details." >&5
4527 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4528 See \`config.log' for more details." >&2;}
4529 { (exit 1); exit 1; }; }
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541 if test "${ac_cv_header_stdc+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4567 grep -v '^ *+' conftest.er1 >conftest.err
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest.$ac_objext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_header_stdc=yes
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4590 ac_cv_header_stdc=no
4592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4594 if test $ac_cv_header_stdc = yes; then
4595 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606 $EGREP "memchr" >/dev/null 2>&1; then
4609 ac_cv_header_stdc=no
4615 if test $ac_cv_header_stdc = yes; then
4616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4617 cat >conftest.$ac_ext <<_ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4627 $EGREP "free" >/dev/null 2>&1; then
4630 ac_cv_header_stdc=no
4636 if test $ac_cv_header_stdc = yes; then
4637 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4638 if test "$cross_compiling" = yes; then
4641 cat >conftest.$ac_ext <<_ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4648 #if ((' ' & 0x0FF) == 0x020)
4649 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4650 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4652 # define ISLOWER(c) \
4653 (('a' <= (c) && (c) <= 'i') \
4654 || ('j' <= (c) && (c) <= 'r') \
4655 || ('s' <= (c) && (c) <= 'z'))
4656 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664 for (i = 0; i < 256; i++)
4665 if (XOR (islower (i), ISLOWER (i))
4666 || toupper (i) != TOUPPER (i))
4671 rm -f conftest$ac_exeext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4673 (eval $ac_link) 2>&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4684 echo "$as_me: program exited with status $ac_status" >&5
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4689 ac_cv_header_stdc=no
4691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4695 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4696 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4697 if test $ac_cv_header_stdc = yes; then
4699 cat >>confdefs.h <<\_ACEOF
4700 #define STDC_HEADERS 1
4705 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4715 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4716 inttypes.h stdint.h unistd.h
4718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4719 echo "$as_me:$LINENO: checking for $ac_header" >&5
4720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 $ac_includes_default
4732 #include <$ac_header>
4734 rm -f conftest.$ac_objext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4736 (eval $ac_compile) 2>conftest.er1
4738 grep -v '^ *+' conftest.er1 >conftest.err
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } &&
4743 { ac_try='test -z "$ac_c_werror_flag"
4744 || test ! -s conftest.err'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; } &&
4750 { ac_try='test -s conftest.$ac_objext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 eval "$as_ac_Header=yes"
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 eval "$as_ac_Header=no"
4763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768 cat >>confdefs.h <<_ACEOF
4769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4778 for ac_header in dlfcn.h
4780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo "$as_me:$LINENO: checking for $ac_header" >&5
4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4790 # Is the header compilable?
4791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4793 cat >conftest.$ac_ext <<_ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 $ac_includes_default
4800 #include <$ac_header>
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1 >conftest.err
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_header_compiler=yes
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 ac_header_compiler=no
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4833 echo "${ECHO_T}$ac_header_compiler" >&6
4835 # Is the header present?
4836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4838 cat >conftest.$ac_ext <<_ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4844 #include <$ac_header>
4846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4849 grep -v '^ *+' conftest.er1 >conftest.err
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } >/dev/null; then
4854 if test -s conftest.err; then
4855 ac_cpp_err=$ac_c_preproc_warn_flag
4856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4863 if test -z "$ac_cpp_err"; then
4864 ac_header_preproc=yes
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4869 ac_header_preproc=no
4871 rm -f conftest.err conftest.$ac_ext
4872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4873 echo "${ECHO_T}$ac_header_preproc" >&6
4875 # So? What about this header?
4876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4882 ac_header_preproc=yes
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4899 ## ------------------------------------------ ##
4900 ## Report this to the AC_PACKAGE_NAME lists. ##
4901 ## ------------------------------------------ ##
4904 sed "s/^/$as_me: WARNING: /" >&2
4907 echo "$as_me:$LINENO: checking for $ac_header" >&5
4908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 eval "$as_ac_Header=\$ac_header_preproc"
4914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4919 cat >>confdefs.h <<_ACEOF
4920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4928 ac_cpp='$CXXCPP $CPPFLAGS'
4929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4932 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4933 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4934 if test -z "$CXXCPP"; then
4935 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 # Double quotes because CXXCPP needs to be expanded
4939 for CXXCPP in "$CXX -E" "/lib/cpp"
4942 for ac_cxx_preproc_warn_flag in '' yes
4944 # Use a header file that comes with gcc, so configuring glibc
4945 # with a fresh cross-compiler works.
4946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947 # <limits.h> exists even on freestanding compilers.
4948 # On the NeXT, cc -E runs the code through the compiler's parser,
4949 # not just through cpp. "Syntax error" is here to catch this case.
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4957 # include <limits.h>
4959 # include <assert.h>
4963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4966 grep -v '^ *+' conftest.er1 >conftest.err
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } >/dev/null; then
4971 if test -s conftest.err; then
4972 ac_cpp_err=$ac_cxx_preproc_warn_flag
4973 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4980 if test -z "$ac_cpp_err"; then
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 # Broken: fails on valid input.
4989 rm -f conftest.err conftest.$ac_ext
4991 # OK, works on sane cases. Now check whether non-existent headers
4992 # can be detected and how.
4993 cat >conftest.$ac_ext <<_ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 #include <ac_nonexistent.h>
5001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5004 grep -v '^ *+' conftest.er1 >conftest.err
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } >/dev/null; then
5009 if test -s conftest.err; then
5010 ac_cpp_err=$ac_cxx_preproc_warn_flag
5011 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5018 if test -z "$ac_cpp_err"; then
5019 # Broken: success on invalid input.
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 # Passes both tests.
5029 rm -f conftest.err conftest.$ac_ext
5032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5033 rm -f conftest.err conftest.$ac_ext
5034 if $ac_preproc_ok; then
5039 ac_cv_prog_CXXCPP=$CXXCPP
5042 CXXCPP=$ac_cv_prog_CXXCPP
5044 ac_cv_prog_CXXCPP=$CXXCPP
5046 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5047 echo "${ECHO_T}$CXXCPP" >&6
5049 for ac_cxx_preproc_warn_flag in '' yes
5051 # Use a header file that comes with gcc, so configuring glibc
5052 # with a fresh cross-compiler works.
5053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5054 # <limits.h> exists even on freestanding compilers.
5055 # On the NeXT, cc -E runs the code through the compiler's parser,
5056 # not just through cpp. "Syntax error" is here to catch this case.
5057 cat >conftest.$ac_ext <<_ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5064 # include <limits.h>
5066 # include <assert.h>
5070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5073 grep -v '^ *+' conftest.er1 >conftest.err
5075 cat conftest.err >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } >/dev/null; then
5078 if test -s conftest.err; then
5079 ac_cpp_err=$ac_cxx_preproc_warn_flag
5080 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5087 if test -z "$ac_cpp_err"; then
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 # Broken: fails on valid input.
5096 rm -f conftest.err conftest.$ac_ext
5098 # OK, works on sane cases. Now check whether non-existent headers
5099 # can be detected and how.
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 #include <ac_nonexistent.h>
5108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5111 grep -v '^ *+' conftest.er1 >conftest.err
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } >/dev/null; then
5116 if test -s conftest.err; then
5117 ac_cpp_err=$ac_cxx_preproc_warn_flag
5118 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5125 if test -z "$ac_cpp_err"; then
5126 # Broken: success on invalid input.
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 # Passes both tests.
5136 rm -f conftest.err conftest.$ac_ext
5139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5140 rm -f conftest.err conftest.$ac_ext
5141 if $ac_preproc_ok; then
5144 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5145 See \`config.log' for more details." >&5
5146 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5147 See \`config.log' for more details." >&2;}
5148 { (exit 1); exit 1; }; }
5152 ac_cpp='$CXXCPP $CPPFLAGS'
5153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5159 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5160 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5162 if test -n "$ac_tool_prefix"; then
5163 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_prog_F77+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 if test -n "$F77"; then
5173 ac_cv_prog_F77="$F77" # Let the user override the test.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 if test -n "$F77"; then
5193 echo "$as_me:$LINENO: result: $F77" >&5
5194 echo "${ECHO_T}$F77" >&6
5196 echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6
5200 test -n "$F77" && break
5203 if test -z "$F77"; then
5205 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5207 # Extract the first word of "$ac_prog", so it can be a program name with args.
5208 set dummy $ac_prog; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 if test -n "$ac_ct_F77"; then
5215 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_ac_ct_F77="$ac_prog"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5234 if test -n "$ac_ct_F77"; then
5235 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5236 echo "${ECHO_T}$ac_ct_F77" >&6
5238 echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5242 test -n "$ac_ct_F77" && break
5249 # Provide some information about the compiler.
5250 echo "$as_me:5250:" \
5251 "checking for Fortran 77 compiler version" >&5
5252 ac_compiler=`set X $ac_compile; echo $2`
5253 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5254 (eval $ac_compiler --version </dev/null >&5) 2>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }
5258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5259 (eval $ac_compiler -v </dev/null >&5) 2>&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }
5263 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5264 (eval $ac_compiler -V </dev/null >&5) 2>&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }
5270 # If we don't use `.F' as extension, the preprocessor is not run on the
5271 # input file. (Note that this only needs to work for GNU compilers.)
5274 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5275 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5276 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 cat >conftest.$ac_ext <<_ACEOF
5287 rm -f conftest.$ac_objext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5289 (eval $ac_compile) 2>conftest.er1
5291 grep -v '^ *+' conftest.er1 >conftest.err
5293 cat conftest.err >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } &&
5296 { ac_try='test -z "$ac_f77_werror_flag"
5297 || test ! -s conftest.err'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; } &&
5303 { ac_try='test -s conftest.$ac_objext'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5317 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5320 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5321 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5323 ac_test_FFLAGS=${FFLAGS+set}
5324 ac_save_FFLAGS=$FFLAGS
5326 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5327 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5328 if test "${ac_cv_prog_f77_g+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 cat >conftest.$ac_ext <<_ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339 (eval $ac_compile) 2>conftest.er1
5341 grep -v '^ *+' conftest.er1 >conftest.err
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -z "$ac_f77_werror_flag"
5347 || test ! -s conftest.err'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; } &&
5353 { ac_try='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_cv_prog_f77_g=yes
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5369 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5370 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5371 if test "$ac_test_FFLAGS" = set; then
5372 FFLAGS=$ac_save_FFLAGS
5373 elif test $ac_cv_prog_f77_g = yes; then
5374 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5380 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5387 G77=`test $ac_compiler_gnu = yes && echo yes`
5389 ac_cpp='$CPP $CPPFLAGS'
5390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5398 # find the maximum length of command line arguments
5399 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5400 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5401 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 # On DJGPP, this test can blow up pretty badly due to problems in libc
5410 # (any single argument exceeding 2000 bytes causes a buffer overrun
5411 # during glob expansion). Even if it were fixed, the result of this
5412 # check would be larger than it should be.
5413 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5417 # Under GNU Hurd, this test is not required because there is
5418 # no limit to the length of command line arguments.
5419 # Libtool will interpret -1 as no limit whatsoever
5420 lt_cv_sys_max_cmd_len=-1;
5424 # On Win9x/ME, this test blows up -- it succeeds, but takes
5425 # about 5 minutes as the teststring grows exponentially.
5426 # Worse, since 9x/ME are not pre-emptively multitasking,
5427 # you end up with a "frozen" computer, even though with patience
5428 # the test eventually succeeds (with a max line length of 256k).
5429 # Instead, let's just punt: use the minimum linelength reported by
5430 # all of the supported platforms: 8192 (on NT/2K/XP).
5431 lt_cv_sys_max_cmd_len=8192;
5435 # On AmigaOS with pdksh, this test takes hours, literally.
5436 # So we just punt and use a minimum line length of 8192.
5437 lt_cv_sys_max_cmd_len=8192;
5441 # If test is not a shell built-in, we'll probably end up computing a
5442 # maximum length that is only half of the actual maximum length, but
5444 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5445 = "XX$teststring") >/dev/null 2>&1 &&
5446 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5447 lt_cv_sys_max_cmd_len=$new_result &&
5448 test $i != 17 # 1/2 MB should be enough
5451 teststring=$teststring$teststring
5454 # Add a significant safety factor because C++ compilers can tack on massive
5455 # amounts of additional arguments before passing them to the linker.
5456 # It appears as though 1/2 is a usable value.
5457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5463 if test -n $lt_cv_sys_max_cmd_len ; then
5464 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5465 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5467 echo "$as_me:$LINENO: result: none" >&5
5468 echo "${ECHO_T}none" >&6
5474 # Check for command to grab the raw symbol name followed by C symbol from nm.
5475 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5476 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5477 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 # These are sane defaults that work on at least a few old systems.
5482 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5484 # Character class describing NM global symbol codes.
5485 symcode='[BCDEGRST]'
5487 # Regexp to match symbols that can be accessed directly from C.
5488 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5490 # Transform the above into a raw symbol and a C symbol.
5491 symxfrm='\1 \2\3 \3'
5493 # Transform an extracted symbol line into a proper C declaration
5494 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5496 # Transform an extracted symbol line into symbol name and symbol address
5497 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'"
5499 # Define system-specific variables.
5504 cygwin* | mingw* | pw32*)
5505 symcode='[ABCDGISTW]'
5507 hpux*) # Its linker distinguishes data from code symbols
5508 if test "$host_cpu" = ia64; then
5509 symcode='[ABCDEGRST]'
5511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5512 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'"
5515 symcode='[BCDEGRST]'
5518 symcode='[BCDEGQRST]'
5528 # Handle CRLF in mingw tool chain
5532 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5536 # If we're using GNU nm, then use its standard symbol codes.
5537 case `$NM -V 2>&1` in
5538 *GNU* | *'with BFD'*)
5539 symcode='[ABCDGIRSTW]' ;;
5542 # Try without a prefix undercore, then with it.
5543 for ac_symprfx in "" "_"; do
5545 # Write the raw and C identifiers.
5546 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5548 # Check to see that the pipe works correctly.
5552 cat > conftest.$ac_ext <<EOF
5557 void nm_test_func(){}
5561 int main(){nm_test_var='a';nm_test_func();return(0);}
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; then
5569 # Now try to grab the symbols.
5571 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5572 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && test -s "$nlist"; then
5576 # Try sorting and uniquifying the output.
5577 if sort "$nlist" | uniq > "$nlist"T; then
5578 mv -f "$nlist"T "$nlist"
5583 # Make sure that we snagged all the symbols we need.
5584 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5585 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5586 cat <<EOF > conftest.$ac_ext
5592 # Now generate the symbol file.
5593 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5595 cat <<EOF >> conftest.$ac_ext
5596 #if defined (__STDC__) && __STDC__
5597 # define lt_ptr_t void *
5599 # define lt_ptr_t char *
5603 /* The mapping between symbol names and symbols. */
5608 lt_preloaded_symbols[] =
5611 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5612 cat <<\EOF >> conftest.$ac_ext
5620 # Now try linking the two files.
5621 mv conftest.$ac_objext conftstm.$ac_objext
5622 lt_save_LIBS="$LIBS"
5623 lt_save_CFLAGS="$CFLAGS"
5624 LIBS="conftstm.$ac_objext"
5625 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627 (eval $ac_link) 2>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5633 LIBS="$lt_save_LIBS"
5634 CFLAGS="$lt_save_CFLAGS"
5636 echo "cannot find nm_test_func in $nlist" >&5
5639 echo "cannot find nm_test_var in $nlist" >&5
5642 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5645 echo "$progname: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5648 rm -f conftest* conftst*
5650 # Do not use the global_symbol_pipe unless it works.
5651 if test "$pipe_works" = yes; then
5654 lt_cv_sys_global_symbol_pipe=
5660 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5661 lt_cv_sys_global_symbol_to_cdecl=
5663 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5664 echo "$as_me:$LINENO: result: failed" >&5
5665 echo "${ECHO_T}failed" >&6
5667 echo "$as_me:$LINENO: result: ok" >&5
5668 echo "${ECHO_T}ok" >&6
5671 echo "$as_me:$LINENO: checking for objdir" >&5
5672 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5673 if test "${lt_cv_objdir+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 rm -f .libs 2>/dev/null
5677 mkdir .libs 2>/dev/null
5678 if test -d .libs; then
5681 # MS-DOS does not allow filenames that begin with a dot.
5684 rmdir .libs 2>/dev/null
5686 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5687 echo "${ECHO_T}$lt_cv_objdir" >&6
5688 objdir=$lt_cv_objdir
5696 # AIX sometimes has problems with the GCC collect2 program. For some
5697 # reason, if we set the COLLECT_NAMES environment variable, the problems
5698 # vanish in a puff of smoke.
5699 if test "X${COLLECT_NAMES+set}" != Xset; then
5701 export COLLECT_NAMES
5706 # Sed substitution that helps us do robust quoting. It backslashifies
5707 # metacharacters that are still active within double-quoted strings.
5708 Xsed='sed -e s/^X//'
5709 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5711 # Same as above, but do not quote variable references.
5712 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5714 # Sed substitution to delay expansion of an escaped shell variable in a
5715 # double_quote_subst'ed string.
5716 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5718 # Sed substitution to avoid accidental globbing in evaled expressions
5719 no_glob_subst='s/\*/\\\*/g'
5725 default_ofile=libtool
5726 can_build_shared=yes
5728 # All known linkers require a `.a' archive for static linking (except M$VC,
5729 # which needs '.lib').
5731 ltmain="$ac_aux_dir/ltmain.sh"
5732 ofile="$default_ofile"
5733 with_gnu_ld="$lt_cv_prog_gnu_ld"
5735 if test -n "$ac_tool_prefix"; then
5736 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5737 set dummy ${ac_tool_prefix}ar; ac_word=$2
5738 echo "$as_me:$LINENO: checking for $ac_word" >&5
5739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740 if test "${ac_cv_prog_AR+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 if test -n "$AR"; then
5744 ac_cv_prog_AR="$AR" # Let the user override the test.
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_AR="${ac_tool_prefix}ar"
5754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 if test -n "$AR"; then
5764 echo "$as_me:$LINENO: result: $AR" >&5
5765 echo "${ECHO_T}$AR" >&6
5767 echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6
5772 if test -z "$ac_cv_prog_AR"; then
5774 # Extract the first word of "ar", so it can be a program name with args.
5775 set dummy ar; ac_word=$2
5776 echo "$as_me:$LINENO: checking for $ac_word" >&5
5777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 if test -n "$ac_ct_AR"; then
5782 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_ac_ct_AR="ar"
5792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5801 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5802 if test -n "$ac_ct_AR"; then
5803 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5804 echo "${ECHO_T}$ac_ct_AR" >&6
5806 echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5815 if test -n "$ac_tool_prefix"; then
5816 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5818 echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5820 if test "${ac_cv_prog_RANLIB+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 if test -n "$RANLIB"; then
5824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 RANLIB=$ac_cv_prog_RANLIB
5843 if test -n "$RANLIB"; then
5844 echo "$as_me:$LINENO: result: $RANLIB" >&5
5845 echo "${ECHO_T}$RANLIB" >&6
5847 echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6
5852 if test -z "$ac_cv_prog_RANLIB"; then
5853 ac_ct_RANLIB=$RANLIB
5854 # Extract the first word of "ranlib", so it can be a program name with args.
5855 set dummy ranlib; ac_word=$2
5856 echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 if test -n "$ac_ct_RANLIB"; then
5862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871 ac_cv_prog_ac_ct_RANLIB="ranlib"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5882 if test -n "$ac_ct_RANLIB"; then
5883 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5884 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5886 echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6
5890 RANLIB=$ac_ct_RANLIB
5892 RANLIB="$ac_cv_prog_RANLIB"
5895 if test -n "$ac_tool_prefix"; then
5896 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5897 set dummy ${ac_tool_prefix}strip; ac_word=$2
5898 echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5900 if test "${ac_cv_prog_STRIP+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 if test -n "$STRIP"; then
5904 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 STRIP=$ac_cv_prog_STRIP
5923 if test -n "$STRIP"; then
5924 echo "$as_me:$LINENO: result: $STRIP" >&5
5925 echo "${ECHO_T}$STRIP" >&6
5927 echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6
5932 if test -z "$ac_cv_prog_STRIP"; then
5934 # Extract the first word of "strip", so it can be a program name with args.
5935 set dummy strip; ac_word=$2
5936 echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 if test -n "$ac_ct_STRIP"; then
5942 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_ac_ct_STRIP="strip"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5961 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5962 if test -n "$ac_ct_STRIP"; then
5963 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5964 echo "${ECHO_T}$ac_ct_STRIP" >&6
5966 echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5972 STRIP="$ac_cv_prog_STRIP"
5977 old_CFLAGS="$CFLAGS"
5979 # Set sane defaults for various variables
5980 test -z "$AR" && AR=ar
5981 test -z "$AR_FLAGS" && AR_FLAGS=cru
5982 test -z "$AS" && AS=as
5983 test -z "$CC" && CC=cc
5984 test -z "$LTCC" && LTCC=$CC
5985 test -z "$DLLTOOL" && DLLTOOL=dlltool
5986 test -z "$LD" && LD=ld
5987 test -z "$LN_S" && LN_S="ln -s"
5988 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5989 test -z "$NM" && NM=nm
5990 test -z "$SED" && SED=sed
5991 test -z "$OBJDUMP" && OBJDUMP=objdump
5992 test -z "$RANLIB" && RANLIB=:
5993 test -z "$STRIP" && STRIP=:
5994 test -z "$ac_objext" && ac_objext=o
5996 # Determine commands to create old-style static archives.
5997 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5998 old_postinstall_cmds='chmod 644 $oldlib'
5999 old_postuninstall_cmds=
6001 if test -n "$RANLIB"; then
6004 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6007 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6010 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6013 # Only perform the check for file, if the check method requires it
6014 case $deplibs_check_method in
6016 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6017 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6018 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6019 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6027 lt_save_MAGIC_CMD="$MAGIC_CMD"
6028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6029 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6030 for ac_dir in $ac_dummy; do
6032 test -z "$ac_dir" && ac_dir=.
6033 if test -f $ac_dir/${ac_tool_prefix}file; then
6034 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6035 if test -n "$file_magic_test_file"; then
6036 case $deplibs_check_method in
6038 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6040 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6041 $EGREP "$file_magic_regex" > /dev/null; then
6046 *** Warning: the command libtool uses to detect shared libraries,
6047 *** $file_magic_cmd, produces output that libtool cannot recognize.
6048 *** The result is that libtool may fail to recognize shared libraries
6049 *** as such. This will affect the creation of libtool libraries that
6050 *** depend on shared libraries, but programs linked with such libtool
6051 *** libraries will work regardless of this problem. Nevertheless, you
6052 *** may want to report the problem to your system manager and/or to
6053 *** bug-libtool@gnu.org
6063 MAGIC_CMD="$lt_save_MAGIC_CMD"
6068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6069 if test -n "$MAGIC_CMD"; then
6070 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6071 echo "${ECHO_T}$MAGIC_CMD" >&6
6073 echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6
6077 if test -z "$lt_cv_path_MAGIC_CMD"; then
6078 if test -n "$ac_tool_prefix"; then
6079 echo "$as_me:$LINENO: checking for file" >&5
6080 echo $ECHO_N "checking for file... $ECHO_C" >&6
6081 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6089 lt_save_MAGIC_CMD="$MAGIC_CMD"
6090 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6091 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6092 for ac_dir in $ac_dummy; do
6094 test -z "$ac_dir" && ac_dir=.
6095 if test -f $ac_dir/file; then
6096 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6097 if test -n "$file_magic_test_file"; then
6098 case $deplibs_check_method in
6100 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6102 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6103 $EGREP "$file_magic_regex" > /dev/null; then
6108 *** Warning: the command libtool uses to detect shared libraries,
6109 *** $file_magic_cmd, produces output that libtool cannot recognize.
6110 *** The result is that libtool may fail to recognize shared libraries
6111 *** as such. This will affect the creation of libtool libraries that
6112 *** depend on shared libraries, but programs linked with such libtool
6113 *** libraries will work regardless of this problem. Nevertheless, you
6114 *** may want to report the problem to your system manager and/or to
6115 *** bug-libtool@gnu.org
6125 MAGIC_CMD="$lt_save_MAGIC_CMD"
6130 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6131 if test -n "$MAGIC_CMD"; then
6132 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6133 echo "${ECHO_T}$MAGIC_CMD" >&6
6135 echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6
6151 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6152 if test "${enable_libtool_lock+set}" = set; then
6153 enableval="$enable_libtool_lock"
6156 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6159 # Check whether --with-pic or --without-pic was given.
6160 if test "${with_pic+set}" = set; then
6166 test -z "$pic_mode" && pic_mode=default
6168 # Use C for the default configuration in the libtool script
6172 ac_cpp='$CPP $CPPFLAGS'
6173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178 # Source file extension for C test sources.
6181 # Object file extension for compiled C test sources.
6185 # Code to be used in simple compile tests
6186 lt_simple_compile_test_code="int some_variable = 0;\n"
6188 # Code to be used in simple link tests
6189 lt_simple_link_test_code='int main(){return(0);}\n'
6192 # If no C compiler was specified, use CC.
6195 # Allow CC to be a program name with arguments.
6200 # Check for any special shared library compilation flags.
6203 if test "$GCC" = no; then
6206 lt_prog_cc_shlib='-belf'
6210 if test -n "$lt_prog_cc_shlib"; then
6211 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6212 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6213 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6215 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6216 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6217 lt_cv_prog_cc_can_build_shared=no
6223 # Check to make sure the static flag actually works.
6225 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6226 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6227 if test "${lt_prog_compiler_static_works+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 lt_prog_compiler_static_works=no
6231 save_LDFLAGS="$LDFLAGS"
6232 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6233 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6234 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6235 # The compiler can only warn and ignore the option if not recognized
6236 # So say no if there are warnings
6237 if test -s conftest.err; then
6238 # Append any errors to the config.log.
6239 cat conftest.err 1>&5
6241 lt_prog_compiler_static_works=yes
6245 LDFLAGS="$save_LDFLAGS"
6248 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6249 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6251 if test x"$lt_prog_compiler_static_works" = xyes; then
6254 lt_prog_compiler_static=
6260 lt_prog_compiler_no_builtin_flag=
6262 if test "$GCC" = yes; then
6263 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6266 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6267 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6268 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 lt_cv_prog_compiler_rtti_exceptions=no
6272 ac_outfile=conftest.$ac_objext
6273 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6274 lt_compiler_flag="-fno-rtti -fno-exceptions"
6275 # Insert the option either (1) after the last *FLAGS variable, or
6276 # (2) before a word containing "conftest.", or (3) at the end.
6277 # Note that $ac_compile itself does not contain backslashes and begins
6278 # with a dollar sign (not a hyphen), so the echo should work correctly.
6279 # The option is referenced via a variable to avoid confusing sed.
6280 lt_compile=`echo "$ac_compile" | $SED \
6281 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6283 -e 's:$: $lt_compiler_flag:'`
6284 (eval echo "\"\$as_me:6284: $lt_compile\"" >&5)
6285 (eval "$lt_compile" 2>conftest.err)
6287 cat conftest.err >&5
6288 echo "$as_me:6288: \$? = $ac_status" >&5
6289 if (exit $ac_status) && test -s "$ac_outfile"; then
6290 # The compiler can only warn and ignore the option if not recognized
6291 # So say no if there are warnings
6292 if test ! -s conftest.err; then
6293 lt_cv_prog_compiler_rtti_exceptions=yes
6299 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6300 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6302 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6303 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6310 lt_prog_compiler_wl=
6311 lt_prog_compiler_pic=
6312 lt_prog_compiler_static=
6314 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6315 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6317 if test "$GCC" = yes; then
6318 lt_prog_compiler_wl='-Wl,'
6319 lt_prog_compiler_static='-static'
6323 # All AIX code is PIC.
6324 if test "$host_cpu" = ia64; then
6325 # AIX 5 now supports IA64 processor
6326 lt_prog_compiler_static='-Bstatic'
6331 # FIXME: we need at least 68020 code to build shared libraries, but
6332 # adding the `-m68020' flag to GCC prevents building anything better,
6334 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6337 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6338 # PIC is the default for these OSes.
6341 mingw* | pw32* | os2*)
6342 # This hack is so that the source file can tell whether it is being
6343 # built for inclusion in a dll (and should export symbols for example).
6344 lt_prog_compiler_pic='-DDLL_EXPORT'
6347 darwin* | rhapsody*)
6348 # PIC is the default on this platform
6349 # Common symbols not allowed in MH_DYLIB files
6350 lt_prog_compiler_pic='-fno-common'
6354 # Just because we use GCC doesn't mean we suddenly get shared libraries
6355 # on systems that don't support them.
6356 lt_prog_compiler_can_build_shared=no
6361 if test -d /usr/nec; then
6362 lt_prog_compiler_pic=-Kconform_pic
6367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6374 lt_prog_compiler_pic='-fPIC'
6380 lt_prog_compiler_pic='-fPIC'
6384 # PORTME Check for flag to pass linker flags through the system compiler.
6387 lt_prog_compiler_wl='-Wl,'
6388 if test "$host_cpu" = ia64; then
6389 # AIX 5 now supports IA64 processor
6390 lt_prog_compiler_static='-Bstatic'
6392 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6396 mingw* | pw32* | os2*)
6397 # This hack is so that the source file can tell whether it is being
6398 # built for inclusion in a dll (and should export symbols for example).
6399 lt_prog_compiler_pic='-DDLL_EXPORT'
6402 hpux9* | hpux10* | hpux11*)
6403 lt_prog_compiler_wl='-Wl,'
6404 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6411 lt_prog_compiler_pic='+Z'
6414 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6415 lt_prog_compiler_static='${wl}-a ${wl}archive'
6418 irix5* | irix6* | nonstopux*)
6419 lt_prog_compiler_wl='-Wl,'
6420 # PIC (with -KPIC) is the default.
6421 lt_prog_compiler_static='-non_shared'
6425 lt_prog_compiler_pic='-KPIC'
6426 lt_prog_compiler_static='-Bstatic'
6432 lt_prog_compiler_wl='-Wl,'
6433 lt_prog_compiler_pic='-KPIC'
6434 lt_prog_compiler_static='-static'
6437 lt_prog_compiler_wl='-Wl,'
6438 # All Alpha code is PIC.
6439 lt_prog_compiler_static='-non_shared'
6444 osf3* | osf4* | osf5*)
6445 lt_prog_compiler_wl='-Wl,'
6446 # All OSF/1 code is PIC.
6447 lt_prog_compiler_static='-non_shared'
6451 lt_prog_compiler_pic='-Kpic'
6452 lt_prog_compiler_static='-dn'
6456 lt_prog_compiler_wl='-Wl,'
6457 lt_prog_compiler_pic='-KPIC'
6458 lt_prog_compiler_static='-Bstatic'
6462 lt_prog_compiler_wl='-Qoption ld '
6463 lt_prog_compiler_pic='-PIC'
6464 lt_prog_compiler_static='-Bstatic'
6467 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6468 lt_prog_compiler_wl='-Wl,'
6469 lt_prog_compiler_pic='-KPIC'
6470 lt_prog_compiler_static='-Bstatic'
6474 if test -d /usr/nec ;then
6475 lt_prog_compiler_pic='-Kconform_pic'
6476 lt_prog_compiler_static='-Bstatic'
6481 lt_prog_compiler_pic='-pic'
6482 lt_prog_compiler_static='-Bstatic'
6486 lt_prog_compiler_can_build_shared=no
6491 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6492 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6495 # Check to make sure the PIC flag actually works.
6497 if test -n "$lt_prog_compiler_pic"; then
6499 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6500 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6501 if test "${lt_prog_compiler_pic_works+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 lt_prog_compiler_pic_works=no
6505 ac_outfile=conftest.$ac_objext
6506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6507 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6508 # Insert the option either (1) after the last *FLAGS variable, or
6509 # (2) before a word containing "conftest.", or (3) at the end.
6510 # Note that $ac_compile itself does not contain backslashes and begins
6511 # with a dollar sign (not a hyphen), so the echo should work correctly.
6512 # The option is referenced via a variable to avoid confusing sed.
6513 lt_compile=`echo "$ac_compile" | $SED \
6514 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6516 -e 's:$: $lt_compiler_flag:'`
6517 (eval echo "\"\$as_me:6517: $lt_compile\"" >&5)
6518 (eval "$lt_compile" 2>conftest.err)
6520 cat conftest.err >&5
6521 echo "$as_me:6521: \$? = $ac_status" >&5
6522 if (exit $ac_status) && test -s "$ac_outfile"; then
6523 # The compiler can only warn and ignore the option if not recognized
6524 # So say no if there are warnings
6525 if test ! -s conftest.err; then
6526 lt_prog_compiler_pic_works=yes
6532 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6533 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6535 if test x"$lt_prog_compiler_pic_works" = xyes; then
6536 case $lt_prog_compiler_pic in
6538 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6541 lt_prog_compiler_pic=
6542 lt_prog_compiler_can_build_shared=no
6547 # For platforms which do not support PIC, -DPIC is meaningless:
6549 lt_prog_compiler_pic=
6552 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6556 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6557 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6558 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 lt_cv_prog_compiler_c_o=no
6562 $rm -r conftest 2>/dev/null
6566 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6568 lt_compiler_flag="-o out/conftest2.$ac_objext"
6569 # Insert the option either (1) after the last *FLAGS variable, or
6570 # (2) before a word containing "conftest.", or (3) at the end.
6571 # Note that $ac_compile itself does not contain backslashes and begins
6572 # with a dollar sign (not a hyphen), so the echo should work correctly.
6573 lt_compile=`echo "$ac_compile" | $SED \
6574 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6576 -e 's:$: $lt_compiler_flag:'`
6577 (eval echo "\"\$as_me:6577: $lt_compile\"" >&5)
6578 (eval "$lt_compile" 2>out/conftest.err)
6580 cat out/conftest.err >&5
6581 echo "$as_me:6581: \$? = $ac_status" >&5
6582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6584 # The compiler can only warn and ignore the option if not recognized
6585 # So say no if there are warnings
6586 if test ! -s out/conftest.err; then
6587 lt_cv_prog_compiler_c_o=yes
6592 # SGI C++ compiler will create directory out/ii_files/ for
6593 # template instantiation
6594 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6595 $rm out/* && rmdir out
6601 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6602 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6605 hard_links="nottested"
6606 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6607 # do not overwrite the value of need_locks provided by the user
6608 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6609 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6614 ln conftest.a conftest.b 2>&5 || hard_links=no
6615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6616 echo "$as_me:$LINENO: result: $hard_links" >&5
6617 echo "${ECHO_T}$hard_links" >&6
6618 if test "$hard_links" = no; then
6619 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6620 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6627 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6628 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6631 allow_undefined_flag=
6632 enable_shared_with_static_runtimes=no
6634 archive_expsym_cmds=
6635 old_archive_From_new_cmds=
6636 old_archive_from_expsyms_cmds=
6637 export_dynamic_flag_spec=
6638 whole_archive_flag_spec=
6639 thread_safe_flag_spec=
6640 hardcode_libdir_flag_spec=
6641 hardcode_libdir_flag_spec_ld=
6642 hardcode_libdir_separator=
6645 hardcode_shlibpath_var=unsupported
6646 link_all_deplibs=unknown
6647 hardcode_automatic=no
6650 always_export_symbols=no
6651 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6652 # include_expsyms should be a list of space-separated symbols to be *always*
6653 # included in the symbol list
6655 # exclude_expsyms can be an extended regexp of symbols to exclude
6656 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6657 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6658 # as well as any symbol that contains `d'.
6659 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6660 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6661 # platforms (ab)use it in PIC code, but their linkers get confused if
6662 # the symbol is explicitly referenced. Since portable code cannot
6663 # rely on this symbol name, it's probably fine to never include it in
6664 # preloaded symbol tables.
6665 extract_expsyms_cmds=
6668 cygwin* | mingw* | pw32*)
6669 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6670 # When not using gcc, we currently assume that we are using
6671 # Microsoft Visual C++.
6672 if test "$GCC" != yes; then
6682 if test "$with_gnu_ld" = yes; then
6683 # If archive_cmds runs LD, not CC, wlarc should be empty
6686 # See if GNU ld supports shared libraries.
6688 aix3* | aix4* | aix5*)
6689 # On AIX/PPC, the GNU linker is very broken
6690 if test "$host_cpu" != ia64; then
6694 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6695 *** to be unable to reliably create shared libraries on AIX.
6696 *** Therefore, libtool is disabling shared libraries support. If you
6697 *** really care for shared libraries, you may want to modify your PATH
6698 *** so that a non-GNU linker is found, and then restart.
6705 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)'
6706 hardcode_libdir_flag_spec='-L$libdir'
6707 hardcode_minus_L=yes
6709 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6710 # that the semantics of dynamic libraries on AmigaOS, at least up
6711 # to version 4, is to share data among multiple programs linked
6712 # with the same dynamic library. Since this doesn't match the
6713 # behavior of shared libraries on other platforms, we can't use
6719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6720 allow_undefined_flag=unsupported
6721 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6722 # support --undefined. This deserves some investigation. FIXME
6723 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6729 cygwin* | mingw* | pw32*)
6730 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6731 # as there is no search path for DLLs.
6732 hardcode_libdir_flag_spec='-L$libdir'
6733 allow_undefined_flag=unsupported
6734 always_export_symbols=no
6735 enable_shared_with_static_runtimes=yes
6736 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6738 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6740 # If the export-symbols file already is a .def file (1st line
6741 # is EXPORTS), use it as is; otherwise, prepend...
6742 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6743 cp $export_symbols $output_objdir/$soname.def;
6745 echo EXPORTS > $output_objdir/$soname.def;
6746 cat $export_symbols >> $output_objdir/$soname.def;
6748 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6756 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6765 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6769 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6770 *** create shared libraries on Solaris systems. Therefore, libtool
6771 *** is disabling shared libraries support. We urge you to upgrade GNU
6772 *** binutils to release 2.9.1 or newer. Another option is to modify
6773 *** your PATH or compiler configuration so that the native linker is
6774 *** used, and then restart.
6777 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6786 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6789 hardcode_shlibpath_var=no
6793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6794 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6795 archive_cmds="$tmp_archive_cmds"
6796 supports_anon_versioning=no
6797 case `$LD -v 2>/dev/null` in
6798 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6799 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6800 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6801 *\ 2.11.*) ;; # other 2.11 versions
6802 *) supports_anon_versioning=yes ;;
6804 if test $supports_anon_versioning = yes; then
6805 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6807 $echo "local: *; };" >> $output_objdir/$libname.ver~
6808 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6810 archive_expsym_cmds="$tmp_archive_cmds"
6818 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6827 if test "$ld_shlibs" = yes; then
6828 runpath_var=LD_RUN_PATH
6829 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6830 export_dynamic_flag_spec='${wl}--export-dynamic'
6831 # ancient GNU ld didn't support --whole-archive et. al.
6832 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6833 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6835 whole_archive_flag_spec=
6839 # PORTME fill in a description of your system's linker (not GNU ld)
6842 allow_undefined_flag=unsupported
6843 always_export_symbols=yes
6844 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6845 # Note: this linker hardcodes the directories in LIBPATH if there
6846 # are no directories specified by -L.
6847 hardcode_minus_L=yes
6848 if test "$GCC" = yes && test -z "$link_static_flag"; then
6849 # Neither direct hardcoding nor static linking is supported with a
6851 hardcode_direct=unsupported
6856 if test "$host_cpu" = ia64; then
6857 # On IA64, the linker does run time linking by default, so we don't
6858 # have to do anything special.
6859 aix_use_runtimelinking=no
6860 exp_sym_flag='-Bexport'
6863 # If we're using GNU nm, then we don't want the "-C" option.
6864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6865 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6866 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6868 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6870 aix_use_runtimelinking=no
6872 # Test if we are trying to use run time linking or normal
6873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6874 # need to do runtime linking.
6875 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6876 for ld_flag in $LDFLAGS; do
6877 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6878 aix_use_runtimelinking=yes
6884 exp_sym_flag='-bexport'
6885 no_entry_flag='-bnoentry'
6888 # When large executables or shared objects are built, AIX ld can
6889 # have problems creating the table of contents. If linking a library
6890 # or program results in "error TOC overflow" add -mminimal-toc to
6891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6896 hardcode_libdir_separator=':'
6897 link_all_deplibs=yes
6899 if test "$GCC" = yes; then
6900 case $host_os in aix4.012|aix4.012.*)
6901 # We only want to do this on AIX 4.2 and lower, the check
6902 # below for broken collect2 doesn't work under 4.3+
6903 collect2name=`${CC} -print-prog-name=collect2`
6904 if test -f "$collect2name" && \
6905 strings "$collect2name" | grep resolve_lib_name >/dev/null
6907 # We have reworked collect2
6910 # We have old collect2
6911 hardcode_direct=unsupported
6912 # It fails to find uninstalled libraries when the uninstalled
6913 # path is not listed in the libpath. Setting hardcode_minus_L
6914 # to unsupported forces relinking
6915 hardcode_minus_L=yes
6916 hardcode_libdir_flag_spec='-L$libdir'
6917 hardcode_libdir_separator=
6920 shared_flag='-shared'
6923 if test "$host_cpu" = ia64; then
6924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6925 # chokes on -Wl,-G. The following line is correct:
6928 if test "$aix_use_runtimelinking" = yes; then
6929 shared_flag='${wl}-G'
6931 shared_flag='${wl}-bM:SRE'
6936 # It seems that -bexpall does not export symbols beginning with
6937 # underscore (_), so it is better to generate a list of symbols to export.
6938 always_export_symbols=yes
6939 if test "$aix_use_runtimelinking" = yes; then
6940 # Warning - without using the other runtime loading flags (-brtl),
6941 # -berok will link without error, but may produce a broken library.
6942 allow_undefined_flag='-berok'
6943 # Determine the default libpath from the value encoded in an empty executable.
6944 cat >conftest.$ac_ext <<_ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961 (eval $ac_link) 2>conftest.er1
6963 grep -v '^ *+' conftest.er1 >conftest.err
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -z "$ac_c_werror_flag"
6969 || test ! -s conftest.err'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; } &&
6975 { ac_try='test -s conftest$ac_exeext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6982 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6984 # Check for a 64-bit object if we didn't find anything.
6985 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; }
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6992 rm -f conftest.err conftest.$ac_objext \
6993 conftest$ac_exeext conftest.$ac_ext
6994 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6996 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6997 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6999 if test "$host_cpu" = ia64; then
7000 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7001 allow_undefined_flag="-z nodefs"
7002 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7004 # Determine the default libpath from the value encoded in an empty executable.
7005 cat >conftest.$ac_ext <<_ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7020 rm -f conftest.$ac_objext conftest$ac_exeext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7022 (eval $ac_link) 2>conftest.er1
7024 grep -v '^ *+' conftest.er1 >conftest.err
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try='test -z "$ac_c_werror_flag"
7030 || test ! -s conftest.err'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; } &&
7036 { ac_try='test -s conftest$ac_exeext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7043 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7045 # Check for a 64-bit object if we didn't find anything.
7046 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; }
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7053 rm -f conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7058 # Warning - without using the other run time loading flags,
7059 # -berok will link without error, but may produce a broken library.
7060 no_undefined_flag=' ${wl}-bernotok'
7061 allow_undefined_flag=' ${wl}-berok'
7062 # -bexpall does not export symbols beginning with underscore (_)
7063 always_export_symbols=yes
7064 # Exported symbols can be pulled into shared objects from archives
7065 whole_archive_flag_spec=' '
7066 archive_cmds_need_lc=yes
7067 # This is similar to how AIX traditionally builds it's shared libraries.
7068 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7074 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)'
7075 hardcode_libdir_flag_spec='-L$libdir'
7076 hardcode_minus_L=yes
7077 # see comment about different semantics on the GNU ld section
7082 export_dynamic_flag_spec=-rdynamic
7085 cygwin* | mingw* | pw32*)
7086 # When not using gcc, we currently assume that we are using
7087 # Microsoft Visual C++.
7088 # hardcode_libdir_flag_spec is actually meaningless, as there is
7089 # no search path for DLLs.
7090 hardcode_libdir_flag_spec=' '
7091 allow_undefined_flag=unsupported
7092 # Tell ltmain to make .lib files, not .a files.
7094 # Tell ltmain to make .dll files, not .so files.
7096 # FIXME: Setting linknames here is a bad hack.
7097 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7098 # The linker will automatically build a .lib file if we build a DLL.
7099 old_archive_From_new_cmds='true'
7100 # FIXME: Should let the user specify the lib program.
7101 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7102 fix_srcfile_path='`cygpath -w "$srcfile"`'
7103 enable_shared_with_static_runtimes=yes
7106 darwin* | rhapsody*)
7107 if test "$GXX" = yes ; then
7108 archive_cmds_need_lc=no
7110 rhapsody* | darwin1.[012])
7111 allow_undefined_flag='-undefined suppress'
7114 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7115 allow_undefined_flag='-flat_namespace -undefined suppress'
7117 case ${MACOSX_DEPLOYMENT_TARGET} in
7119 allow_undefined_flag='-flat_namespace -undefined suppress'
7122 allow_undefined_flag='-undefined dynamic_lookup'
7128 lt_int_apple_cc_single_mod=no
7129 output_verbose_link_cmd='echo'
7130 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7131 lt_int_apple_cc_single_mod=yes
7133 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7134 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7136 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7138 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7140 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7141 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7143 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7145 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}'
7147 hardcode_automatic=yes
7148 hardcode_shlibpath_var=unsupported
7149 whole_archive_flag_spec='-all_load $convenience'
7150 link_all_deplibs=yes
7157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7158 hardcode_libdir_flag_spec='-L$libdir'
7159 hardcode_shlibpath_var=no
7166 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7167 # support. Future versions do this automatically, but an explicit c++rt0.o
7168 # does not break anything, and helps significantly (at the cost of a little
7171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7172 hardcode_libdir_flag_spec='-R$libdir'
7174 hardcode_shlibpath_var=no
7177 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7181 hardcode_minus_L=yes
7182 hardcode_shlibpath_var=no
7185 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7186 freebsd* | kfreebsd*-gnu)
7187 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7188 hardcode_libdir_flag_spec='-R$libdir'
7190 hardcode_shlibpath_var=no
7194 if test "$GCC" = yes; then
7195 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'
7197 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'
7199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7200 hardcode_libdir_separator=:
7203 # hardcode_minus_L: Not really in the search PATH,
7204 # but as the default location of the library.
7205 hardcode_minus_L=yes
7206 export_dynamic_flag_spec='${wl}-E'
7210 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7213 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7216 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7222 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7225 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7229 if test "$with_gnu_ld" = no; then
7232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7233 hardcode_libdir_flag_spec_ld='+b $libdir'
7234 hardcode_libdir_separator=:
7236 hardcode_shlibpath_var=no
7239 hardcode_libdir_flag_spec='-L$libdir'
7241 hardcode_shlibpath_var=no
7243 # hardcode_minus_L: Not really in the search PATH,
7244 # but as the default location of the library.
7245 hardcode_minus_L=yes
7248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7249 hardcode_libdir_separator=:
7251 export_dynamic_flag_spec='${wl}-E'
7253 # hardcode_minus_L: Not really in the search PATH,
7254 # but as the default location of the library.
7255 hardcode_minus_L=yes
7261 irix5* | irix6* | nonstopux*)
7262 if test "$GCC" = yes; then
7263 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'
7265 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'
7266 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7269 hardcode_libdir_separator=:
7270 link_all_deplibs=yes
7274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7277 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7279 hardcode_libdir_flag_spec='-R$libdir'
7281 hardcode_shlibpath_var=no
7285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7288 hardcode_libdir_separator=:
7289 hardcode_shlibpath_var=no
7294 hardcode_shlibpath_var=no
7295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7296 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7297 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7298 export_dynamic_flag_spec='${wl}-E'
7301 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7303 hardcode_libdir_flag_spec='-R$libdir'
7306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7314 hardcode_libdir_flag_spec='-L$libdir'
7315 hardcode_minus_L=yes
7316 allow_undefined_flag=unsupported
7317 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'
7318 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7322 if test "$GCC" = yes; then
7323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7324 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'
7326 allow_undefined_flag=' -expect_unresolved \*'
7327 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'
7329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7330 hardcode_libdir_separator=:
7333 osf4* | osf5*) # as osf3* with the addition of -msym flag
7334 if test "$GCC" = yes; then
7335 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7336 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'
7337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7339 allow_undefined_flag=' -expect_unresolved \*'
7340 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'
7341 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7342 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7344 # Both c and cxx compiler support -rpath directly
7345 hardcode_libdir_flag_spec='-rpath $libdir'
7347 hardcode_libdir_separator=:
7351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7352 hardcode_shlibpath_var=no
7353 export_dynamic_flag_spec='${wl}-Bexport'
7354 runpath_var=LD_RUN_PATH
7355 hardcode_runpath_var=yes
7359 no_undefined_flag=' -z text'
7360 if test "$GCC" = yes; then
7361 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7362 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7363 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7365 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7366 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7369 hardcode_libdir_flag_spec='-R$libdir'
7370 hardcode_shlibpath_var=no
7372 solaris2.[0-5] | solaris2.[0-5].*) ;;
7373 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7374 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7376 link_all_deplibs=yes
7380 if test "x$host_vendor" = xsequent; then
7381 # Use $CC to link under sequent, because it throws in some extra .o
7382 # files that make .init and .fini sections work.
7383 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7387 hardcode_libdir_flag_spec='-L$libdir'
7389 hardcode_minus_L=yes
7390 hardcode_shlibpath_var=no
7394 case $host_vendor in
7396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7397 hardcode_direct=yes # is this really true???
7400 ## LD is ld it makes a PLAMLIB
7401 ## CC just makes a GrossModule.
7402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7403 reload_cmds='$CC -r -o $output$reload_objs'
7407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7411 runpath_var='LD_RUN_PATH'
7412 hardcode_shlibpath_var=no
7416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7417 hardcode_shlibpath_var=no
7418 export_dynamic_flag_spec='-Bexport'
7422 if test -d /usr/nec; then
7423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7424 hardcode_shlibpath_var=no
7425 runpath_var=LD_RUN_PATH
7426 hardcode_runpath_var=yes
7432 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7435 hardcode_shlibpath_var=no
7436 hardcode_runpath_var=yes
7437 runpath_var=LD_RUN_PATH
7440 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7441 no_undefined_flag='${wl}-z ${wl}text'
7442 if test "$GCC" = yes; then
7443 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7445 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7447 runpath_var='LD_RUN_PATH'
7448 hardcode_shlibpath_var=no
7452 no_undefined_flag=' -z text'
7453 # $CC -shared without GNU ld will not create a library from C++
7454 # object files and a static libstdc++, better avoid it by now
7455 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7456 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7458 hardcode_libdir_flag_spec=
7459 hardcode_shlibpath_var=no
7460 runpath_var='LD_RUN_PATH'
7464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7465 hardcode_libdir_flag_spec='-L$libdir'
7466 hardcode_shlibpath_var=no
7475 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7476 echo "${ECHO_T}$ld_shlibs" >&6
7477 test "$ld_shlibs" = no && can_build_shared=no
7479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7480 if test "$GCC" = yes; then
7481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7485 # Do we need to explicitly link libc?
7487 case "x$archive_cmds_need_lc" in
7489 # Assume -lc should be added
7490 archive_cmds_need_lc=yes
7492 if test "$enable_shared" = yes && test "$GCC" = yes; then
7493 case $archive_cmds in
7495 # FIXME: we may have to deal with multi-command sequences.
7498 # Test whether the compiler implicitly links with -lc since on some
7499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7500 # to ld, don't add -lc before -lgcc.
7501 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7502 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } 2>conftest.err; then
7513 libobjs=conftest.$ac_objext
7515 wl=$lt_prog_compiler_wl
7521 lt_save_allow_undefined_flag=$allow_undefined_flag
7522 allow_undefined_flag=
7523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7524 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }
7529 archive_cmds_need_lc=no
7531 archive_cmds_need_lc=yes
7533 allow_undefined_flag=$lt_save_allow_undefined_flag
7535 cat conftest.err 1>&5
7538 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7539 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7546 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7549 libname_spec='lib$name'
7557 shlibpath_overrides_runpath=unknown
7559 dynamic_linker="$host_os ld.so"
7560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7561 if test "$GCC" = yes; then
7562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7564 # if the path contains ";" then we assume it to be the separator
7565 # otherwise default to the standard path separator (i.e. ":") - it is
7566 # assumed that no part of a normal pathname contains ";" but that should
7567 # okay in the real world where ";" in dirpaths is itself problematic.
7568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7575 need_lib_prefix=unknown
7576 hardcode_into_libs=no
7578 # when you set need_version to no, make sure it does not cause -set_version
7579 # flags to be left without arguments
7580 need_version=unknown
7585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7586 shlibpath_var=LIBPATH
7588 # AIX 3 has no versioning support, so we append a major version to the name.
7589 soname_spec='${libname}${release}${shared_ext}$major'
7596 hardcode_into_libs=yes
7597 if test "$host_cpu" = ia64; then
7598 # AIX 5 supports IA64
7599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7600 shlibpath_var=LD_LIBRARY_PATH
7602 # With GCC up to 2.95.x, collect2 would create an import file
7603 # for dependence libraries. The import file would start with
7604 # the line `#! .'. This would cause the generated library to
7605 # depend on `.', always an invalid library. This was fixed in
7606 # development snapshots of GCC prior to 3.0.
7608 aix4 | aix4.[01] | aix4.[01].*)
7609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7619 # soname into executable. Probably we can add versioning support to
7620 # collect2, so additional links can be useful in future.
7621 if test "$aix_use_runtimelinking" = yes; then
7622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7623 # instead of lib<name>.a to let people know that these are not
7624 # typical AIX shared libraries.
7625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7627 # We preserve .a as extension for shared libraries through AIX4.2
7628 # and later when we are not doing run time linking.
7629 library_names_spec='${libname}${release}.a $libname.a'
7630 soname_spec='${libname}${release}${shared_ext}$major'
7632 shlibpath_var=LIBPATH
7637 library_names_spec='$libname.ixlibrary $libname.a'
7638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7639 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'
7643 library_names_spec='${libname}${shared_ext}'
7644 dynamic_linker="$host_os ld.so"
7645 shlibpath_var=LIBRARY_PATH
7651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7652 soname_spec='${libname}${release}${shared_ext}$major'
7653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7654 shlibpath_var=LD_LIBRARY_PATH
7655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7657 # the default ld.so.conf also contains /usr/contrib/lib and
7658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7659 # libtool to hard-code these into programs
7662 cygwin* | mingw* | pw32*)
7663 version_type=windows
7668 case $GCC,$host_os in
7669 yes,cygwin* | yes,mingw* | yes,pw32*)
7670 library_names_spec='$libname.dll.a'
7671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7672 postinstall_cmds='base_file=`basename \${file}`~
7673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7674 dldir=$destdir/`dirname \$dlpath`~
7675 test -d \$dldir || mkdir -p \$dldir~
7676 $install_prog $dir/$dlname \$dldir/$dlname'
7677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7678 dlpath=$dir/\$dldll~
7680 shlibpath_overrides_runpath=yes
7684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7685 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7686 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7689 # MinGW DLLs use traditional 'lib' prefix
7690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7692 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7693 # It is most probably a Windows format PATH printed by
7694 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7695 # path with ; separators, and with drive letters. We can handle the
7696 # drive letters (cygwin fileutils understands them), so leave them,
7697 # especially as we might pass files found there to a mingw objdump,
7698 # which wouldn't understand a cygwinified path. Ahh.
7699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7705 # pw32 DLLs use 'pw' prefix rather than 'lib'
7706 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7715 dynamic_linker='Win32 ld.exe'
7716 # FIXME: first we should search . and the directory the executable is in
7720 darwin* | rhapsody*)
7721 dynamic_linker="$host_os dyld"
7725 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7726 soname_spec='${libname}${release}${major}$shared_ext'
7727 shlibpath_overrides_runpath=yes
7728 shlibpath_var=DYLD_LIBRARY_PATH
7729 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7730 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7731 if test "$GCC" = yes; then
7732 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"`
7734 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7744 soname_spec='${libname}${release}${shared_ext}$major'
7745 shlibpath_var=LD_LIBRARY_PATH
7756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7757 soname_spec='${libname}${release}${shared_ext}$major'
7758 shlibpath_var=LD_LIBRARY_PATH
7759 shlibpath_overrides_runpath=no
7760 hardcode_into_libs=yes
7761 dynamic_linker='GNU ld.so'
7765 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7766 version_type=freebsd-$objformat
7767 case $version_type in
7769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7778 shlibpath_var=LD_LIBRARY_PATH
7781 shlibpath_overrides_runpath=yes
7783 freebsd3.01* | freebsdelf3.01*)
7784 shlibpath_overrides_runpath=yes
7785 hardcode_into_libs=yes
7788 shlibpath_overrides_runpath=no
7789 hardcode_into_libs=yes
7798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7799 soname_spec='${libname}${release}${shared_ext}$major'
7800 shlibpath_var=LD_LIBRARY_PATH
7801 hardcode_into_libs=yes
7804 hpux9* | hpux10* | hpux11*)
7805 # Give a soname corresponding to the major version so that dld.sl refuses to
7806 # link against other versions.
7813 hardcode_into_libs=yes
7814 dynamic_linker="$host_os dld.so"
7815 shlibpath_var=LD_LIBRARY_PATH
7816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7818 soname_spec='${libname}${release}${shared_ext}$major'
7819 if test "X$HPUX_IA64_MODE" = X32; then
7820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7828 hardcode_into_libs=yes
7829 dynamic_linker="$host_os dld.sl"
7830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7833 soname_spec='${libname}${release}${shared_ext}$major'
7834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7839 dynamic_linker="$host_os dld.sl"
7840 shlibpath_var=SHLIB_PATH
7841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7843 soname_spec='${libname}${release}${shared_ext}$major'
7846 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7847 postinstall_cmds='chmod 555 $lib'
7850 irix5* | irix6* | nonstopux*)
7852 nonstopux*) version_type=nonstopux ;;
7854 if test "$lt_cv_prog_gnu_ld" = yes; then
7862 soname_spec='${libname}${release}${shared_ext}$major'
7863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7865 irix5* | nonstopux*)
7869 case $LD in # libtool.m4 will add one of these switches to LD
7870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7871 libsuff= shlibsuff= libmagic=32-bit;;
7872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7873 libsuff=32 shlibsuff=N32 libmagic=N32;;
7874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7876 *) libsuff= shlibsuff= libmagic=never-match;;
7880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7881 shlibpath_overrides_runpath=no
7882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7884 hardcode_into_libs=yes
7887 # No shared lib support for Linux oldld, aout, or coff.
7888 linux*oldld* | linux*aout* | linux*coff*)
7892 # This must be Linux ELF.
7897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7898 soname_spec='${libname}${release}${shared_ext}$major'
7899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7900 shlibpath_var=LD_LIBRARY_PATH
7901 shlibpath_overrides_runpath=no
7902 # This implies no fast_install, which is unacceptable.
7903 # Some rework will be needed to allow for fast_install
7904 # before this can be enabled.
7905 hardcode_into_libs=yes
7907 # find out which ABI we are using
7910 x86_64*|s390x*|powerpc64*)
7911 echo '#line 7911 "configure"' > conftest.$ac_ext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913 (eval $ac_compile) 2>&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; then
7917 case `/usr/bin/file conftest.$ac_objext` in
7920 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7928 # Append ld.so.conf contents to the search path
7929 if test -f /etc/ld.so.conf; then
7930 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7931 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7934 # We used to test for /lib/ld.so.1 and disable shared libraries on
7935 # powerpc, because MkLinux only supported shared libraries with the
7936 # GNU dynamic linker. Since this was broken with cross compilers,
7937 # most powerpc-linux boxes support dynamic linking these days and
7938 # people can always --disable-shared, the test was removed, and we
7939 # assume the GNU/Linux dynamic linker is in use.
7940 dynamic_linker='GNU/Linux ld.so'
7947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7948 soname_spec='${libname}${release}${shared_ext}$major'
7949 shlibpath_var=LD_LIBRARY_PATH
7950 shlibpath_overrides_runpath=no
7951 hardcode_into_libs=yes
7952 dynamic_linker='GNU ld.so'
7959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7962 dynamic_linker='NetBSD (a.out) ld.so'
7964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7965 soname_spec='${libname}${release}${shared_ext}$major'
7966 dynamic_linker='NetBSD ld.elf_so'
7968 shlibpath_var=LD_LIBRARY_PATH
7969 shlibpath_overrides_runpath=yes
7970 hardcode_into_libs=yes
7975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7976 shlibpath_var=LD_LIBRARY_PATH
7977 shlibpath_overrides_runpath=yes
7984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7985 soname_spec='${libname}${release}${shared_ext}$major'
7986 shlibpath_var=LD_LIBRARY_PATH
7987 shlibpath_overrides_runpath=yes
7994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7996 shlibpath_var=LD_LIBRARY_PATH
7997 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7999 openbsd2.[89] | openbsd2.[89].*)
8000 shlibpath_overrides_runpath=no
8003 shlibpath_overrides_runpath=yes
8007 shlibpath_overrides_runpath=yes
8012 libname_spec='$name'
8015 library_names_spec='$libname${shared_ext} $libname.a'
8016 dynamic_linker='OS/2 ld.exe'
8017 shlibpath_var=LIBPATH
8020 osf3* | osf4* | osf5*)
8024 soname_spec='${libname}${release}${shared_ext}$major'
8025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8026 shlibpath_var=LD_LIBRARY_PATH
8027 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8028 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8033 soname_spec='${libname}${release}${shared_ext}$major'
8034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8035 shlibpath_var=LD_LIBRARY_PATH
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8043 soname_spec='${libname}${release}${shared_ext}$major'
8044 shlibpath_var=LD_LIBRARY_PATH
8045 shlibpath_overrides_runpath=yes
8046 hardcode_into_libs=yes
8047 # ldd complains unless libraries are executable
8048 postinstall_cmds='chmod +x $lib'
8053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8055 shlibpath_var=LD_LIBRARY_PATH
8056 shlibpath_overrides_runpath=yes
8057 if test "$with_gnu_ld" = yes; then
8063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8066 soname_spec='${libname}${release}${shared_ext}$major'
8067 shlibpath_var=LD_LIBRARY_PATH
8068 case $host_vendor in
8070 shlibpath_overrides_runpath=no
8072 export_dynamic_flag_spec='${wl}-Blargedynsym'
8073 runpath_var=LD_RUN_PATH
8081 shlibpath_overrides_runpath=no
8082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8088 if test -d /usr/nec ;then
8090 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8091 soname_spec='$libname${shared_ext}.$major'
8092 shlibpath_var=LD_LIBRARY_PATH
8098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8099 soname_spec='${libname}${release}${shared_ext}$major'
8100 shlibpath_var=LD_LIBRARY_PATH
8107 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8108 echo "${ECHO_T}$dynamic_linker" >&6
8109 test "$dynamic_linker" = no && can_build_shared=no
8111 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8112 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8114 if test -n "$hardcode_libdir_flag_spec" || \
8115 test -n "$runpath_var " || \
8116 test "X$hardcode_automatic"="Xyes" ; then
8118 # We can hardcode non-existant directories.
8119 if test "$hardcode_direct" != no &&
8120 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8121 # have to relink, otherwise we might link with an installed library
8122 # when we should be linking with a yet-to-be-installed one
8123 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8124 test "$hardcode_minus_L" != no; then
8125 # Linking always hardcodes the temporary library directory.
8126 hardcode_action=relink
8128 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8129 hardcode_action=immediate
8132 # We cannot hardcode anything, or else we can only hardcode existing
8134 hardcode_action=unsupported
8136 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8137 echo "${ECHO_T}$hardcode_action" >&6
8139 if test "$hardcode_action" = relink; then
8140 # Fast installation is not supported
8141 enable_fast_install=no
8142 elif test "$shlibpath_overrides_runpath" = yes ||
8143 test "$enable_shared" = no; then
8144 # Fast installation is not necessary
8145 enable_fast_install=needless
8150 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8151 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8152 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8153 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8154 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8155 echo "$as_me:$LINENO: result: yes" >&5
8156 echo "${ECHO_T}yes" >&6
8158 # FIXME - insert some real tests, host_os isn't really good enough
8161 if test -n "$STRIP" ; then
8162 striplib="$STRIP -x"
8163 echo "$as_me:$LINENO: result: yes" >&5
8164 echo "${ECHO_T}yes" >&6
8166 echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8171 echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6
8177 if test "x$enable_dlopen" != xyes; then
8178 enable_dlopen=unknown
8179 enable_dlopen_self=unknown
8180 enable_dlopen_self_static=unknown
8187 lt_cv_dlopen="load_add_on"
8189 lt_cv_dlopen_self=yes
8193 lt_cv_dlopen="LoadLibrary"
8198 lt_cv_dlopen="dlopen"
8203 # if libdl is installed we need to link against it
8204 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8205 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 ac_check_lib_save_LIBS=$LIBS
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 /* Override any gcc2 internal prototype to avoid an error. */
8222 /* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>conftest.er1
8237 grep -v '^ *+' conftest.er1 >conftest.err
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try='test -z "$ac_c_werror_flag"
8243 || test ! -s conftest.err'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; } &&
8249 { ac_try='test -s conftest$ac_exeext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 ac_cv_lib_dl_dlopen=yes
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8260 ac_cv_lib_dl_dlopen=no
8262 rm -f conftest.err conftest.$ac_objext \
8263 conftest$ac_exeext conftest.$ac_ext
8264 LIBS=$ac_check_lib_save_LIBS
8266 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8267 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8268 if test $ac_cv_lib_dl_dlopen = yes; then
8269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8274 lt_cv_dlopen_self=yes
8281 echo "$as_me:$LINENO: checking for shl_load" >&5
8282 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8283 if test "${ac_cv_func_shl_load+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8294 #define shl_load innocuous_shl_load
8296 /* System header to define __stub macros and hopefully few prototypes,
8297 which can conflict with char shl_load (); below.
8298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8299 <limits.h> exists even on freestanding compilers. */
8302 # include <limits.h>
8304 # include <assert.h>
8309 /* Override any gcc2 internal prototype to avoid an error. */
8314 /* We use char because int might match the return type of a gcc2
8315 builtin and then its argument prototype would still apply. */
8317 /* The GNU C library defines this for functions which it implements
8318 to always fail with ENOSYS. Some functions are actually named
8319 something starting with __ and the normal name is an alias. */
8320 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8323 char (*f) () = shl_load;
8332 return f != shl_load;
8337 rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8339 (eval $ac_link) 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -z "$ac_c_werror_flag"
8347 || test ! -s conftest.err'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; } &&
8353 { ac_try='test -s conftest$ac_exeext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 ac_cv_func_shl_load=yes
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8364 ac_cv_func_shl_load=no
8366 rm -f conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8370 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8371 if test $ac_cv_func_shl_load = yes; then
8372 lt_cv_dlopen="shl_load"
8374 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8375 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8376 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 ac_check_lib_save_LIBS=$LIBS
8381 cat >conftest.$ac_ext <<_ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8388 /* Override any gcc2 internal prototype to avoid an error. */
8392 /* We use char because int might match the return type of a gcc2
8393 builtin and then its argument prototype would still apply. */
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8405 (eval $ac_link) 2>conftest.er1
8407 grep -v '^ *+' conftest.er1 >conftest.err
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try='test -z "$ac_c_werror_flag"
8413 || test ! -s conftest.err'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; } &&
8419 { ac_try='test -s conftest$ac_exeext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_cv_lib_dld_shl_load=yes
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_cv_lib_dld_shl_load=no
8432 rm -f conftest.err conftest.$ac_objext \
8433 conftest$ac_exeext conftest.$ac_ext
8434 LIBS=$ac_check_lib_save_LIBS
8436 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8437 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8438 if test $ac_cv_lib_dld_shl_load = yes; then
8439 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8441 echo "$as_me:$LINENO: checking for dlopen" >&5
8442 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8443 if test "${ac_cv_func_dlopen+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8454 #define dlopen innocuous_dlopen
8456 /* System header to define __stub macros and hopefully few prototypes,
8457 which can conflict with char dlopen (); below.
8458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8459 <limits.h> exists even on freestanding compilers. */
8462 # include <limits.h>
8464 # include <assert.h>
8469 /* Override any gcc2 internal prototype to avoid an error. */
8474 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8477 /* The GNU C library defines this for functions which it implements
8478 to always fail with ENOSYS. Some functions are actually named
8479 something starting with __ and the normal name is an alias. */
8480 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8483 char (*f) () = dlopen;
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>conftest.er1
8501 grep -v '^ *+' conftest.er1 >conftest.err
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -z "$ac_c_werror_flag"
8507 || test ! -s conftest.err'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; } &&
8513 { ac_try='test -s conftest$ac_exeext'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_cv_func_dlopen=yes
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_cv_func_dlopen=no
8526 rm -f conftest.err conftest.$ac_objext \
8527 conftest$ac_exeext conftest.$ac_ext
8529 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8530 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8531 if test $ac_cv_func_dlopen = yes; then
8532 lt_cv_dlopen="dlopen"
8534 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8535 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8536 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 ac_check_lib_save_LIBS=$LIBS
8541 cat >conftest.$ac_ext <<_ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8548 /* Override any gcc2 internal prototype to avoid an error. */
8552 /* We use char because int might match the return type of a gcc2
8553 builtin and then its argument prototype would still apply. */
8563 rm -f conftest.$ac_objext conftest$ac_exeext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8565 (eval $ac_link) 2>conftest.er1
8567 grep -v '^ *+' conftest.er1 >conftest.err
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try='test -z "$ac_c_werror_flag"
8573 || test ! -s conftest.err'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; } &&
8579 { ac_try='test -s conftest$ac_exeext'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_cv_lib_dl_dlopen=yes
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_cv_lib_dl_dlopen=no
8592 rm -f conftest.err conftest.$ac_objext \
8593 conftest$ac_exeext conftest.$ac_ext
8594 LIBS=$ac_check_lib_save_LIBS
8596 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8598 if test $ac_cv_lib_dl_dlopen = yes; then
8599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8601 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8602 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 ac_check_lib_save_LIBS=$LIBS
8608 cat >conftest.$ac_ext <<_ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8615 /* Override any gcc2 internal prototype to avoid an error. */
8619 /* We use char because int might match the return type of a gcc2
8620 builtin and then its argument prototype would still apply. */
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632 (eval $ac_link) 2>conftest.er1
8634 grep -v '^ *+' conftest.er1 >conftest.err
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag"
8640 || test ! -s conftest.err'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 ac_cv_lib_svld_dlopen=yes
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 ac_cv_lib_svld_dlopen=no
8659 rm -f conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661 LIBS=$ac_check_lib_save_LIBS
8663 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8664 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8665 if test $ac_cv_lib_svld_dlopen = yes; then
8666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8668 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8669 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8670 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 ac_check_lib_save_LIBS=$LIBS
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8682 /* Override any gcc2 internal prototype to avoid an error. */
8686 /* We use char because int might match the return type of a gcc2
8687 builtin and then its argument prototype would still apply. */
8697 rm -f conftest.$ac_objext conftest$ac_exeext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8699 (eval $ac_link) 2>conftest.er1
8701 grep -v '^ *+' conftest.er1 >conftest.err
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -z "$ac_c_werror_flag"
8707 || test ! -s conftest.err'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } &&
8713 { ac_try='test -s conftest$ac_exeext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 ac_cv_lib_dld_dld_link=yes
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 ac_cv_lib_dld_dld_link=no
8726 rm -f conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8730 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8731 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8732 if test $ac_cv_lib_dld_dld_link = yes; then
8733 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8754 if test "x$lt_cv_dlopen" != xno; then
8760 case $lt_cv_dlopen in
8762 save_CPPFLAGS="$CPPFLAGS"
8763 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8765 save_LDFLAGS="$LDFLAGS"
8766 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8769 LIBS="$lt_cv_dlopen_libs $LIBS"
8771 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8772 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8773 if test "${lt_cv_dlopen_self+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 if test "$cross_compiling" = yes; then :
8777 lt_cv_dlopen_self=cross
8779 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8780 lt_status=$lt_dlunknown
8781 cat > conftest.$ac_ext <<EOF
8782 #line 8782 "configure"
8783 #include "confdefs.h"
8792 # define LT_DLGLOBAL RTLD_GLOBAL
8795 # define LT_DLGLOBAL DL_GLOBAL
8797 # define LT_DLGLOBAL 0
8801 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8802 find out it does not work in some platform. */
8803 #ifndef LT_DLLAZY_OR_NOW
8805 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8808 # define LT_DLLAZY_OR_NOW DL_LAZY
8811 # define LT_DLLAZY_OR_NOW RTLD_NOW
8814 # define LT_DLLAZY_OR_NOW DL_NOW
8816 # define LT_DLLAZY_OR_NOW 0
8824 extern "C" void exit (int);
8827 void fnord() { int i=42;}
8830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8831 int status = $lt_dlunknown;
8835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8836 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8837 /* dlclose (self); */
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8848 (./conftest; exit; ) 2>/dev/null
8851 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8852 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8853 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8856 # compilation failed
8857 lt_cv_dlopen_self=no
8864 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8865 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8867 if test "x$lt_cv_dlopen_self" = xyes; then
8868 LDFLAGS="$LDFLAGS $link_static_flag"
8869 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8870 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8871 if test "${lt_cv_dlopen_self_static+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 if test "$cross_compiling" = yes; then :
8875 lt_cv_dlopen_self_static=cross
8877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8878 lt_status=$lt_dlunknown
8879 cat > conftest.$ac_ext <<EOF
8880 #line 8880 "configure"
8881 #include "confdefs.h"
8890 # define LT_DLGLOBAL RTLD_GLOBAL
8893 # define LT_DLGLOBAL DL_GLOBAL
8895 # define LT_DLGLOBAL 0
8899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8900 find out it does not work in some platform. */
8901 #ifndef LT_DLLAZY_OR_NOW
8903 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8906 # define LT_DLLAZY_OR_NOW DL_LAZY
8909 # define LT_DLLAZY_OR_NOW RTLD_NOW
8912 # define LT_DLLAZY_OR_NOW DL_NOW
8914 # define LT_DLLAZY_OR_NOW 0
8922 extern "C" void exit (int);
8925 void fnord() { int i=42;}
8928 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8929 int status = $lt_dlunknown;
8933 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8934 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8935 /* dlclose (self); */
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8946 (./conftest; exit; ) 2>/dev/null
8949 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8950 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8951 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8954 # compilation failed
8955 lt_cv_dlopen_self_static=no
8962 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8963 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8966 CPPFLAGS="$save_CPPFLAGS"
8967 LDFLAGS="$save_LDFLAGS"
8972 case $lt_cv_dlopen_self in
8973 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8974 *) enable_dlopen_self=unknown ;;
8977 case $lt_cv_dlopen_self_static in
8978 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8979 *) enable_dlopen_self_static=unknown ;;
8984 # Report which librarie types wil actually be built
8985 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8986 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8987 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8988 echo "${ECHO_T}$can_build_shared" >&6
8990 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8991 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8992 test "$can_build_shared" = "no" && enable_shared=no
8994 # On AIX, shared libraries and static libraries use the same namespace, and
8995 # are all built from PIC.
8998 test "$enable_shared" = yes && enable_static=no
8999 if test -n "$RANLIB"; then
9000 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9001 postinstall_cmds='$RANLIB $lib'
9006 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9007 test "$enable_shared" = yes && enable_static=no
9010 darwin* | rhapsody*)
9011 if test "$GCC" = yes; then
9012 archive_cmds_need_lc=no
9014 rhapsody* | darwin1.[012])
9015 allow_undefined_flag='-undefined suppress'
9018 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9019 allow_undefined_flag='-flat_namespace -undefined suppress'
9021 case ${MACOSX_DEPLOYMENT_TARGET} in
9023 allow_undefined_flag='-flat_namespace -undefined suppress'
9026 allow_undefined_flag='-undefined dynamic_lookup'
9032 output_verbose_link_cmd='echo'
9033 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9034 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9035 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9036 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}'
9037 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}'
9039 hardcode_automatic=yes
9040 hardcode_shlibpath_var=unsupported
9041 whole_archive_flag_spec='-all_load $convenience'
9042 link_all_deplibs=yes
9048 echo "$as_me:$LINENO: result: $enable_shared" >&5
9049 echo "${ECHO_T}$enable_shared" >&6
9051 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9052 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9053 # Make sure either enable_shared or enable_static is yes.
9054 test "$enable_shared" = yes || enable_static=yes
9055 echo "$as_me:$LINENO: result: $enable_static" >&5
9056 echo "${ECHO_T}$enable_static" >&6
9058 # The else clause should only fire when bootstrapping the
9059 # libtool distribution, otherwise you forgot to ship ltmain.sh
9060 # with your package, and you will get complaints that there are
9061 # no rules to generate ltmain.sh.
9062 if test -f "$ltmain"; then
9063 # See if we are running on zsh, and set the options which allow our commands through
9064 # without removal of \ escapes.
9065 if test -n "${ZSH_VERSION+set}" ; then
9066 setopt NO_GLOB_SUBST
9068 # Now quote all the things that may contain metacharacters while being
9069 # careful not to overquote the AC_SUBSTed values. We take copies of the
9070 # variables and quote the copies for generation of the libtool script.
9071 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9073 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9074 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9075 deplibs_check_method reload_flag reload_cmds need_locks \
9076 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9077 lt_cv_sys_global_symbol_to_c_name_address \
9078 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9079 old_postinstall_cmds old_postuninstall_cmds \
9083 lt_prog_compiler_wl \
9084 lt_prog_compiler_pic \
9085 lt_prog_compiler_static \
9086 lt_prog_compiler_no_builtin_flag \
9087 export_dynamic_flag_spec \
9088 thread_safe_flag_spec \
9089 whole_archive_flag_spec \
9090 enable_shared_with_static_runtimes \
9092 old_archive_from_new_cmds \
9097 compiler_lib_search_path \
9099 archive_expsym_cmds \
9101 postuninstall_cmds \
9102 old_archive_from_expsyms_cmds \
9103 allow_undefined_flag \
9105 export_symbols_cmds \
9106 hardcode_libdir_flag_spec \
9107 hardcode_libdir_flag_spec_ld \
9108 hardcode_libdir_separator \
9109 hardcode_automatic \
9111 module_expsym_cmds \
9112 lt_cv_prog_compiler_c_o \
9117 old_archive_cmds | \
9118 old_archive_from_new_cmds | \
9120 archive_expsym_cmds | \
9122 module_expsym_cmds | \
9123 old_archive_from_expsyms_cmds | \
9124 export_symbols_cmds | \
9125 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9126 postinstall_cmds | postuninstall_cmds | \
9127 old_postinstall_cmds | old_postuninstall_cmds | \
9128 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9129 # Double-quote double-evaled strings.
9130 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9139 *'\$0 --fallback-echo"')
9140 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9145 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9147 { echo "$as_me:$LINENO: creating $ofile" >&5
9148 echo "$as_me: creating $ofile" >&6;}
9150 cat <<__EOF__ >> "$cfgfile"
9153 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9154 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9155 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9157 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9158 # Free Software Foundation, Inc.
9160 # This file is part of GNU Libtool:
9161 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9163 # This program is free software; you can redistribute it and/or modify
9164 # it under the terms of the GNU General Public License as published by
9165 # the Free Software Foundation; either version 2 of the License, or
9166 # (at your option) any later version.
9168 # This program is distributed in the hope that it will be useful, but
9169 # WITHOUT ANY WARRANTY; without even the implied warranty of
9170 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9171 # General Public License for more details.
9173 # You should have received a copy of the GNU General Public License
9174 # along with this program; if not, write to the Free Software
9175 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9177 # As a special exception to the GNU General Public License, if you
9178 # distribute this file as part of a program that contains a
9179 # configuration script generated by Autoconf, you may include it under
9180 # the same distribution terms that you use for the rest of that program.
9182 # A sed program that does not truncate output.
9185 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9186 Xsed="$SED -e s/^X//"
9188 # The HP-UX ksh and POSIX shell print the target directory to stdout
9190 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9192 # The names of the tagged configurations supported by this script.
9195 # ### BEGIN LIBTOOL CONFIG
9197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9199 # Shell to use when invoking shell scripts.
9202 # Whether or not to build shared libraries.
9203 build_libtool_libs=$enable_shared
9205 # Whether or not to build static libraries.
9206 build_old_libs=$enable_static
9208 # Whether or not to add -lc for building shared libraries.
9209 build_libtool_need_lc=$archive_cmds_need_lc
9211 # Whether or not to disallow shared libs when runtime libs are static
9212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9214 # Whether or not to optimize for fast installation.
9215 fast_install=$enable_fast_install
9218 host_alias=$host_alias
9221 # An echo program that does not interpret backslashes.
9226 AR_FLAGS=$lt_AR_FLAGS
9231 # A language-specific compiler.
9234 # Is the compiler the GNU C compiler?
9240 # The linker used to build libraries.
9243 # Whether we need hard or soft links.
9246 # A BSD-compatible nm program.
9249 # A symbol stripping program
9252 # Used to examine libraries when file_magic_cmd begins "file"
9253 MAGIC_CMD=$MAGIC_CMD
9255 # Used on cygwin: DLL creation program.
9258 # Used on cygwin: object dumper.
9261 # Used on cygwin: assembler.
9264 # The name of the directory that contains temporary libtool files.
9267 # How to create reloadable object files.
9268 reload_flag=$lt_reload_flag
9269 reload_cmds=$lt_reload_cmds
9271 # How to pass a linker flag through the compiler.
9272 wl=$lt_lt_prog_compiler_wl
9274 # Object file suffix (normally "o").
9277 # Old archive suffix (normally "a").
9280 # Shared library suffix (normally ".so").
9281 shrext_cmds='$shrext_cmds'
9283 # Executable file suffix (normally "").
9286 # Additional compiler flags for building library objects.
9287 pic_flag=$lt_lt_prog_compiler_pic
9290 # What is the maximum length of a command?
9291 max_cmd_len=$lt_cv_sys_max_cmd_len
9293 # Does compiler simultaneously support -c and -o options?
9294 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9296 # Must we lock files when doing compilation ?
9297 need_locks=$lt_need_locks
9299 # Do we need the lib prefix for modules?
9300 need_lib_prefix=$need_lib_prefix
9302 # Do we need a version for libraries?
9303 need_version=$need_version
9305 # Whether dlopen is supported.
9306 dlopen_support=$enable_dlopen
9308 # Whether dlopen of programs is supported.
9309 dlopen_self=$enable_dlopen_self
9311 # Whether dlopen of statically linked programs is supported.
9312 dlopen_self_static=$enable_dlopen_self_static
9314 # Compiler flag to prevent dynamic linking.
9315 link_static_flag=$lt_lt_prog_compiler_static
9317 # Compiler flag to turn off builtin functions.
9318 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9320 # Compiler flag to allow reflexive dlopens.
9321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9323 # Compiler flag to generate shared objects directly from archives.
9324 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9326 # Compiler flag to generate thread-safe objects.
9327 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9329 # Library versioning type.
9330 version_type=$version_type
9332 # Format of library name prefix.
9333 libname_spec=$lt_libname_spec
9335 # List of archive names. First name is the real one, the rest are links.
9336 # The last name is the one that the linker finds with -lNAME.
9337 library_names_spec=$lt_library_names_spec
9339 # The coded name of the library, if different from the real name.
9340 soname_spec=$lt_soname_spec
9342 # Commands used to build and install an old-style archive.
9344 old_archive_cmds=$lt_old_archive_cmds
9345 old_postinstall_cmds=$lt_old_postinstall_cmds
9346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9348 # Create an old-style archive from a shared archive.
9349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9351 # Create a temporary old-style archive to link instead of a shared archive.
9352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9354 # Commands used to build and install a shared archive.
9355 archive_cmds=$lt_archive_cmds
9356 archive_expsym_cmds=$lt_archive_expsym_cmds
9357 postinstall_cmds=$lt_postinstall_cmds
9358 postuninstall_cmds=$lt_postuninstall_cmds
9360 # Commands used to build a loadable module (assumed same as above if empty)
9361 module_cmds=$lt_module_cmds
9362 module_expsym_cmds=$lt_module_expsym_cmds
9364 # Commands to strip libraries.
9365 old_striplib=$lt_old_striplib
9366 striplib=$lt_striplib
9368 # Dependencies to place before the objects being linked to create a
9370 predep_objects=$lt_predep_objects
9372 # Dependencies to place after the objects being linked to create a
9374 postdep_objects=$lt_postdep_objects
9376 # Dependencies to place before the objects being linked to create a
9380 # Dependencies to place after the objects being linked to create a
9382 postdeps=$lt_postdeps
9384 # The library search path used internally by the compiler when linking
9386 compiler_lib_search_path=$lt_compiler_lib_search_path
9388 # Method to check whether dependent libraries are shared objects.
9389 deplibs_check_method=$lt_deplibs_check_method
9391 # Command to use when deplibs_check_method == file_magic.
9392 file_magic_cmd=$lt_file_magic_cmd
9394 # Flag that allows shared libraries with undefined symbols to be built.
9395 allow_undefined_flag=$lt_allow_undefined_flag
9397 # Flag that forces no undefined symbols.
9398 no_undefined_flag=$lt_no_undefined_flag
9400 # Commands used to finish a libtool library installation in a directory.
9401 finish_cmds=$lt_finish_cmds
9403 # Same as above, but a single script fragment to be evaled but not shown.
9404 finish_eval=$lt_finish_eval
9406 # Take the output of nm and produce a listing of raw symbols and C names.
9407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9409 # Transform the output of nm in a proper C declaration
9410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9412 # Transform the output of nm in a C name address pair
9413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9415 # This is the shared library runtime path variable.
9416 runpath_var=$runpath_var
9418 # This is the shared library path variable.
9419 shlibpath_var=$shlibpath_var
9421 # Is shlibpath searched before the hard-coded library search path?
9422 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9424 # How to hardcode a shared library path into an executable.
9425 hardcode_action=$hardcode_action
9427 # Whether we should hardcode library paths into libraries.
9428 hardcode_into_libs=$hardcode_into_libs
9430 # Flag to hardcode \$libdir into a binary during linking.
9431 # This must work even if \$libdir does not exist.
9432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9434 # If ld is used when linking, flag to hardcode \$libdir into
9435 # a binary during linking. This must work even if \$libdir does
9437 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9439 # Whether we need a single -rpath flag with a separated argument.
9440 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9442 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9444 hardcode_direct=$hardcode_direct
9446 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9448 hardcode_minus_L=$hardcode_minus_L
9450 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9451 # the resulting binary.
9452 hardcode_shlibpath_var=$hardcode_shlibpath_var
9454 # Set to yes if building a shared library automatically hardcodes DIR into the library
9455 # and all subsequent libraries and executables linked against it.
9456 hardcode_automatic=$hardcode_automatic
9458 # Variables whose values should be saved in libtool wrapper scripts and
9459 # restored at relink time.
9460 variables_saved_for_relink="$variables_saved_for_relink"
9462 # Whether libtool must link a program against all its dependency libraries.
9463 link_all_deplibs=$link_all_deplibs
9465 # Compile-time system search path for libraries
9466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9468 # Run-time system search path for libraries
9469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9471 # Fix the shell variable \$srcfile for the compiler.
9472 fix_srcfile_path="$fix_srcfile_path"
9474 # Set to yes if exported symbols are required.
9475 always_export_symbols=$always_export_symbols
9477 # The commands to list exported symbols.
9478 export_symbols_cmds=$lt_export_symbols_cmds
9480 # The commands to extract the exported symbol list from a shared archive.
9481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9483 # Symbols that should not be listed in the preloaded symbols.
9484 exclude_expsyms=$lt_exclude_expsyms
9486 # Symbols that must always be exported.
9487 include_expsyms=$lt_include_expsyms
9489 # ### END LIBTOOL CONFIG
9496 cat <<\EOF >> "$cfgfile"
9498 # AIX sometimes has problems with the GCC collect2 program. For some
9499 # reason, if we set the COLLECT_NAMES environment variable, the problems
9500 # vanish in a puff of smoke.
9501 if test "X${COLLECT_NAMES+set}" != Xset; then
9503 export COLLECT_NAMES
9509 # We use sed instead of cat because bash on DJGPP gets confused if
9510 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9511 # text mode, it properly converts lines to CR/LF. This bash problem
9512 # is reportedly fixed, but why not run on old versions too?
9513 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9515 mv -f "$cfgfile" "$ofile" || \
9516 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9520 # If there is no Makefile yet, we rely on a make rule to execute
9521 # `config.status --recheck' to rerun these tests and create the
9522 # libtool script then.
9523 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9524 if test -f "$ltmain_in"; then
9525 test -f Makefile && make "$ltmain"
9531 ac_cpp='$CPP $CPPFLAGS'
9532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9539 # Check whether --with-tags or --without-tags was given.
9540 if test "${with_tags+set}" = set; then
9541 withval="$with_tags"
9545 if test -f "$ltmain" && test -n "$tagnames"; then
9546 if test ! -f "${ofile}"; then
9547 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9548 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9551 if test -z "$LTCC"; then
9552 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9553 if test -z "$LTCC"; then
9554 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9555 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9558 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9562 # Extract list of available tagged configurations in $ofile.
9563 # Note that this assumes the entire list is on one line.
9564 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9567 for tagname in $tagnames; do
9569 # Check whether tagname contains only valid characters
9570 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9572 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9573 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9574 { (exit 1); exit 1; }; }
9578 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9580 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9581 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9582 { (exit 1); exit 1; }; }
9585 # Update the list of available tags.
9586 if test -n "$tagname"; then
9587 echo appending configuration tag \"$tagname\" to $ofile
9591 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9593 ac_cpp='$CXXCPP $CPPFLAGS'
9594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9601 archive_cmds_need_lc_CXX=no
9602 allow_undefined_flag_CXX=
9603 always_export_symbols_CXX=no
9604 archive_expsym_cmds_CXX=
9605 export_dynamic_flag_spec_CXX=
9606 hardcode_direct_CXX=no
9607 hardcode_libdir_flag_spec_CXX=
9608 hardcode_libdir_flag_spec_ld_CXX=
9609 hardcode_libdir_separator_CXX=
9610 hardcode_minus_L_CXX=no
9611 hardcode_automatic_CXX=no
9613 module_expsym_cmds_CXX=
9614 link_all_deplibs_CXX=unknown
9615 old_archive_cmds_CXX=$old_archive_cmds
9616 no_undefined_flag_CXX=
9617 whole_archive_flag_spec_CXX=
9618 enable_shared_with_static_runtimes_CXX=no
9620 # Dependencies to place before and after the object being linked:
9622 postdep_objects_CXX=
9625 compiler_lib_search_path_CXX=
9627 # Source file extension for C++ test sources.
9630 # Object file extension for compiled C++ test sources.
9634 # Code to be used in simple compile tests
9635 lt_simple_compile_test_code="int some_variable = 0;\n"
9637 # Code to be used in simple link tests
9638 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9640 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9642 # If no C compiler was specified, use CC.
9645 # Allow CC to be a program name with arguments.
9649 # Allow CC to be a program name with arguments.
9654 lt_save_with_gnu_ld=$with_gnu_ld
9655 lt_save_path_LD=$lt_cv_path_LD
9656 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9657 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9659 unset lt_cv_prog_gnu_ld
9661 if test -n "${lt_cv_path_LDCXX+set}"; then
9662 lt_cv_path_LD=$lt_cv_path_LDCXX
9666 test -z "${LDCXX+set}" || LD=$LDCXX
9670 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9672 # We don't want -fno-exception wen compiling C++ code, so set the
9673 # no_builtin_flag separately
9674 if test "$GXX" = yes; then
9675 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9677 lt_prog_compiler_no_builtin_flag_CXX=
9680 if test "$GXX" = yes; then
9681 # Set up default GNU C++ configuration
9684 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9685 if test "${with_gnu_ld+set}" = set; then
9686 withval="$with_gnu_ld"
9687 test "$withval" = no || with_gnu_ld=yes
9692 if test "$GCC" = yes; then
9693 # Check if gcc -print-prog-name=ld gives a path.
9694 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9695 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9698 # gcc leaves a trailing carriage return which upsets mingw
9699 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9701 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9704 # Accept absolute paths.
9706 re_direlt='/[^/][^/]*/\.\./'
9707 # Canonicalize the pathname of ld
9708 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9709 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9710 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9712 test -z "$LD" && LD="$ac_prog"
9715 # If it fails, then pretend we aren't using GCC.
9719 # If it is relative, then search for the first ld in PATH.
9723 elif test "$with_gnu_ld" = yes; then
9724 echo "$as_me:$LINENO: checking for GNU ld" >&5
9725 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9727 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9728 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9730 if test "${lt_cv_path_LD+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 if test -z "$LD"; then
9734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9735 for ac_dir in $PATH; do
9737 test -z "$ac_dir" && ac_dir=.
9738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9739 lt_cv_path_LD="$ac_dir/$ac_prog"
9740 # Check to see if the program is GNU ld. I'd rather use --version,
9741 # but apparently some GNU ld's only accept -v.
9742 # Break only if it was the GNU/non-GNU ld that we prefer.
9743 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9744 *GNU* | *'with BFD'*)
9745 test "$with_gnu_ld" != no && break
9748 test "$with_gnu_ld" != yes && break
9755 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9760 if test -n "$LD"; then
9761 echo "$as_me:$LINENO: result: $LD" >&5
9762 echo "${ECHO_T}$LD" >&6
9764 echo "$as_me:$LINENO: result: no" >&5
9765 echo "${ECHO_T}no" >&6
9767 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9768 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9769 { (exit 1); exit 1; }; }
9770 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9771 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9772 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9776 case `$LD -v 2>&1 </dev/null` in
9777 *GNU* | *'with BFD'*)
9778 lt_cv_prog_gnu_ld=yes
9781 lt_cv_prog_gnu_ld=no
9785 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9786 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9787 with_gnu_ld=$lt_cv_prog_gnu_ld
9791 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9792 # archiving commands below assume that GNU ld is being used.
9793 if test "$with_gnu_ld" = yes; then
9794 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9795 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'
9797 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9798 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9800 # If archive_cmds runs LD, not CC, wlarc should be empty
9801 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9802 # investigate it a little bit more. (MM)
9805 # ancient GNU ld didn't support --whole-archive et. al.
9806 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9807 grep 'no-whole-archive' > /dev/null; then
9808 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9810 whole_archive_flag_spec_CXX=
9816 # A generic and very simple default shared library creation
9817 # command for GNU C++ for the case where it uses the native
9818 # linker, instead of GNU ld. If possible, this setting should
9819 # overridden to take advantage of the native linker features on
9820 # the platform it is being used on.
9821 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9824 # Commands to make compiler produce verbose output that lists
9825 # what "hidden" libraries, object files and flags are used when
9826 # linking a shared library.
9827 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9835 # PORTME: fill in a description of your system's C++ link characteristics
9836 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9837 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9841 # FIXME: insert proper C++ library support
9845 if test "$host_cpu" = ia64; then
9846 # On IA64, the linker does run time linking by default, so we don't
9847 # have to do anything special.
9848 aix_use_runtimelinking=no
9849 exp_sym_flag='-Bexport'
9852 aix_use_runtimelinking=no
9854 # Test if we are trying to use run time linking or normal
9855 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9856 # need to do runtime linking.
9857 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9858 for ld_flag in $LDFLAGS; do
9861 aix_use_runtimelinking=yes
9868 exp_sym_flag='-bexport'
9869 no_entry_flag='-bnoentry'
9872 # When large executables or shared objects are built, AIX ld can
9873 # have problems creating the table of contents. If linking a library
9874 # or program results in "error TOC overflow" add -mminimal-toc to
9875 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9876 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9879 hardcode_direct_CXX=yes
9880 hardcode_libdir_separator_CXX=':'
9881 link_all_deplibs_CXX=yes
9883 if test "$GXX" = yes; then
9884 case $host_os in aix4.012|aix4.012.*)
9885 # We only want to do this on AIX 4.2 and lower, the check
9886 # below for broken collect2 doesn't work under 4.3+
9887 collect2name=`${CC} -print-prog-name=collect2`
9888 if test -f "$collect2name" && \
9889 strings "$collect2name" | grep resolve_lib_name >/dev/null
9891 # We have reworked collect2
9892 hardcode_direct_CXX=yes
9894 # We have old collect2
9895 hardcode_direct_CXX=unsupported
9896 # It fails to find uninstalled libraries when the uninstalled
9897 # path is not listed in the libpath. Setting hardcode_minus_L
9898 # to unsupported forces relinking
9899 hardcode_minus_L_CXX=yes
9900 hardcode_libdir_flag_spec_CXX='-L$libdir'
9901 hardcode_libdir_separator_CXX=
9904 shared_flag='-shared'
9907 if test "$host_cpu" = ia64; then
9908 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9909 # chokes on -Wl,-G. The following line is correct:
9912 if test "$aix_use_runtimelinking" = yes; then
9913 shared_flag='${wl}-G'
9915 shared_flag='${wl}-bM:SRE'
9920 # It seems that -bexpall does not export symbols beginning with
9921 # underscore (_), so it is better to generate a list of symbols to export.
9922 always_export_symbols_CXX=yes
9923 if test "$aix_use_runtimelinking" = yes; then
9924 # Warning - without using the other runtime loading flags (-brtl),
9925 # -berok will link without error, but may produce a broken library.
9926 allow_undefined_flag_CXX='-berok'
9927 # Determine the default libpath from the value encoded in an empty executable.
9928 cat >conftest.$ac_ext <<_ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945 (eval $ac_link) 2>conftest.er1
9947 grep -v '^ *+' conftest.er1 >conftest.err
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -z "$ac_cxx_werror_flag"
9953 || test ! -s conftest.err'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; } &&
9959 { ac_try='test -s conftest$ac_exeext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9968 # Check for a 64-bit object if we didn't find anything.
9969 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; }
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9976 rm -f conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9980 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9982 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9984 if test "$host_cpu" = ia64; then
9985 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9986 allow_undefined_flag_CXX="-z nodefs"
9987 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9989 # Determine the default libpath from the value encoded in an empty executable.
9990 cat >conftest.$ac_ext <<_ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007 (eval $ac_link) 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -z "$ac_cxx_werror_flag"
10015 || test ! -s conftest.err'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; } &&
10021 { ac_try='test -s conftest$ac_exeext'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; }; then
10028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10030 # Check for a 64-bit object if we didn't find anything.
10031 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; }
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10038 rm -f conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10042 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10043 # Warning - without using the other run time loading flags,
10044 # -berok will link without error, but may produce a broken library.
10045 no_undefined_flag_CXX=' ${wl}-bernotok'
10046 allow_undefined_flag_CXX=' ${wl}-berok'
10047 # -bexpall does not export symbols beginning with underscore (_)
10048 always_export_symbols_CXX=yes
10049 # Exported symbols can be pulled into shared objects from archives
10050 whole_archive_flag_spec_CXX=' '
10051 archive_cmds_need_lc_CXX=yes
10052 # This is similar to how AIX traditionally builds it's shared libraries.
10053 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10058 case $cc_basename in
10060 # FIXME: insert proper C++ library support
10066 cygwin* | mingw* | pw32*)
10067 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10068 # as there is no search path for DLLs.
10069 hardcode_libdir_flag_spec_CXX='-L$libdir'
10070 allow_undefined_flag_CXX=unsupported
10071 always_export_symbols_CXX=no
10072 enable_shared_with_static_runtimes_CXX=yes
10074 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10076 # If the export-symbols file already is a .def file (1st line
10077 # is EXPORTS), use it as is; otherwise, prepend...
10078 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10079 cp $export_symbols $output_objdir/$soname.def;
10081 echo EXPORTS > $output_objdir/$soname.def;
10082 cat $export_symbols >> $output_objdir/$soname.def;
10084 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10090 darwin* | rhapsody*)
10091 if test "$GXX" = yes; then
10092 archive_cmds_need_lc_CXX=no
10094 rhapsody* | darwin1.[012])
10095 allow_undefined_flag_CXX='-undefined suppress'
10098 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10099 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10101 case ${MACOSX_DEPLOYMENT_TARGET} in
10103 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10106 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10112 lt_int_apple_cc_single_mod=no
10113 output_verbose_link_cmd='echo'
10114 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10115 lt_int_apple_cc_single_mod=yes
10117 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10118 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10120 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10122 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10124 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10125 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10126 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}'
10128 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10130 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}'
10131 hardcode_direct_CXX=no
10132 hardcode_automatic_CXX=yes
10133 hardcode_shlibpath_var_CXX=unsupported
10134 whole_archive_flag_spec_CXX='-all_load $convenience'
10135 link_all_deplibs_CXX=yes
10142 case $cc_basename in
10144 # FIXME: insert proper C++ library support
10148 # Green Hills C++ Compiler
10149 # FIXME: insert proper C++ library support
10153 # FIXME: insert proper C++ library support
10159 # C++ shared libraries reported to be fairly broken before switch to ELF
10163 archive_cmds_need_lc_CXX=no
10165 freebsd* | kfreebsd*-gnu)
10166 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10173 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10174 hardcode_libdir_separator_CXX=:
10175 export_dynamic_flag_spec_CXX='${wl}-E'
10176 hardcode_direct_CXX=yes
10177 hardcode_minus_L_CXX=yes # Not in the search PATH,
10178 # but as the default
10179 # location of the library.
10181 case $cc_basename in
10183 # FIXME: insert proper C++ library support
10187 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'
10188 # Commands to make compiler produce verbose output that lists
10189 # what "hidden" libraries, object files and flags are used when
10190 # linking a shared library.
10192 # There doesn't appear to be a way to prevent this compiler from
10193 # explicitly linking system object files so we need to strip them
10194 # from the output so that they don't get included in the library
10196 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'
10199 if test "$GXX" = yes; then
10200 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'
10202 # FIXME: insert proper C++ library support
10209 if test $with_gnu_ld = no; then
10210 case "$host_cpu" in
10212 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10213 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10214 hardcode_libdir_separator_CXX=:
10217 hardcode_libdir_flag_spec_CXX='-L$libdir'
10220 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10221 hardcode_libdir_separator_CXX=:
10222 export_dynamic_flag_spec_CXX='${wl}-E'
10226 case "$host_cpu" in
10228 hardcode_direct_CXX=no
10229 hardcode_shlibpath_var_CXX=no
10232 hardcode_direct_CXX=no
10233 hardcode_shlibpath_var_CXX=no
10234 hardcode_minus_L_CXX=yes # Not in the search PATH,
10235 # but as the default
10236 # location of the library.
10239 hardcode_direct_CXX=yes
10240 hardcode_minus_L_CXX=yes # Not in the search PATH,
10241 # but as the default
10242 # location of the library.
10246 case $cc_basename in
10248 # FIXME: insert proper C++ library support
10252 case "$host_cpu" in
10254 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10257 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10260 # Commands to make compiler produce verbose output that lists
10261 # what "hidden" libraries, object files and flags are used when
10262 # linking a shared library.
10264 # There doesn't appear to be a way to prevent this compiler from
10265 # explicitly linking system object files so we need to strip them
10266 # from the output so that they don't get included in the library
10268 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'
10271 if test "$GXX" = yes; then
10272 if test $with_gnu_ld = no; then
10273 case "$host_cpu" in
10275 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10278 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'
10283 # FIXME: insert proper C++ library support
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 ${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}${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 archive_cmds_need_lc_CXX=no
10346 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10347 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'
10348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10350 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10354 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10355 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'
10357 runpath_var=LD_RUN_PATH
10358 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10359 hardcode_libdir_separator_CXX=:
10361 # Commands to make compiler produce verbose output that lists
10362 # what "hidden" libraries, object files and flags are used when
10363 # linking a shared library.
10365 # There doesn't appear to be a way to prevent this compiler from
10366 # explicitly linking system object files so we need to strip them
10367 # from the output so that they don't get included in the library
10369 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'
10374 # FIXME: insert proper C++ library support
10378 # FIXME: insert proper C++ library support
10382 case $cc_basename in
10384 # FIXME: insert proper C++ library support
10388 # FIXME: insert proper C++ library support
10394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10395 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10397 hardcode_libdir_flag_spec_CXX='-R$libdir'
10398 hardcode_direct_CXX=yes
10399 hardcode_shlibpath_var_CXX=no
10401 # Workaround some broken pre-1.5 toolchains
10402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10405 case $cc_basename in
10407 # Kuck and Associates, Inc. (KAI) C++ Compiler
10409 # KCC will only create a shared library if the output file
10410 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10411 # to its proper name (with version) after linking.
10412 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'
10414 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10415 hardcode_libdir_separator_CXX=:
10417 # Archives containing C++ object files must be created using
10418 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10419 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10423 # Rational C++ 2.4.1
10424 # FIXME: insert proper C++ library support
10428 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10429 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10431 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10432 hardcode_libdir_separator_CXX=:
10434 # Commands to make compiler produce verbose output that lists
10435 # what "hidden" libraries, object files and flags are used when
10436 # linking a shared library.
10438 # There doesn't appear to be a way to prevent this compiler from
10439 # explicitly linking system object files so we need to strip them
10440 # from the output so that they don't get included in the library
10442 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'
10445 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10446 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10447 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10449 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10450 hardcode_libdir_separator_CXX=:
10452 # Commands to make compiler produce verbose output that lists
10453 # what "hidden" libraries, object files and flags are used when
10454 # linking a shared library.
10455 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10458 # FIXME: insert proper C++ library support
10465 case $cc_basename in
10467 # Kuck and Associates, Inc. (KAI) C++ Compiler
10469 # KCC will only create a shared library if the output file
10470 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10471 # to its proper name (with version) after linking.
10472 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'
10474 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10475 hardcode_libdir_separator_CXX=:
10477 # Archives containing C++ object files must be created using
10478 # the KAI C++ compiler.
10479 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10482 # Rational C++ 2.4.1
10483 # FIXME: insert proper C++ library support
10487 allow_undefined_flag_CXX=' -expect_unresolved \*'
10488 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10489 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10490 echo "-hidden">> $lib.exp~
10491 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10494 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10495 hardcode_libdir_separator_CXX=:
10497 # Commands to make compiler produce verbose output that lists
10498 # what "hidden" libraries, object files and flags are used when
10499 # linking a shared library.
10501 # There doesn't appear to be a way to prevent this compiler from
10502 # explicitly linking system object files so we need to strip them
10503 # from the output so that they don't get included in the library
10505 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'
10508 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10509 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10510 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10512 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10513 hardcode_libdir_separator_CXX=:
10515 # Commands to make compiler produce verbose output that lists
10516 # what "hidden" libraries, object files and flags are used when
10517 # linking a shared library.
10518 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10521 # FIXME: insert proper C++ library support
10528 # FIXME: insert proper C++ library support
10532 archive_cmds_need_lc_CXX=no
10533 case $cc_basename in
10535 # FIXME: insert proper C++ library support
10539 # FIXME: insert proper C++ library support
10545 case $cc_basename in
10548 # FIXME: insert proper C++ library support
10553 # FIXME: insert proper C++ library support
10557 # FIXME: insert proper C++ library support
10563 case $cc_basename in
10565 # Sun C++ 4.2, 5.x and Centerline C++
10566 no_undefined_flag_CXX=' -zdefs'
10567 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10568 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10569 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10571 hardcode_libdir_flag_spec_CXX='-R$libdir'
10572 hardcode_shlibpath_var_CXX=no
10574 solaris2.0-5 | solaris2.0-5.*) ;;
10576 # The C++ compiler is used as linker so we must use $wl
10577 # flag to pass the commands to the underlying system
10579 # Supported since Solaris 2.6 (maybe 2.5.1?)
10580 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10583 link_all_deplibs_CXX=yes
10585 # Commands to make compiler produce verbose output that lists
10586 # what "hidden" libraries, object files and flags are used when
10587 # linking a shared library.
10589 # There doesn't appear to be a way to prevent this compiler from
10590 # explicitly linking system object files so we need to strip them
10591 # from the output so that they don't get included in the library
10593 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10595 # Archives containing C++ object files must be created using
10596 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10597 # necessary to make sure instantiated templates are included
10599 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10602 # Green Hills C++ Compiler
10603 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10605 # The C++ compiler must be used to create the archive.
10606 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10609 # GNU C++ compiler with Solaris linker
10610 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10611 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10612 if $CC --version | grep -v '^2\.7' > /dev/null; then
10613 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10614 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10615 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10617 # Commands to make compiler produce verbose output that lists
10618 # what "hidden" libraries, object files and flags are used when
10619 # linking a shared library.
10620 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10622 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10624 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10625 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10626 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10628 # Commands to make compiler produce verbose output that lists
10629 # what "hidden" libraries, object files and flags are used when
10630 # linking a shared library.
10631 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10634 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10639 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10640 archive_cmds_need_lc_CXX=no
10643 case $cc_basename in
10645 # NonStop-UX NCC 3.20
10646 # FIXME: insert proper C++ library support
10650 # FIXME: insert proper C++ library support
10656 # FIXME: insert proper C++ library support
10660 # FIXME: insert proper C++ library support
10664 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10665 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10666 test "$ld_shlibs_CXX" = no && can_build_shared=no
10672 cat > conftest.$ac_ext <<EOF
10676 Foo (void) { a = 0; }
10682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; then
10687 # Parse the compiler output and extract the necessary
10688 # objects, libraries and library flags.
10690 # Sentinel used to keep track of whether or not we are before
10691 # the conftest object file.
10692 pre_test_object_deps_done=no
10694 # The `*' in the case matches for architectures that use `case' in
10695 # $output_verbose_cmd can trigger glob expansion during the loop
10696 # eval without this substitution.
10697 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10699 for p in `eval $output_verbose_link_cmd`; do
10703 # Some compilers place space between "-{L,R}" and the path.
10704 # Remove the space.
10705 if test $p = "-L" \
10706 || test $p = "-R"; then
10713 if test "$pre_test_object_deps_done" = no; then
10716 # Internal compiler library paths should come after those
10717 # provided the user. The postdeps already come after the
10718 # user supplied libs so there is no need to process them.
10719 if test -z "$compiler_lib_search_path_CXX"; then
10720 compiler_lib_search_path_CXX="${prev}${p}"
10722 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10725 # The "-l" case would never come before the object being
10726 # linked, so don't bother handling this case.
10729 if test -z "$postdeps_CXX"; then
10730 postdeps_CXX="${prev}${p}"
10732 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10738 # This assumes that the test object file only shows up
10739 # once in the compiler output.
10740 if test "$p" = "conftest.$objext"; then
10741 pre_test_object_deps_done=yes
10745 if test "$pre_test_object_deps_done" = no; then
10746 if test -z "$predep_objects_CXX"; then
10747 predep_objects_CXX="$p"
10749 predep_objects_CXX="$predep_objects_CXX $p"
10752 if test -z "$postdep_objects_CXX"; then
10753 postdep_objects_CXX="$p"
10755 postdep_objects_CXX="$postdep_objects_CXX $p"
10760 *) ;; # Ignore the rest.
10768 echo "libtool.m4: error: problem compiling CXX test program"
10771 $rm -f confest.$objext
10773 case " $postdeps_CXX " in
10774 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10777 lt_prog_compiler_wl_CXX=
10778 lt_prog_compiler_pic_CXX=
10779 lt_prog_compiler_static_CXX=
10781 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10782 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10784 # C++ specific cases for pic, static, wl, etc.
10785 if test "$GXX" = yes; then
10786 lt_prog_compiler_wl_CXX='-Wl,'
10787 lt_prog_compiler_static_CXX='-static'
10791 # All AIX code is PIC.
10792 if test "$host_cpu" = ia64; then
10793 # AIX 5 now supports IA64 processor
10794 lt_prog_compiler_static_CXX='-Bstatic'
10798 # FIXME: we need at least 68020 code to build shared libraries, but
10799 # adding the `-m68020' flag to GCC prevents building anything better,
10801 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10803 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10804 # PIC is the default for these OSes.
10806 mingw* | os2* | pw32*)
10807 # This hack is so that the source file can tell whether it is being
10808 # built for inclusion in a dll (and should export symbols for example).
10809 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10811 darwin* | rhapsody*)
10812 # PIC is the default on this platform
10813 # Common symbols not allowed in MH_DYLIB files
10814 lt_prog_compiler_pic_CXX='-fno-common'
10817 # DJGPP does not support shared libraries at all
10818 lt_prog_compiler_pic_CXX=
10821 if test -d /usr/nec; then
10822 lt_prog_compiler_pic_CXX=-Kconform_pic
10826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10827 # not for PA HP-UX.
10828 case "$host_cpu" in
10832 lt_prog_compiler_pic_CXX='-fPIC'
10837 lt_prog_compiler_pic_CXX='-fPIC'
10843 # All AIX code is PIC.
10844 if test "$host_cpu" = ia64; then
10845 # AIX 5 now supports IA64 processor
10846 lt_prog_compiler_static_CXX='-Bstatic'
10848 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10852 case $cc_basename in
10854 # Green Hills C++ Compiler
10855 # _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"
10860 case $cc_basename in
10862 lt_prog_compiler_pic_CXX='-KPIC'
10865 # Green Hills C++ Compiler
10866 lt_prog_compiler_pic_CXX='-pic'
10872 freebsd* | kfreebsd*-gnu)
10873 # FreeBSD uses GNU C++
10875 hpux9* | hpux10* | hpux11*)
10876 case $cc_basename in
10878 lt_prog_compiler_wl_CXX='-Wl,'
10879 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10880 if test "$host_cpu" != ia64; then
10881 lt_prog_compiler_pic_CXX='+Z'
10885 lt_prog_compiler_wl_CXX='-Wl,'
10886 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10887 case "$host_cpu" in
10892 lt_prog_compiler_pic_CXX='+Z'
10900 irix5* | irix6* | nonstopux*)
10901 case $cc_basename in
10903 lt_prog_compiler_wl_CXX='-Wl,'
10904 lt_prog_compiler_static_CXX='-non_shared'
10905 # CC pic flag -KPIC is the default.
10912 case $cc_basename in
10915 lt_prog_compiler_wl_CXX='--backend -Wl,'
10916 lt_prog_compiler_pic_CXX='-fPIC'
10920 lt_prog_compiler_wl_CXX='-Wl,'
10921 lt_prog_compiler_pic_CXX='-KPIC'
10922 lt_prog_compiler_static_CXX='-static'
10926 # Make sure the PIC flag is empty. It appears that all Alpha
10927 # Linux and Compaq Tru64 Unix objects are PIC.
10928 lt_prog_compiler_pic_CXX=
10929 lt_prog_compiler_static_CXX='-non_shared'
10940 case $cc_basename in
10942 lt_prog_compiler_pic_CXX='-W c,exportall'
10950 osf3* | osf4* | osf5*)
10951 case $cc_basename in
10953 lt_prog_compiler_wl_CXX='--backend -Wl,'
10956 # Rational C++ 2.4.1
10957 lt_prog_compiler_pic_CXX='-pic'
10960 # Digital/Compaq C++
10961 lt_prog_compiler_wl_CXX='-Wl,'
10962 # Make sure the PIC flag is empty. It appears that all Alpha
10963 # Linux and Compaq Tru64 Unix objects are PIC.
10964 lt_prog_compiler_pic_CXX=
10965 lt_prog_compiler_static_CXX='-non_shared'
10974 case $cc_basename in
10976 lt_prog_compiler_pic_CXX='-fPIC'
10983 case $cc_basename in
10985 # Sun C++ 4.2, 5.x and Centerline C++
10986 lt_prog_compiler_pic_CXX='-KPIC'
10987 lt_prog_compiler_static_CXX='-Bstatic'
10988 lt_prog_compiler_wl_CXX='-Qoption ld '
10991 # Green Hills C++ Compiler
10992 lt_prog_compiler_pic_CXX='-PIC'
10999 case $cc_basename in
11002 lt_prog_compiler_pic_CXX='-pic'
11003 lt_prog_compiler_static_CXX='-Bstatic'
11007 lt_prog_compiler_pic_CXX='-pic'
11014 case $cc_basename in
11016 # NonStop-UX NCC 3.20
11017 lt_prog_compiler_pic_CXX='-KPIC'
11028 lt_prog_compiler_can_build_shared_CXX=no
11033 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11034 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11037 # Check to make sure the PIC flag actually works.
11039 if test -n "$lt_prog_compiler_pic_CXX"; then
11041 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11042 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11043 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 lt_prog_compiler_pic_works_CXX=no
11047 ac_outfile=conftest.$ac_objext
11048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11049 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11050 # Insert the option either (1) after the last *FLAGS variable, or
11051 # (2) before a word containing "conftest.", or (3) at the end.
11052 # Note that $ac_compile itself does not contain backslashes and begins
11053 # with a dollar sign (not a hyphen), so the echo should work correctly.
11054 # The option is referenced via a variable to avoid confusing sed.
11055 lt_compile=`echo "$ac_compile" | $SED \
11056 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11058 -e 's:$: $lt_compiler_flag:'`
11059 (eval echo "\"\$as_me:11059: $lt_compile\"" >&5)
11060 (eval "$lt_compile" 2>conftest.err)
11062 cat conftest.err >&5
11063 echo "$as_me:11063: \$? = $ac_status" >&5
11064 if (exit $ac_status) && test -s "$ac_outfile"; then
11065 # The compiler can only warn and ignore the option if not recognized
11066 # So say no if there are warnings
11067 if test ! -s conftest.err; then
11068 lt_prog_compiler_pic_works_CXX=yes
11074 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11075 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11077 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11078 case $lt_prog_compiler_pic_CXX in
11080 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11083 lt_prog_compiler_pic_CXX=
11084 lt_prog_compiler_can_build_shared_CXX=no
11089 # For platforms which do not support PIC, -DPIC is meaningless:
11091 lt_prog_compiler_pic_CXX=
11094 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11098 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11099 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11100 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 lt_cv_prog_compiler_c_o_CXX=no
11104 $rm -r conftest 2>/dev/null
11108 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11110 lt_compiler_flag="-o out/conftest2.$ac_objext"
11111 # Insert the option either (1) after the last *FLAGS variable, or
11112 # (2) before a word containing "conftest.", or (3) at the end.
11113 # Note that $ac_compile itself does not contain backslashes and begins
11114 # with a dollar sign (not a hyphen), so the echo should work correctly.
11115 lt_compile=`echo "$ac_compile" | $SED \
11116 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11118 -e 's:$: $lt_compiler_flag:'`
11119 (eval echo "\"\$as_me:11119: $lt_compile\"" >&5)
11120 (eval "$lt_compile" 2>out/conftest.err)
11122 cat out/conftest.err >&5
11123 echo "$as_me:11123: \$? = $ac_status" >&5
11124 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11126 # The compiler can only warn and ignore the option if not recognized
11127 # So say no if there are warnings
11128 if test ! -s out/conftest.err; then
11129 lt_cv_prog_compiler_c_o_CXX=yes
11134 # SGI C++ compiler will create directory out/ii_files/ for
11135 # template instantiation
11136 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11137 $rm out/* && rmdir out
11143 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11144 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11147 hard_links="nottested"
11148 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11149 # do not overwrite the value of need_locks provided by the user
11150 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11151 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11156 ln conftest.a conftest.b 2>&5 || hard_links=no
11157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11158 echo "$as_me:$LINENO: result: $hard_links" >&5
11159 echo "${ECHO_T}$hard_links" >&6
11160 if test "$hard_links" = no; then
11161 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11162 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11169 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11170 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11172 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11175 # If we're using GNU nm, then we don't want the "-C" option.
11176 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11177 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11178 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'
11180 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'
11184 export_symbols_cmds_CXX="$ltdll_cmds"
11187 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11190 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11194 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11195 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11196 test "$ld_shlibs_CXX" = no && can_build_shared=no
11198 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11199 if test "$GCC" = yes; then
11200 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11204 # Do we need to explicitly link libc?
11206 case "x$archive_cmds_need_lc_CXX" in
11208 # Assume -lc should be added
11209 archive_cmds_need_lc_CXX=yes
11211 if test "$enable_shared" = yes && test "$GCC" = yes; then
11212 case $archive_cmds_CXX in
11214 # FIXME: we may have to deal with multi-command sequences.
11217 # Test whether the compiler implicitly links with -lc since on some
11218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11219 # to ld, don't add -lc before -lgcc.
11220 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11221 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226 (eval $ac_compile) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } 2>conftest.err; then
11232 libobjs=conftest.$ac_objext
11234 wl=$lt_prog_compiler_wl_CXX
11240 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11241 allow_undefined_flag_CXX=
11242 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11243 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }
11248 archive_cmds_need_lc_CXX=no
11250 archive_cmds_need_lc_CXX=yes
11252 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11254 cat conftest.err 1>&5
11257 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11258 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11265 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11266 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11267 library_names_spec=
11268 libname_spec='lib$name'
11272 postuninstall_cmds=
11276 shlibpath_overrides_runpath=unknown
11278 dynamic_linker="$host_os ld.so"
11279 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11280 if test "$GCC" = yes; then
11281 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11282 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11283 # if the path contains ";" then we assume it to be the separator
11284 # otherwise default to the standard path separator (i.e. ":") - it is
11285 # assumed that no part of a normal pathname contains ";" but that should
11286 # okay in the real world where ";" in dirpaths is itself problematic.
11287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11292 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11294 need_lib_prefix=unknown
11295 hardcode_into_libs=no
11297 # when you set need_version to no, make sure it does not cause -set_version
11298 # flags to be left without arguments
11299 need_version=unknown
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11305 shlibpath_var=LIBPATH
11307 # AIX 3 has no versioning support, so we append a major version to the name.
11308 soname_spec='${libname}${release}${shared_ext}$major'
11315 hardcode_into_libs=yes
11316 if test "$host_cpu" = ia64; then
11317 # AIX 5 supports IA64
11318 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11319 shlibpath_var=LD_LIBRARY_PATH
11321 # With GCC up to 2.95.x, collect2 would create an import file
11322 # for dependence libraries. The import file would start with
11323 # the line `#! .'. This would cause the generated library to
11324 # depend on `.', always an invalid library. This was fixed in
11325 # development snapshots of GCC prior to 3.0.
11327 aix4 | aix4.[01] | aix4.[01].*)
11328 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11330 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11333 can_build_shared=no
11337 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11338 # soname into executable. Probably we can add versioning support to
11339 # collect2, so additional links can be useful in future.
11340 if test "$aix_use_runtimelinking" = yes; then
11341 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11342 # instead of lib<name>.a to let people know that these are not
11343 # typical AIX shared libraries.
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 # We preserve .a as extension for shared libraries through AIX4.2
11347 # and later when we are not doing run time linking.
11348 library_names_spec='${libname}${release}.a $libname.a'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11351 shlibpath_var=LIBPATH
11356 library_names_spec='$libname.ixlibrary $libname.a'
11357 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11358 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'
11362 library_names_spec='${libname}${shared_ext}'
11363 dynamic_linker="$host_os ld.so"
11364 shlibpath_var=LIBRARY_PATH
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11375 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11376 # the default ld.so.conf also contains /usr/contrib/lib and
11377 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11378 # libtool to hard-code these into programs
11381 cygwin* | mingw* | pw32*)
11382 version_type=windows
11387 case $GCC,$host_os in
11388 yes,cygwin* | yes,mingw* | yes,pw32*)
11389 library_names_spec='$libname.dll.a'
11390 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11391 postinstall_cmds='base_file=`basename \${file}`~
11392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11393 dldir=$destdir/`dirname \$dlpath`~
11394 test -d \$dldir || mkdir -p \$dldir~
11395 $install_prog $dir/$dlname \$dldir/$dlname'
11396 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11397 dlpath=$dir/\$dldll~
11399 shlibpath_overrides_runpath=yes
11403 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11404 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11405 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11408 # MinGW DLLs use traditional 'lib' prefix
11409 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11410 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11411 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11412 # It is most probably a Windows format PATH printed by
11413 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11414 # path with ; separators, and with drive letters. We can handle the
11415 # drive letters (cygwin fileutils understands them), so leave them,
11416 # especially as we might pass files found there to a mingw objdump,
11417 # which wouldn't understand a cygwinified path. Ahh.
11418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11424 # pw32 DLLs use 'pw' prefix rather than 'lib'
11425 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11431 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11434 dynamic_linker='Win32 ld.exe'
11435 # FIXME: first we should search . and the directory the executable is in
11439 darwin* | rhapsody*)
11440 dynamic_linker="$host_os dyld"
11441 version_type=darwin
11444 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11445 soname_spec='${libname}${release}${major}$shared_ext'
11446 shlibpath_overrides_runpath=yes
11447 shlibpath_var=DYLD_LIBRARY_PATH
11448 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11449 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11450 if test "$GCC" = yes; then
11451 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"`
11453 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11455 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 shlibpath_var=LD_LIBRARY_PATH
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11476 soname_spec='${libname}${release}${shared_ext}$major'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=no
11479 hardcode_into_libs=yes
11480 dynamic_linker='GNU ld.so'
11484 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11485 version_type=freebsd-$objformat
11486 case $version_type in
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11497 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=yes
11502 freebsd3.01* | freebsdelf3.01*)
11503 shlibpath_overrides_runpath=yes
11504 hardcode_into_libs=yes
11507 shlibpath_overrides_runpath=no
11508 hardcode_into_libs=yes
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 hardcode_into_libs=yes
11523 hpux9* | hpux10* | hpux11*)
11524 # Give a soname corresponding to the major version so that dld.sl refuses to
11525 # link against other versions.
11529 case "$host_cpu" in
11532 hardcode_into_libs=yes
11533 dynamic_linker="$host_os dld.so"
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 if test "X$HPUX_IA64_MODE" = X32; then
11539 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11547 hardcode_into_libs=yes
11548 dynamic_linker="$host_os dld.sl"
11549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552 soname_spec='${libname}${release}${shared_ext}$major'
11553 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11558 dynamic_linker="$host_os dld.sl"
11559 shlibpath_var=SHLIB_PATH
11560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11565 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11566 postinstall_cmds='chmod 555 $lib'
11569 irix5* | irix6* | nonstopux*)
11571 nonstopux*) version_type=nonstopux ;;
11573 if test "$lt_cv_prog_gnu_ld" = yes; then
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11584 irix5* | nonstopux*)
11585 libsuff= shlibsuff=
11588 case $LD in # libtool.m4 will add one of these switches to LD
11589 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11590 libsuff= shlibsuff= libmagic=32-bit;;
11591 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11592 libsuff=32 shlibsuff=N32 libmagic=N32;;
11593 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11594 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11595 *) libsuff= shlibsuff= libmagic=never-match;;
11599 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11600 shlibpath_overrides_runpath=no
11601 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11602 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11603 hardcode_into_libs=yes
11606 # No shared lib support for Linux oldld, aout, or coff.
11607 linux*oldld* | linux*aout* | linux*coff*)
11611 # This must be Linux ELF.
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617 soname_spec='${libname}${release}${shared_ext}$major'
11618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11619 shlibpath_var=LD_LIBRARY_PATH
11620 shlibpath_overrides_runpath=no
11621 # This implies no fast_install, which is unacceptable.
11622 # Some rework will be needed to allow for fast_install
11623 # before this can be enabled.
11624 hardcode_into_libs=yes
11626 # find out which ABI we are using
11628 case "$host_cpu" in
11629 x86_64*|s390x*|powerpc64*)
11630 echo '#line 11630 "configure"' > conftest.$ac_ext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632 (eval $ac_compile) 2>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; then
11636 case `/usr/bin/file conftest.$ac_objext` in
11639 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11647 # Append ld.so.conf contents to the search path
11648 if test -f /etc/ld.so.conf; then
11649 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11650 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11653 # We used to test for /lib/ld.so.1 and disable shared libraries on
11654 # powerpc, because MkLinux only supported shared libraries with the
11655 # GNU dynamic linker. Since this was broken with cross compilers,
11656 # most powerpc-linux boxes support dynamic linking these days and
11657 # people can always --disable-shared, the test was removed, and we
11658 # assume the GNU/Linux dynamic linker is in use.
11659 dynamic_linker='GNU/Linux ld.so'
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11667 soname_spec='${libname}${release}${shared_ext}$major'
11668 shlibpath_var=LD_LIBRARY_PATH
11669 shlibpath_overrides_runpath=no
11670 hardcode_into_libs=yes
11671 dynamic_linker='GNU ld.so'
11678 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11681 dynamic_linker='NetBSD (a.out) ld.so'
11683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11684 soname_spec='${libname}${release}${shared_ext}$major'
11685 dynamic_linker='NetBSD ld.elf_so'
11687 shlibpath_var=LD_LIBRARY_PATH
11688 shlibpath_overrides_runpath=yes
11689 hardcode_into_libs=yes
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695 shlibpath_var=LD_LIBRARY_PATH
11696 shlibpath_overrides_runpath=yes
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 shlibpath_overrides_runpath=yes
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11718 openbsd2.[89] | openbsd2.[89].*)
11719 shlibpath_overrides_runpath=no
11722 shlibpath_overrides_runpath=yes
11726 shlibpath_overrides_runpath=yes
11731 libname_spec='$name'
11734 library_names_spec='$libname${shared_ext} $libname.a'
11735 dynamic_linker='OS/2 ld.exe'
11736 shlibpath_var=LIBPATH
11739 osf3* | osf4* | osf5*)
11743 soname_spec='${libname}${release}${shared_ext}$major'
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11752 soname_spec='${libname}${release}${shared_ext}$major'
11753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11754 shlibpath_var=LD_LIBRARY_PATH
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=yes
11765 hardcode_into_libs=yes
11766 # ldd complains unless libraries are executable
11767 postinstall_cmds='chmod +x $lib'
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11774 shlibpath_var=LD_LIBRARY_PATH
11775 shlibpath_overrides_runpath=yes
11776 if test "$with_gnu_ld" = yes; then
11782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785 soname_spec='${libname}${release}${shared_ext}$major'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 case $host_vendor in
11789 shlibpath_overrides_runpath=no
11791 export_dynamic_flag_spec='${wl}-Blargedynsym'
11792 runpath_var=LD_RUN_PATH
11800 shlibpath_overrides_runpath=no
11801 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11807 if test -d /usr/nec ;then
11809 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11810 soname_spec='$libname${shared_ext}.$major'
11811 shlibpath_var=LD_LIBRARY_PATH
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818 soname_spec='${libname}${release}${shared_ext}$major'
11819 shlibpath_var=LD_LIBRARY_PATH
11826 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11827 echo "${ECHO_T}$dynamic_linker" >&6
11828 test "$dynamic_linker" = no && can_build_shared=no
11830 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11831 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11832 hardcode_action_CXX=
11833 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11834 test -n "$runpath_var CXX" || \
11835 test "X$hardcode_automatic_CXX"="Xyes" ; then
11837 # We can hardcode non-existant directories.
11838 if test "$hardcode_direct_CXX" != no &&
11839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11840 # have to relink, otherwise we might link with an installed library
11841 # when we should be linking with a yet-to-be-installed one
11842 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11843 test "$hardcode_minus_L_CXX" != no; then
11844 # Linking always hardcodes the temporary library directory.
11845 hardcode_action_CXX=relink
11847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11848 hardcode_action_CXX=immediate
11851 # We cannot hardcode anything, or else we can only hardcode existing
11853 hardcode_action_CXX=unsupported
11855 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11856 echo "${ECHO_T}$hardcode_action_CXX" >&6
11858 if test "$hardcode_action_CXX" = relink; then
11859 # Fast installation is not supported
11860 enable_fast_install=no
11861 elif test "$shlibpath_overrides_runpath" = yes ||
11862 test "$enable_shared" = no; then
11863 # Fast installation is not necessary
11864 enable_fast_install=needless
11869 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11870 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11871 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11872 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11873 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11874 echo "$as_me:$LINENO: result: yes" >&5
11875 echo "${ECHO_T}yes" >&6
11877 # FIXME - insert some real tests, host_os isn't really good enough
11880 if test -n "$STRIP" ; then
11881 striplib="$STRIP -x"
11882 echo "$as_me:$LINENO: result: yes" >&5
11883 echo "${ECHO_T}yes" >&6
11885 echo "$as_me:$LINENO: result: no" >&5
11886 echo "${ECHO_T}no" >&6
11890 echo "$as_me:$LINENO: result: no" >&5
11891 echo "${ECHO_T}no" >&6
11896 if test "x$enable_dlopen" != xyes; then
11897 enable_dlopen=unknown
11898 enable_dlopen_self=unknown
11899 enable_dlopen_self_static=unknown
11906 lt_cv_dlopen="load_add_on"
11908 lt_cv_dlopen_self=yes
11912 lt_cv_dlopen="LoadLibrary"
11917 lt_cv_dlopen="dlopen"
11922 # if libdl is installed we need to link against it
11923 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11924 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11925 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 ac_check_lib_save_LIBS=$LIBS
11930 cat >conftest.$ac_ext <<_ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11937 /* Override any gcc2 internal prototype to avoid an error. */
11941 /* We use char because int might match the return type of a gcc2
11942 builtin and then its argument prototype would still apply. */
11952 rm -f conftest.$ac_objext conftest$ac_exeext
11953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11954 (eval $ac_link) 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try='test -z "$ac_cxx_werror_flag"
11962 || test ! -s conftest.err'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest$ac_exeext'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 ac_cv_lib_dl_dlopen=yes
11976 echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11979 ac_cv_lib_dl_dlopen=no
11981 rm -f conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983 LIBS=$ac_check_lib_save_LIBS
11985 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11986 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11987 if test $ac_cv_lib_dl_dlopen = yes; then
11988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11991 lt_cv_dlopen="dyld"
11993 lt_cv_dlopen_self=yes
12000 echo "$as_me:$LINENO: checking for shl_load" >&5
12001 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12002 if test "${ac_cv_func_shl_load+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 cat >conftest.$ac_ext <<_ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12013 #define shl_load innocuous_shl_load
12015 /* System header to define __stub macros and hopefully few prototypes,
12016 which can conflict with char shl_load (); below.
12017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12018 <limits.h> exists even on freestanding compilers. */
12021 # include <limits.h>
12023 # include <assert.h>
12028 /* Override any gcc2 internal prototype to avoid an error. */
12033 /* We use char because int might match the return type of a gcc2
12034 builtin and then its argument prototype would still apply. */
12036 /* The GNU C library defines this for functions which it implements
12037 to always fail with ENOSYS. Some functions are actually named
12038 something starting with __ and the normal name is an alias. */
12039 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12042 char (*f) () = shl_load;
12051 return f != shl_load;
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058 (eval $ac_link) 2>conftest.er1
12060 grep -v '^ *+' conftest.er1 >conftest.err
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -z "$ac_cxx_werror_flag"
12066 || test ! -s conftest.err'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest$ac_exeext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 ac_cv_func_shl_load=yes
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 ac_cv_func_shl_load=no
12085 rm -f conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12088 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12089 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12090 if test $ac_cv_func_shl_load = yes; then
12091 lt_cv_dlopen="shl_load"
12093 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12094 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12095 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 ac_check_lib_save_LIBS=$LIBS
12100 cat >conftest.$ac_ext <<_ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12107 /* Override any gcc2 internal prototype to avoid an error. */
12111 /* We use char because int might match the return type of a gcc2
12112 builtin and then its argument prototype would still apply. */
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12124 (eval $ac_link) 2>conftest.er1
12126 grep -v '^ *+' conftest.er1 >conftest.err
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
12131 { ac_try='test -z "$ac_cxx_werror_flag"
12132 || test ! -s conftest.err'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest$ac_exeext'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_cv_lib_dld_shl_load=yes
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12149 ac_cv_lib_dld_shl_load=no
12151 rm -f conftest.err conftest.$ac_objext \
12152 conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12155 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12156 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12157 if test $ac_cv_lib_dld_shl_load = yes; then
12158 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12160 echo "$as_me:$LINENO: checking for dlopen" >&5
12161 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12162 if test "${ac_cv_func_dlopen+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 cat >conftest.$ac_ext <<_ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12173 #define dlopen innocuous_dlopen
12175 /* System header to define __stub macros and hopefully few prototypes,
12176 which can conflict with char dlopen (); below.
12177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178 <limits.h> exists even on freestanding compilers. */
12181 # include <limits.h>
12183 # include <assert.h>
12188 /* Override any gcc2 internal prototype to avoid an error. */
12193 /* We use char because int might match the return type of a gcc2
12194 builtin and then its argument prototype would still apply. */
12196 /* The GNU C library defines this for functions which it implements
12197 to always fail with ENOSYS. Some functions are actually named
12198 something starting with __ and the normal name is an alias. */
12199 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12202 char (*f) () = dlopen;
12211 return f != dlopen;
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12218 (eval $ac_link) 2>conftest.er1
12220 grep -v '^ *+' conftest.er1 >conftest.err
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -z "$ac_cxx_werror_flag"
12226 || test ! -s conftest.err'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; } &&
12232 { ac_try='test -s conftest$ac_exeext'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_func_dlopen=yes
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 ac_cv_func_dlopen=no
12245 rm -f conftest.err conftest.$ac_objext \
12246 conftest$ac_exeext conftest.$ac_ext
12248 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12249 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12250 if test $ac_cv_func_dlopen = yes; then
12251 lt_cv_dlopen="dlopen"
12253 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12254 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 ac_check_lib_save_LIBS=$LIBS
12260 cat >conftest.$ac_ext <<_ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12267 /* Override any gcc2 internal prototype to avoid an error. */
12271 /* We use char because int might match the return type of a gcc2
12272 builtin and then its argument prototype would still apply. */
12282 rm -f conftest.$ac_objext conftest$ac_exeext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12284 (eval $ac_link) 2>conftest.er1
12286 grep -v '^ *+' conftest.er1 >conftest.err
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -z "$ac_cxx_werror_flag"
12292 || test ! -s conftest.err'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_cv_lib_dl_dlopen=yes
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_cv_lib_dl_dlopen=no
12311 rm -f conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_lib_save_LIBS
12315 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12316 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12317 if test $ac_cv_lib_dl_dlopen = yes; then
12318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12320 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12321 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12322 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lsvld $LIBS"
12327 cat >conftest.$ac_ext <<_ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12334 /* Override any gcc2 internal prototype to avoid an error. */
12338 /* We use char because int might match the return type of a gcc2
12339 builtin and then its argument prototype would still apply. */
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_cxx_werror_flag"
12359 || test ! -s conftest.err'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest$ac_exeext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_cv_lib_svld_dlopen=yes
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_cv_lib_svld_dlopen=no
12378 rm -f conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12382 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12383 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12384 if test $ac_cv_lib_svld_dlopen = yes; then
12385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12387 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12388 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 ac_check_lib_save_LIBS=$LIBS
12394 cat >conftest.$ac_ext <<_ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12401 /* Override any gcc2 internal prototype to avoid an error. */
12405 /* We use char because int might match the return type of a gcc2
12406 builtin and then its argument prototype would still apply. */
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418 (eval $ac_link) 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_cxx_werror_flag"
12426 || test ! -s conftest.err'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest$ac_exeext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_lib_dld_dld_link=yes
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_cv_lib_dld_dld_link=no
12445 rm -f conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12447 LIBS=$ac_check_lib_save_LIBS
12449 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12450 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12451 if test $ac_cv_lib_dld_dld_link = yes; then
12452 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12473 if test "x$lt_cv_dlopen" != xno; then
12479 case $lt_cv_dlopen in
12481 save_CPPFLAGS="$CPPFLAGS"
12482 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12484 save_LDFLAGS="$LDFLAGS"
12485 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12488 LIBS="$lt_cv_dlopen_libs $LIBS"
12490 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12491 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12492 if test "${lt_cv_dlopen_self+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 if test "$cross_compiling" = yes; then :
12496 lt_cv_dlopen_self=cross
12498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12499 lt_status=$lt_dlunknown
12500 cat > conftest.$ac_ext <<EOF
12501 #line 12501 "configure"
12502 #include "confdefs.h"
12511 # define LT_DLGLOBAL RTLD_GLOBAL
12514 # define LT_DLGLOBAL DL_GLOBAL
12516 # define LT_DLGLOBAL 0
12520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12521 find out it does not work in some platform. */
12522 #ifndef LT_DLLAZY_OR_NOW
12524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12527 # define LT_DLLAZY_OR_NOW DL_LAZY
12530 # define LT_DLLAZY_OR_NOW RTLD_NOW
12533 # define LT_DLLAZY_OR_NOW DL_NOW
12535 # define LT_DLLAZY_OR_NOW 0
12543 extern "C" void exit (int);
12546 void fnord() { int i=42;}
12549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12550 int status = $lt_dlunknown;
12554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12555 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12556 /* dlclose (self); */
12562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12563 (eval $ac_link) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12567 (./conftest; exit; ) 2>/dev/null
12569 case x$lt_status in
12570 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12571 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12572 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12575 # compilation failed
12576 lt_cv_dlopen_self=no
12583 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12584 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12586 if test "x$lt_cv_dlopen_self" = xyes; then
12587 LDFLAGS="$LDFLAGS $link_static_flag"
12588 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12589 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12590 if test "${lt_cv_dlopen_self_static+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 if test "$cross_compiling" = yes; then :
12594 lt_cv_dlopen_self_static=cross
12596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12597 lt_status=$lt_dlunknown
12598 cat > conftest.$ac_ext <<EOF
12599 #line 12599 "configure"
12600 #include "confdefs.h"
12609 # define LT_DLGLOBAL RTLD_GLOBAL
12612 # define LT_DLGLOBAL DL_GLOBAL
12614 # define LT_DLGLOBAL 0
12618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12619 find out it does not work in some platform. */
12620 #ifndef LT_DLLAZY_OR_NOW
12622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12625 # define LT_DLLAZY_OR_NOW DL_LAZY
12628 # define LT_DLLAZY_OR_NOW RTLD_NOW
12631 # define LT_DLLAZY_OR_NOW DL_NOW
12633 # define LT_DLLAZY_OR_NOW 0
12641 extern "C" void exit (int);
12644 void fnord() { int i=42;}
12647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12648 int status = $lt_dlunknown;
12652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12654 /* dlclose (self); */
12660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661 (eval $ac_link) 2>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12665 (./conftest; exit; ) 2>/dev/null
12667 case x$lt_status in
12668 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12669 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12670 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12673 # compilation failed
12674 lt_cv_dlopen_self_static=no
12681 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12682 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12685 CPPFLAGS="$save_CPPFLAGS"
12686 LDFLAGS="$save_LDFLAGS"
12691 case $lt_cv_dlopen_self in
12692 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12693 *) enable_dlopen_self=unknown ;;
12696 case $lt_cv_dlopen_self_static in
12697 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12698 *) enable_dlopen_self_static=unknown ;;
12703 # The else clause should only fire when bootstrapping the
12704 # libtool distribution, otherwise you forgot to ship ltmain.sh
12705 # with your package, and you will get complaints that there are
12706 # no rules to generate ltmain.sh.
12707 if test -f "$ltmain"; then
12708 # See if we are running on zsh, and set the options which allow our commands through
12709 # without removal of \ escapes.
12710 if test -n "${ZSH_VERSION+set}" ; then
12711 setopt NO_GLOB_SUBST
12713 # Now quote all the things that may contain metacharacters while being
12714 # careful not to overquote the AC_SUBSTed values. We take copies of the
12715 # variables and quote the copies for generation of the libtool script.
12716 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12718 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12719 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12720 deplibs_check_method reload_flag reload_cmds need_locks \
12721 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12722 lt_cv_sys_global_symbol_to_c_name_address \
12723 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12724 old_postinstall_cmds old_postuninstall_cmds \
12728 lt_prog_compiler_wl_CXX \
12729 lt_prog_compiler_pic_CXX \
12730 lt_prog_compiler_static_CXX \
12731 lt_prog_compiler_no_builtin_flag_CXX \
12732 export_dynamic_flag_spec_CXX \
12733 thread_safe_flag_spec_CXX \
12734 whole_archive_flag_spec_CXX \
12735 enable_shared_with_static_runtimes_CXX \
12736 old_archive_cmds_CXX \
12737 old_archive_from_new_cmds_CXX \
12738 predep_objects_CXX \
12739 postdep_objects_CXX \
12742 compiler_lib_search_path_CXX \
12744 archive_expsym_cmds_CXX \
12745 postinstall_cmds_CXX \
12746 postuninstall_cmds_CXX \
12747 old_archive_from_expsyms_cmds_CXX \
12748 allow_undefined_flag_CXX \
12749 no_undefined_flag_CXX \
12750 export_symbols_cmds_CXX \
12751 hardcode_libdir_flag_spec_CXX \
12752 hardcode_libdir_flag_spec_ld_CXX \
12753 hardcode_libdir_separator_CXX \
12754 hardcode_automatic_CXX \
12756 module_expsym_cmds_CXX \
12757 lt_cv_prog_compiler_c_o_CXX \
12758 exclude_expsyms_CXX \
12759 include_expsyms_CXX; do
12762 old_archive_cmds_CXX | \
12763 old_archive_from_new_cmds_CXX | \
12764 archive_cmds_CXX | \
12765 archive_expsym_cmds_CXX | \
12766 module_cmds_CXX | \
12767 module_expsym_cmds_CXX | \
12768 old_archive_from_expsyms_cmds_CXX | \
12769 export_symbols_cmds_CXX | \
12770 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12771 postinstall_cmds | postuninstall_cmds | \
12772 old_postinstall_cmds | old_postuninstall_cmds | \
12773 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12774 # Double-quote double-evaled strings.
12775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12784 *'\$0 --fallback-echo"')
12785 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12791 cat <<__EOF__ >> "$cfgfile"
12792 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12796 # Shell to use when invoking shell scripts.
12799 # Whether or not to build shared libraries.
12800 build_libtool_libs=$enable_shared
12802 # Whether or not to build static libraries.
12803 build_old_libs=$enable_static
12805 # Whether or not to add -lc for building shared libraries.
12806 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12808 # Whether or not to disallow shared libs when runtime libs are static
12809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12811 # Whether or not to optimize for fast installation.
12812 fast_install=$enable_fast_install
12815 host_alias=$host_alias
12818 # An echo program that does not interpret backslashes.
12823 AR_FLAGS=$lt_AR_FLAGS
12828 # A language-specific compiler.
12829 CC=$lt_compiler_CXX
12831 # Is the compiler the GNU C compiler?
12837 # The linker used to build libraries.
12840 # Whether we need hard or soft links.
12843 # A BSD-compatible nm program.
12846 # A symbol stripping program
12849 # Used to examine libraries when file_magic_cmd begins "file"
12850 MAGIC_CMD=$MAGIC_CMD
12852 # Used on cygwin: DLL creation program.
12855 # Used on cygwin: object dumper.
12858 # Used on cygwin: assembler.
12861 # The name of the directory that contains temporary libtool files.
12864 # How to create reloadable object files.
12865 reload_flag=$lt_reload_flag
12866 reload_cmds=$lt_reload_cmds
12868 # How to pass a linker flag through the compiler.
12869 wl=$lt_lt_prog_compiler_wl_CXX
12871 # Object file suffix (normally "o").
12872 objext="$ac_objext"
12874 # Old archive suffix (normally "a").
12877 # Shared library suffix (normally ".so").
12878 shrext_cmds='$shrext_cmds'
12880 # Executable file suffix (normally "").
12883 # Additional compiler flags for building library objects.
12884 pic_flag=$lt_lt_prog_compiler_pic_CXX
12887 # What is the maximum length of a command?
12888 max_cmd_len=$lt_cv_sys_max_cmd_len
12890 # Does compiler simultaneously support -c and -o options?
12891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12893 # Must we lock files when doing compilation ?
12894 need_locks=$lt_need_locks
12896 # Do we need the lib prefix for modules?
12897 need_lib_prefix=$need_lib_prefix
12899 # Do we need a version for libraries?
12900 need_version=$need_version
12902 # Whether dlopen is supported.
12903 dlopen_support=$enable_dlopen
12905 # Whether dlopen of programs is supported.
12906 dlopen_self=$enable_dlopen_self
12908 # Whether dlopen of statically linked programs is supported.
12909 dlopen_self_static=$enable_dlopen_self_static
12911 # Compiler flag to prevent dynamic linking.
12912 link_static_flag=$lt_lt_prog_compiler_static_CXX
12914 # Compiler flag to turn off builtin functions.
12915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12917 # Compiler flag to allow reflexive dlopens.
12918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12920 # Compiler flag to generate shared objects directly from archives.
12921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12923 # Compiler flag to generate thread-safe objects.
12924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12926 # Library versioning type.
12927 version_type=$version_type
12929 # Format of library name prefix.
12930 libname_spec=$lt_libname_spec
12932 # List of archive names. First name is the real one, the rest are links.
12933 # The last name is the one that the linker finds with -lNAME.
12934 library_names_spec=$lt_library_names_spec
12936 # The coded name of the library, if different from the real name.
12937 soname_spec=$lt_soname_spec
12939 # Commands used to build and install an old-style archive.
12941 old_archive_cmds=$lt_old_archive_cmds_CXX
12942 old_postinstall_cmds=$lt_old_postinstall_cmds
12943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12945 # Create an old-style archive from a shared archive.
12946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12948 # Create a temporary old-style archive to link instead of a shared archive.
12949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12951 # Commands used to build and install a shared archive.
12952 archive_cmds=$lt_archive_cmds_CXX
12953 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12954 postinstall_cmds=$lt_postinstall_cmds
12955 postuninstall_cmds=$lt_postuninstall_cmds
12957 # Commands used to build a loadable module (assumed same as above if empty)
12958 module_cmds=$lt_module_cmds_CXX
12959 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12961 # Commands to strip libraries.
12962 old_striplib=$lt_old_striplib
12963 striplib=$lt_striplib
12965 # Dependencies to place before the objects being linked to create a
12967 predep_objects=$lt_predep_objects_CXX
12969 # Dependencies to place after the objects being linked to create a
12971 postdep_objects=$lt_postdep_objects_CXX
12973 # Dependencies to place before the objects being linked to create a
12975 predeps=$lt_predeps_CXX
12977 # Dependencies to place after the objects being linked to create a
12979 postdeps=$lt_postdeps_CXX
12981 # The library search path used internally by the compiler when linking
12982 # a shared library.
12983 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12985 # Method to check whether dependent libraries are shared objects.
12986 deplibs_check_method=$lt_deplibs_check_method
12988 # Command to use when deplibs_check_method == file_magic.
12989 file_magic_cmd=$lt_file_magic_cmd
12991 # Flag that allows shared libraries with undefined symbols to be built.
12992 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12994 # Flag that forces no undefined symbols.
12995 no_undefined_flag=$lt_no_undefined_flag_CXX
12997 # Commands used to finish a libtool library installation in a directory.
12998 finish_cmds=$lt_finish_cmds
13000 # Same as above, but a single script fragment to be evaled but not shown.
13001 finish_eval=$lt_finish_eval
13003 # Take the output of nm and produce a listing of raw symbols and C names.
13004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13006 # Transform the output of nm in a proper C declaration
13007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13009 # Transform the output of nm in a C name address pair
13010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13012 # This is the shared library runtime path variable.
13013 runpath_var=$runpath_var
13015 # This is the shared library path variable.
13016 shlibpath_var=$shlibpath_var
13018 # Is shlibpath searched before the hard-coded library search path?
13019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13021 # How to hardcode a shared library path into an executable.
13022 hardcode_action=$hardcode_action_CXX
13024 # Whether we should hardcode library paths into libraries.
13025 hardcode_into_libs=$hardcode_into_libs
13027 # Flag to hardcode \$libdir into a binary during linking.
13028 # This must work even if \$libdir does not exist.
13029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13031 # If ld is used when linking, flag to hardcode \$libdir into
13032 # a binary during linking. This must work even if \$libdir does
13034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13036 # Whether we need a single -rpath flag with a separated argument.
13037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13040 # resulting binary.
13041 hardcode_direct=$hardcode_direct_CXX
13043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13044 # resulting binary.
13045 hardcode_minus_L=$hardcode_minus_L_CXX
13047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13048 # the resulting binary.
13049 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13051 # Set to yes if building a shared library automatically hardcodes DIR into the library
13052 # and all subsequent libraries and executables linked against it.
13053 hardcode_automatic=$hardcode_automatic_CXX
13055 # Variables whose values should be saved in libtool wrapper scripts and
13056 # restored at relink time.
13057 variables_saved_for_relink="$variables_saved_for_relink"
13059 # Whether libtool must link a program against all its dependency libraries.
13060 link_all_deplibs=$link_all_deplibs_CXX
13062 # Compile-time system search path for libraries
13063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13065 # Run-time system search path for libraries
13066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13068 # Fix the shell variable \$srcfile for the compiler.
13069 fix_srcfile_path="$fix_srcfile_path_CXX"
13071 # Set to yes if exported symbols are required.
13072 always_export_symbols=$always_export_symbols_CXX
13074 # The commands to list exported symbols.
13075 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13077 # The commands to extract the exported symbol list from a shared archive.
13078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13080 # Symbols that should not be listed in the preloaded symbols.
13081 exclude_expsyms=$lt_exclude_expsyms_CXX
13083 # Symbols that must always be exported.
13084 include_expsyms=$lt_include_expsyms_CXX
13086 # ### END LIBTOOL TAG CONFIG: $tagname
13092 # If there is no Makefile yet, we rely on a make rule to execute
13093 # `config.status --recheck' to rerun these tests and create the
13094 # libtool script then.
13095 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13096 if test -f "$ltmain_in"; then
13097 test -f Makefile && make "$ltmain"
13103 ac_cpp='$CPP $CPPFLAGS'
13104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13112 with_gnu_ldcxx=$with_gnu_ld
13113 with_gnu_ld=$lt_save_with_gnu_ld
13114 lt_cv_path_LDCXX=$lt_cv_path_LD
13115 lt_cv_path_LD=$lt_save_path_LD
13116 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13117 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13125 if test -n "$F77" && test "X$F77" != "Xno"; then
13128 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13129 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13130 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13133 archive_cmds_need_lc_F77=no
13134 allow_undefined_flag_F77=
13135 always_export_symbols_F77=no
13136 archive_expsym_cmds_F77=
13137 export_dynamic_flag_spec_F77=
13138 hardcode_direct_F77=no
13139 hardcode_libdir_flag_spec_F77=
13140 hardcode_libdir_flag_spec_ld_F77=
13141 hardcode_libdir_separator_F77=
13142 hardcode_minus_L_F77=no
13143 hardcode_automatic_F77=no
13145 module_expsym_cmds_F77=
13146 link_all_deplibs_F77=unknown
13147 old_archive_cmds_F77=$old_archive_cmds
13148 no_undefined_flag_F77=
13149 whole_archive_flag_spec_F77=
13150 enable_shared_with_static_runtimes_F77=no
13152 # Source file extension for f77 test sources.
13155 # Object file extension for compiled f77 test sources.
13159 # Code to be used in simple compile tests
13160 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13162 # Code to be used in simple link tests
13163 lt_simple_link_test_code=" program t\n end\n"
13165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13167 # If no C compiler was specified, use CC.
13170 # Allow CC to be a program name with arguments.
13174 # Allow CC to be a program name with arguments.
13179 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13181 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13182 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13183 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13184 echo "${ECHO_T}$can_build_shared" >&6
13186 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13187 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13188 test "$can_build_shared" = "no" && enable_shared=no
13190 # On AIX, shared libraries and static libraries use the same namespace, and
13191 # are all built from PIC.
13194 test "$enable_shared" = yes && enable_static=no
13195 if test -n "$RANLIB"; then
13196 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13197 postinstall_cmds='$RANLIB $lib'
13201 test "$enable_shared" = yes && enable_static=no
13204 echo "$as_me:$LINENO: result: $enable_shared" >&5
13205 echo "${ECHO_T}$enable_shared" >&6
13207 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13208 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13209 # Make sure either enable_shared or enable_static is yes.
13210 test "$enable_shared" = yes || enable_static=yes
13211 echo "$as_me:$LINENO: result: $enable_static" >&5
13212 echo "${ECHO_T}$enable_static" >&6
13214 test "$ld_shlibs_F77" = no && can_build_shared=no
13219 lt_prog_compiler_wl_F77=
13220 lt_prog_compiler_pic_F77=
13221 lt_prog_compiler_static_F77=
13223 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13226 if test "$GCC" = yes; then
13227 lt_prog_compiler_wl_F77='-Wl,'
13228 lt_prog_compiler_static_F77='-static'
13232 # All AIX code is PIC.
13233 if test "$host_cpu" = ia64; then
13234 # AIX 5 now supports IA64 processor
13235 lt_prog_compiler_static_F77='-Bstatic'
13240 # FIXME: we need at least 68020 code to build shared libraries, but
13241 # adding the `-m68020' flag to GCC prevents building anything better,
13243 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13246 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13247 # PIC is the default for these OSes.
13250 mingw* | pw32* | os2*)
13251 # This hack is so that the source file can tell whether it is being
13252 # built for inclusion in a dll (and should export symbols for example).
13253 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13256 darwin* | rhapsody*)
13257 # PIC is the default on this platform
13258 # Common symbols not allowed in MH_DYLIB files
13259 lt_prog_compiler_pic_F77='-fno-common'
13263 # Just because we use GCC doesn't mean we suddenly get shared libraries
13264 # on systems that don't support them.
13265 lt_prog_compiler_can_build_shared_F77=no
13270 if test -d /usr/nec; then
13271 lt_prog_compiler_pic_F77=-Kconform_pic
13276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13277 # not for PA HP-UX.
13278 case "$host_cpu" in
13283 lt_prog_compiler_pic_F77='-fPIC'
13289 lt_prog_compiler_pic_F77='-fPIC'
13293 # PORTME Check for flag to pass linker flags through the system compiler.
13296 lt_prog_compiler_wl_F77='-Wl,'
13297 if test "$host_cpu" = ia64; then
13298 # AIX 5 now supports IA64 processor
13299 lt_prog_compiler_static_F77='-Bstatic'
13301 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13305 mingw* | pw32* | os2*)
13306 # This hack is so that the source file can tell whether it is being
13307 # built for inclusion in a dll (and should export symbols for example).
13308 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13311 hpux9* | hpux10* | hpux11*)
13312 lt_prog_compiler_wl_F77='-Wl,'
13313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13314 # not for PA HP-UX.
13315 case "$host_cpu" in
13320 lt_prog_compiler_pic_F77='+Z'
13323 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13324 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13327 irix5* | irix6* | nonstopux*)
13328 lt_prog_compiler_wl_F77='-Wl,'
13329 # PIC (with -KPIC) is the default.
13330 lt_prog_compiler_static_F77='-non_shared'
13334 lt_prog_compiler_pic_F77='-KPIC'
13335 lt_prog_compiler_static_F77='-Bstatic'
13341 lt_prog_compiler_wl_F77='-Wl,'
13342 lt_prog_compiler_pic_F77='-KPIC'
13343 lt_prog_compiler_static_F77='-static'
13346 lt_prog_compiler_wl_F77='-Wl,'
13347 # All Alpha code is PIC.
13348 lt_prog_compiler_static_F77='-non_shared'
13353 osf3* | osf4* | osf5*)
13354 lt_prog_compiler_wl_F77='-Wl,'
13355 # All OSF/1 code is PIC.
13356 lt_prog_compiler_static_F77='-non_shared'
13360 lt_prog_compiler_pic_F77='-Kpic'
13361 lt_prog_compiler_static_F77='-dn'
13365 lt_prog_compiler_wl_F77='-Wl,'
13366 lt_prog_compiler_pic_F77='-KPIC'
13367 lt_prog_compiler_static_F77='-Bstatic'
13371 lt_prog_compiler_wl_F77='-Qoption ld '
13372 lt_prog_compiler_pic_F77='-PIC'
13373 lt_prog_compiler_static_F77='-Bstatic'
13376 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13377 lt_prog_compiler_wl_F77='-Wl,'
13378 lt_prog_compiler_pic_F77='-KPIC'
13379 lt_prog_compiler_static_F77='-Bstatic'
13383 if test -d /usr/nec ;then
13384 lt_prog_compiler_pic_F77='-Kconform_pic'
13385 lt_prog_compiler_static_F77='-Bstatic'
13390 lt_prog_compiler_pic_F77='-pic'
13391 lt_prog_compiler_static_F77='-Bstatic'
13395 lt_prog_compiler_can_build_shared_F77=no
13400 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13401 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13404 # Check to make sure the PIC flag actually works.
13406 if test -n "$lt_prog_compiler_pic_F77"; then
13408 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13409 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13410 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 lt_prog_compiler_pic_works_F77=no
13414 ac_outfile=conftest.$ac_objext
13415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13416 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13417 # Insert the option either (1) after the last *FLAGS variable, or
13418 # (2) before a word containing "conftest.", or (3) at the end.
13419 # Note that $ac_compile itself does not contain backslashes and begins
13420 # with a dollar sign (not a hyphen), so the echo should work correctly.
13421 # The option is referenced via a variable to avoid confusing sed.
13422 lt_compile=`echo "$ac_compile" | $SED \
13423 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13425 -e 's:$: $lt_compiler_flag:'`
13426 (eval echo "\"\$as_me:13426: $lt_compile\"" >&5)
13427 (eval "$lt_compile" 2>conftest.err)
13429 cat conftest.err >&5
13430 echo "$as_me:13430: \$? = $ac_status" >&5
13431 if (exit $ac_status) && test -s "$ac_outfile"; then
13432 # The compiler can only warn and ignore the option if not recognized
13433 # So say no if there are warnings
13434 if test ! -s conftest.err; then
13435 lt_prog_compiler_pic_works_F77=yes
13441 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13442 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13444 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13445 case $lt_prog_compiler_pic_F77 in
13447 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13450 lt_prog_compiler_pic_F77=
13451 lt_prog_compiler_can_build_shared_F77=no
13456 # For platforms which do not support PIC, -DPIC is meaningless:
13458 lt_prog_compiler_pic_F77=
13461 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13465 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13466 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13467 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 lt_cv_prog_compiler_c_o_F77=no
13471 $rm -r conftest 2>/dev/null
13475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13477 lt_compiler_flag="-o out/conftest2.$ac_objext"
13478 # Insert the option either (1) after the last *FLAGS variable, or
13479 # (2) before a word containing "conftest.", or (3) at the end.
13480 # Note that $ac_compile itself does not contain backslashes and begins
13481 # with a dollar sign (not a hyphen), so the echo should work correctly.
13482 lt_compile=`echo "$ac_compile" | $SED \
13483 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13485 -e 's:$: $lt_compiler_flag:'`
13486 (eval echo "\"\$as_me:13486: $lt_compile\"" >&5)
13487 (eval "$lt_compile" 2>out/conftest.err)
13489 cat out/conftest.err >&5
13490 echo "$as_me:13490: \$? = $ac_status" >&5
13491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13493 # The compiler can only warn and ignore the option if not recognized
13494 # So say no if there are warnings
13495 if test ! -s out/conftest.err; then
13496 lt_cv_prog_compiler_c_o_F77=yes
13501 # SGI C++ compiler will create directory out/ii_files/ for
13502 # template instantiation
13503 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13504 $rm out/* && rmdir out
13510 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13511 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13514 hard_links="nottested"
13515 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13516 # do not overwrite the value of need_locks provided by the user
13517 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13518 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13523 ln conftest.a conftest.b 2>&5 || hard_links=no
13524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13525 echo "$as_me:$LINENO: result: $hard_links" >&5
13526 echo "${ECHO_T}$hard_links" >&6
13527 if test "$hard_links" = no; then
13528 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13529 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13536 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13537 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13540 allow_undefined_flag_F77=
13541 enable_shared_with_static_runtimes_F77=no
13543 archive_expsym_cmds_F77=
13544 old_archive_From_new_cmds_F77=
13545 old_archive_from_expsyms_cmds_F77=
13546 export_dynamic_flag_spec_F77=
13547 whole_archive_flag_spec_F77=
13548 thread_safe_flag_spec_F77=
13549 hardcode_libdir_flag_spec_F77=
13550 hardcode_libdir_flag_spec_ld_F77=
13551 hardcode_libdir_separator_F77=
13552 hardcode_direct_F77=no
13553 hardcode_minus_L_F77=no
13554 hardcode_shlibpath_var_F77=unsupported
13555 link_all_deplibs_F77=unknown
13556 hardcode_automatic_F77=no
13558 module_expsym_cmds_F77=
13559 always_export_symbols_F77=no
13560 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13561 # include_expsyms should be a list of space-separated symbols to be *always*
13562 # included in the symbol list
13563 include_expsyms_F77=
13564 # exclude_expsyms can be an extended regexp of symbols to exclude
13565 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13566 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13567 # as well as any symbol that contains `d'.
13568 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13569 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13570 # platforms (ab)use it in PIC code, but their linkers get confused if
13571 # the symbol is explicitly referenced. Since portable code cannot
13572 # rely on this symbol name, it's probably fine to never include it in
13573 # preloaded symbol tables.
13574 extract_expsyms_cmds=
13577 cygwin* | mingw* | pw32*)
13578 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13579 # When not using gcc, we currently assume that we are using
13580 # Microsoft Visual C++.
13581 if test "$GCC" != yes; then
13591 if test "$with_gnu_ld" = yes; then
13592 # If archive_cmds runs LD, not CC, wlarc should be empty
13595 # See if GNU ld supports shared libraries.
13597 aix3* | aix4* | aix5*)
13598 # On AIX/PPC, the GNU linker is very broken
13599 if test "$host_cpu" != ia64; then
13603 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13604 *** to be unable to reliably create shared libraries on AIX.
13605 *** Therefore, libtool is disabling shared libraries support. If you
13606 *** really care for shared libraries, you may want to modify your PATH
13607 *** so that a non-GNU linker is found, and then restart.
13614 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)'
13615 hardcode_libdir_flag_spec_F77='-L$libdir'
13616 hardcode_minus_L_F77=yes
13618 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13619 # that the semantics of dynamic libraries on AmigaOS, at least up
13620 # to version 4, is to share data among multiple programs linked
13621 # with the same dynamic library. Since this doesn't match the
13622 # behavior of shared libraries on other platforms, we can't use
13628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13629 allow_undefined_flag_F77=unsupported
13630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13631 # support --undefined. This deserves some investigation. FIXME
13632 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13638 cygwin* | mingw* | pw32*)
13639 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13640 # as there is no search path for DLLs.
13641 hardcode_libdir_flag_spec_F77='-L$libdir'
13642 allow_undefined_flag_F77=unsupported
13643 always_export_symbols_F77=no
13644 enable_shared_with_static_runtimes_F77=yes
13645 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13647 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13648 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13649 # If the export-symbols file already is a .def file (1st line
13650 # is EXPORTS), use it as is; otherwise, prepend...
13651 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13652 cp $export_symbols $output_objdir/$soname.def;
13654 echo EXPORTS > $output_objdir/$soname.def;
13655 cat $export_symbols >> $output_objdir/$soname.def;
13657 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13665 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13668 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13669 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13674 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13678 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13679 *** create shared libraries on Solaris systems. Therefore, libtool
13680 *** is disabling shared libraries support. We urge you to upgrade GNU
13681 *** binutils to release 2.9.1 or newer. Another option is to modify
13682 *** your PATH or compiler configuration so that the native linker is
13683 *** used, and then restart.
13686 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13687 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13688 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13695 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13697 hardcode_direct_F77=yes
13698 hardcode_shlibpath_var_F77=no
13702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13703 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13704 archive_cmds_F77="$tmp_archive_cmds"
13705 supports_anon_versioning=no
13706 case `$LD -v 2>/dev/null` in
13707 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13708 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13709 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13710 *\ 2.11.*) ;; # other 2.11 versions
13711 *) supports_anon_versioning=yes ;;
13713 if test $supports_anon_versioning = yes; then
13714 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13716 $echo "local: *; };" >> $output_objdir/$libname.ver~
13717 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13719 archive_expsym_cmds_F77="$tmp_archive_cmds"
13727 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13728 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13729 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13736 if test "$ld_shlibs_F77" = yes; then
13737 runpath_var=LD_RUN_PATH
13738 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13739 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13740 # ancient GNU ld didn't support --whole-archive et. al.
13741 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13742 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13744 whole_archive_flag_spec_F77=
13748 # PORTME fill in a description of your system's linker (not GNU ld)
13751 allow_undefined_flag_F77=unsupported
13752 always_export_symbols_F77=yes
13753 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'
13754 # Note: this linker hardcodes the directories in LIBPATH if there
13755 # are no directories specified by -L.
13756 hardcode_minus_L_F77=yes
13757 if test "$GCC" = yes && test -z "$link_static_flag"; then
13758 # Neither direct hardcoding nor static linking is supported with a
13760 hardcode_direct_F77=unsupported
13765 if test "$host_cpu" = ia64; then
13766 # On IA64, the linker does run time linking by default, so we don't
13767 # have to do anything special.
13768 aix_use_runtimelinking=no
13769 exp_sym_flag='-Bexport'
13772 # If we're using GNU nm, then we don't want the "-C" option.
13773 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13774 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13775 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'
13777 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'
13779 aix_use_runtimelinking=no
13781 # Test if we are trying to use run time linking or normal
13782 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13783 # need to do runtime linking.
13784 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13785 for ld_flag in $LDFLAGS; do
13786 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13787 aix_use_runtimelinking=yes
13793 exp_sym_flag='-bexport'
13794 no_entry_flag='-bnoentry'
13797 # When large executables or shared objects are built, AIX ld can
13798 # have problems creating the table of contents. If linking a library
13799 # or program results in "error TOC overflow" add -mminimal-toc to
13800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13803 archive_cmds_F77=''
13804 hardcode_direct_F77=yes
13805 hardcode_libdir_separator_F77=':'
13806 link_all_deplibs_F77=yes
13808 if test "$GCC" = yes; then
13809 case $host_os in aix4.012|aix4.012.*)
13810 # We only want to do this on AIX 4.2 and lower, the check
13811 # below for broken collect2 doesn't work under 4.3+
13812 collect2name=`${CC} -print-prog-name=collect2`
13813 if test -f "$collect2name" && \
13814 strings "$collect2name" | grep resolve_lib_name >/dev/null
13816 # We have reworked collect2
13817 hardcode_direct_F77=yes
13819 # We have old collect2
13820 hardcode_direct_F77=unsupported
13821 # It fails to find uninstalled libraries when the uninstalled
13822 # path is not listed in the libpath. Setting hardcode_minus_L
13823 # to unsupported forces relinking
13824 hardcode_minus_L_F77=yes
13825 hardcode_libdir_flag_spec_F77='-L$libdir'
13826 hardcode_libdir_separator_F77=
13829 shared_flag='-shared'
13832 if test "$host_cpu" = ia64; then
13833 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13834 # chokes on -Wl,-G. The following line is correct:
13837 if test "$aix_use_runtimelinking" = yes; then
13838 shared_flag='${wl}-G'
13840 shared_flag='${wl}-bM:SRE'
13845 # It seems that -bexpall does not export symbols beginning with
13846 # underscore (_), so it is better to generate a list of symbols to export.
13847 always_export_symbols_F77=yes
13848 if test "$aix_use_runtimelinking" = yes; then
13849 # Warning - without using the other runtime loading flags (-brtl),
13850 # -berok will link without error, but may produce a broken library.
13851 allow_undefined_flag_F77='-berok'
13852 # Determine the default libpath from the value encoded in an empty executable.
13853 cat >conftest.$ac_ext <<_ACEOF
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13860 (eval $ac_link) 2>conftest.er1
13862 grep -v '^ *+' conftest.er1 >conftest.err
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -z "$ac_f77_werror_flag"
13868 || test ! -s conftest.err'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; } &&
13874 { ac_try='test -s conftest$ac_exeext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13881 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13883 # Check for a 64-bit object if we didn't find anything.
13884 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; }
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13891 rm -f conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13895 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13896 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13898 if test "$host_cpu" = ia64; then
13899 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13900 allow_undefined_flag_F77="-z nodefs"
13901 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13903 # Determine the default libpath from the value encoded in an empty executable.
13904 cat >conftest.$ac_ext <<_ACEOF
13909 rm -f conftest.$ac_objext conftest$ac_exeext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13911 (eval $ac_link) 2>conftest.er1
13913 grep -v '^ *+' conftest.er1 >conftest.err
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -z "$ac_f77_werror_flag"
13919 || test ! -s conftest.err'
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; } &&
13925 { ac_try='test -s conftest$ac_exeext'
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }; then
13932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13934 # Check for a 64-bit object if we didn't find anything.
13935 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; }
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13942 rm -f conftest.err conftest.$ac_objext \
13943 conftest$ac_exeext conftest.$ac_ext
13944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13946 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13947 # Warning - without using the other run time loading flags,
13948 # -berok will link without error, but may produce a broken library.
13949 no_undefined_flag_F77=' ${wl}-bernotok'
13950 allow_undefined_flag_F77=' ${wl}-berok'
13951 # -bexpall does not export symbols beginning with underscore (_)
13952 always_export_symbols_F77=yes
13953 # Exported symbols can be pulled into shared objects from archives
13954 whole_archive_flag_spec_F77=' '
13955 archive_cmds_need_lc_F77=yes
13956 # This is similar to how AIX traditionally builds it's shared libraries.
13957 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13963 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)'
13964 hardcode_libdir_flag_spec_F77='-L$libdir'
13965 hardcode_minus_L_F77=yes
13966 # see comment about different semantics on the GNU ld section
13971 export_dynamic_flag_spec_F77=-rdynamic
13974 cygwin* | mingw* | pw32*)
13975 # When not using gcc, we currently assume that we are using
13976 # Microsoft Visual C++.
13977 # hardcode_libdir_flag_spec is actually meaningless, as there is
13978 # no search path for DLLs.
13979 hardcode_libdir_flag_spec_F77=' '
13980 allow_undefined_flag_F77=unsupported
13981 # Tell ltmain to make .lib files, not .a files.
13983 # Tell ltmain to make .dll files, not .so files.
13985 # FIXME: Setting linknames here is a bad hack.
13986 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13987 # The linker will automatically build a .lib file if we build a DLL.
13988 old_archive_From_new_cmds_F77='true'
13989 # FIXME: Should let the user specify the lib program.
13990 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13991 fix_srcfile_path='`cygpath -w "$srcfile"`'
13992 enable_shared_with_static_runtimes_F77=yes
13995 darwin* | rhapsody*)
13996 if test "$GXX" = yes ; then
13997 archive_cmds_need_lc_F77=no
13999 rhapsody* | darwin1.[012])
14000 allow_undefined_flag_F77='-undefined suppress'
14003 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14004 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14006 case ${MACOSX_DEPLOYMENT_TARGET} in
14008 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14011 allow_undefined_flag_F77='-undefined dynamic_lookup'
14017 lt_int_apple_cc_single_mod=no
14018 output_verbose_link_cmd='echo'
14019 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14020 lt_int_apple_cc_single_mod=yes
14022 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14023 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14025 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14027 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14028 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14029 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14030 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14032 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14034 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}'
14035 hardcode_direct_F77=no
14036 hardcode_automatic_F77=yes
14037 hardcode_shlibpath_var_F77=unsupported
14038 whole_archive_flag_spec_F77='-all_load $convenience'
14039 link_all_deplibs_F77=yes
14046 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14047 hardcode_libdir_flag_spec_F77='-L$libdir'
14048 hardcode_shlibpath_var_F77=no
14055 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14056 # support. Future versions do this automatically, but an explicit c++rt0.o
14057 # does not break anything, and helps significantly (at the cost of a little
14060 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14061 hardcode_libdir_flag_spec_F77='-R$libdir'
14062 hardcode_direct_F77=yes
14063 hardcode_shlibpath_var_F77=no
14066 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14068 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14069 hardcode_direct_F77=yes
14070 hardcode_minus_L_F77=yes
14071 hardcode_shlibpath_var_F77=no
14074 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14075 freebsd* | kfreebsd*-gnu)
14076 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14077 hardcode_libdir_flag_spec_F77='-R$libdir'
14078 hardcode_direct_F77=yes
14079 hardcode_shlibpath_var_F77=no
14083 if test "$GCC" = yes; then
14084 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'
14086 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'
14088 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14089 hardcode_libdir_separator_F77=:
14090 hardcode_direct_F77=yes
14092 # hardcode_minus_L: Not really in the search PATH,
14093 # but as the default location of the library.
14094 hardcode_minus_L_F77=yes
14095 export_dynamic_flag_spec_F77='${wl}-E'
14099 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14100 case "$host_cpu" in
14102 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14105 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14109 case "$host_cpu" in
14111 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14114 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14118 if test "$with_gnu_ld" = no; then
14119 case "$host_cpu" in
14121 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14122 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14123 hardcode_libdir_separator_F77=:
14124 hardcode_direct_F77=no
14125 hardcode_shlibpath_var_F77=no
14128 hardcode_libdir_flag_spec_F77='-L$libdir'
14129 hardcode_direct_F77=no
14130 hardcode_shlibpath_var_F77=no
14132 # hardcode_minus_L: Not really in the search PATH,
14133 # but as the default location of the library.
14134 hardcode_minus_L_F77=yes
14137 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14138 hardcode_libdir_separator_F77=:
14139 hardcode_direct_F77=yes
14140 export_dynamic_flag_spec_F77='${wl}-E'
14142 # hardcode_minus_L: Not really in the search PATH,
14143 # but as the default location of the library.
14144 hardcode_minus_L_F77=yes
14150 irix5* | irix6* | nonstopux*)
14151 if test "$GCC" = yes; then
14152 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'
14154 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'
14155 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14157 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14158 hardcode_libdir_separator_F77=:
14159 link_all_deplibs_F77=yes
14163 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14164 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14166 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14168 hardcode_libdir_flag_spec_F77='-R$libdir'
14169 hardcode_direct_F77=yes
14170 hardcode_shlibpath_var_F77=no
14174 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14175 hardcode_direct_F77=yes
14176 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14177 hardcode_libdir_separator_F77=:
14178 hardcode_shlibpath_var_F77=no
14182 hardcode_direct_F77=yes
14183 hardcode_shlibpath_var_F77=no
14184 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14185 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14186 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14187 export_dynamic_flag_spec_F77='${wl}-E'
14190 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14191 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14192 hardcode_libdir_flag_spec_F77='-R$libdir'
14195 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14196 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14203 hardcode_libdir_flag_spec_F77='-L$libdir'
14204 hardcode_minus_L_F77=yes
14205 allow_undefined_flag_F77=unsupported
14206 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'
14207 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14211 if test "$GCC" = yes; then
14212 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14213 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'
14215 allow_undefined_flag_F77=' -expect_unresolved \*'
14216 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'
14218 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14219 hardcode_libdir_separator_F77=:
14222 osf4* | osf5*) # as osf3* with the addition of -msym flag
14223 if test "$GCC" = yes; then
14224 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14225 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'
14226 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14228 allow_undefined_flag_F77=' -expect_unresolved \*'
14229 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'
14230 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~
14231 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14233 # Both c and cxx compiler support -rpath directly
14234 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14236 hardcode_libdir_separator_F77=:
14240 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14241 hardcode_shlibpath_var_F77=no
14242 export_dynamic_flag_spec_F77='${wl}-Bexport'
14243 runpath_var=LD_RUN_PATH
14244 hardcode_runpath_var=yes
14248 no_undefined_flag_F77=' -z text'
14249 if test "$GCC" = yes; then
14250 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14251 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14252 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14254 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14255 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14256 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14258 hardcode_libdir_flag_spec_F77='-R$libdir'
14259 hardcode_shlibpath_var_F77=no
14261 solaris2.[0-5] | solaris2.[0-5].*) ;;
14262 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14263 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14265 link_all_deplibs_F77=yes
14269 if test "x$host_vendor" = xsequent; then
14270 # Use $CC to link under sequent, because it throws in some extra .o
14271 # files that make .init and .fini sections work.
14272 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14274 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14276 hardcode_libdir_flag_spec_F77='-L$libdir'
14277 hardcode_direct_F77=yes
14278 hardcode_minus_L_F77=yes
14279 hardcode_shlibpath_var_F77=no
14283 case $host_vendor in
14285 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14286 hardcode_direct_F77=yes # is this really true???
14289 ## LD is ld it makes a PLAMLIB
14290 ## CC just makes a GrossModule.
14291 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14292 reload_cmds_F77='$CC -r -o $output$reload_objs'
14293 hardcode_direct_F77=no
14296 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14297 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14300 runpath_var='LD_RUN_PATH'
14301 hardcode_shlibpath_var_F77=no
14305 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14306 hardcode_shlibpath_var_F77=no
14307 export_dynamic_flag_spec_F77='-Bexport'
14311 if test -d /usr/nec; then
14312 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14313 hardcode_shlibpath_var_F77=no
14314 runpath_var=LD_RUN_PATH
14315 hardcode_runpath_var=yes
14321 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14322 hardcode_direct_F77=yes
14323 hardcode_minus_L_F77=no
14324 hardcode_shlibpath_var_F77=no
14325 hardcode_runpath_var=yes
14326 runpath_var=LD_RUN_PATH
14329 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14330 no_undefined_flag_F77='${wl}-z ${wl}text'
14331 if test "$GCC" = yes; then
14332 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14334 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14336 runpath_var='LD_RUN_PATH'
14337 hardcode_shlibpath_var_F77=no
14341 no_undefined_flag_F77=' -z text'
14342 # $CC -shared without GNU ld will not create a library from C++
14343 # object files and a static libstdc++, better avoid it by now
14344 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14345 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14346 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14347 hardcode_libdir_flag_spec_F77=
14348 hardcode_shlibpath_var_F77=no
14349 runpath_var='LD_RUN_PATH'
14353 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14354 hardcode_libdir_flag_spec_F77='-L$libdir'
14355 hardcode_shlibpath_var_F77=no
14364 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14365 echo "${ECHO_T}$ld_shlibs_F77" >&6
14366 test "$ld_shlibs_F77" = no && can_build_shared=no
14368 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14369 if test "$GCC" = yes; then
14370 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14374 # Do we need to explicitly link libc?
14376 case "x$archive_cmds_need_lc_F77" in
14378 # Assume -lc should be added
14379 archive_cmds_need_lc_F77=yes
14381 if test "$enable_shared" = yes && test "$GCC" = yes; then
14382 case $archive_cmds_F77 in
14384 # FIXME: we may have to deal with multi-command sequences.
14387 # Test whether the compiler implicitly links with -lc since on some
14388 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14389 # to ld, don't add -lc before -lgcc.
14390 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14391 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14393 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14396 (eval $ac_compile) 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } 2>conftest.err; then
14402 libobjs=conftest.$ac_objext
14404 wl=$lt_prog_compiler_wl_F77
14410 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14411 allow_undefined_flag_F77=
14412 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14413 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }
14418 archive_cmds_need_lc_F77=no
14420 archive_cmds_need_lc_F77=yes
14422 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14424 cat conftest.err 1>&5
14427 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14428 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14435 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14436 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14437 library_names_spec=
14438 libname_spec='lib$name'
14442 postuninstall_cmds=
14446 shlibpath_overrides_runpath=unknown
14448 dynamic_linker="$host_os ld.so"
14449 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14450 if test "$GCC" = yes; then
14451 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14452 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14453 # if the path contains ";" then we assume it to be the separator
14454 # otherwise default to the standard path separator (i.e. ":") - it is
14455 # assumed that no part of a normal pathname contains ";" but that should
14456 # okay in the real world where ";" in dirpaths is itself problematic.
14457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14459 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14462 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14464 need_lib_prefix=unknown
14465 hardcode_into_libs=no
14467 # when you set need_version to no, make sure it does not cause -set_version
14468 # flags to be left without arguments
14469 need_version=unknown
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14475 shlibpath_var=LIBPATH
14477 # AIX 3 has no versioning support, so we append a major version to the name.
14478 soname_spec='${libname}${release}${shared_ext}$major'
14485 hardcode_into_libs=yes
14486 if test "$host_cpu" = ia64; then
14487 # AIX 5 supports IA64
14488 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14489 shlibpath_var=LD_LIBRARY_PATH
14491 # With GCC up to 2.95.x, collect2 would create an import file
14492 # for dependence libraries. The import file would start with
14493 # the line `#! .'. This would cause the generated library to
14494 # depend on `.', always an invalid library. This was fixed in
14495 # development snapshots of GCC prior to 3.0.
14497 aix4 | aix4.[01] | aix4.[01].*)
14498 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14500 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14503 can_build_shared=no
14507 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14508 # soname into executable. Probably we can add versioning support to
14509 # collect2, so additional links can be useful in future.
14510 if test "$aix_use_runtimelinking" = yes; then
14511 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14512 # instead of lib<name>.a to let people know that these are not
14513 # typical AIX shared libraries.
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 # We preserve .a as extension for shared libraries through AIX4.2
14517 # and later when we are not doing run time linking.
14518 library_names_spec='${libname}${release}.a $libname.a'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14521 shlibpath_var=LIBPATH
14526 library_names_spec='$libname.ixlibrary $libname.a'
14527 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14528 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'
14532 library_names_spec='${libname}${shared_ext}'
14533 dynamic_linker="$host_os ld.so"
14534 shlibpath_var=LIBRARY_PATH
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14545 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14546 # the default ld.so.conf also contains /usr/contrib/lib and
14547 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14548 # libtool to hard-code these into programs
14551 cygwin* | mingw* | pw32*)
14552 version_type=windows
14557 case $GCC,$host_os in
14558 yes,cygwin* | yes,mingw* | yes,pw32*)
14559 library_names_spec='$libname.dll.a'
14560 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14561 postinstall_cmds='base_file=`basename \${file}`~
14562 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14563 dldir=$destdir/`dirname \$dlpath`~
14564 test -d \$dldir || mkdir -p \$dldir~
14565 $install_prog $dir/$dlname \$dldir/$dlname'
14566 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14567 dlpath=$dir/\$dldll~
14569 shlibpath_overrides_runpath=yes
14573 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14574 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14575 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14578 # MinGW DLLs use traditional 'lib' prefix
14579 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14580 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14581 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14582 # It is most probably a Windows format PATH printed by
14583 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14584 # path with ; separators, and with drive letters. We can handle the
14585 # drive letters (cygwin fileutils understands them), so leave them,
14586 # especially as we might pass files found there to a mingw objdump,
14587 # which wouldn't understand a cygwinified path. Ahh.
14588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14594 # pw32 DLLs use 'pw' prefix rather than 'lib'
14595 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14601 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14604 dynamic_linker='Win32 ld.exe'
14605 # FIXME: first we should search . and the directory the executable is in
14609 darwin* | rhapsody*)
14610 dynamic_linker="$host_os dyld"
14611 version_type=darwin
14614 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14615 soname_spec='${libname}${release}${major}$shared_ext'
14616 shlibpath_overrides_runpath=yes
14617 shlibpath_var=DYLD_LIBRARY_PATH
14618 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14619 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14620 if test "$GCC" = yes; then
14621 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"`
14623 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14633 soname_spec='${libname}${release}${shared_ext}$major'
14634 shlibpath_var=LD_LIBRARY_PATH
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14646 soname_spec='${libname}${release}${shared_ext}$major'
14647 shlibpath_var=LD_LIBRARY_PATH
14648 shlibpath_overrides_runpath=no
14649 hardcode_into_libs=yes
14650 dynamic_linker='GNU ld.so'
14654 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14655 version_type=freebsd-$objformat
14656 case $version_type in
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14667 shlibpath_var=LD_LIBRARY_PATH
14670 shlibpath_overrides_runpath=yes
14672 freebsd3.01* | freebsdelf3.01*)
14673 shlibpath_overrides_runpath=yes
14674 hardcode_into_libs=yes
14677 shlibpath_overrides_runpath=no
14678 hardcode_into_libs=yes
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14688 soname_spec='${libname}${release}${shared_ext}$major'
14689 shlibpath_var=LD_LIBRARY_PATH
14690 hardcode_into_libs=yes
14693 hpux9* | hpux10* | hpux11*)
14694 # Give a soname corresponding to the major version so that dld.sl refuses to
14695 # link against other versions.
14699 case "$host_cpu" in
14702 hardcode_into_libs=yes
14703 dynamic_linker="$host_os dld.so"
14704 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 if test "X$HPUX_IA64_MODE" = X32; then
14709 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14711 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14717 hardcode_into_libs=yes
14718 dynamic_linker="$host_os dld.sl"
14719 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722 soname_spec='${libname}${release}${shared_ext}$major'
14723 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14728 dynamic_linker="$host_os dld.sl"
14729 shlibpath_var=SHLIB_PATH
14730 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732 soname_spec='${libname}${release}${shared_ext}$major'
14735 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14736 postinstall_cmds='chmod 555 $lib'
14739 irix5* | irix6* | nonstopux*)
14741 nonstopux*) version_type=nonstopux ;;
14743 if test "$lt_cv_prog_gnu_ld" = yes; then
14751 soname_spec='${libname}${release}${shared_ext}$major'
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14754 irix5* | nonstopux*)
14755 libsuff= shlibsuff=
14758 case $LD in # libtool.m4 will add one of these switches to LD
14759 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14760 libsuff= shlibsuff= libmagic=32-bit;;
14761 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14762 libsuff=32 shlibsuff=N32 libmagic=N32;;
14763 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14764 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14765 *) libsuff= shlibsuff= libmagic=never-match;;
14769 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14770 shlibpath_overrides_runpath=no
14771 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14772 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14773 hardcode_into_libs=yes
14776 # No shared lib support for Linux oldld, aout, or coff.
14777 linux*oldld* | linux*aout* | linux*coff*)
14781 # This must be Linux ELF.
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787 soname_spec='${libname}${release}${shared_ext}$major'
14788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14789 shlibpath_var=LD_LIBRARY_PATH
14790 shlibpath_overrides_runpath=no
14791 # This implies no fast_install, which is unacceptable.
14792 # Some rework will be needed to allow for fast_install
14793 # before this can be enabled.
14794 hardcode_into_libs=yes
14796 # find out which ABI we are using
14798 case "$host_cpu" in
14799 x86_64*|s390x*|powerpc64*)
14800 echo '#line 14800 "configure"' > conftest.$ac_ext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14802 (eval $ac_compile) 2>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; then
14806 case `/usr/bin/file conftest.$ac_objext` in
14809 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14817 # Append ld.so.conf contents to the search path
14818 if test -f /etc/ld.so.conf; then
14819 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14820 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14823 # We used to test for /lib/ld.so.1 and disable shared libraries on
14824 # powerpc, because MkLinux only supported shared libraries with the
14825 # GNU dynamic linker. Since this was broken with cross compilers,
14826 # most powerpc-linux boxes support dynamic linking these days and
14827 # people can always --disable-shared, the test was removed, and we
14828 # assume the GNU/Linux dynamic linker is in use.
14829 dynamic_linker='GNU/Linux ld.so'
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14837 soname_spec='${libname}${release}${shared_ext}$major'
14838 shlibpath_var=LD_LIBRARY_PATH
14839 shlibpath_overrides_runpath=no
14840 hardcode_into_libs=yes
14841 dynamic_linker='GNU ld.so'
14848 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14851 dynamic_linker='NetBSD (a.out) ld.so'
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 dynamic_linker='NetBSD ld.elf_so'
14857 shlibpath_var=LD_LIBRARY_PATH
14858 shlibpath_overrides_runpath=yes
14859 hardcode_into_libs=yes
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 shlibpath_overrides_runpath=yes
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14885 shlibpath_var=LD_LIBRARY_PATH
14886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14888 openbsd2.[89] | openbsd2.[89].*)
14889 shlibpath_overrides_runpath=no
14892 shlibpath_overrides_runpath=yes
14896 shlibpath_overrides_runpath=yes
14901 libname_spec='$name'
14904 library_names_spec='$libname${shared_ext} $libname.a'
14905 dynamic_linker='OS/2 ld.exe'
14906 shlibpath_var=LIBPATH
14909 osf3* | osf4* | osf5*)
14913 soname_spec='${libname}${release}${shared_ext}$major'
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915 shlibpath_var=LD_LIBRARY_PATH
14916 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14917 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14922 soname_spec='${libname}${release}${shared_ext}$major'
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924 shlibpath_var=LD_LIBRARY_PATH
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932 soname_spec='${libname}${release}${shared_ext}$major'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 shlibpath_overrides_runpath=yes
14935 hardcode_into_libs=yes
14936 # ldd complains unless libraries are executable
14937 postinstall_cmds='chmod +x $lib'
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14943 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 shlibpath_overrides_runpath=yes
14946 if test "$with_gnu_ld" = yes; then
14952 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955 soname_spec='${libname}${release}${shared_ext}$major'
14956 shlibpath_var=LD_LIBRARY_PATH
14957 case $host_vendor in
14959 shlibpath_overrides_runpath=no
14961 export_dynamic_flag_spec='${wl}-Blargedynsym'
14962 runpath_var=LD_RUN_PATH
14970 shlibpath_overrides_runpath=no
14971 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14977 if test -d /usr/nec ;then
14979 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14980 soname_spec='$libname${shared_ext}.$major'
14981 shlibpath_var=LD_LIBRARY_PATH
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988 soname_spec='${libname}${release}${shared_ext}$major'
14989 shlibpath_var=LD_LIBRARY_PATH
14996 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14997 echo "${ECHO_T}$dynamic_linker" >&6
14998 test "$dynamic_linker" = no && can_build_shared=no
15000 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15001 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15002 hardcode_action_F77=
15003 if test -n "$hardcode_libdir_flag_spec_F77" || \
15004 test -n "$runpath_var F77" || \
15005 test "X$hardcode_automatic_F77"="Xyes" ; then
15007 # We can hardcode non-existant directories.
15008 if test "$hardcode_direct_F77" != no &&
15009 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15010 # have to relink, otherwise we might link with an installed library
15011 # when we should be linking with a yet-to-be-installed one
15012 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15013 test "$hardcode_minus_L_F77" != no; then
15014 # Linking always hardcodes the temporary library directory.
15015 hardcode_action_F77=relink
15017 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15018 hardcode_action_F77=immediate
15021 # We cannot hardcode anything, or else we can only hardcode existing
15023 hardcode_action_F77=unsupported
15025 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15026 echo "${ECHO_T}$hardcode_action_F77" >&6
15028 if test "$hardcode_action_F77" = relink; then
15029 # Fast installation is not supported
15030 enable_fast_install=no
15031 elif test "$shlibpath_overrides_runpath" = yes ||
15032 test "$enable_shared" = no; then
15033 # Fast installation is not necessary
15034 enable_fast_install=needless
15039 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15040 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15041 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15042 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15043 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15044 echo "$as_me:$LINENO: result: yes" >&5
15045 echo "${ECHO_T}yes" >&6
15047 # FIXME - insert some real tests, host_os isn't really good enough
15050 if test -n "$STRIP" ; then
15051 striplib="$STRIP -x"
15052 echo "$as_me:$LINENO: result: yes" >&5
15053 echo "${ECHO_T}yes" >&6
15055 echo "$as_me:$LINENO: result: no" >&5
15056 echo "${ECHO_T}no" >&6
15060 echo "$as_me:$LINENO: result: no" >&5
15061 echo "${ECHO_T}no" >&6
15068 # The else clause should only fire when bootstrapping the
15069 # libtool distribution, otherwise you forgot to ship ltmain.sh
15070 # with your package, and you will get complaints that there are
15071 # no rules to generate ltmain.sh.
15072 if test -f "$ltmain"; then
15073 # See if we are running on zsh, and set the options which allow our commands through
15074 # without removal of \ escapes.
15075 if test -n "${ZSH_VERSION+set}" ; then
15076 setopt NO_GLOB_SUBST
15078 # Now quote all the things that may contain metacharacters while being
15079 # careful not to overquote the AC_SUBSTed values. We take copies of the
15080 # variables and quote the copies for generation of the libtool script.
15081 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15083 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15084 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15085 deplibs_check_method reload_flag reload_cmds need_locks \
15086 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15087 lt_cv_sys_global_symbol_to_c_name_address \
15088 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15089 old_postinstall_cmds old_postuninstall_cmds \
15093 lt_prog_compiler_wl_F77 \
15094 lt_prog_compiler_pic_F77 \
15095 lt_prog_compiler_static_F77 \
15096 lt_prog_compiler_no_builtin_flag_F77 \
15097 export_dynamic_flag_spec_F77 \
15098 thread_safe_flag_spec_F77 \
15099 whole_archive_flag_spec_F77 \
15100 enable_shared_with_static_runtimes_F77 \
15101 old_archive_cmds_F77 \
15102 old_archive_from_new_cmds_F77 \
15103 predep_objects_F77 \
15104 postdep_objects_F77 \
15107 compiler_lib_search_path_F77 \
15109 archive_expsym_cmds_F77 \
15110 postinstall_cmds_F77 \
15111 postuninstall_cmds_F77 \
15112 old_archive_from_expsyms_cmds_F77 \
15113 allow_undefined_flag_F77 \
15114 no_undefined_flag_F77 \
15115 export_symbols_cmds_F77 \
15116 hardcode_libdir_flag_spec_F77 \
15117 hardcode_libdir_flag_spec_ld_F77 \
15118 hardcode_libdir_separator_F77 \
15119 hardcode_automatic_F77 \
15121 module_expsym_cmds_F77 \
15122 lt_cv_prog_compiler_c_o_F77 \
15123 exclude_expsyms_F77 \
15124 include_expsyms_F77; do
15127 old_archive_cmds_F77 | \
15128 old_archive_from_new_cmds_F77 | \
15129 archive_cmds_F77 | \
15130 archive_expsym_cmds_F77 | \
15131 module_cmds_F77 | \
15132 module_expsym_cmds_F77 | \
15133 old_archive_from_expsyms_cmds_F77 | \
15134 export_symbols_cmds_F77 | \
15135 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15136 postinstall_cmds | postuninstall_cmds | \
15137 old_postinstall_cmds | old_postuninstall_cmds | \
15138 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15139 # Double-quote double-evaled strings.
15140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15149 *'\$0 --fallback-echo"')
15150 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15156 cat <<__EOF__ >> "$cfgfile"
15157 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15161 # Shell to use when invoking shell scripts.
15164 # Whether or not to build shared libraries.
15165 build_libtool_libs=$enable_shared
15167 # Whether or not to build static libraries.
15168 build_old_libs=$enable_static
15170 # Whether or not to add -lc for building shared libraries.
15171 build_libtool_need_lc=$archive_cmds_need_lc_F77
15173 # Whether or not to disallow shared libs when runtime libs are static
15174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15176 # Whether or not to optimize for fast installation.
15177 fast_install=$enable_fast_install
15180 host_alias=$host_alias
15183 # An echo program that does not interpret backslashes.
15188 AR_FLAGS=$lt_AR_FLAGS
15193 # A language-specific compiler.
15194 CC=$lt_compiler_F77
15196 # Is the compiler the GNU C compiler?
15202 # The linker used to build libraries.
15205 # Whether we need hard or soft links.
15208 # A BSD-compatible nm program.
15211 # A symbol stripping program
15214 # Used to examine libraries when file_magic_cmd begins "file"
15215 MAGIC_CMD=$MAGIC_CMD
15217 # Used on cygwin: DLL creation program.
15220 # Used on cygwin: object dumper.
15223 # Used on cygwin: assembler.
15226 # The name of the directory that contains temporary libtool files.
15229 # How to create reloadable object files.
15230 reload_flag=$lt_reload_flag
15231 reload_cmds=$lt_reload_cmds
15233 # How to pass a linker flag through the compiler.
15234 wl=$lt_lt_prog_compiler_wl_F77
15236 # Object file suffix (normally "o").
15237 objext="$ac_objext"
15239 # Old archive suffix (normally "a").
15242 # Shared library suffix (normally ".so").
15243 shrext_cmds='$shrext_cmds'
15245 # Executable file suffix (normally "").
15248 # Additional compiler flags for building library objects.
15249 pic_flag=$lt_lt_prog_compiler_pic_F77
15252 # What is the maximum length of a command?
15253 max_cmd_len=$lt_cv_sys_max_cmd_len
15255 # Does compiler simultaneously support -c and -o options?
15256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15258 # Must we lock files when doing compilation ?
15259 need_locks=$lt_need_locks
15261 # Do we need the lib prefix for modules?
15262 need_lib_prefix=$need_lib_prefix
15264 # Do we need a version for libraries?
15265 need_version=$need_version
15267 # Whether dlopen is supported.
15268 dlopen_support=$enable_dlopen
15270 # Whether dlopen of programs is supported.
15271 dlopen_self=$enable_dlopen_self
15273 # Whether dlopen of statically linked programs is supported.
15274 dlopen_self_static=$enable_dlopen_self_static
15276 # Compiler flag to prevent dynamic linking.
15277 link_static_flag=$lt_lt_prog_compiler_static_F77
15279 # Compiler flag to turn off builtin functions.
15280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15282 # Compiler flag to allow reflexive dlopens.
15283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15285 # Compiler flag to generate shared objects directly from archives.
15286 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15288 # Compiler flag to generate thread-safe objects.
15289 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15291 # Library versioning type.
15292 version_type=$version_type
15294 # Format of library name prefix.
15295 libname_spec=$lt_libname_spec
15297 # List of archive names. First name is the real one, the rest are links.
15298 # The last name is the one that the linker finds with -lNAME.
15299 library_names_spec=$lt_library_names_spec
15301 # The coded name of the library, if different from the real name.
15302 soname_spec=$lt_soname_spec
15304 # Commands used to build and install an old-style archive.
15306 old_archive_cmds=$lt_old_archive_cmds_F77
15307 old_postinstall_cmds=$lt_old_postinstall_cmds
15308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15310 # Create an old-style archive from a shared archive.
15311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15313 # Create a temporary old-style archive to link instead of a shared archive.
15314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15316 # Commands used to build and install a shared archive.
15317 archive_cmds=$lt_archive_cmds_F77
15318 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15319 postinstall_cmds=$lt_postinstall_cmds
15320 postuninstall_cmds=$lt_postuninstall_cmds
15322 # Commands used to build a loadable module (assumed same as above if empty)
15323 module_cmds=$lt_module_cmds_F77
15324 module_expsym_cmds=$lt_module_expsym_cmds_F77
15326 # Commands to strip libraries.
15327 old_striplib=$lt_old_striplib
15328 striplib=$lt_striplib
15330 # Dependencies to place before the objects being linked to create a
15332 predep_objects=$lt_predep_objects_F77
15334 # Dependencies to place after the objects being linked to create a
15336 postdep_objects=$lt_postdep_objects_F77
15338 # Dependencies to place before the objects being linked to create a
15340 predeps=$lt_predeps_F77
15342 # Dependencies to place after the objects being linked to create a
15344 postdeps=$lt_postdeps_F77
15346 # The library search path used internally by the compiler when linking
15347 # a shared library.
15348 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15350 # Method to check whether dependent libraries are shared objects.
15351 deplibs_check_method=$lt_deplibs_check_method
15353 # Command to use when deplibs_check_method == file_magic.
15354 file_magic_cmd=$lt_file_magic_cmd
15356 # Flag that allows shared libraries with undefined symbols to be built.
15357 allow_undefined_flag=$lt_allow_undefined_flag_F77
15359 # Flag that forces no undefined symbols.
15360 no_undefined_flag=$lt_no_undefined_flag_F77
15362 # Commands used to finish a libtool library installation in a directory.
15363 finish_cmds=$lt_finish_cmds
15365 # Same as above, but a single script fragment to be evaled but not shown.
15366 finish_eval=$lt_finish_eval
15368 # Take the output of nm and produce a listing of raw symbols and C names.
15369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15371 # Transform the output of nm in a proper C declaration
15372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15374 # Transform the output of nm in a C name address pair
15375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15377 # This is the shared library runtime path variable.
15378 runpath_var=$runpath_var
15380 # This is the shared library path variable.
15381 shlibpath_var=$shlibpath_var
15383 # Is shlibpath searched before the hard-coded library search path?
15384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15386 # How to hardcode a shared library path into an executable.
15387 hardcode_action=$hardcode_action_F77
15389 # Whether we should hardcode library paths into libraries.
15390 hardcode_into_libs=$hardcode_into_libs
15392 # Flag to hardcode \$libdir into a binary during linking.
15393 # This must work even if \$libdir does not exist.
15394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15396 # If ld is used when linking, flag to hardcode \$libdir into
15397 # a binary during linking. This must work even if \$libdir does
15399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15401 # Whether we need a single -rpath flag with a separated argument.
15402 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15404 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15405 # resulting binary.
15406 hardcode_direct=$hardcode_direct_F77
15408 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15409 # resulting binary.
15410 hardcode_minus_L=$hardcode_minus_L_F77
15412 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15413 # the resulting binary.
15414 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15416 # Set to yes if building a shared library automatically hardcodes DIR into the library
15417 # and all subsequent libraries and executables linked against it.
15418 hardcode_automatic=$hardcode_automatic_F77
15420 # Variables whose values should be saved in libtool wrapper scripts and
15421 # restored at relink time.
15422 variables_saved_for_relink="$variables_saved_for_relink"
15424 # Whether libtool must link a program against all its dependency libraries.
15425 link_all_deplibs=$link_all_deplibs_F77
15427 # Compile-time system search path for libraries
15428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15430 # Run-time system search path for libraries
15431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15433 # Fix the shell variable \$srcfile for the compiler.
15434 fix_srcfile_path="$fix_srcfile_path_F77"
15436 # Set to yes if exported symbols are required.
15437 always_export_symbols=$always_export_symbols_F77
15439 # The commands to list exported symbols.
15440 export_symbols_cmds=$lt_export_symbols_cmds_F77
15442 # The commands to extract the exported symbol list from a shared archive.
15443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15445 # Symbols that should not be listed in the preloaded symbols.
15446 exclude_expsyms=$lt_exclude_expsyms_F77
15448 # Symbols that must always be exported.
15449 include_expsyms=$lt_include_expsyms_F77
15451 # ### END LIBTOOL TAG CONFIG: $tagname
15457 # If there is no Makefile yet, we rely on a make rule to execute
15458 # `config.status --recheck' to rerun these tests and create the
15459 # libtool script then.
15460 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15461 if test -f "$ltmain_in"; then
15462 test -f Makefile && make "$ltmain"
15468 ac_cpp='$CPP $CPPFLAGS'
15469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15481 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15485 # Source file extension for Java test sources.
15488 # Object file extension for compiled Java test sources.
15492 # Code to be used in simple compile tests
15493 lt_simple_compile_test_code="class foo {}\n"
15495 # Code to be used in simple link tests
15496 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15498 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15500 # If no C compiler was specified, use CC.
15503 # Allow CC to be a program name with arguments.
15507 # Allow CC to be a program name with arguments.
15513 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15514 archive_cmds_need_lc_GCJ=no
15517 lt_prog_compiler_no_builtin_flag_GCJ=
15519 if test "$GCC" = yes; then
15520 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15523 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15524 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15525 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 lt_cv_prog_compiler_rtti_exceptions=no
15529 ac_outfile=conftest.$ac_objext
15530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15531 lt_compiler_flag="-fno-rtti -fno-exceptions"
15532 # Insert the option either (1) after the last *FLAGS variable, or
15533 # (2) before a word containing "conftest.", or (3) at the end.
15534 # Note that $ac_compile itself does not contain backslashes and begins
15535 # with a dollar sign (not a hyphen), so the echo should work correctly.
15536 # The option is referenced via a variable to avoid confusing sed.
15537 lt_compile=`echo "$ac_compile" | $SED \
15538 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15540 -e 's:$: $lt_compiler_flag:'`
15541 (eval echo "\"\$as_me:15541: $lt_compile\"" >&5)
15542 (eval "$lt_compile" 2>conftest.err)
15544 cat conftest.err >&5
15545 echo "$as_me:15545: \$? = $ac_status" >&5
15546 if (exit $ac_status) && test -s "$ac_outfile"; then
15547 # The compiler can only warn and ignore the option if not recognized
15548 # So say no if there are warnings
15549 if test ! -s conftest.err; then
15550 lt_cv_prog_compiler_rtti_exceptions=yes
15556 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15557 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15559 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15560 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15567 lt_prog_compiler_wl_GCJ=
15568 lt_prog_compiler_pic_GCJ=
15569 lt_prog_compiler_static_GCJ=
15571 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15572 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15574 if test "$GCC" = yes; then
15575 lt_prog_compiler_wl_GCJ='-Wl,'
15576 lt_prog_compiler_static_GCJ='-static'
15580 # All AIX code is PIC.
15581 if test "$host_cpu" = ia64; then
15582 # AIX 5 now supports IA64 processor
15583 lt_prog_compiler_static_GCJ='-Bstatic'
15588 # FIXME: we need at least 68020 code to build shared libraries, but
15589 # adding the `-m68020' flag to GCC prevents building anything better,
15591 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15594 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15595 # PIC is the default for these OSes.
15598 mingw* | pw32* | os2*)
15599 # This hack is so that the source file can tell whether it is being
15600 # built for inclusion in a dll (and should export symbols for example).
15601 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15604 darwin* | rhapsody*)
15605 # PIC is the default on this platform
15606 # Common symbols not allowed in MH_DYLIB files
15607 lt_prog_compiler_pic_GCJ='-fno-common'
15611 # Just because we use GCC doesn't mean we suddenly get shared libraries
15612 # on systems that don't support them.
15613 lt_prog_compiler_can_build_shared_GCJ=no
15618 if test -d /usr/nec; then
15619 lt_prog_compiler_pic_GCJ=-Kconform_pic
15624 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15625 # not for PA HP-UX.
15626 case "$host_cpu" in
15631 lt_prog_compiler_pic_GCJ='-fPIC'
15637 lt_prog_compiler_pic_GCJ='-fPIC'
15641 # PORTME Check for flag to pass linker flags through the system compiler.
15644 lt_prog_compiler_wl_GCJ='-Wl,'
15645 if test "$host_cpu" = ia64; then
15646 # AIX 5 now supports IA64 processor
15647 lt_prog_compiler_static_GCJ='-Bstatic'
15649 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15653 mingw* | pw32* | os2*)
15654 # This hack is so that the source file can tell whether it is being
15655 # built for inclusion in a dll (and should export symbols for example).
15656 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15659 hpux9* | hpux10* | hpux11*)
15660 lt_prog_compiler_wl_GCJ='-Wl,'
15661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15662 # not for PA HP-UX.
15663 case "$host_cpu" in
15668 lt_prog_compiler_pic_GCJ='+Z'
15671 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15672 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15675 irix5* | irix6* | nonstopux*)
15676 lt_prog_compiler_wl_GCJ='-Wl,'
15677 # PIC (with -KPIC) is the default.
15678 lt_prog_compiler_static_GCJ='-non_shared'
15682 lt_prog_compiler_pic_GCJ='-KPIC'
15683 lt_prog_compiler_static_GCJ='-Bstatic'
15689 lt_prog_compiler_wl_GCJ='-Wl,'
15690 lt_prog_compiler_pic_GCJ='-KPIC'
15691 lt_prog_compiler_static_GCJ='-static'
15694 lt_prog_compiler_wl_GCJ='-Wl,'
15695 # All Alpha code is PIC.
15696 lt_prog_compiler_static_GCJ='-non_shared'
15701 osf3* | osf4* | osf5*)
15702 lt_prog_compiler_wl_GCJ='-Wl,'
15703 # All OSF/1 code is PIC.
15704 lt_prog_compiler_static_GCJ='-non_shared'
15708 lt_prog_compiler_pic_GCJ='-Kpic'
15709 lt_prog_compiler_static_GCJ='-dn'
15713 lt_prog_compiler_wl_GCJ='-Wl,'
15714 lt_prog_compiler_pic_GCJ='-KPIC'
15715 lt_prog_compiler_static_GCJ='-Bstatic'
15719 lt_prog_compiler_wl_GCJ='-Qoption ld '
15720 lt_prog_compiler_pic_GCJ='-PIC'
15721 lt_prog_compiler_static_GCJ='-Bstatic'
15724 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15725 lt_prog_compiler_wl_GCJ='-Wl,'
15726 lt_prog_compiler_pic_GCJ='-KPIC'
15727 lt_prog_compiler_static_GCJ='-Bstatic'
15731 if test -d /usr/nec ;then
15732 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15733 lt_prog_compiler_static_GCJ='-Bstatic'
15738 lt_prog_compiler_pic_GCJ='-pic'
15739 lt_prog_compiler_static_GCJ='-Bstatic'
15743 lt_prog_compiler_can_build_shared_GCJ=no
15748 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15749 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15752 # Check to make sure the PIC flag actually works.
15754 if test -n "$lt_prog_compiler_pic_GCJ"; then
15756 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15757 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15758 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 lt_prog_compiler_pic_works_GCJ=no
15762 ac_outfile=conftest.$ac_objext
15763 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15764 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15765 # Insert the option either (1) after the last *FLAGS variable, or
15766 # (2) before a word containing "conftest.", or (3) at the end.
15767 # Note that $ac_compile itself does not contain backslashes and begins
15768 # with a dollar sign (not a hyphen), so the echo should work correctly.
15769 # The option is referenced via a variable to avoid confusing sed.
15770 lt_compile=`echo "$ac_compile" | $SED \
15771 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15773 -e 's:$: $lt_compiler_flag:'`
15774 (eval echo "\"\$as_me:15774: $lt_compile\"" >&5)
15775 (eval "$lt_compile" 2>conftest.err)
15777 cat conftest.err >&5
15778 echo "$as_me:15778: \$? = $ac_status" >&5
15779 if (exit $ac_status) && test -s "$ac_outfile"; then
15780 # The compiler can only warn and ignore the option if not recognized
15781 # So say no if there are warnings
15782 if test ! -s conftest.err; then
15783 lt_prog_compiler_pic_works_GCJ=yes
15789 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15790 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15792 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15793 case $lt_prog_compiler_pic_GCJ in
15795 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15798 lt_prog_compiler_pic_GCJ=
15799 lt_prog_compiler_can_build_shared_GCJ=no
15804 # For platforms which do not support PIC, -DPIC is meaningless:
15806 lt_prog_compiler_pic_GCJ=
15809 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15813 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15814 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15815 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 lt_cv_prog_compiler_c_o_GCJ=no
15819 $rm -r conftest 2>/dev/null
15823 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15825 lt_compiler_flag="-o out/conftest2.$ac_objext"
15826 # Insert the option either (1) after the last *FLAGS variable, or
15827 # (2) before a word containing "conftest.", or (3) at the end.
15828 # Note that $ac_compile itself does not contain backslashes and begins
15829 # with a dollar sign (not a hyphen), so the echo should work correctly.
15830 lt_compile=`echo "$ac_compile" | $SED \
15831 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15833 -e 's:$: $lt_compiler_flag:'`
15834 (eval echo "\"\$as_me:15834: $lt_compile\"" >&5)
15835 (eval "$lt_compile" 2>out/conftest.err)
15837 cat out/conftest.err >&5
15838 echo "$as_me:15838: \$? = $ac_status" >&5
15839 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15841 # The compiler can only warn and ignore the option if not recognized
15842 # So say no if there are warnings
15843 if test ! -s out/conftest.err; then
15844 lt_cv_prog_compiler_c_o_GCJ=yes
15849 # SGI C++ compiler will create directory out/ii_files/ for
15850 # template instantiation
15851 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15852 $rm out/* && rmdir out
15858 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15859 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15862 hard_links="nottested"
15863 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15864 # do not overwrite the value of need_locks provided by the user
15865 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15866 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15871 ln conftest.a conftest.b 2>&5 || hard_links=no
15872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15873 echo "$as_me:$LINENO: result: $hard_links" >&5
15874 echo "${ECHO_T}$hard_links" >&6
15875 if test "$hard_links" = no; then
15876 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15877 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15884 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15885 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15888 allow_undefined_flag_GCJ=
15889 enable_shared_with_static_runtimes_GCJ=no
15891 archive_expsym_cmds_GCJ=
15892 old_archive_From_new_cmds_GCJ=
15893 old_archive_from_expsyms_cmds_GCJ=
15894 export_dynamic_flag_spec_GCJ=
15895 whole_archive_flag_spec_GCJ=
15896 thread_safe_flag_spec_GCJ=
15897 hardcode_libdir_flag_spec_GCJ=
15898 hardcode_libdir_flag_spec_ld_GCJ=
15899 hardcode_libdir_separator_GCJ=
15900 hardcode_direct_GCJ=no
15901 hardcode_minus_L_GCJ=no
15902 hardcode_shlibpath_var_GCJ=unsupported
15903 link_all_deplibs_GCJ=unknown
15904 hardcode_automatic_GCJ=no
15906 module_expsym_cmds_GCJ=
15907 always_export_symbols_GCJ=no
15908 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15909 # include_expsyms should be a list of space-separated symbols to be *always*
15910 # included in the symbol list
15911 include_expsyms_GCJ=
15912 # exclude_expsyms can be an extended regexp of symbols to exclude
15913 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15914 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15915 # as well as any symbol that contains `d'.
15916 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15917 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15918 # platforms (ab)use it in PIC code, but their linkers get confused if
15919 # the symbol is explicitly referenced. Since portable code cannot
15920 # rely on this symbol name, it's probably fine to never include it in
15921 # preloaded symbol tables.
15922 extract_expsyms_cmds=
15925 cygwin* | mingw* | pw32*)
15926 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15927 # When not using gcc, we currently assume that we are using
15928 # Microsoft Visual C++.
15929 if test "$GCC" != yes; then
15939 if test "$with_gnu_ld" = yes; then
15940 # If archive_cmds runs LD, not CC, wlarc should be empty
15943 # See if GNU ld supports shared libraries.
15945 aix3* | aix4* | aix5*)
15946 # On AIX/PPC, the GNU linker is very broken
15947 if test "$host_cpu" != ia64; then
15951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15952 *** to be unable to reliably create shared libraries on AIX.
15953 *** Therefore, libtool is disabling shared libraries support. If you
15954 *** really care for shared libraries, you may want to modify your PATH
15955 *** so that a non-GNU linker is found, and then restart.
15962 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)'
15963 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15964 hardcode_minus_L_GCJ=yes
15966 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15967 # that the semantics of dynamic libraries on AmigaOS, at least up
15968 # to version 4, is to share data among multiple programs linked
15969 # with the same dynamic library. Since this doesn't match the
15970 # behavior of shared libraries on other platforms, we can't use
15976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15977 allow_undefined_flag_GCJ=unsupported
15978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15979 # support --undefined. This deserves some investigation. FIXME
15980 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15986 cygwin* | mingw* | pw32*)
15987 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15988 # as there is no search path for DLLs.
15989 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15990 allow_undefined_flag_GCJ=unsupported
15991 always_export_symbols_GCJ=no
15992 enable_shared_with_static_runtimes_GCJ=yes
15993 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15995 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15996 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15997 # If the export-symbols file already is a .def file (1st line
15998 # is EXPORTS), use it as is; otherwise, prepend...
15999 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16000 cp $export_symbols $output_objdir/$soname.def;
16002 echo EXPORTS > $output_objdir/$soname.def;
16003 cat $export_symbols >> $output_objdir/$soname.def;
16005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16013 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16016 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16022 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16026 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16027 *** create shared libraries on Solaris systems. Therefore, libtool
16028 *** is disabling shared libraries support. We urge you to upgrade GNU
16029 *** binutils to release 2.9.1 or newer. Another option is to modify
16030 *** your PATH or compiler configuration so that the native linker is
16031 *** used, and then restart.
16034 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16035 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16036 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16043 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16045 hardcode_direct_GCJ=yes
16046 hardcode_shlibpath_var_GCJ=no
16050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16051 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16052 archive_cmds_GCJ="$tmp_archive_cmds"
16053 supports_anon_versioning=no
16054 case `$LD -v 2>/dev/null` in
16055 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16056 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16057 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16058 *\ 2.11.*) ;; # other 2.11 versions
16059 *) supports_anon_versioning=yes ;;
16061 if test $supports_anon_versioning = yes; then
16062 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16064 $echo "local: *; };" >> $output_objdir/$libname.ver~
16065 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16067 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16076 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16084 if test "$ld_shlibs_GCJ" = yes; then
16085 runpath_var=LD_RUN_PATH
16086 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16087 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16088 # ancient GNU ld didn't support --whole-archive et. al.
16089 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16090 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16092 whole_archive_flag_spec_GCJ=
16096 # PORTME fill in a description of your system's linker (not GNU ld)
16099 allow_undefined_flag_GCJ=unsupported
16100 always_export_symbols_GCJ=yes
16101 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'
16102 # Note: this linker hardcodes the directories in LIBPATH if there
16103 # are no directories specified by -L.
16104 hardcode_minus_L_GCJ=yes
16105 if test "$GCC" = yes && test -z "$link_static_flag"; then
16106 # Neither direct hardcoding nor static linking is supported with a
16108 hardcode_direct_GCJ=unsupported
16113 if test "$host_cpu" = ia64; then
16114 # On IA64, the linker does run time linking by default, so we don't
16115 # have to do anything special.
16116 aix_use_runtimelinking=no
16117 exp_sym_flag='-Bexport'
16120 # If we're using GNU nm, then we don't want the "-C" option.
16121 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16122 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16123 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'
16125 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'
16127 aix_use_runtimelinking=no
16129 # Test if we are trying to use run time linking or normal
16130 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16131 # need to do runtime linking.
16132 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16133 for ld_flag in $LDFLAGS; do
16134 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16135 aix_use_runtimelinking=yes
16141 exp_sym_flag='-bexport'
16142 no_entry_flag='-bnoentry'
16145 # When large executables or shared objects are built, AIX ld can
16146 # have problems creating the table of contents. If linking a library
16147 # or program results in "error TOC overflow" add -mminimal-toc to
16148 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16149 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16151 archive_cmds_GCJ=''
16152 hardcode_direct_GCJ=yes
16153 hardcode_libdir_separator_GCJ=':'
16154 link_all_deplibs_GCJ=yes
16156 if test "$GCC" = yes; then
16157 case $host_os in aix4.012|aix4.012.*)
16158 # We only want to do this on AIX 4.2 and lower, the check
16159 # below for broken collect2 doesn't work under 4.3+
16160 collect2name=`${CC} -print-prog-name=collect2`
16161 if test -f "$collect2name" && \
16162 strings "$collect2name" | grep resolve_lib_name >/dev/null
16164 # We have reworked collect2
16165 hardcode_direct_GCJ=yes
16167 # We have old collect2
16168 hardcode_direct_GCJ=unsupported
16169 # It fails to find uninstalled libraries when the uninstalled
16170 # path is not listed in the libpath. Setting hardcode_minus_L
16171 # to unsupported forces relinking
16172 hardcode_minus_L_GCJ=yes
16173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16174 hardcode_libdir_separator_GCJ=
16177 shared_flag='-shared'
16180 if test "$host_cpu" = ia64; then
16181 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16182 # chokes on -Wl,-G. The following line is correct:
16185 if test "$aix_use_runtimelinking" = yes; then
16186 shared_flag='${wl}-G'
16188 shared_flag='${wl}-bM:SRE'
16193 # It seems that -bexpall does not export symbols beginning with
16194 # underscore (_), so it is better to generate a list of symbols to export.
16195 always_export_symbols_GCJ=yes
16196 if test "$aix_use_runtimelinking" = yes; then
16197 # Warning - without using the other runtime loading flags (-brtl),
16198 # -berok will link without error, but may produce a broken library.
16199 allow_undefined_flag_GCJ='-berok'
16200 # Determine the default libpath from the value encoded in an empty executable.
16201 cat >conftest.$ac_ext <<_ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16218 (eval $ac_link) 2>conftest.er1
16220 grep -v '^ *+' conftest.er1 >conftest.err
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
16225 { ac_try='test -z "$ac_c_werror_flag"
16226 || test ! -s conftest.err'
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; } &&
16232 { ac_try='test -s conftest$ac_exeext'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16241 # Check for a 64-bit object if we didn't find anything.
16242 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; }
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16249 rm -f conftest.err conftest.$ac_objext \
16250 conftest$ac_exeext conftest.$ac_ext
16251 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16253 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16254 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16256 if test "$host_cpu" = ia64; then
16257 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16258 allow_undefined_flag_GCJ="-z nodefs"
16259 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16261 # Determine the default libpath from the value encoded in an empty executable.
16262 cat >conftest.$ac_ext <<_ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16277 rm -f conftest.$ac_objext conftest$ac_exeext
16278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16279 (eval $ac_link) 2>conftest.er1
16281 grep -v '^ *+' conftest.er1 >conftest.err
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } &&
16286 { ac_try='test -z "$ac_c_werror_flag"
16287 || test ! -s conftest.err'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; } &&
16293 { ac_try='test -s conftest$ac_exeext'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16302 # Check for a 64-bit object if we didn't find anything.
16303 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; }
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16310 rm -f conftest.err conftest.$ac_objext \
16311 conftest$ac_exeext conftest.$ac_ext
16312 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16314 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16315 # Warning - without using the other run time loading flags,
16316 # -berok will link without error, but may produce a broken library.
16317 no_undefined_flag_GCJ=' ${wl}-bernotok'
16318 allow_undefined_flag_GCJ=' ${wl}-berok'
16319 # -bexpall does not export symbols beginning with underscore (_)
16320 always_export_symbols_GCJ=yes
16321 # Exported symbols can be pulled into shared objects from archives
16322 whole_archive_flag_spec_GCJ=' '
16323 archive_cmds_need_lc_GCJ=yes
16324 # This is similar to how AIX traditionally builds it's shared libraries.
16325 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16331 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)'
16332 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16333 hardcode_minus_L_GCJ=yes
16334 # see comment about different semantics on the GNU ld section
16339 export_dynamic_flag_spec_GCJ=-rdynamic
16342 cygwin* | mingw* | pw32*)
16343 # When not using gcc, we currently assume that we are using
16344 # Microsoft Visual C++.
16345 # hardcode_libdir_flag_spec is actually meaningless, as there is
16346 # no search path for DLLs.
16347 hardcode_libdir_flag_spec_GCJ=' '
16348 allow_undefined_flag_GCJ=unsupported
16349 # Tell ltmain to make .lib files, not .a files.
16351 # Tell ltmain to make .dll files, not .so files.
16353 # FIXME: Setting linknames here is a bad hack.
16354 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16355 # The linker will automatically build a .lib file if we build a DLL.
16356 old_archive_From_new_cmds_GCJ='true'
16357 # FIXME: Should let the user specify the lib program.
16358 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16359 fix_srcfile_path='`cygpath -w "$srcfile"`'
16360 enable_shared_with_static_runtimes_GCJ=yes
16363 darwin* | rhapsody*)
16364 if test "$GXX" = yes ; then
16365 archive_cmds_need_lc_GCJ=no
16367 rhapsody* | darwin1.[012])
16368 allow_undefined_flag_GCJ='-undefined suppress'
16371 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16372 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16374 case ${MACOSX_DEPLOYMENT_TARGET} in
16376 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16379 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16385 lt_int_apple_cc_single_mod=no
16386 output_verbose_link_cmd='echo'
16387 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16388 lt_int_apple_cc_single_mod=yes
16390 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16391 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16393 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16395 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16397 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16398 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16400 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16402 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}'
16403 hardcode_direct_GCJ=no
16404 hardcode_automatic_GCJ=yes
16405 hardcode_shlibpath_var_GCJ=unsupported
16406 whole_archive_flag_spec_GCJ='-all_load $convenience'
16407 link_all_deplibs_GCJ=yes
16414 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16415 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16416 hardcode_shlibpath_var_GCJ=no
16423 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16424 # support. Future versions do this automatically, but an explicit c++rt0.o
16425 # does not break anything, and helps significantly (at the cost of a little
16428 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16429 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16430 hardcode_direct_GCJ=yes
16431 hardcode_shlibpath_var_GCJ=no
16434 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16436 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16437 hardcode_direct_GCJ=yes
16438 hardcode_minus_L_GCJ=yes
16439 hardcode_shlibpath_var_GCJ=no
16442 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16443 freebsd* | kfreebsd*-gnu)
16444 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16445 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16446 hardcode_direct_GCJ=yes
16447 hardcode_shlibpath_var_GCJ=no
16451 if test "$GCC" = yes; then
16452 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'
16454 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'
16456 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16457 hardcode_libdir_separator_GCJ=:
16458 hardcode_direct_GCJ=yes
16460 # hardcode_minus_L: Not really in the search PATH,
16461 # but as the default location of the library.
16462 hardcode_minus_L_GCJ=yes
16463 export_dynamic_flag_spec_GCJ='${wl}-E'
16467 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16468 case "$host_cpu" in
16470 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16473 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16477 case "$host_cpu" in
16479 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16482 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16486 if test "$with_gnu_ld" = no; then
16487 case "$host_cpu" in
16489 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16490 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16491 hardcode_libdir_separator_GCJ=:
16492 hardcode_direct_GCJ=no
16493 hardcode_shlibpath_var_GCJ=no
16496 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16497 hardcode_direct_GCJ=no
16498 hardcode_shlibpath_var_GCJ=no
16500 # hardcode_minus_L: Not really in the search PATH,
16501 # but as the default location of the library.
16502 hardcode_minus_L_GCJ=yes
16505 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16506 hardcode_libdir_separator_GCJ=:
16507 hardcode_direct_GCJ=yes
16508 export_dynamic_flag_spec_GCJ='${wl}-E'
16510 # hardcode_minus_L: Not really in the search PATH,
16511 # but as the default location of the library.
16512 hardcode_minus_L_GCJ=yes
16518 irix5* | irix6* | nonstopux*)
16519 if test "$GCC" = yes; then
16520 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'
16522 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'
16523 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16525 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16526 hardcode_libdir_separator_GCJ=:
16527 link_all_deplibs_GCJ=yes
16531 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16532 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16534 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16536 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16537 hardcode_direct_GCJ=yes
16538 hardcode_shlibpath_var_GCJ=no
16542 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543 hardcode_direct_GCJ=yes
16544 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16545 hardcode_libdir_separator_GCJ=:
16546 hardcode_shlibpath_var_GCJ=no
16550 hardcode_direct_GCJ=yes
16551 hardcode_shlibpath_var_GCJ=no
16552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16553 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16554 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16555 export_dynamic_flag_spec_GCJ='${wl}-E'
16558 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16559 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16560 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16563 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16564 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16571 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16572 hardcode_minus_L_GCJ=yes
16573 allow_undefined_flag_GCJ=unsupported
16574 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'
16575 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16579 if test "$GCC" = yes; then
16580 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16581 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'
16583 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16584 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'
16586 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16587 hardcode_libdir_separator_GCJ=:
16590 osf4* | osf5*) # as osf3* with the addition of -msym flag
16591 if test "$GCC" = yes; then
16592 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16593 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'
16594 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16596 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16597 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'
16598 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~
16599 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16601 # Both c and cxx compiler support -rpath directly
16602 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16604 hardcode_libdir_separator_GCJ=:
16608 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16609 hardcode_shlibpath_var_GCJ=no
16610 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16611 runpath_var=LD_RUN_PATH
16612 hardcode_runpath_var=yes
16616 no_undefined_flag_GCJ=' -z text'
16617 if test "$GCC" = yes; then
16618 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16619 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16620 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16622 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16623 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16624 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16626 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16627 hardcode_shlibpath_var_GCJ=no
16629 solaris2.[0-5] | solaris2.[0-5].*) ;;
16630 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16631 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16633 link_all_deplibs_GCJ=yes
16637 if test "x$host_vendor" = xsequent; then
16638 # Use $CC to link under sequent, because it throws in some extra .o
16639 # files that make .init and .fini sections work.
16640 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16642 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16644 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16645 hardcode_direct_GCJ=yes
16646 hardcode_minus_L_GCJ=yes
16647 hardcode_shlibpath_var_GCJ=no
16651 case $host_vendor in
16653 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_direct_GCJ=yes # is this really true???
16657 ## LD is ld it makes a PLAMLIB
16658 ## CC just makes a GrossModule.
16659 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16660 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16661 hardcode_direct_GCJ=no
16664 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16665 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16668 runpath_var='LD_RUN_PATH'
16669 hardcode_shlibpath_var_GCJ=no
16673 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16674 hardcode_shlibpath_var_GCJ=no
16675 export_dynamic_flag_spec_GCJ='-Bexport'
16679 if test -d /usr/nec; then
16680 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16681 hardcode_shlibpath_var_GCJ=no
16682 runpath_var=LD_RUN_PATH
16683 hardcode_runpath_var=yes
16689 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16690 hardcode_direct_GCJ=yes
16691 hardcode_minus_L_GCJ=no
16692 hardcode_shlibpath_var_GCJ=no
16693 hardcode_runpath_var=yes
16694 runpath_var=LD_RUN_PATH
16697 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16698 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16699 if test "$GCC" = yes; then
16700 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16702 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16704 runpath_var='LD_RUN_PATH'
16705 hardcode_shlibpath_var_GCJ=no
16709 no_undefined_flag_GCJ=' -z text'
16710 # $CC -shared without GNU ld will not create a library from C++
16711 # object files and a static libstdc++, better avoid it by now
16712 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16713 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16714 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16715 hardcode_libdir_flag_spec_GCJ=
16716 hardcode_shlibpath_var_GCJ=no
16717 runpath_var='LD_RUN_PATH'
16721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16722 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16723 hardcode_shlibpath_var_GCJ=no
16732 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16733 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16734 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16736 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16737 if test "$GCC" = yes; then
16738 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16742 # Do we need to explicitly link libc?
16744 case "x$archive_cmds_need_lc_GCJ" in
16746 # Assume -lc should be added
16747 archive_cmds_need_lc_GCJ=yes
16749 if test "$enable_shared" = yes && test "$GCC" = yes; then
16750 case $archive_cmds_GCJ in
16752 # FIXME: we may have to deal with multi-command sequences.
16755 # Test whether the compiler implicitly links with -lc since on some
16756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16757 # to ld, don't add -lc before -lgcc.
16758 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16759 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764 (eval $ac_compile) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } 2>conftest.err; then
16770 libobjs=conftest.$ac_objext
16772 wl=$lt_prog_compiler_wl_GCJ
16778 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16779 allow_undefined_flag_GCJ=
16780 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16781 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }
16786 archive_cmds_need_lc_GCJ=no
16788 archive_cmds_need_lc_GCJ=yes
16790 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16792 cat conftest.err 1>&5
16795 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16796 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16803 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16804 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16805 library_names_spec=
16806 libname_spec='lib$name'
16810 postuninstall_cmds=
16814 shlibpath_overrides_runpath=unknown
16816 dynamic_linker="$host_os ld.so"
16817 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16818 if test "$GCC" = yes; then
16819 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16820 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16821 # if the path contains ";" then we assume it to be the separator
16822 # otherwise default to the standard path separator (i.e. ":") - it is
16823 # assumed that no part of a normal pathname contains ";" but that should
16824 # okay in the real world where ";" in dirpaths is itself problematic.
16825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16832 need_lib_prefix=unknown
16833 hardcode_into_libs=no
16835 # when you set need_version to no, make sure it does not cause -set_version
16836 # flags to be left without arguments
16837 need_version=unknown
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16843 shlibpath_var=LIBPATH
16845 # AIX 3 has no versioning support, so we append a major version to the name.
16846 soname_spec='${libname}${release}${shared_ext}$major'
16853 hardcode_into_libs=yes
16854 if test "$host_cpu" = ia64; then
16855 # AIX 5 supports IA64
16856 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16857 shlibpath_var=LD_LIBRARY_PATH
16859 # With GCC up to 2.95.x, collect2 would create an import file
16860 # for dependence libraries. The import file would start with
16861 # the line `#! .'. This would cause the generated library to
16862 # depend on `.', always an invalid library. This was fixed in
16863 # development snapshots of GCC prior to 3.0.
16865 aix4 | aix4.[01] | aix4.[01].*)
16866 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16868 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16871 can_build_shared=no
16875 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16876 # soname into executable. Probably we can add versioning support to
16877 # collect2, so additional links can be useful in future.
16878 if test "$aix_use_runtimelinking" = yes; then
16879 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16880 # instead of lib<name>.a to let people know that these are not
16881 # typical AIX shared libraries.
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884 # We preserve .a as extension for shared libraries through AIX4.2
16885 # and later when we are not doing run time linking.
16886 library_names_spec='${libname}${release}.a $libname.a'
16887 soname_spec='${libname}${release}${shared_ext}$major'
16889 shlibpath_var=LIBPATH
16894 library_names_spec='$libname.ixlibrary $libname.a'
16895 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16896 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'
16900 library_names_spec='${libname}${shared_ext}'
16901 dynamic_linker="$host_os ld.so"
16902 shlibpath_var=LIBRARY_PATH
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16911 shlibpath_var=LD_LIBRARY_PATH
16912 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16913 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16914 # the default ld.so.conf also contains /usr/contrib/lib and
16915 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16916 # libtool to hard-code these into programs
16919 cygwin* | mingw* | pw32*)
16920 version_type=windows
16925 case $GCC,$host_os in
16926 yes,cygwin* | yes,mingw* | yes,pw32*)
16927 library_names_spec='$libname.dll.a'
16928 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16929 postinstall_cmds='base_file=`basename \${file}`~
16930 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16931 dldir=$destdir/`dirname \$dlpath`~
16932 test -d \$dldir || mkdir -p \$dldir~
16933 $install_prog $dir/$dlname \$dldir/$dlname'
16934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16935 dlpath=$dir/\$dldll~
16937 shlibpath_overrides_runpath=yes
16941 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16942 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16943 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16946 # MinGW DLLs use traditional 'lib' prefix
16947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16948 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16949 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16950 # It is most probably a Windows format PATH printed by
16951 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16952 # path with ; separators, and with drive letters. We can handle the
16953 # drive letters (cygwin fileutils understands them), so leave them,
16954 # especially as we might pass files found there to a mingw objdump,
16955 # which wouldn't understand a cygwinified path. Ahh.
16956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16962 # pw32 DLLs use 'pw' prefix rather than 'lib'
16963 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16969 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16972 dynamic_linker='Win32 ld.exe'
16973 # FIXME: first we should search . and the directory the executable is in
16977 darwin* | rhapsody*)
16978 dynamic_linker="$host_os dyld"
16979 version_type=darwin
16982 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16983 soname_spec='${libname}${release}${major}$shared_ext'
16984 shlibpath_overrides_runpath=yes
16985 shlibpath_var=DYLD_LIBRARY_PATH
16986 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16987 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16988 if test "$GCC" = yes; then
16989 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"`
16991 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16993 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17001 soname_spec='${libname}${release}${shared_ext}$major'
17002 shlibpath_var=LD_LIBRARY_PATH
17013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17014 soname_spec='${libname}${release}${shared_ext}$major'
17015 shlibpath_var=LD_LIBRARY_PATH
17016 shlibpath_overrides_runpath=no
17017 hardcode_into_libs=yes
17018 dynamic_linker='GNU ld.so'
17022 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17023 version_type=freebsd-$objformat
17024 case $version_type in
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17035 shlibpath_var=LD_LIBRARY_PATH
17038 shlibpath_overrides_runpath=yes
17040 freebsd3.01* | freebsdelf3.01*)
17041 shlibpath_overrides_runpath=yes
17042 hardcode_into_libs=yes
17045 shlibpath_overrides_runpath=no
17046 hardcode_into_libs=yes
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17056 soname_spec='${libname}${release}${shared_ext}$major'
17057 shlibpath_var=LD_LIBRARY_PATH
17058 hardcode_into_libs=yes
17061 hpux9* | hpux10* | hpux11*)
17062 # Give a soname corresponding to the major version so that dld.sl refuses to
17063 # link against other versions.
17067 case "$host_cpu" in
17070 hardcode_into_libs=yes
17071 dynamic_linker="$host_os dld.so"
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
17077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17085 hardcode_into_libs=yes
17086 dynamic_linker="$host_os dld.sl"
17087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17096 dynamic_linker="$host_os dld.sl"
17097 shlibpath_var=SHLIB_PATH
17098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17103 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17104 postinstall_cmds='chmod 555 $lib'
17107 irix5* | irix6* | nonstopux*)
17109 nonstopux*) version_type=nonstopux ;;
17111 if test "$lt_cv_prog_gnu_ld" = yes; then
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17122 irix5* | nonstopux*)
17123 libsuff= shlibsuff=
17126 case $LD in # libtool.m4 will add one of these switches to LD
17127 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17128 libsuff= shlibsuff= libmagic=32-bit;;
17129 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17130 libsuff=32 shlibsuff=N32 libmagic=N32;;
17131 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17132 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17133 *) libsuff= shlibsuff= libmagic=never-match;;
17137 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17138 shlibpath_overrides_runpath=no
17139 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17140 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17141 hardcode_into_libs=yes
17144 # No shared lib support for Linux oldld, aout, or coff.
17145 linux*oldld* | linux*aout* | linux*coff*)
17149 # This must be Linux ELF.
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155 soname_spec='${libname}${release}${shared_ext}$major'
17156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=no
17159 # This implies no fast_install, which is unacceptable.
17160 # Some rework will be needed to allow for fast_install
17161 # before this can be enabled.
17162 hardcode_into_libs=yes
17164 # find out which ABI we are using
17166 case "$host_cpu" in
17167 x86_64*|s390x*|powerpc64*)
17168 echo '#line 17168 "configure"' > conftest.$ac_ext
17169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17170 (eval $ac_compile) 2>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; then
17174 case `/usr/bin/file conftest.$ac_objext` in
17177 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17185 # Append ld.so.conf contents to the search path
17186 if test -f /etc/ld.so.conf; then
17187 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17188 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17191 # We used to test for /lib/ld.so.1 and disable shared libraries on
17192 # powerpc, because MkLinux only supported shared libraries with the
17193 # GNU dynamic linker. Since this was broken with cross compilers,
17194 # most powerpc-linux boxes support dynamic linking these days and
17195 # people can always --disable-shared, the test was removed, and we
17196 # assume the GNU/Linux dynamic linker is in use.
17197 dynamic_linker='GNU/Linux ld.so'
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17205 soname_spec='${libname}${release}${shared_ext}$major'
17206 shlibpath_var=LD_LIBRARY_PATH
17207 shlibpath_overrides_runpath=no
17208 hardcode_into_libs=yes
17209 dynamic_linker='GNU ld.so'
17216 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17219 dynamic_linker='NetBSD (a.out) ld.so'
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 dynamic_linker='NetBSD ld.elf_so'
17225 shlibpath_var=LD_LIBRARY_PATH
17226 shlibpath_overrides_runpath=yes
17227 hardcode_into_libs=yes
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 shlibpath_overrides_runpath=yes
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LD_LIBRARY_PATH
17244 shlibpath_overrides_runpath=yes
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17253 shlibpath_var=LD_LIBRARY_PATH
17254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17256 openbsd2.[89] | openbsd2.[89].*)
17257 shlibpath_overrides_runpath=no
17260 shlibpath_overrides_runpath=yes
17264 shlibpath_overrides_runpath=yes
17269 libname_spec='$name'
17272 library_names_spec='$libname${shared_ext} $libname.a'
17273 dynamic_linker='OS/2 ld.exe'
17274 shlibpath_var=LIBPATH
17277 osf3* | osf4* | osf5*)
17281 soname_spec='${libname}${release}${shared_ext}$major'
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 shlibpath_var=LD_LIBRARY_PATH
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300 soname_spec='${libname}${release}${shared_ext}$major'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 shlibpath_overrides_runpath=yes
17303 hardcode_into_libs=yes
17304 # ldd complains unless libraries are executable
17305 postinstall_cmds='chmod +x $lib'
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=yes
17314 if test "$with_gnu_ld" = yes; then
17320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17323 soname_spec='${libname}${release}${shared_ext}$major'
17324 shlibpath_var=LD_LIBRARY_PATH
17325 case $host_vendor in
17327 shlibpath_overrides_runpath=no
17329 export_dynamic_flag_spec='${wl}-Blargedynsym'
17330 runpath_var=LD_RUN_PATH
17338 shlibpath_overrides_runpath=no
17339 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17345 if test -d /usr/nec ;then
17347 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17348 soname_spec='$libname${shared_ext}.$major'
17349 shlibpath_var=LD_LIBRARY_PATH
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356 soname_spec='${libname}${release}${shared_ext}$major'
17357 shlibpath_var=LD_LIBRARY_PATH
17364 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17365 echo "${ECHO_T}$dynamic_linker" >&6
17366 test "$dynamic_linker" = no && can_build_shared=no
17368 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17370 hardcode_action_GCJ=
17371 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17372 test -n "$runpath_var GCJ" || \
17373 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17375 # We can hardcode non-existant directories.
17376 if test "$hardcode_direct_GCJ" != no &&
17377 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17378 # have to relink, otherwise we might link with an installed library
17379 # when we should be linking with a yet-to-be-installed one
17380 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17381 test "$hardcode_minus_L_GCJ" != no; then
17382 # Linking always hardcodes the temporary library directory.
17383 hardcode_action_GCJ=relink
17385 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17386 hardcode_action_GCJ=immediate
17389 # We cannot hardcode anything, or else we can only hardcode existing
17391 hardcode_action_GCJ=unsupported
17393 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17394 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17396 if test "$hardcode_action_GCJ" = relink; then
17397 # Fast installation is not supported
17398 enable_fast_install=no
17399 elif test "$shlibpath_overrides_runpath" = yes ||
17400 test "$enable_shared" = no; then
17401 # Fast installation is not necessary
17402 enable_fast_install=needless
17407 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17408 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17409 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17410 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17411 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17412 echo "$as_me:$LINENO: result: yes" >&5
17413 echo "${ECHO_T}yes" >&6
17415 # FIXME - insert some real tests, host_os isn't really good enough
17418 if test -n "$STRIP" ; then
17419 striplib="$STRIP -x"
17420 echo "$as_me:$LINENO: result: yes" >&5
17421 echo "${ECHO_T}yes" >&6
17423 echo "$as_me:$LINENO: result: no" >&5
17424 echo "${ECHO_T}no" >&6
17428 echo "$as_me:$LINENO: result: no" >&5
17429 echo "${ECHO_T}no" >&6
17434 if test "x$enable_dlopen" != xyes; then
17435 enable_dlopen=unknown
17436 enable_dlopen_self=unknown
17437 enable_dlopen_self_static=unknown
17444 lt_cv_dlopen="load_add_on"
17446 lt_cv_dlopen_self=yes
17450 lt_cv_dlopen="LoadLibrary"
17455 lt_cv_dlopen="dlopen"
17460 # if libdl is installed we need to link against it
17461 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 ac_check_lib_save_LIBS=$LIBS
17468 cat >conftest.$ac_ext <<_ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17475 /* Override any gcc2 internal prototype to avoid an error. */
17479 /* We use char because int might match the return type of a gcc2
17480 builtin and then its argument prototype would still apply. */
17490 rm -f conftest.$ac_objext conftest$ac_exeext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17492 (eval $ac_link) 2>conftest.er1
17494 grep -v '^ *+' conftest.er1 >conftest.err
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } &&
17499 { ac_try='test -z "$ac_c_werror_flag"
17500 || test ! -s conftest.err'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try='test -s conftest$ac_exeext'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; }; then
17512 ac_cv_lib_dl_dlopen=yes
17514 echo "$as_me: failed program was:" >&5
17515 sed 's/^/| /' conftest.$ac_ext >&5
17517 ac_cv_lib_dl_dlopen=no
17519 rm -f conftest.err conftest.$ac_objext \
17520 conftest$ac_exeext conftest.$ac_ext
17521 LIBS=$ac_check_lib_save_LIBS
17523 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17524 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17525 if test $ac_cv_lib_dl_dlopen = yes; then
17526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17529 lt_cv_dlopen="dyld"
17531 lt_cv_dlopen_self=yes
17538 echo "$as_me:$LINENO: checking for shl_load" >&5
17539 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17540 if test "${ac_cv_func_shl_load+set}" = set; then
17541 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 cat >conftest.$ac_ext <<_ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17551 #define shl_load innocuous_shl_load
17553 /* System header to define __stub macros and hopefully few prototypes,
17554 which can conflict with char shl_load (); below.
17555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17556 <limits.h> exists even on freestanding compilers. */
17559 # include <limits.h>
17561 # include <assert.h>
17566 /* Override any gcc2 internal prototype to avoid an error. */
17571 /* We use char because int might match the return type of a gcc2
17572 builtin and then its argument prototype would still apply. */
17574 /* The GNU C library defines this for functions which it implements
17575 to always fail with ENOSYS. Some functions are actually named
17576 something starting with __ and the normal name is an alias. */
17577 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17580 char (*f) () = shl_load;
17589 return f != shl_load;
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17596 (eval $ac_link) 2>conftest.er1
17598 grep -v '^ *+' conftest.er1 >conftest.err
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
17603 { ac_try='test -z "$ac_c_werror_flag"
17604 || test ! -s conftest.err'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest$ac_exeext'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ac_cv_func_shl_load=yes
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 ac_cv_func_shl_load=no
17623 rm -f conftest.err conftest.$ac_objext \
17624 conftest$ac_exeext conftest.$ac_ext
17626 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17627 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17628 if test $ac_cv_func_shl_load = yes; then
17629 lt_cv_dlopen="shl_load"
17631 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17632 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17633 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 ac_check_lib_save_LIBS=$LIBS
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17645 /* Override any gcc2 internal prototype to avoid an error. */
17649 /* We use char because int might match the return type of a gcc2
17650 builtin and then its argument prototype would still apply. */
17660 rm -f conftest.$ac_objext conftest$ac_exeext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17662 (eval $ac_link) 2>conftest.er1
17664 grep -v '^ *+' conftest.er1 >conftest.err
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
17669 { ac_try='test -z "$ac_c_werror_flag"
17670 || test ! -s conftest.err'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest$ac_exeext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_lib_dld_shl_load=yes
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17687 ac_cv_lib_dld_shl_load=no
17689 rm -f conftest.err conftest.$ac_objext \
17690 conftest$ac_exeext conftest.$ac_ext
17691 LIBS=$ac_check_lib_save_LIBS
17693 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17694 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17695 if test $ac_cv_lib_dld_shl_load = yes; then
17696 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17698 echo "$as_me:$LINENO: checking for dlopen" >&5
17699 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17700 if test "${ac_cv_func_dlopen+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 cat >conftest.$ac_ext <<_ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17709 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17711 #define dlopen innocuous_dlopen
17713 /* System header to define __stub macros and hopefully few prototypes,
17714 which can conflict with char dlopen (); below.
17715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17716 <limits.h> exists even on freestanding compilers. */
17719 # include <limits.h>
17721 # include <assert.h>
17726 /* Override any gcc2 internal prototype to avoid an error. */
17731 /* We use char because int might match the return type of a gcc2
17732 builtin and then its argument prototype would still apply. */
17734 /* The GNU C library defines this for functions which it implements
17735 to always fail with ENOSYS. Some functions are actually named
17736 something starting with __ and the normal name is an alias. */
17737 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17740 char (*f) () = dlopen;
17749 return f != dlopen;
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756 (eval $ac_link) 2>conftest.er1
17758 grep -v '^ *+' conftest.er1 >conftest.err
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag"
17764 || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest$ac_exeext'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_func_dlopen=yes
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_cv_func_dlopen=no
17783 rm -f conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17786 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17787 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17788 if test $ac_cv_func_dlopen = yes; then
17789 lt_cv_dlopen="dlopen"
17791 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17792 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17793 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 ac_check_lib_save_LIBS=$LIBS
17798 cat >conftest.$ac_ext <<_ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17805 /* Override any gcc2 internal prototype to avoid an error. */
17809 /* We use char because int might match the return type of a gcc2
17810 builtin and then its argument prototype would still apply. */
17820 rm -f conftest.$ac_objext conftest$ac_exeext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17822 (eval $ac_link) 2>conftest.er1
17824 grep -v '^ *+' conftest.er1 >conftest.err
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -z "$ac_c_werror_flag"
17830 || test ! -s conftest.err'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest$ac_exeext'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_lib_dl_dlopen=yes
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17847 ac_cv_lib_dl_dlopen=no
17849 rm -f conftest.err conftest.$ac_objext \
17850 conftest$ac_exeext conftest.$ac_ext
17851 LIBS=$ac_check_lib_save_LIBS
17853 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17854 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17855 if test $ac_cv_lib_dl_dlopen = yes; then
17856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17858 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17859 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17860 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 ac_check_lib_save_LIBS=$LIBS
17864 LIBS="-lsvld $LIBS"
17865 cat >conftest.$ac_ext <<_ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17872 /* Override any gcc2 internal prototype to avoid an error. */
17876 /* We use char because int might match the return type of a gcc2
17877 builtin and then its argument prototype would still apply. */
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889 (eval $ac_link) 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -z "$ac_c_werror_flag"
17897 || test ! -s conftest.err'
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
17903 { ac_try='test -s conftest$ac_exeext'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 ac_cv_lib_svld_dlopen=yes
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17914 ac_cv_lib_svld_dlopen=no
17916 rm -f conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17918 LIBS=$ac_check_lib_save_LIBS
17920 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17921 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17922 if test $ac_cv_lib_svld_dlopen = yes; then
17923 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17925 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17926 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17927 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 ac_check_lib_save_LIBS=$LIBS
17932 cat >conftest.$ac_ext <<_ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17939 /* Override any gcc2 internal prototype to avoid an error. */
17943 /* We use char because int might match the return type of a gcc2
17944 builtin and then its argument prototype would still apply. */
17954 rm -f conftest.$ac_objext conftest$ac_exeext
17955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17956 (eval $ac_link) 2>conftest.er1
17958 grep -v '^ *+' conftest.er1 >conftest.err
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try='test -z "$ac_c_werror_flag"
17964 || test ! -s conftest.err'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest$ac_exeext'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 ac_cv_lib_dld_dld_link=yes
17978 echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.$ac_ext >&5
17981 ac_cv_lib_dld_dld_link=no
17983 rm -f conftest.err conftest.$ac_objext \
17984 conftest$ac_exeext conftest.$ac_ext
17985 LIBS=$ac_check_lib_save_LIBS
17987 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17988 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17989 if test $ac_cv_lib_dld_dld_link = yes; then
17990 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18011 if test "x$lt_cv_dlopen" != xno; then
18017 case $lt_cv_dlopen in
18019 save_CPPFLAGS="$CPPFLAGS"
18020 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18022 save_LDFLAGS="$LDFLAGS"
18023 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18026 LIBS="$lt_cv_dlopen_libs $LIBS"
18028 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18029 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18030 if test "${lt_cv_dlopen_self+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 if test "$cross_compiling" = yes; then :
18034 lt_cv_dlopen_self=cross
18036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18037 lt_status=$lt_dlunknown
18038 cat > conftest.$ac_ext <<EOF
18039 #line 18039 "configure"
18040 #include "confdefs.h"
18049 # define LT_DLGLOBAL RTLD_GLOBAL
18052 # define LT_DLGLOBAL DL_GLOBAL
18054 # define LT_DLGLOBAL 0
18058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18059 find out it does not work in some platform. */
18060 #ifndef LT_DLLAZY_OR_NOW
18062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18065 # define LT_DLLAZY_OR_NOW DL_LAZY
18068 # define LT_DLLAZY_OR_NOW RTLD_NOW
18071 # define LT_DLLAZY_OR_NOW DL_NOW
18073 # define LT_DLLAZY_OR_NOW 0
18081 extern "C" void exit (int);
18084 void fnord() { int i=42;}
18087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18088 int status = $lt_dlunknown;
18092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18094 /* dlclose (self); */
18100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18101 (eval $ac_link) 2>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18105 (./conftest; exit; ) 2>/dev/null
18107 case x$lt_status in
18108 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18109 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18110 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18113 # compilation failed
18114 lt_cv_dlopen_self=no
18121 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18122 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18124 if test "x$lt_cv_dlopen_self" = xyes; then
18125 LDFLAGS="$LDFLAGS $link_static_flag"
18126 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18127 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18128 if test "${lt_cv_dlopen_self_static+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 if test "$cross_compiling" = yes; then :
18132 lt_cv_dlopen_self_static=cross
18134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18135 lt_status=$lt_dlunknown
18136 cat > conftest.$ac_ext <<EOF
18137 #line 18137 "configure"
18138 #include "confdefs.h"
18147 # define LT_DLGLOBAL RTLD_GLOBAL
18150 # define LT_DLGLOBAL DL_GLOBAL
18152 # define LT_DLGLOBAL 0
18156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18157 find out it does not work in some platform. */
18158 #ifndef LT_DLLAZY_OR_NOW
18160 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18163 # define LT_DLLAZY_OR_NOW DL_LAZY
18166 # define LT_DLLAZY_OR_NOW RTLD_NOW
18169 # define LT_DLLAZY_OR_NOW DL_NOW
18171 # define LT_DLLAZY_OR_NOW 0
18179 extern "C" void exit (int);
18182 void fnord() { int i=42;}
18185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18186 int status = $lt_dlunknown;
18190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18191 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18192 /* dlclose (self); */
18198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18199 (eval $ac_link) 2>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18203 (./conftest; exit; ) 2>/dev/null
18205 case x$lt_status in
18206 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18207 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18208 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18211 # compilation failed
18212 lt_cv_dlopen_self_static=no
18219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18220 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18223 CPPFLAGS="$save_CPPFLAGS"
18224 LDFLAGS="$save_LDFLAGS"
18229 case $lt_cv_dlopen_self in
18230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18231 *) enable_dlopen_self=unknown ;;
18234 case $lt_cv_dlopen_self_static in
18235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18236 *) enable_dlopen_self_static=unknown ;;
18241 # The else clause should only fire when bootstrapping the
18242 # libtool distribution, otherwise you forgot to ship ltmain.sh
18243 # with your package, and you will get complaints that there are
18244 # no rules to generate ltmain.sh.
18245 if test -f "$ltmain"; then
18246 # See if we are running on zsh, and set the options which allow our commands through
18247 # without removal of \ escapes.
18248 if test -n "${ZSH_VERSION+set}" ; then
18249 setopt NO_GLOB_SUBST
18251 # Now quote all the things that may contain metacharacters while being
18252 # careful not to overquote the AC_SUBSTed values. We take copies of the
18253 # variables and quote the copies for generation of the libtool script.
18254 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18256 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18257 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18258 deplibs_check_method reload_flag reload_cmds need_locks \
18259 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18260 lt_cv_sys_global_symbol_to_c_name_address \
18261 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18262 old_postinstall_cmds old_postuninstall_cmds \
18266 lt_prog_compiler_wl_GCJ \
18267 lt_prog_compiler_pic_GCJ \
18268 lt_prog_compiler_static_GCJ \
18269 lt_prog_compiler_no_builtin_flag_GCJ \
18270 export_dynamic_flag_spec_GCJ \
18271 thread_safe_flag_spec_GCJ \
18272 whole_archive_flag_spec_GCJ \
18273 enable_shared_with_static_runtimes_GCJ \
18274 old_archive_cmds_GCJ \
18275 old_archive_from_new_cmds_GCJ \
18276 predep_objects_GCJ \
18277 postdep_objects_GCJ \
18280 compiler_lib_search_path_GCJ \
18282 archive_expsym_cmds_GCJ \
18283 postinstall_cmds_GCJ \
18284 postuninstall_cmds_GCJ \
18285 old_archive_from_expsyms_cmds_GCJ \
18286 allow_undefined_flag_GCJ \
18287 no_undefined_flag_GCJ \
18288 export_symbols_cmds_GCJ \
18289 hardcode_libdir_flag_spec_GCJ \
18290 hardcode_libdir_flag_spec_ld_GCJ \
18291 hardcode_libdir_separator_GCJ \
18292 hardcode_automatic_GCJ \
18294 module_expsym_cmds_GCJ \
18295 lt_cv_prog_compiler_c_o_GCJ \
18296 exclude_expsyms_GCJ \
18297 include_expsyms_GCJ; do
18300 old_archive_cmds_GCJ | \
18301 old_archive_from_new_cmds_GCJ | \
18302 archive_cmds_GCJ | \
18303 archive_expsym_cmds_GCJ | \
18304 module_cmds_GCJ | \
18305 module_expsym_cmds_GCJ | \
18306 old_archive_from_expsyms_cmds_GCJ | \
18307 export_symbols_cmds_GCJ | \
18308 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18309 postinstall_cmds | postuninstall_cmds | \
18310 old_postinstall_cmds | old_postuninstall_cmds | \
18311 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18312 # Double-quote double-evaled strings.
18313 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18316 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18322 *'\$0 --fallback-echo"')
18323 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18329 cat <<__EOF__ >> "$cfgfile"
18330 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18332 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18334 # Shell to use when invoking shell scripts.
18337 # Whether or not to build shared libraries.
18338 build_libtool_libs=$enable_shared
18340 # Whether or not to build static libraries.
18341 build_old_libs=$enable_static
18343 # Whether or not to add -lc for building shared libraries.
18344 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18346 # Whether or not to disallow shared libs when runtime libs are static
18347 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18349 # Whether or not to optimize for fast installation.
18350 fast_install=$enable_fast_install
18353 host_alias=$host_alias
18356 # An echo program that does not interpret backslashes.
18361 AR_FLAGS=$lt_AR_FLAGS
18366 # A language-specific compiler.
18367 CC=$lt_compiler_GCJ
18369 # Is the compiler the GNU C compiler?
18375 # The linker used to build libraries.
18378 # Whether we need hard or soft links.
18381 # A BSD-compatible nm program.
18384 # A symbol stripping program
18387 # Used to examine libraries when file_magic_cmd begins "file"
18388 MAGIC_CMD=$MAGIC_CMD
18390 # Used on cygwin: DLL creation program.
18393 # Used on cygwin: object dumper.
18396 # Used on cygwin: assembler.
18399 # The name of the directory that contains temporary libtool files.
18402 # How to create reloadable object files.
18403 reload_flag=$lt_reload_flag
18404 reload_cmds=$lt_reload_cmds
18406 # How to pass a linker flag through the compiler.
18407 wl=$lt_lt_prog_compiler_wl_GCJ
18409 # Object file suffix (normally "o").
18410 objext="$ac_objext"
18412 # Old archive suffix (normally "a").
18415 # Shared library suffix (normally ".so").
18416 shrext_cmds='$shrext_cmds'
18418 # Executable file suffix (normally "").
18421 # Additional compiler flags for building library objects.
18422 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18425 # What is the maximum length of a command?
18426 max_cmd_len=$lt_cv_sys_max_cmd_len
18428 # Does compiler simultaneously support -c and -o options?
18429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18431 # Must we lock files when doing compilation ?
18432 need_locks=$lt_need_locks
18434 # Do we need the lib prefix for modules?
18435 need_lib_prefix=$need_lib_prefix
18437 # Do we need a version for libraries?
18438 need_version=$need_version
18440 # Whether dlopen is supported.
18441 dlopen_support=$enable_dlopen
18443 # Whether dlopen of programs is supported.
18444 dlopen_self=$enable_dlopen_self
18446 # Whether dlopen of statically linked programs is supported.
18447 dlopen_self_static=$enable_dlopen_self_static
18449 # Compiler flag to prevent dynamic linking.
18450 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18452 # Compiler flag to turn off builtin functions.
18453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18455 # Compiler flag to allow reflexive dlopens.
18456 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18458 # Compiler flag to generate shared objects directly from archives.
18459 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18461 # Compiler flag to generate thread-safe objects.
18462 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18464 # Library versioning type.
18465 version_type=$version_type
18467 # Format of library name prefix.
18468 libname_spec=$lt_libname_spec
18470 # List of archive names. First name is the real one, the rest are links.
18471 # The last name is the one that the linker finds with -lNAME.
18472 library_names_spec=$lt_library_names_spec
18474 # The coded name of the library, if different from the real name.
18475 soname_spec=$lt_soname_spec
18477 # Commands used to build and install an old-style archive.
18479 old_archive_cmds=$lt_old_archive_cmds_GCJ
18480 old_postinstall_cmds=$lt_old_postinstall_cmds
18481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18483 # Create an old-style archive from a shared archive.
18484 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18486 # Create a temporary old-style archive to link instead of a shared archive.
18487 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18489 # Commands used to build and install a shared archive.
18490 archive_cmds=$lt_archive_cmds_GCJ
18491 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18492 postinstall_cmds=$lt_postinstall_cmds
18493 postuninstall_cmds=$lt_postuninstall_cmds
18495 # Commands used to build a loadable module (assumed same as above if empty)
18496 module_cmds=$lt_module_cmds_GCJ
18497 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18499 # Commands to strip libraries.
18500 old_striplib=$lt_old_striplib
18501 striplib=$lt_striplib
18503 # Dependencies to place before the objects being linked to create a
18505 predep_objects=$lt_predep_objects_GCJ
18507 # Dependencies to place after the objects being linked to create a
18509 postdep_objects=$lt_postdep_objects_GCJ
18511 # Dependencies to place before the objects being linked to create a
18513 predeps=$lt_predeps_GCJ
18515 # Dependencies to place after the objects being linked to create a
18517 postdeps=$lt_postdeps_GCJ
18519 # The library search path used internally by the compiler when linking
18520 # a shared library.
18521 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18523 # Method to check whether dependent libraries are shared objects.
18524 deplibs_check_method=$lt_deplibs_check_method
18526 # Command to use when deplibs_check_method == file_magic.
18527 file_magic_cmd=$lt_file_magic_cmd
18529 # Flag that allows shared libraries with undefined symbols to be built.
18530 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18532 # Flag that forces no undefined symbols.
18533 no_undefined_flag=$lt_no_undefined_flag_GCJ
18535 # Commands used to finish a libtool library installation in a directory.
18536 finish_cmds=$lt_finish_cmds
18538 # Same as above, but a single script fragment to be evaled but not shown.
18539 finish_eval=$lt_finish_eval
18541 # Take the output of nm and produce a listing of raw symbols and C names.
18542 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18544 # Transform the output of nm in a proper C declaration
18545 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18547 # Transform the output of nm in a C name address pair
18548 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18550 # This is the shared library runtime path variable.
18551 runpath_var=$runpath_var
18553 # This is the shared library path variable.
18554 shlibpath_var=$shlibpath_var
18556 # Is shlibpath searched before the hard-coded library search path?
18557 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18559 # How to hardcode a shared library path into an executable.
18560 hardcode_action=$hardcode_action_GCJ
18562 # Whether we should hardcode library paths into libraries.
18563 hardcode_into_libs=$hardcode_into_libs
18565 # Flag to hardcode \$libdir into a binary during linking.
18566 # This must work even if \$libdir does not exist.
18567 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18569 # If ld is used when linking, flag to hardcode \$libdir into
18570 # a binary during linking. This must work even if \$libdir does
18572 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18574 # Whether we need a single -rpath flag with a separated argument.
18575 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18577 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18578 # resulting binary.
18579 hardcode_direct=$hardcode_direct_GCJ
18581 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18582 # resulting binary.
18583 hardcode_minus_L=$hardcode_minus_L_GCJ
18585 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18586 # the resulting binary.
18587 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18589 # Set to yes if building a shared library automatically hardcodes DIR into the library
18590 # and all subsequent libraries and executables linked against it.
18591 hardcode_automatic=$hardcode_automatic_GCJ
18593 # Variables whose values should be saved in libtool wrapper scripts and
18594 # restored at relink time.
18595 variables_saved_for_relink="$variables_saved_for_relink"
18597 # Whether libtool must link a program against all its dependency libraries.
18598 link_all_deplibs=$link_all_deplibs_GCJ
18600 # Compile-time system search path for libraries
18601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18603 # Run-time system search path for libraries
18604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18606 # Fix the shell variable \$srcfile for the compiler.
18607 fix_srcfile_path="$fix_srcfile_path_GCJ"
18609 # Set to yes if exported symbols are required.
18610 always_export_symbols=$always_export_symbols_GCJ
18612 # The commands to list exported symbols.
18613 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18615 # The commands to extract the exported symbol list from a shared archive.
18616 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18618 # Symbols that should not be listed in the preloaded symbols.
18619 exclude_expsyms=$lt_exclude_expsyms_GCJ
18621 # Symbols that must always be exported.
18622 include_expsyms=$lt_include_expsyms_GCJ
18624 # ### END LIBTOOL TAG CONFIG: $tagname
18630 # If there is no Makefile yet, we rely on a make rule to execute
18631 # `config.status --recheck' to rerun these tests and create the
18632 # libtool script then.
18633 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18634 if test -f "$ltmain_in"; then
18635 test -f Makefile && make "$ltmain"
18641 ac_cpp='$CPP $CPPFLAGS'
18642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18657 # Source file extension for RC test sources.
18660 # Object file extension for compiled RC test sources.
18664 # Code to be used in simple compile tests
18665 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18667 # Code to be used in simple link tests
18668 lt_simple_link_test_code="$lt_simple_compile_test_code"
18670 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18672 # If no C compiler was specified, use CC.
18675 # Allow CC to be a program name with arguments.
18679 # Allow CC to be a program name with arguments.
18684 lt_cv_prog_compiler_c_o_RC=yes
18686 # The else clause should only fire when bootstrapping the
18687 # libtool distribution, otherwise you forgot to ship ltmain.sh
18688 # with your package, and you will get complaints that there are
18689 # no rules to generate ltmain.sh.
18690 if test -f "$ltmain"; then
18691 # See if we are running on zsh, and set the options which allow our commands through
18692 # without removal of \ escapes.
18693 if test -n "${ZSH_VERSION+set}" ; then
18694 setopt NO_GLOB_SUBST
18696 # Now quote all the things that may contain metacharacters while being
18697 # careful not to overquote the AC_SUBSTed values. We take copies of the
18698 # variables and quote the copies for generation of the libtool script.
18699 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18701 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18702 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18703 deplibs_check_method reload_flag reload_cmds need_locks \
18704 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18705 lt_cv_sys_global_symbol_to_c_name_address \
18706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18707 old_postinstall_cmds old_postuninstall_cmds \
18711 lt_prog_compiler_wl_RC \
18712 lt_prog_compiler_pic_RC \
18713 lt_prog_compiler_static_RC \
18714 lt_prog_compiler_no_builtin_flag_RC \
18715 export_dynamic_flag_spec_RC \
18716 thread_safe_flag_spec_RC \
18717 whole_archive_flag_spec_RC \
18718 enable_shared_with_static_runtimes_RC \
18719 old_archive_cmds_RC \
18720 old_archive_from_new_cmds_RC \
18721 predep_objects_RC \
18722 postdep_objects_RC \
18725 compiler_lib_search_path_RC \
18727 archive_expsym_cmds_RC \
18728 postinstall_cmds_RC \
18729 postuninstall_cmds_RC \
18730 old_archive_from_expsyms_cmds_RC \
18731 allow_undefined_flag_RC \
18732 no_undefined_flag_RC \
18733 export_symbols_cmds_RC \
18734 hardcode_libdir_flag_spec_RC \
18735 hardcode_libdir_flag_spec_ld_RC \
18736 hardcode_libdir_separator_RC \
18737 hardcode_automatic_RC \
18739 module_expsym_cmds_RC \
18740 lt_cv_prog_compiler_c_o_RC \
18741 exclude_expsyms_RC \
18742 include_expsyms_RC; do
18745 old_archive_cmds_RC | \
18746 old_archive_from_new_cmds_RC | \
18747 archive_cmds_RC | \
18748 archive_expsym_cmds_RC | \
18750 module_expsym_cmds_RC | \
18751 old_archive_from_expsyms_cmds_RC | \
18752 export_symbols_cmds_RC | \
18753 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18754 postinstall_cmds | postuninstall_cmds | \
18755 old_postinstall_cmds | old_postuninstall_cmds | \
18756 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18757 # Double-quote double-evaled strings.
18758 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18767 *'\$0 --fallback-echo"')
18768 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18774 cat <<__EOF__ >> "$cfgfile"
18775 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18779 # Shell to use when invoking shell scripts.
18782 # Whether or not to build shared libraries.
18783 build_libtool_libs=$enable_shared
18785 # Whether or not to build static libraries.
18786 build_old_libs=$enable_static
18788 # Whether or not to add -lc for building shared libraries.
18789 build_libtool_need_lc=$archive_cmds_need_lc_RC
18791 # Whether or not to disallow shared libs when runtime libs are static
18792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18794 # Whether or not to optimize for fast installation.
18795 fast_install=$enable_fast_install
18798 host_alias=$host_alias
18801 # An echo program that does not interpret backslashes.
18806 AR_FLAGS=$lt_AR_FLAGS
18811 # A language-specific compiler.
18814 # Is the compiler the GNU C compiler?
18820 # The linker used to build libraries.
18823 # Whether we need hard or soft links.
18826 # A BSD-compatible nm program.
18829 # A symbol stripping program
18832 # Used to examine libraries when file_magic_cmd begins "file"
18833 MAGIC_CMD=$MAGIC_CMD
18835 # Used on cygwin: DLL creation program.
18838 # Used on cygwin: object dumper.
18841 # Used on cygwin: assembler.
18844 # The name of the directory that contains temporary libtool files.
18847 # How to create reloadable object files.
18848 reload_flag=$lt_reload_flag
18849 reload_cmds=$lt_reload_cmds
18851 # How to pass a linker flag through the compiler.
18852 wl=$lt_lt_prog_compiler_wl_RC
18854 # Object file suffix (normally "o").
18855 objext="$ac_objext"
18857 # Old archive suffix (normally "a").
18860 # Shared library suffix (normally ".so").
18861 shrext_cmds='$shrext_cmds'
18863 # Executable file suffix (normally "").
18866 # Additional compiler flags for building library objects.
18867 pic_flag=$lt_lt_prog_compiler_pic_RC
18870 # What is the maximum length of a command?
18871 max_cmd_len=$lt_cv_sys_max_cmd_len
18873 # Does compiler simultaneously support -c and -o options?
18874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18876 # Must we lock files when doing compilation ?
18877 need_locks=$lt_need_locks
18879 # Do we need the lib prefix for modules?
18880 need_lib_prefix=$need_lib_prefix
18882 # Do we need a version for libraries?
18883 need_version=$need_version
18885 # Whether dlopen is supported.
18886 dlopen_support=$enable_dlopen
18888 # Whether dlopen of programs is supported.
18889 dlopen_self=$enable_dlopen_self
18891 # Whether dlopen of statically linked programs is supported.
18892 dlopen_self_static=$enable_dlopen_self_static
18894 # Compiler flag to prevent dynamic linking.
18895 link_static_flag=$lt_lt_prog_compiler_static_RC
18897 # Compiler flag to turn off builtin functions.
18898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18900 # Compiler flag to allow reflexive dlopens.
18901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18903 # Compiler flag to generate shared objects directly from archives.
18904 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18906 # Compiler flag to generate thread-safe objects.
18907 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18909 # Library versioning type.
18910 version_type=$version_type
18912 # Format of library name prefix.
18913 libname_spec=$lt_libname_spec
18915 # List of archive names. First name is the real one, the rest are links.
18916 # The last name is the one that the linker finds with -lNAME.
18917 library_names_spec=$lt_library_names_spec
18919 # The coded name of the library, if different from the real name.
18920 soname_spec=$lt_soname_spec
18922 # Commands used to build and install an old-style archive.
18924 old_archive_cmds=$lt_old_archive_cmds_RC
18925 old_postinstall_cmds=$lt_old_postinstall_cmds
18926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18928 # Create an old-style archive from a shared archive.
18929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18931 # Create a temporary old-style archive to link instead of a shared archive.
18932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18934 # Commands used to build and install a shared archive.
18935 archive_cmds=$lt_archive_cmds_RC
18936 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18937 postinstall_cmds=$lt_postinstall_cmds
18938 postuninstall_cmds=$lt_postuninstall_cmds
18940 # Commands used to build a loadable module (assumed same as above if empty)
18941 module_cmds=$lt_module_cmds_RC
18942 module_expsym_cmds=$lt_module_expsym_cmds_RC
18944 # Commands to strip libraries.
18945 old_striplib=$lt_old_striplib
18946 striplib=$lt_striplib
18948 # Dependencies to place before the objects being linked to create a
18950 predep_objects=$lt_predep_objects_RC
18952 # Dependencies to place after the objects being linked to create a
18954 postdep_objects=$lt_postdep_objects_RC
18956 # Dependencies to place before the objects being linked to create a
18958 predeps=$lt_predeps_RC
18960 # Dependencies to place after the objects being linked to create a
18962 postdeps=$lt_postdeps_RC
18964 # The library search path used internally by the compiler when linking
18965 # a shared library.
18966 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18968 # Method to check whether dependent libraries are shared objects.
18969 deplibs_check_method=$lt_deplibs_check_method
18971 # Command to use when deplibs_check_method == file_magic.
18972 file_magic_cmd=$lt_file_magic_cmd
18974 # Flag that allows shared libraries with undefined symbols to be built.
18975 allow_undefined_flag=$lt_allow_undefined_flag_RC
18977 # Flag that forces no undefined symbols.
18978 no_undefined_flag=$lt_no_undefined_flag_RC
18980 # Commands used to finish a libtool library installation in a directory.
18981 finish_cmds=$lt_finish_cmds
18983 # Same as above, but a single script fragment to be evaled but not shown.
18984 finish_eval=$lt_finish_eval
18986 # Take the output of nm and produce a listing of raw symbols and C names.
18987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18989 # Transform the output of nm in a proper C declaration
18990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18992 # Transform the output of nm in a C name address pair
18993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18995 # This is the shared library runtime path variable.
18996 runpath_var=$runpath_var
18998 # This is the shared library path variable.
18999 shlibpath_var=$shlibpath_var
19001 # Is shlibpath searched before the hard-coded library search path?
19002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19004 # How to hardcode a shared library path into an executable.
19005 hardcode_action=$hardcode_action_RC
19007 # Whether we should hardcode library paths into libraries.
19008 hardcode_into_libs=$hardcode_into_libs
19010 # Flag to hardcode \$libdir into a binary during linking.
19011 # This must work even if \$libdir does not exist.
19012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19014 # If ld is used when linking, flag to hardcode \$libdir into
19015 # a binary during linking. This must work even if \$libdir does
19017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19019 # Whether we need a single -rpath flag with a separated argument.
19020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19023 # resulting binary.
19024 hardcode_direct=$hardcode_direct_RC
19026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19027 # resulting binary.
19028 hardcode_minus_L=$hardcode_minus_L_RC
19030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19031 # the resulting binary.
19032 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19034 # Set to yes if building a shared library automatically hardcodes DIR into the library
19035 # and all subsequent libraries and executables linked against it.
19036 hardcode_automatic=$hardcode_automatic_RC
19038 # Variables whose values should be saved in libtool wrapper scripts and
19039 # restored at relink time.
19040 variables_saved_for_relink="$variables_saved_for_relink"
19042 # Whether libtool must link a program against all its dependency libraries.
19043 link_all_deplibs=$link_all_deplibs_RC
19045 # Compile-time system search path for libraries
19046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19048 # Run-time system search path for libraries
19049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19051 # Fix the shell variable \$srcfile for the compiler.
19052 fix_srcfile_path="$fix_srcfile_path_RC"
19054 # Set to yes if exported symbols are required.
19055 always_export_symbols=$always_export_symbols_RC
19057 # The commands to list exported symbols.
19058 export_symbols_cmds=$lt_export_symbols_cmds_RC
19060 # The commands to extract the exported symbol list from a shared archive.
19061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19063 # Symbols that should not be listed in the preloaded symbols.
19064 exclude_expsyms=$lt_exclude_expsyms_RC
19066 # Symbols that must always be exported.
19067 include_expsyms=$lt_include_expsyms_RC
19069 # ### END LIBTOOL TAG CONFIG: $tagname
19075 # If there is no Makefile yet, we rely on a make rule to execute
19076 # `config.status --recheck' to rerun these tests and create the
19077 # libtool script then.
19078 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19079 if test -f "$ltmain_in"; then
19080 test -f Makefile && make "$ltmain"
19086 ac_cpp='$CPP $CPPFLAGS'
19087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19096 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19097 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19098 { (exit 1); exit 1; }; }
19102 # Append the new tag name to the list of available tags.
19103 if test -n "$tagname" ; then
19104 available_tags="$available_tags $tagname"
19110 # Now substitute the updated list of available tags.
19111 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19112 mv "${ofile}T" "$ofile"
19116 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19117 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19118 { (exit 1); exit 1; }; }
19124 # This can be used to rebuild libtool when needed
19125 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19127 # Always use our own libtool.
19128 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19130 # Prevent multiple expansion
19151 # Before making a release, the LTVERSION string should be modified.
19152 # The string is of the form C:R:A.
19153 # - If interfaces have been changed or added, but binary compatibility has
19154 # been preserved, change to C+1:0:A+1
19155 # - If binary compatibility has been broken (eg removed or changed interfaces)
19156 # change to C+1:0:0
19157 # - If the interface is the same as the previous version, change to C:R+1:A
19161 echo "$as_me:$LINENO: checking for library containing strerror" >&5
19162 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
19163 if test "${ac_cv_search_strerror+set}" = set; then
19164 echo $ECHO_N "(cached) $ECHO_C" >&6
19166 ac_func_search_save_LIBS=$LIBS
19167 ac_cv_search_strerror=no
19168 cat >conftest.$ac_ext <<_ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h. */
19175 /* Override any gcc2 internal prototype to avoid an error. */
19179 /* We use char because int might match the return type of a gcc2
19180 builtin and then its argument prototype would still apply. */
19190 rm -f conftest.$ac_objext conftest$ac_exeext
19191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19192 (eval $ac_link) 2>conftest.er1
19194 grep -v '^ *+' conftest.er1 >conftest.err
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
19199 { ac_try='test -z "$ac_c_werror_flag"
19200 || test ! -s conftest.err'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; } &&
19206 { ac_try='test -s conftest$ac_exeext'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; }; then
19212 ac_cv_search_strerror="none required"
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19218 rm -f conftest.err conftest.$ac_objext \
19219 conftest$ac_exeext conftest.$ac_ext
19220 if test "$ac_cv_search_strerror" = no; then
19221 for ac_lib in cposix; do
19222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19223 cat >conftest.$ac_ext <<_ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19230 /* Override any gcc2 internal prototype to avoid an error. */
19234 /* We use char because int might match the return type of a gcc2
19235 builtin and then its argument prototype would still apply. */
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19247 (eval $ac_link) 2>conftest.er1
19249 grep -v '^ *+' conftest.er1 >conftest.err
19251 cat conftest.err >&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
19254 { ac_try='test -z "$ac_c_werror_flag"
19255 || test ! -s conftest.err'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try='test -s conftest$ac_exeext'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; }; then
19267 ac_cv_search_strerror="-l$ac_lib"
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19274 rm -f conftest.err conftest.$ac_objext \
19275 conftest$ac_exeext conftest.$ac_ext
19278 LIBS=$ac_func_search_save_LIBS
19280 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
19281 echo "${ECHO_T}$ac_cv_search_strerror" >&6
19282 if test "$ac_cv_search_strerror" != no; then
19283 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
19287 # Find a good install program. We prefer a C program (faster),
19288 # so one script is as good as another. But avoid the broken or
19289 # incompatible versions:
19290 # SysV /etc/install, /usr/sbin/install
19291 # SunOS /usr/etc/install
19292 # IRIX /sbin/install
19294 # AmigaOS /C/install, which installs bootblocks on floppy discs
19295 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19296 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19297 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19298 # OS/2's system install, which has a completely different semantic
19299 # ./install, which can be erroneously created by make from ./install.sh.
19300 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19301 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19302 if test -z "$INSTALL"; then
19303 if test "${ac_cv_path_install+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19307 for as_dir in $PATH
19310 test -z "$as_dir" && as_dir=.
19311 # Account for people who put trailing slashes in PATH elements.
19313 ./ | .// | /cC/* | \
19314 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19315 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19318 # OSF1 and SCO ODT 3.0 have their own names for install.
19319 # Don't use installbsd from OSF since it installs stuff as root
19321 for ac_prog in ginstall scoinst install; do
19322 for ac_exec_ext in '' $ac_executable_extensions; do
19323 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19324 if test $ac_prog = install &&
19325 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19326 # AIX install. It has an incompatible calling convention.
19328 elif test $ac_prog = install &&
19329 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19330 # program-specific install script used by HP pwplus--don't use.
19333 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19345 if test "${ac_cv_path_install+set}" = set; then
19346 INSTALL=$ac_cv_path_install
19348 # As a last resort, use the slow shell script. We don't cache a
19349 # path for INSTALL within a source directory, because that will
19350 # break other packages using the cache if that directory is
19351 # removed, or if the path is relative.
19352 INSTALL=$ac_install_sh
19355 echo "$as_me:$LINENO: result: $INSTALL" >&5
19356 echo "${ECHO_T}$INSTALL" >&6
19358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19359 # It thinks the first close brace ends the variable substitution.
19360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19366 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19367 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19368 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19369 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19372 cat >conftest.make <<\_ACEOF
19374 @echo 'ac_maketemp="$(MAKE)"'
19376 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19377 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19378 if test -n "$ac_maketemp"; then
19379 eval ac_cv_prog_make_${ac_make}_set=yes
19381 eval ac_cv_prog_make_${ac_make}_set=no
19383 rm -f conftest.make
19385 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19386 echo "$as_me:$LINENO: result: yes" >&5
19387 echo "${ECHO_T}yes" >&6
19390 echo "$as_me:$LINENO: result: no" >&5
19391 echo "${ECHO_T}no" >&6
19392 SET_MAKE="MAKE=${MAKE-make}"
19396 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19397 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19398 if test "${ac_cv_header_stdc+set}" = set; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 #include <stdlib.h>
19408 #include <stdarg.h>
19409 #include <string.h>
19420 rm -f conftest.$ac_objext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19422 (eval $ac_compile) 2>conftest.er1
19424 grep -v '^ *+' conftest.er1 >conftest.err
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } &&
19429 { ac_try='test -z "$ac_c_werror_flag"
19430 || test ! -s conftest.err'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try='test -s conftest.$ac_objext'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 ac_cv_header_stdc=yes
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19447 ac_cv_header_stdc=no
19449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19451 if test $ac_cv_header_stdc = yes; then
19452 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19459 #include <string.h>
19462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19463 $EGREP "memchr" >/dev/null 2>&1; then
19466 ac_cv_header_stdc=no
19472 if test $ac_cv_header_stdc = yes; then
19473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19474 cat >conftest.$ac_ext <<_ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19480 #include <stdlib.h>
19483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19484 $EGREP "free" >/dev/null 2>&1; then
19487 ac_cv_header_stdc=no
19493 if test $ac_cv_header_stdc = yes; then
19494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19495 if test "$cross_compiling" = yes; then
19498 cat >conftest.$ac_ext <<_ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19505 #if ((' ' & 0x0FF) == 0x020)
19506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19509 # define ISLOWER(c) \
19510 (('a' <= (c) && (c) <= 'i') \
19511 || ('j' <= (c) && (c) <= 'r') \
19512 || ('s' <= (c) && (c) <= 'z'))
19513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19521 for (i = 0; i < 256; i++)
19522 if (XOR (islower (i), ISLOWER (i))
19523 || toupper (i) != TOUPPER (i))
19528 rm -f conftest$ac_exeext
19529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19530 (eval $ac_link) 2>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19541 echo "$as_me: program exited with status $ac_status" >&5
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19545 ( exit $ac_status )
19546 ac_cv_header_stdc=no
19548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19552 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19553 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19554 if test $ac_cv_header_stdc = yes; then
19556 cat >>confdefs.h <<\_ACEOF
19557 #define STDC_HEADERS 1
19567 for ac_header in fcntl.h limits.h sys/file.h sys/stat.h unistd.h
19569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19571 echo "$as_me:$LINENO: checking for $ac_header" >&5
19572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19579 # Is the header compilable?
19580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 $ac_includes_default
19589 #include <$ac_header>
19591 rm -f conftest.$ac_objext
19592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19593 (eval $ac_compile) 2>conftest.er1
19595 grep -v '^ *+' conftest.er1 >conftest.err
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } &&
19600 { ac_try='test -z "$ac_c_werror_flag"
19601 || test ! -s conftest.err'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest.$ac_objext'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_header_compiler=yes
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 ac_header_compiler=no
19620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19622 echo "${ECHO_T}$ac_header_compiler" >&6
19624 # Is the header present?
19625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19627 cat >conftest.$ac_ext <<_ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19633 #include <$ac_header>
19635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } >/dev/null; then
19643 if test -s conftest.err; then
19644 ac_cpp_err=$ac_c_preproc_warn_flag
19645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19652 if test -z "$ac_cpp_err"; then
19653 ac_header_preproc=yes
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_header_preproc=no
19660 rm -f conftest.err conftest.$ac_ext
19661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19662 echo "${ECHO_T}$ac_header_preproc" >&6
19664 # So? What about this header?
19665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19671 ac_header_preproc=yes
19674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19688 ## ------------------------------------------ ##
19689 ## Report this to the AC_PACKAGE_NAME lists. ##
19690 ## ------------------------------------------ ##
19693 sed "s/^/$as_me: WARNING: /" >&2
19696 echo "$as_me:$LINENO: checking for $ac_header" >&5
19697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 eval "$as_ac_Header=\$ac_header_preproc"
19703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19708 cat >>confdefs.h <<_ACEOF
19709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19719 for ac_header in sys/param.h sys/types.h netinet/in.h
19721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723 echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19731 # Is the header compilable?
19732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19734 cat >conftest.$ac_ext <<_ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h. */
19740 $ac_includes_default
19741 #include <$ac_header>
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>conftest.er1
19747 grep -v '^ *+' conftest.er1 >conftest.err
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } &&
19752 { ac_try='test -z "$ac_c_werror_flag"
19753 || test ! -s conftest.err'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; } &&
19759 { ac_try='test -s conftest.$ac_objext'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_header_compiler=yes
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 ac_header_compiler=no
19772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19774 echo "${ECHO_T}$ac_header_compiler" >&6
19776 # Is the header present?
19777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 #include <$ac_header>
19787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19790 grep -v '^ *+' conftest.er1 >conftest.err
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } >/dev/null; then
19795 if test -s conftest.err; then
19796 ac_cpp_err=$ac_c_preproc_warn_flag
19797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19804 if test -z "$ac_cpp_err"; then
19805 ac_header_preproc=yes
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ac_header_preproc=no
19812 rm -f conftest.err conftest.$ac_ext
19813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19814 echo "${ECHO_T}$ac_header_preproc" >&6
19816 # So? What about this header?
19817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19823 ac_header_preproc=yes
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19840 ## ------------------------------------------ ##
19841 ## Report this to the AC_PACKAGE_NAME lists. ##
19842 ## ------------------------------------------ ##
19845 sed "s/^/$as_me: WARNING: /" >&2
19848 echo "$as_me:$LINENO: checking for $ac_header" >&5
19849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 eval "$as_ac_Header=\$ac_header_preproc"
19855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19860 cat >>confdefs.h <<_ACEOF
19861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19870 for ac_header in io.h windows.h
19872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19874 echo "$as_me:$LINENO: checking for $ac_header" >&5
19875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19877 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19882 # Is the header compilable?
19883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19885 cat >conftest.$ac_ext <<_ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 $ac_includes_default
19892 #include <$ac_header>
19894 rm -f conftest.$ac_objext
19895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19896 (eval $ac_compile) 2>conftest.er1
19898 grep -v '^ *+' conftest.er1 >conftest.err
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } &&
19903 { ac_try='test -z "$ac_c_werror_flag"
19904 || test ! -s conftest.err'
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; } &&
19910 { ac_try='test -s conftest.$ac_objext'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19916 ac_header_compiler=yes
19918 echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 ac_header_compiler=no
19923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19925 echo "${ECHO_T}$ac_header_compiler" >&6
19927 # Is the header present?
19928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19930 cat >conftest.$ac_ext <<_ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936 #include <$ac_header>
19938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19941 grep -v '^ *+' conftest.er1 >conftest.err
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } >/dev/null; then
19946 if test -s conftest.err; then
19947 ac_cpp_err=$ac_c_preproc_warn_flag
19948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19955 if test -z "$ac_cpp_err"; then
19956 ac_header_preproc=yes
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 ac_header_preproc=no
19963 rm -f conftest.err conftest.$ac_ext
19964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19965 echo "${ECHO_T}$ac_header_preproc" >&6
19967 # So? What about this header?
19968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19974 ac_header_preproc=yes
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19991 ## ------------------------------------------ ##
19992 ## Report this to the AC_PACKAGE_NAME lists. ##
19993 ## ------------------------------------------ ##
19996 sed "s/^/$as_me: WARNING: /" >&2
19999 echo "$as_me:$LINENO: checking for $ac_header" >&5
20000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 eval "$as_ac_Header=\$ac_header_preproc"
20006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20011 cat >>confdefs.h <<_ACEOF
20012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20020 echo "$as_me:$LINENO: checking for darts.h" >&5
20021 echo $ECHO_N "checking for darts.h... $ECHO_C" >&6
20023 # Check whether --with-darts or --without-darts was given.
20024 if test "${with_darts+set}" = set; then
20025 withval="$with_darts"
20026 if test "${with_darts}" = yes; then
20027 vi_darts_path="/usr/local/include"
20029 vi_darts_path=${with_darts}
20031 CXXFLAGS="${CXXFLAGS} -I${vi_darts_path}"
20036 ac_cpp='$CXXCPP $CPPFLAGS'
20037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20042 if test "${cl_cv_header_darts+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20046 cat >conftest.$ac_ext <<_ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20061 rm -f conftest.$ac_objext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063 (eval $ac_compile) 2>conftest.er1
20065 grep -v '^ *+' conftest.er1 >conftest.err
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
20070 { ac_try='test -z "$ac_cxx_werror_flag"
20071 || test ! -s conftest.err'
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; } &&
20077 { ac_try='test -s conftest.$ac_objext'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
20083 cl_cv_header_darts=yes
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20089 { { echo "$as_me:$LINENO: error: no header of Darts. You need to fetch Darts from http://cl.aist-nara.ac.jp/~taku-ku/software/darts/." >&5
20090 echo "$as_me: error: no header of Darts. You need to fetch Darts from http://cl.aist-nara.ac.jp/~taku-ku/software/darts/." >&2;}
20091 { (exit 1); exit 1; }; }
20093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20096 echo "$as_me:$LINENO: result: $cl_cv_header_darts" >&5
20097 echo "${ECHO_T}$cl_cv_header_darts" >&6
20099 ac_cpp='$CPP $CPPFLAGS'
20100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20106 # Check whether --with-libiconv or --without-libiconv was given.
20107 if test "${with_libiconv+set}" = set; then
20108 withval="$with_libiconv"
20109 if test x"${with_libiconv}" != x ; then
20110 ICONV_CFLAGS="-I${with_libiconv}/include"
20111 LIBS="$LIBS -L${with_libiconv}/lib"
20117 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
20118 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
20119 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20122 ac_check_lib_save_LIBS=$LIBS
20123 LIBS="-liconv $LIBS"
20124 cat >conftest.$ac_ext <<_ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20131 /* Override any gcc2 internal prototype to avoid an error. */
20135 /* We use char because int might match the return type of a gcc2
20136 builtin and then its argument prototype would still apply. */
20146 rm -f conftest.$ac_objext conftest$ac_exeext
20147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20148 (eval $ac_link) 2>conftest.er1
20150 grep -v '^ *+' conftest.er1 >conftest.err
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } &&
20155 { ac_try='test -z "$ac_c_werror_flag"
20156 || test ! -s conftest.err'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; } &&
20162 { ac_try='test -s conftest$ac_exeext'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; }; then
20168 ac_cv_lib_iconv_iconv=yes
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 ac_cv_lib_iconv_iconv=no
20175 rm -f conftest.err conftest.$ac_objext \
20176 conftest$ac_exeext conftest.$ac_ext
20177 LIBS=$ac_check_lib_save_LIBS
20179 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
20180 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
20181 if test $ac_cv_lib_iconv_iconv = yes; then
20182 cat >>confdefs.h <<_ACEOF
20183 #define HAVE_LIBICONV 1
20186 LIBS="-liconv $LIBS"
20190 if test "${ac_cv_header_iconv_h+set}" = set; then
20191 echo "$as_me:$LINENO: checking for iconv.h" >&5
20192 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
20193 if test "${ac_cv_header_iconv_h+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20196 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
20197 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
20199 # Is the header compilable?
20200 echo "$as_me:$LINENO: checking iconv.h usability" >&5
20201 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
20202 cat >conftest.$ac_ext <<_ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h. */
20208 $ac_includes_default
20211 rm -f conftest.$ac_objext
20212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20213 (eval $ac_compile) 2>conftest.er1
20215 grep -v '^ *+' conftest.er1 >conftest.err
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } &&
20220 { ac_try='test -z "$ac_c_werror_flag"
20221 || test ! -s conftest.err'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; } &&
20227 { ac_try='test -s conftest.$ac_objext'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; }; then
20233 ac_header_compiler=yes
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20238 ac_header_compiler=no
20240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20242 echo "${ECHO_T}$ac_header_compiler" >&6
20244 # Is the header present?
20245 echo "$as_me:$LINENO: checking iconv.h presence" >&5
20246 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
20247 cat >conftest.$ac_ext <<_ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } >/dev/null; then
20263 if test -s conftest.err; then
20264 ac_cpp_err=$ac_c_preproc_warn_flag
20265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20272 if test -z "$ac_cpp_err"; then
20273 ac_header_preproc=yes
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_header_preproc=no
20280 rm -f conftest.err conftest.$ac_ext
20281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20282 echo "${ECHO_T}$ac_header_preproc" >&6
20284 # So? What about this header?
20285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20287 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20288 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20289 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
20290 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
20291 ac_header_preproc=yes
20294 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
20295 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
20296 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
20297 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
20298 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
20299 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
20301 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
20303 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
20305 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
20308 ## ------------------------------------------ ##
20309 ## Report this to the AC_PACKAGE_NAME lists. ##
20310 ## ------------------------------------------ ##
20313 sed "s/^/$as_me: WARNING: /" >&2
20316 echo "$as_me:$LINENO: checking for iconv.h" >&5
20317 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
20318 if test "${ac_cv_header_iconv_h+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 ac_cv_header_iconv_h=$ac_header_preproc
20323 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
20324 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
20327 if test $ac_cv_header_iconv_h = yes; then
20330 { { echo "$as_me:$LINENO: error: ChaSen needs iconv" >&5
20331 echo "$as_me: error: ChaSen needs iconv" >&2;}
20332 { (exit 1); exit 1; }; }
20341 echo "$as_me:$LINENO: checking iconv args" >&5
20342 echo $ECHO_N "checking iconv args... $ECHO_C" >&6
20344 for CODE in EUC-JP EUCJP eucJP; do
20345 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20346 vi_iconv_arg_EUCJP=${CODE}; break
20350 if test x"$vi_iconv_arg_EUCJP" = x; then
20351 { { echo "$as_me:$LINENO: error: cannot use EUC-JP with iconv" >&5
20352 echo "$as_me: error: cannot use EUC-JP with iconv" >&2;}
20353 { (exit 1); exit 1; }; }
20355 cat >>confdefs.h <<_ACEOF
20356 #define ICONV_EUCJP "$vi_iconv_arg_EUCJP"
20361 for CODE in SHIFT_JIS SHIFT-JIS SJIS; do
20362 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20363 vi_iconv_arg_SJIS=${CODE}; break
20367 if test x"$vi_iconv_arg_SJIS" = x; then
20368 { { echo "$as_me:$LINENO: error: cannot use Shift_JIS with iconv" >&5
20369 echo "$as_me: error: cannot use Shift_JIS with iconv" >&2;}
20370 { (exit 1); exit 1; }; }
20372 cat >>confdefs.h <<_ACEOF
20373 #define ICONV_SJIS "$vi_iconv_arg_SJIS"
20378 for CODE in ISO-8859-1 ISO_8859-1 8859-1 ISO8859-1; do
20379 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20380 vi_iconv_arg_88591=${CODE}; break
20384 if test x"$vi_iconv_arg_88591" = x; then
20385 { { echo "$as_me:$LINENO: error: cannot use ISO-8859-1 with iconv" >&5
20386 echo "$as_me: error: cannot use ISO-8859-1 with iconv" >&2;}
20387 { (exit 1); exit 1; }; }
20389 cat >>confdefs.h <<_ACEOF
20390 #define ICONV_88591 "$vi_iconv_arg_88591"
20394 echo "$as_me:$LINENO: result: $vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&5
20395 echo "${ECHO_T}$vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&6
20397 echo "$as_me:$LINENO: checking for off_t" >&5
20398 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20399 if test "${ac_cv_type_off_t+set}" = set; then
20400 echo $ECHO_N "(cached) $ECHO_C" >&6
20402 cat >conftest.$ac_ext <<_ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h. */
20408 $ac_includes_default
20414 if (sizeof (off_t))
20420 rm -f conftest.$ac_objext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422 (eval $ac_compile) 2>conftest.er1
20424 grep -v '^ *+' conftest.er1 >conftest.err
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
20429 { ac_try='test -z "$ac_c_werror_flag"
20430 || test ! -s conftest.err'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest.$ac_objext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 ac_cv_type_off_t=yes
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_cv_type_off_t=no
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20451 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20452 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20453 if test $ac_cv_type_off_t = yes; then
20457 cat >>confdefs.h <<_ACEOF
20463 echo "$as_me:$LINENO: checking for size_t" >&5
20464 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20465 if test "${ac_cv_type_size_t+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 cat >conftest.$ac_ext <<_ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 $ac_includes_default
20480 if (sizeof (size_t))
20486 rm -f conftest.$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488 (eval $ac_compile) 2>conftest.er1
20490 grep -v '^ *+' conftest.er1 >conftest.err
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -z "$ac_c_werror_flag"
20496 || test ! -s conftest.err'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; } &&
20502 { ac_try='test -s conftest.$ac_objext'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_cv_type_size_t=yes
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 ac_cv_type_size_t=no
20515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20517 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20518 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20519 if test $ac_cv_type_size_t = yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define size_t unsigned
20530 echo "$as_me:$LINENO: checking for working memcmp" >&5
20531 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20532 if test "${ac_cv_func_memcmp_working+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 if test "$cross_compiling" = yes; then
20536 ac_cv_func_memcmp_working=no
20538 cat >conftest.$ac_ext <<_ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20544 $ac_includes_default
20549 /* Some versions of memcmp are not 8-bit clean. */
20550 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20551 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20554 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20555 or more and with at least one buffer not starting on a 4-byte boundary.
20556 William Lewis provided this test program. */
20561 for (i = 0; i < 4; i++)
20565 strcpy (a, "--------01111111");
20566 strcpy (b, "--------10000000");
20567 if (memcmp (a, b, 16) >= 0)
20577 rm -f conftest$ac_exeext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579 (eval $ac_link) 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_func_memcmp_working=yes
20590 echo "$as_me: program exited with status $ac_status" >&5
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 ( exit $ac_status )
20595 ac_cv_func_memcmp_working=no
20597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20600 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20601 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20602 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20603 "memcmp.$ac_objext" | \
20604 *" memcmp.$ac_objext" | \
20605 "memcmp.$ac_objext "* | \
20606 *" memcmp.$ac_objext "* ) ;;
20607 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20613 for ac_header in stdlib.h unistd.h
20615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20617 echo "$as_me:$LINENO: checking for $ac_header" >&5
20618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20625 # Is the header compilable?
20626 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20628 cat >conftest.$ac_ext <<_ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20634 $ac_includes_default
20635 #include <$ac_header>
20637 rm -f conftest.$ac_objext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639 (eval $ac_compile) 2>conftest.er1
20641 grep -v '^ *+' conftest.er1 >conftest.err
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } &&
20646 { ac_try='test -z "$ac_c_werror_flag"
20647 || test ! -s conftest.err'
20648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649 (eval $ac_try) 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; } &&
20653 { ac_try='test -s conftest.$ac_objext'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; }; then
20659 ac_header_compiler=yes
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 ac_header_compiler=no
20666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20668 echo "${ECHO_T}$ac_header_compiler" >&6
20670 # Is the header present?
20671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20673 cat >conftest.$ac_ext <<_ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 #include <$ac_header>
20681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20684 grep -v '^ *+' conftest.er1 >conftest.err
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } >/dev/null; then
20689 if test -s conftest.err; then
20690 ac_cpp_err=$ac_c_preproc_warn_flag
20691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20698 if test -z "$ac_cpp_err"; then
20699 ac_header_preproc=yes
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 ac_header_preproc=no
20706 rm -f conftest.err conftest.$ac_ext
20707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20708 echo "${ECHO_T}$ac_header_preproc" >&6
20710 # So? What about this header?
20711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20717 ac_header_preproc=yes
20720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20734 ## ------------------------------------------ ##
20735 ## Report this to the AC_PACKAGE_NAME lists. ##
20736 ## ------------------------------------------ ##
20739 sed "s/^/$as_me: WARNING: /" >&2
20742 echo "$as_me:$LINENO: checking for $ac_header" >&5
20743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 eval "$as_ac_Header=\$ac_header_preproc"
20749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20754 cat >>confdefs.h <<_ACEOF
20755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20763 for ac_func in getpagesize
20765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20766 echo "$as_me:$LINENO: checking for $ac_func" >&5
20767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20768 if eval "test \"\${$as_ac_var+set}\" = set"; then
20769 echo $ECHO_N "(cached) $ECHO_C" >&6
20771 cat >conftest.$ac_ext <<_ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20779 #define $ac_func innocuous_$ac_func
20781 /* System header to define __stub macros and hopefully few prototypes,
20782 which can conflict with char $ac_func (); below.
20783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20784 <limits.h> exists even on freestanding compilers. */
20787 # include <limits.h>
20789 # include <assert.h>
20794 /* Override any gcc2 internal prototype to avoid an error. */
20799 /* We use char because int might match the return type of a gcc2
20800 builtin and then its argument prototype would still apply. */
20802 /* The GNU C library defines this for functions which it implements
20803 to always fail with ENOSYS. Some functions are actually named
20804 something starting with __ and the normal name is an alias. */
20805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20808 char (*f) () = $ac_func;
20817 return f != $ac_func;
20822 rm -f conftest.$ac_objext conftest$ac_exeext
20823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20824 (eval $ac_link) 2>conftest.er1
20826 grep -v '^ *+' conftest.er1 >conftest.err
20828 cat conftest.err >&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } &&
20831 { ac_try='test -z "$ac_c_werror_flag"
20832 || test ! -s conftest.err'
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; } &&
20838 { ac_try='test -s conftest$ac_exeext'
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; }; then
20844 eval "$as_ac_var=yes"
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20849 eval "$as_ac_var=no"
20851 rm -f conftest.err conftest.$ac_objext \
20852 conftest$ac_exeext conftest.$ac_ext
20854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20856 if test `eval echo '${'$as_ac_var'}'` = yes; then
20857 cat >>confdefs.h <<_ACEOF
20858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20864 echo "$as_me:$LINENO: checking for working mmap" >&5
20865 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20866 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 if test "$cross_compiling" = yes; then
20870 ac_cv_func_mmap_fixed_mapped=no
20872 cat >conftest.$ac_ext <<_ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878 $ac_includes_default
20879 /* malloc might have been renamed as rpl_malloc. */
20882 /* Thanks to Mike Haertel and Jim Avera for this test.
20883 Here is a matrix of mmap possibilities:
20884 mmap private not fixed
20885 mmap private fixed at somewhere currently unmapped
20886 mmap private fixed at somewhere already mapped
20887 mmap shared not fixed
20888 mmap shared fixed at somewhere currently unmapped
20889 mmap shared fixed at somewhere already mapped
20890 For private mappings, we should verify that changes cannot be read()
20891 back from the file, nor mmap's back from the file at a different
20892 address. (There have been systems where private was not correctly
20893 implemented like the infamous i386 svr4.0, and systems where the
20894 VM page cache was not coherent with the file system buffer cache
20895 like early versions of FreeBSD and possibly contemporary NetBSD.)
20896 For shared mappings, we should conversely verify that changes get
20897 propagated back to all the places they're supposed to be.
20899 Grep wants private fixed already mapped.
20900 The main things grep needs to know about mmap are:
20901 * does it exist and is it safe to write into the mmap'd area
20902 * how to use it (BSD variants) */
20905 #include <sys/mman.h>
20907 #if !STDC_HEADERS && !HAVE_STDLIB_H
20911 /* This mess was copied from the GNU getpagesize.h. */
20912 #if !HAVE_GETPAGESIZE
20913 /* Assume that all systems that can run configure have sys/param.h. */
20914 # if !HAVE_SYS_PARAM_H
20915 # define HAVE_SYS_PARAM_H 1
20918 # ifdef _SC_PAGESIZE
20919 # define getpagesize() sysconf(_SC_PAGESIZE)
20920 # else /* no _SC_PAGESIZE */
20921 # if HAVE_SYS_PARAM_H
20922 # include <sys/param.h>
20923 # ifdef EXEC_PAGESIZE
20924 # define getpagesize() EXEC_PAGESIZE
20925 # else /* no EXEC_PAGESIZE */
20927 # define getpagesize() NBPG * CLSIZE
20930 # endif /* no CLSIZE */
20931 # else /* no NBPG */
20933 # define getpagesize() NBPC
20934 # else /* no NBPC */
20936 # define getpagesize() PAGESIZE
20937 # endif /* PAGESIZE */
20938 # endif /* no NBPC */
20939 # endif /* no NBPG */
20940 # endif /* no EXEC_PAGESIZE */
20941 # else /* no HAVE_SYS_PARAM_H */
20942 # define getpagesize() 8192 /* punt totally */
20943 # endif /* no HAVE_SYS_PARAM_H */
20944 # endif /* no _SC_PAGESIZE */
20946 #endif /* no HAVE_GETPAGESIZE */
20951 char *data, *data2, *data3;
20955 pagesize = getpagesize ();
20957 /* First, make a file with some known garbage in it. */
20958 data = (char *) malloc (pagesize);
20961 for (i = 0; i < pagesize; ++i)
20962 *(data + i) = rand ();
20964 fd = creat ("conftest.mmap", 0600);
20967 if (write (fd, data, pagesize) != pagesize)
20971 /* Next, try to mmap the file at a fixed address which already has
20972 something else allocated at it. If we can, also make sure that
20973 we see the same garbage. */
20974 fd = open ("conftest.mmap", O_RDWR);
20977 data2 = (char *) malloc (2 * pagesize);
20980 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20981 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20982 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20984 for (i = 0; i < pagesize; ++i)
20985 if (*(data + i) != *(data2 + i))
20988 /* Finally, make sure that changes to the mapped area do not
20989 percolate back to the file as seen by read(). (This is a bug on
20990 some variants of i386 svr4.0.) */
20991 for (i = 0; i < pagesize; ++i)
20992 *(data2 + i) = *(data2 + i) + 1;
20993 data3 = (char *) malloc (pagesize);
20996 if (read (fd, data3, pagesize) != pagesize)
20998 for (i = 0; i < pagesize; ++i)
20999 if (*(data + i) != *(data3 + i))
21005 rm -f conftest$ac_exeext
21006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21007 (eval $ac_link) 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; }; then
21016 ac_cv_func_mmap_fixed_mapped=yes
21018 echo "$as_me: program exited with status $ac_status" >&5
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 ( exit $ac_status )
21023 ac_cv_func_mmap_fixed_mapped=no
21025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21028 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21029 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21030 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21032 cat >>confdefs.h <<\_ACEOF
21033 #define HAVE_MMAP 1
21037 rm -f conftest.mmap
21042 RCPATH='c:\\\\Program Files\\\\chasen\\\\etc\\\\chasenrc'
21046 RCPATH="$sysconfdir/chasenrc"
21051 if test -n "${GCC}"; then
21052 CFLAGS="${CFLAGS} -Wall"
21055 ac_config_files="$ac_config_files Makefile chasen-config chasen/Makefile mkchadic/Makefile doc/Makefile lib/Makefile tests/Makefile chasen.spec"
21056 ac_config_commands="$ac_config_commands default"
21057 cat >confcache <<\_ACEOF
21058 # This file is a shell script that caches the results of configure
21059 # tests run on this system so they can be shared between configure
21060 # scripts and configure runs, see configure's option --config-cache.
21061 # It is not useful on other systems. If it contains results you don't
21062 # want to keep, you may remove or edit it.
21064 # config.status only pays attention to the cache file if you give it
21065 # the --recheck option to rerun configure.
21067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21069 # following values.
21073 # The following way of writing the cache mishandles newlines in values,
21074 # but we know of no workaround that is simple, portable, and efficient.
21075 # So, don't put newlines in cache variables' values.
21076 # Ultrix sh set writes to stderr and can't be redirected directly,
21077 # and sets the high bit in the cache file unless we assign to the vars.
21080 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21082 # `set' does not quote correctly, so add quotes (double-quote
21083 # substitution turns \\\\ into \\, and sed turns \\ into \).
21086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21089 # `set' quotes correctly as required by POSIX, so do not add quotes.
21091 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21100 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21102 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21103 if test -w $cache_file; then
21104 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21105 cat confcache >$cache_file
21107 echo "not updating unwritable cache $cache_file"
21112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21113 # Let make expand exec_prefix.
21114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21116 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21117 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21118 # trailing colons and then remove the whole line if VPATH becomes empty
21119 # (actually we leave an empty line to preserve line numbers).
21120 if test "x$srcdir" = x.; then
21121 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21122 s/:*\$(srcdir):*/:/;
21123 s/:*\${srcdir}:*/:/;
21125 s/^\([^=]*=[ ]*\):*/\1/;
21131 DEFS=-DHAVE_CONFIG_H
21135 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21136 # 1. Remove the extension, and $U if already installed.
21137 ac_i=`echo "$ac_i" |
21138 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21140 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21141 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21143 LIBOBJS=$ac_libobjs
21145 LTLIBOBJS=$ac_ltlibobjs
21148 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21149 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21150 Usually this means the macro was only invoked conditionally." >&5
21151 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21152 Usually this means the macro was only invoked conditionally." >&2;}
21153 { (exit 1); exit 1; }; }
21155 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21156 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21157 Usually this means the macro was only invoked conditionally." >&5
21158 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21159 Usually this means the macro was only invoked conditionally." >&2;}
21160 { (exit 1); exit 1; }; }
21162 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21163 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21164 Usually this means the macro was only invoked conditionally." >&5
21165 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21166 Usually this means the macro was only invoked conditionally." >&2;}
21167 { (exit 1); exit 1; }; }
21169 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21170 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21171 Usually this means the macro was only invoked conditionally." >&5
21172 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21173 Usually this means the macro was only invoked conditionally." >&2;}
21174 { (exit 1); exit 1; }; }
21177 : ${CONFIG_STATUS=./config.status}
21178 ac_clean_files_save=$ac_clean_files
21179 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21180 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21181 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21182 cat >$CONFIG_STATUS <<_ACEOF
21184 # Generated by $as_me.
21185 # Run this file to recreate the current configuration.
21186 # Compiler output produced by configure, useful for debugging
21187 # configure, is in config.log if it exists.
21190 ac_cs_recheck=false
21192 SHELL=\${CONFIG_SHELL-$SHELL}
21195 cat >>$CONFIG_STATUS <<\_ACEOF
21196 ## --------------------- ##
21197 ## M4sh Initialization. ##
21198 ## --------------------- ##
21200 # Be Bourne compatible
21201 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21204 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21205 # is contrary to our usage. Disable this feature.
21206 alias -g '${1+"$@"}'='"$@"'
21207 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21210 DUALCASE=1; export DUALCASE # for MKS sh
21212 # Support unset when possible.
21213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21220 # Work around bugs in pre-3.0 UWIN ksh.
21221 $as_unset ENV MAIL MAILPATH
21228 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21229 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21230 LC_TELEPHONE LC_TIME
21232 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21233 eval $as_var=C; export $as_var
21239 # Required to use basename.
21240 if expr a : '\(a\)' >/dev/null 2>&1; then
21246 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21247 as_basename=basename
21253 # Name of the executable.
21254 as_me=`$as_basename "$0" ||
21255 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21256 X"$0" : 'X\(//\)$' \| \
21257 X"$0" : 'X\(/\)$' \| \
21258 . : '\(.\)' 2>/dev/null ||
21260 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21261 /^X\/\(\/\/\)$/{ s//\1/; q; }
21262 /^X\/\(\/\).*/{ s//\1/; q; }
21266 # PATH needs CR, and LINENO needs CR and PATH.
21267 # Avoid depending upon Character Ranges.
21268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21271 as_cr_digits='0123456789'
21272 as_cr_alnum=$as_cr_Letters$as_cr_digits
21274 # The user is always right.
21275 if test "${PATH_SEPARATOR+set}" != set; then
21276 echo "#! /bin/sh" >conf$$.sh
21277 echo "exit 0" >>conf$$.sh
21279 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21288 as_lineno_1=$LINENO
21289 as_lineno_2=$LINENO
21290 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21291 test "x$as_lineno_1" != "x$as_lineno_2" &&
21292 test "x$as_lineno_3" = "x$as_lineno_2" || {
21293 # Find who we are. Look in the path if we contain no path at all
21296 *[\\/]* ) as_myself=$0 ;;
21297 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21298 for as_dir in $PATH
21301 test -z "$as_dir" && as_dir=.
21302 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21307 # We did not find ourselves, most probably we were run as `sh COMMAND'
21308 # in which case we are not to be found in the path.
21309 if test "x$as_myself" = x; then
21312 if test ! -f "$as_myself"; then
21313 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21314 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21315 { (exit 1); exit 1; }; }
21317 case $CONFIG_SHELL in
21319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21320 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21323 test -z "$as_dir" && as_dir=.
21324 for as_base in sh bash ksh sh5; do
21327 if ("$as_dir/$as_base" -c '
21328 as_lineno_1=$LINENO
21329 as_lineno_2=$LINENO
21330 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21331 test "x$as_lineno_1" != "x$as_lineno_2" &&
21332 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21333 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21334 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21335 CONFIG_SHELL=$as_dir/$as_base
21336 export CONFIG_SHELL
21337 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21345 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21346 # uniformly replaced by the line number. The first 'sed' inserts a
21347 # line-number line before each line; the second 'sed' does the real
21348 # work. The second script uses 'N' to pair each line-number line
21349 # with the numbered line, and appends trailing '-' during
21350 # substitution so that $LINENO is not a special case at line end.
21351 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21352 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21353 sed '=' <$as_myself |
21358 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21361 s,^['$as_cr_digits']*\n,,
21362 ' >$as_me.lineno &&
21363 chmod +x $as_me.lineno ||
21364 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21365 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21366 { (exit 1); exit 1; }; }
21368 # Don't try to exec as it changes $[0], causing all sort of problems
21369 # (the dirname of $[0] is not the place where we might find the
21370 # original and so on. Autoconf is especially sensible to this).
21372 # Exit status is that of the last command.
21377 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21378 *c*,-n*) ECHO_N= ECHO_C='
21380 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21381 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21384 if expr a : '\(a\)' >/dev/null 2>&1; then
21390 rm -f conf$$ conf$$.exe conf$$.file
21392 if ln -s conf$$.file conf$$ 2>/dev/null; then
21393 # We could just check for DJGPP; but this test a) works b) is more generic
21394 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21395 if test -f conf$$.exe; then
21396 # Don't use ln at all; we don't have any links
21401 elif ln conf$$.file conf$$ 2>/dev/null; then
21406 rm -f conf$$ conf$$.exe conf$$.file
21408 if mkdir -p . 2>/dev/null; then
21411 test -d ./-p && rmdir ./-p
21415 as_executable_p="test -f"
21417 # Sed expression to map a string onto a valid CPP name.
21418 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21420 # Sed expression to map a string onto a valid variable name.
21421 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21425 # We need space, tab and new line, in precisely that order.
21435 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21436 # report actual input values of CONFIG_FILES etc. instead of their
21437 # values after options handling. Logging --version etc. is OK.
21441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21442 ## Running $as_me. ##
21447 This file was extended by $as_me, which was
21448 generated by GNU Autoconf 2.59. Invocation command line was
21450 CONFIG_FILES = $CONFIG_FILES
21451 CONFIG_HEADERS = $CONFIG_HEADERS
21452 CONFIG_LINKS = $CONFIG_LINKS
21453 CONFIG_COMMANDS = $CONFIG_COMMANDS
21457 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21461 # Files that config.status was made for.
21462 if test -n "$ac_config_files"; then
21463 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21466 if test -n "$ac_config_headers"; then
21467 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21470 if test -n "$ac_config_links"; then
21471 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21474 if test -n "$ac_config_commands"; then
21475 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21478 cat >>$CONFIG_STATUS <<\_ACEOF
21481 \`$as_me' instantiates files from templates according to the
21482 current configuration.
21484 Usage: $0 [OPTIONS] [FILE]...
21486 -h, --help print this help, then exit
21487 -V, --version print version number, then exit
21488 -q, --quiet do not print progress messages
21489 -d, --debug don't remove temporary files
21490 --recheck update $as_me by reconfiguring in the same conditions
21491 --file=FILE[:TEMPLATE]
21492 instantiate the configuration file FILE
21493 --header=FILE[:TEMPLATE]
21494 instantiate the configuration header FILE
21496 Configuration files:
21499 Configuration headers:
21502 Configuration commands:
21505 Report bugs to <bug-autoconf@gnu.org>."
21508 cat >>$CONFIG_STATUS <<_ACEOF
21511 configured by $0, generated by GNU Autoconf 2.59,
21512 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21514 Copyright (C) 2003 Free Software Foundation, Inc.
21515 This config.status script is free software; the Free Software Foundation
21516 gives unlimited permission to copy, distribute and modify it."
21521 cat >>$CONFIG_STATUS <<\_ACEOF
21522 # If no file are specified by the user, then we need to provide default
21523 # value. By we need to know if files were specified by the user.
21529 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21530 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21538 *) # This is not an option, so the user has probably given explicit
21541 ac_need_defaults=false;;
21545 # Handling of the options.
21547 cat >>$CONFIG_STATUS <<\_ACEOF
21548 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21550 --version | --vers* | -V )
21551 echo "$ac_cs_version"; exit 0 ;;
21553 # Conflict between --help and --header
21554 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21555 Try \`$0 --help' for more information." >&5
21556 echo "$as_me: error: ambiguous option: $1
21557 Try \`$0 --help' for more information." >&2;}
21558 { (exit 1); exit 1; }; };;
21559 --help | --hel | -h )
21560 echo "$ac_cs_usage"; exit 0 ;;
21561 --debug | --d* | -d )
21563 --file | --fil | --fi | --f )
21565 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21566 ac_need_defaults=false;;
21567 --header | --heade | --head | --hea )
21569 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21570 ac_need_defaults=false;;
21571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21572 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21575 # This is an error.
21576 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21577 Try \`$0 --help' for more information." >&5
21578 echo "$as_me: error: unrecognized option: $1
21579 Try \`$0 --help' for more information." >&2;}
21580 { (exit 1); exit 1; }; } ;;
21582 *) ac_config_targets="$ac_config_targets $1" ;;
21588 ac_configure_extra_args=
21590 if $ac_cs_silent; then
21592 ac_configure_extra_args="$ac_configure_extra_args --silent"
21596 cat >>$CONFIG_STATUS <<_ACEOF
21597 if \$ac_cs_recheck; then
21598 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21599 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21604 cat >>$CONFIG_STATUS <<_ACEOF
21606 # INIT-COMMANDS section.
21609 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21615 cat >>$CONFIG_STATUS <<\_ACEOF
21616 for ac_config_target in $ac_config_targets
21618 case "$ac_config_target" in
21619 # Handling of arguments.
21620 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21621 "chasen-config" ) CONFIG_FILES="$CONFIG_FILES chasen-config" ;;
21622 "chasen/Makefile" ) CONFIG_FILES="$CONFIG_FILES chasen/Makefile" ;;
21623 "mkchadic/Makefile" ) CONFIG_FILES="$CONFIG_FILES mkchadic/Makefile" ;;
21624 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21625 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21626 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21627 "chasen.spec" ) CONFIG_FILES="$CONFIG_FILES chasen.spec" ;;
21628 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21629 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21630 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21631 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21632 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21633 { (exit 1); exit 1; }; };;
21637 # If the user did not use the arguments to specify the items to instantiate,
21638 # then the envvar interface is used. Set only those that are not.
21639 # We use the long form for the default assignment because of an extremely
21640 # bizarre bug on SunOS 4.1.3.
21641 if $ac_need_defaults; then
21642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21647 # Have a temporary directory for convenience. Make it in the build tree
21648 # simply because there is no reason to put it here, and in addition,
21649 # creating and moving files from /tmp can sometimes cause problems.
21650 # Create a temporary directory, and hook for its removal unless debugging.
21653 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21654 trap '{ (exit 1); exit 1; }' 1 2 13 15
21657 # Create a (secure) tmp directory for tmp files.
21660 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21661 test -n "$tmp" && test -d "$tmp"
21664 tmp=./confstat$$-$RANDOM
21665 (umask 077 && mkdir $tmp)
21668 echo "$me: cannot create a temporary directory in ." >&2
21669 { (exit 1); exit 1; }
21674 cat >>$CONFIG_STATUS <<_ACEOF
21677 # CONFIG_FILES section.
21680 # No need to generate the scripts if there are no CONFIG_FILES.
21681 # This happens for instance when ./config.status config.h
21682 if test -n "\$CONFIG_FILES"; then
21683 # Protect against being on the right side of a sed subst in config.status.
21684 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21685 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21686 s,@SHELL@,$SHELL,;t t
21687 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21688 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21689 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21690 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21691 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21692 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21693 s,@exec_prefix@,$exec_prefix,;t t
21694 s,@prefix@,$prefix,;t t
21695 s,@program_transform_name@,$program_transform_name,;t t
21696 s,@bindir@,$bindir,;t t
21697 s,@sbindir@,$sbindir,;t t
21698 s,@libexecdir@,$libexecdir,;t t
21699 s,@datadir@,$datadir,;t t
21700 s,@sysconfdir@,$sysconfdir,;t t
21701 s,@sharedstatedir@,$sharedstatedir,;t t
21702 s,@localstatedir@,$localstatedir,;t t
21703 s,@libdir@,$libdir,;t t
21704 s,@includedir@,$includedir,;t t
21705 s,@oldincludedir@,$oldincludedir,;t t
21706 s,@infodir@,$infodir,;t t
21707 s,@mandir@,$mandir,;t t
21708 s,@build_alias@,$build_alias,;t t
21709 s,@host_alias@,$host_alias,;t t
21710 s,@target_alias@,$target_alias,;t t
21711 s,@DEFS@,$DEFS,;t t
21712 s,@ECHO_C@,$ECHO_C,;t t
21713 s,@ECHO_N@,$ECHO_N,;t t
21714 s,@ECHO_T@,$ECHO_T,;t t
21715 s,@LIBS@,$LIBS,;t t
21716 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21717 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21718 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21719 s,@CYGPATH_W@,$CYGPATH_W,;t t
21720 s,@PACKAGE@,$PACKAGE,;t t
21721 s,@VERSION@,$VERSION,;t t
21722 s,@ACLOCAL@,$ACLOCAL,;t t
21723 s,@AUTOCONF@,$AUTOCONF,;t t
21724 s,@AUTOMAKE@,$AUTOMAKE,;t t
21725 s,@AUTOHEADER@,$AUTOHEADER,;t t
21726 s,@MAKEINFO@,$MAKEINFO,;t t
21727 s,@install_sh@,$install_sh,;t t
21728 s,@STRIP@,$STRIP,;t t
21729 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21730 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21731 s,@mkdir_p@,$mkdir_p,;t t
21733 s,@SET_MAKE@,$SET_MAKE,;t t
21734 s,@am__leading_dot@,$am__leading_dot,;t t
21735 s,@AMTAR@,$AMTAR,;t t
21736 s,@am__tar@,$am__tar,;t t
21737 s,@am__untar@,$am__untar,;t t
21738 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21739 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21740 s,@MAINT@,$MAINT,;t t
21742 s,@CFLAGS@,$CFLAGS,;t t
21743 s,@LDFLAGS@,$LDFLAGS,;t t
21744 s,@CPPFLAGS@,$CPPFLAGS,;t t
21745 s,@ac_ct_CC@,$ac_ct_CC,;t t
21746 s,@EXEEXT@,$EXEEXT,;t t
21747 s,@OBJEXT@,$OBJEXT,;t t
21748 s,@DEPDIR@,$DEPDIR,;t t
21749 s,@am__include@,$am__include,;t t
21750 s,@am__quote@,$am__quote,;t t
21751 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21752 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21753 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21754 s,@CCDEPMODE@,$CCDEPMODE,;t t
21755 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21756 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21758 s,@CXXFLAGS@,$CXXFLAGS,;t t
21759 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21760 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21761 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21762 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21763 s,@build@,$build,;t t
21764 s,@build_cpu@,$build_cpu,;t t
21765 s,@build_vendor@,$build_vendor,;t t
21766 s,@build_os@,$build_os,;t t
21767 s,@host@,$host,;t t
21768 s,@host_cpu@,$host_cpu,;t t
21769 s,@host_vendor@,$host_vendor,;t t
21770 s,@host_os@,$host_os,;t t
21771 s,@EGREP@,$EGREP,;t t
21772 s,@LN_S@,$LN_S,;t t
21773 s,@ECHO@,$ECHO,;t t
21775 s,@ac_ct_AR@,$ac_ct_AR,;t t
21776 s,@RANLIB@,$RANLIB,;t t
21777 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21779 s,@CXXCPP@,$CXXCPP,;t t
21781 s,@FFLAGS@,$FFLAGS,;t t
21782 s,@ac_ct_F77@,$ac_ct_F77,;t t
21783 s,@LIBTOOL@,$LIBTOOL,;t t
21784 s,@LTVERSION@,$LTVERSION,;t t
21785 s,@ICONV_CFLAGS@,$ICONV_CFLAGS,;t t
21786 s,@LIBOBJS@,$LIBOBJS,;t t
21787 s,@RCPATH@,$RCPATH,;t t
21788 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21793 cat >>$CONFIG_STATUS <<\_ACEOF
21794 # Split the substitutions into bite-sized pieces for seds with
21795 # small command number limits, like on Digital OSF/1 and HP-UX.
21796 ac_max_sed_lines=48
21797 ac_sed_frag=1 # Number of current file.
21798 ac_beg=1 # First line for current file.
21799 ac_end=$ac_max_sed_lines # Line after last line for current file.
21802 while $ac_more_lines; do
21803 if test $ac_beg -gt 1; then
21804 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21806 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21808 if test ! -s $tmp/subs.frag; then
21809 ac_more_lines=false
21811 # The purpose of the label and of the branching condition is to
21812 # speed up the sed processing (if there are no `@' at all, there
21813 # is no need to browse any of the substitutions).
21814 # These are the two extra sed commands mentioned above.
21816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21817 if test -z "$ac_sed_cmds"; then
21818 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21820 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21822 ac_sed_frag=`expr $ac_sed_frag + 1`
21824 ac_end=`expr $ac_end + $ac_max_sed_lines`
21827 if test -z "$ac_sed_cmds"; then
21830 fi # test -n "$CONFIG_FILES"
21833 cat >>$CONFIG_STATUS <<\_ACEOF
21834 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21835 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21837 - | *:- | *:-:* ) # input from stdin
21839 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21840 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21841 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21843 * ) ac_file_in=$ac_file.in ;;
21846 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21847 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21848 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21849 X"$ac_file" : 'X\(//\)[^/]' \| \
21850 X"$ac_file" : 'X\(//\)$' \| \
21851 X"$ac_file" : 'X\(/\)' \| \
21852 . : '\(.\)' 2>/dev/null ||
21854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21856 /^X\(\/\/\)$/{ s//\1/; q; }
21857 /^X\(\/\).*/{ s//\1/; q; }
21859 { if $as_mkdir_p; then
21864 while test ! -d "$as_dir"; do
21865 as_dirs="$as_dir $as_dirs"
21866 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21868 X"$as_dir" : 'X\(//\)[^/]' \| \
21869 X"$as_dir" : 'X\(//\)$' \| \
21870 X"$as_dir" : 'X\(/\)' \| \
21871 . : '\(.\)' 2>/dev/null ||
21873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21875 /^X\(\/\/\)$/{ s//\1/; q; }
21876 /^X\(\/\).*/{ s//\1/; q; }
21879 test ! -n "$as_dirs" || mkdir $as_dirs
21880 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21881 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21882 { (exit 1); exit 1; }; }; }
21886 if test "$ac_dir" != .; then
21887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21888 # A "../" for each directory in $ac_dir_suffix.
21889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21891 ac_dir_suffix= ac_top_builddir=
21895 .) # No --srcdir option. We are building in place.
21897 if test -z "$ac_top_builddir"; then
21900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21902 [\\/]* | ?:[\\/]* ) # Absolute path.
21903 ac_srcdir=$srcdir$ac_dir_suffix;
21904 ac_top_srcdir=$srcdir ;;
21905 *) # Relative path.
21906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21910 # Do not use `cd foo && pwd` to compute absolute paths, because
21911 # the directories may not exist.
21913 .) ac_abs_builddir="$ac_dir";;
21916 .) ac_abs_builddir=`pwd`;;
21917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21918 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21921 case $ac_abs_builddir in
21922 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21924 case ${ac_top_builddir}. in
21925 .) ac_abs_top_builddir=$ac_abs_builddir;;
21926 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21927 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21930 case $ac_abs_builddir in
21931 .) ac_abs_srcdir=$ac_srcdir;;
21934 .) ac_abs_srcdir=$ac_abs_builddir;;
21935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21939 case $ac_abs_builddir in
21940 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21942 case $ac_top_srcdir in
21943 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21944 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21945 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21951 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21952 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21955 if test x"$ac_file" != x-; then
21956 { echo "$as_me:$LINENO: creating $ac_file" >&5
21957 echo "$as_me: creating $ac_file" >&6;}
21960 # Let's still pretend it is `configure' which instantiates (i.e., don't
21961 # use $as_me), people would be surprised to read:
21962 # /* config.h. Generated by config.status. */
21963 if test x"$ac_file" = x-; then
21966 configure_input="$ac_file. "
21968 configure_input=$configure_input"Generated from `echo $ac_file_in |
21969 sed 's,.*/,,'` by configure."
21971 # First look for the input files in the build tree, otherwise in the
21973 ac_file_inputs=`IFS=:
21974 for f in $ac_file_in; do
21976 -) echo $tmp/stdin ;;
21978 # Absolute (can't be DOS-style, as IFS=:)
21979 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21980 echo "$as_me: error: cannot find input file: $f" >&2;}
21981 { (exit 1); exit 1; }; }
21984 if test -f "$f"; then
21987 elif test -f "$srcdir/$f"; then
21992 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21993 echo "$as_me: error: cannot find input file: $f" >&2;}
21994 { (exit 1); exit 1; }; }
21997 done` || { (exit 1); exit 1; }
21999 cat >>$CONFIG_STATUS <<_ACEOF
22003 cat >>$CONFIG_STATUS <<\_ACEOF
22005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22006 s,@configure_input@,$configure_input,;t t
22007 s,@srcdir@,$ac_srcdir,;t t
22008 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22009 s,@top_srcdir@,$ac_top_srcdir,;t t
22010 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22011 s,@builddir@,$ac_builddir,;t t
22012 s,@abs_builddir@,$ac_abs_builddir,;t t
22013 s,@top_builddir@,$ac_top_builddir,;t t
22014 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22015 s,@INSTALL@,$ac_INSTALL,;t t
22016 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22018 if test x"$ac_file" != x-; then
22019 mv $tmp/out $ac_file
22027 cat >>$CONFIG_STATUS <<\_ACEOF
22030 # CONFIG_HEADER section.
22033 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22034 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22036 # ac_d sets the value in "#define NAME VALUE" lines.
22037 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22038 ac_dB='[ ].*$,\1#\2'
22041 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22042 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22043 ac_uB='$,\1#\2define\3'
22047 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22048 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22050 - | *:- | *:-:* ) # input from stdin
22052 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22053 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22054 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22056 * ) ac_file_in=$ac_file.in ;;
22059 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22060 echo "$as_me: creating $ac_file" >&6;}
22062 # First look for the input files in the build tree, otherwise in the
22064 ac_file_inputs=`IFS=:
22065 for f in $ac_file_in; do
22067 -) echo $tmp/stdin ;;
22069 # Absolute (can't be DOS-style, as IFS=:)
22070 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22071 echo "$as_me: error: cannot find input file: $f" >&2;}
22072 { (exit 1); exit 1; }; }
22073 # Do quote $f, to prevent DOS paths from being IFS'd.
22076 if test -f "$f"; then
22079 elif test -f "$srcdir/$f"; then
22084 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22085 echo "$as_me: error: cannot find input file: $f" >&2;}
22086 { (exit 1); exit 1; }; }
22089 done` || { (exit 1); exit 1; }
22090 # Remove the trailing spaces.
22091 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22095 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22096 # `conftest.undefs', that substitutes the proper values into
22097 # config.h.in to produce config.h. The first handles `#define'
22098 # templates, and the second `#undef' templates.
22099 # And first: Protect against being on the right side of a sed subst in
22100 # config.status. Protect against being in an unquoted here document
22101 # in config.status.
22102 rm -f conftest.defines conftest.undefs
22103 # Using a here document instead of a string reduces the quoting nightmare.
22104 # Putting comments in sed scripts is not portable.
22106 # `end' is used to avoid that the second main sed command (meant for
22107 # 0-ary CPP macros) applies to n-ary macro definitions.
22108 # See the Autoconf documentation for `clear'.
22109 cat >confdef2sed.sed <<\_ACEOF
22114 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22116 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22119 # If some macros were called several times there might be several times
22120 # the same #defines, which is useless. Nevertheless, we may not want to
22121 # sort them, since we want the *last* AC-DEFINE to be honored.
22122 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22123 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22124 rm -f confdef2sed.sed
22126 # This sed command replaces #undef with comments. This is necessary, for
22127 # example, in the case of _POSIX_SOURCE, which is predefined and required
22128 # on some systems where configure will not decide to define it.
22129 cat >>conftest.undefs <<\_ACEOF
22130 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22133 # Break up conftest.defines because some shells have a limit on the size
22134 # of here documents, and old seds have small limits too (100 cmds).
22135 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22136 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22137 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22138 echo ' :' >>$CONFIG_STATUS
22139 rm -f conftest.tail
22140 while grep . conftest.defines >/dev/null
22142 # Write a limited-size here document to $tmp/defines.sed.
22143 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22144 # Speed up: don't consider the non `#define' lines.
22145 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22146 # Work around the forget-to-reset-the-flag bug.
22147 echo 't clr' >>$CONFIG_STATUS
22148 echo ': clr' >>$CONFIG_STATUS
22149 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22151 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22153 mv $tmp/out $tmp/in
22155 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22156 rm -f conftest.defines
22157 mv conftest.tail conftest.defines
22159 rm -f conftest.defines
22160 echo ' fi # grep' >>$CONFIG_STATUS
22161 echo >>$CONFIG_STATUS
22163 # Break up conftest.undefs because some shells have a limit on the size
22164 # of here documents, and old seds have small limits too (100 cmds).
22165 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22166 rm -f conftest.tail
22167 while grep . conftest.undefs >/dev/null
22169 # Write a limited-size here document to $tmp/undefs.sed.
22170 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22171 # Speed up: don't consider the non `#undef'
22172 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22173 # Work around the forget-to-reset-the-flag bug.
22174 echo 't clr' >>$CONFIG_STATUS
22175 echo ': clr' >>$CONFIG_STATUS
22176 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22178 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22180 mv $tmp/out $tmp/in
22182 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22183 rm -f conftest.undefs
22184 mv conftest.tail conftest.undefs
22186 rm -f conftest.undefs
22188 cat >>$CONFIG_STATUS <<\_ACEOF
22189 # Let's still pretend it is `configure' which instantiates (i.e., don't
22190 # use $as_me), people would be surprised to read:
22191 # /* config.h. Generated by config.status. */
22192 if test x"$ac_file" = x-; then
22193 echo "/* Generated by configure. */" >$tmp/config.h
22195 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22197 cat $tmp/in >>$tmp/config.h
22199 if test x"$ac_file" != x-; then
22200 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22201 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22202 echo "$as_me: $ac_file is unchanged" >&6;}
22204 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22206 X"$ac_file" : 'X\(//\)[^/]' \| \
22207 X"$ac_file" : 'X\(//\)$' \| \
22208 X"$ac_file" : 'X\(/\)' \| \
22209 . : '\(.\)' 2>/dev/null ||
22211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22213 /^X\(\/\/\)$/{ s//\1/; q; }
22214 /^X\(\/\).*/{ s//\1/; q; }
22216 { if $as_mkdir_p; then
22221 while test ! -d "$as_dir"; do
22222 as_dirs="$as_dir $as_dirs"
22223 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22225 X"$as_dir" : 'X\(//\)[^/]' \| \
22226 X"$as_dir" : 'X\(//\)$' \| \
22227 X"$as_dir" : 'X\(/\)' \| \
22228 . : '\(.\)' 2>/dev/null ||
22230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22232 /^X\(\/\/\)$/{ s//\1/; q; }
22233 /^X\(\/\).*/{ s//\1/; q; }
22236 test ! -n "$as_dirs" || mkdir $as_dirs
22237 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22238 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22239 { (exit 1); exit 1; }; }; }
22242 mv $tmp/config.h $ac_file
22246 rm -f $tmp/config.h
22248 # Compute $ac_file's index in $config_headers.
22250 for _am_header in $config_headers :; do
22251 case $_am_header in
22252 $ac_file | $ac_file:* )
22255 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22258 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22259 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22260 X$ac_file : 'X\(//\)[^/]' \| \
22261 X$ac_file : 'X\(//\)$' \| \
22262 X$ac_file : 'X\(/\)' \| \
22263 . : '\(.\)' 2>/dev/null ||
22265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22267 /^X\(\/\/\)$/{ s//\1/; q; }
22268 /^X\(\/\).*/{ s//\1/; q; }
22269 s/.*/./; q'`/stamp-h$_am_stamp_count
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22275 # CONFIG_COMMANDS section.
22277 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22278 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22279 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22280 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22281 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22282 X"$ac_dest" : 'X\(//\)[^/]' \| \
22283 X"$ac_dest" : 'X\(//\)$' \| \
22284 X"$ac_dest" : 'X\(/\)' \| \
22285 . : '\(.\)' 2>/dev/null ||
22287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22289 /^X\(\/\/\)$/{ s//\1/; q; }
22290 /^X\(\/\).*/{ s//\1/; q; }
22292 { if $as_mkdir_p; then
22297 while test ! -d "$as_dir"; do
22298 as_dirs="$as_dir $as_dirs"
22299 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301 X"$as_dir" : 'X\(//\)[^/]' \| \
22302 X"$as_dir" : 'X\(//\)$' \| \
22303 X"$as_dir" : 'X\(/\)' \| \
22304 . : '\(.\)' 2>/dev/null ||
22306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22308 /^X\(\/\/\)$/{ s//\1/; q; }
22309 /^X\(\/\).*/{ s//\1/; q; }
22312 test ! -n "$as_dirs" || mkdir $as_dirs
22313 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22315 { (exit 1); exit 1; }; }; }
22319 if test "$ac_dir" != .; then
22320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22321 # A "../" for each directory in $ac_dir_suffix.
22322 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22324 ac_dir_suffix= ac_top_builddir=
22328 .) # No --srcdir option. We are building in place.
22330 if test -z "$ac_top_builddir"; then
22333 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22335 [\\/]* | ?:[\\/]* ) # Absolute path.
22336 ac_srcdir=$srcdir$ac_dir_suffix;
22337 ac_top_srcdir=$srcdir ;;
22338 *) # Relative path.
22339 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22340 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22343 # Do not use `cd foo && pwd` to compute absolute paths, because
22344 # the directories may not exist.
22346 .) ac_abs_builddir="$ac_dir";;
22349 .) ac_abs_builddir=`pwd`;;
22350 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22351 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22354 case $ac_abs_builddir in
22355 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22357 case ${ac_top_builddir}. in
22358 .) ac_abs_top_builddir=$ac_abs_builddir;;
22359 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22360 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22363 case $ac_abs_builddir in
22364 .) ac_abs_srcdir=$ac_srcdir;;
22367 .) ac_abs_srcdir=$ac_abs_builddir;;
22368 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22369 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22372 case $ac_abs_builddir in
22373 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22375 case $ac_top_srcdir in
22376 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22377 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22378 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22383 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22384 echo "$as_me: executing $ac_dest commands" >&6;}
22386 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22387 # Strip MF so we end up with the name of the file.
22388 mf=`echo "$mf" | sed -e 's/:.*$//'`
22389 # Check whether this is an Automake generated Makefile or not.
22390 # We used to match only the files named `Makefile.in', but
22391 # some people rename them; so instead we look at the file content.
22392 # Grep'ing the first line is not enough: some people post-process
22393 # each Makefile.in and add a new line on top of each file to say so.
22394 # So let's grep whole file.
22395 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22396 dirpart=`(dirname "$mf") 2>/dev/null ||
22397 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22398 X"$mf" : 'X\(//\)[^/]' \| \
22399 X"$mf" : 'X\(//\)$' \| \
22400 X"$mf" : 'X\(/\)' \| \
22401 . : '\(.\)' 2>/dev/null ||
22403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22405 /^X\(\/\/\)$/{ s//\1/; q; }
22406 /^X\(\/\).*/{ s//\1/; q; }
22411 # Extract the definition of DEPDIR, am__include, and am__quote
22412 # from the Makefile without running `make'.
22413 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22414 test -z "$DEPDIR" && continue
22415 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22416 test -z "am__include" && continue
22417 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22418 # When using ansi2knr, U may be empty or an underscore; expand it
22419 U=`sed -n 's/^U = //p' < "$mf"`
22420 # Find all dependency output files, they are included files with
22421 # $(DEPDIR) in their names. We invoke sed twice because it is the
22422 # simplest approach to changing $(DEPDIR) to its actual value in the
22424 for file in `sed -n "
22425 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22426 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22427 # Make sure the directory exists.
22428 test -f "$dirpart/$file" && continue
22429 fdir=`(dirname "$file") 2>/dev/null ||
22430 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22431 X"$file" : 'X\(//\)[^/]' \| \
22432 X"$file" : 'X\(//\)$' \| \
22433 X"$file" : 'X\(/\)' \| \
22434 . : '\(.\)' 2>/dev/null ||
22436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22438 /^X\(\/\/\)$/{ s//\1/; q; }
22439 /^X\(\/\).*/{ s//\1/; q; }
22441 { if $as_mkdir_p; then
22442 mkdir -p $dirpart/$fdir
22444 as_dir=$dirpart/$fdir
22446 while test ! -d "$as_dir"; do
22447 as_dirs="$as_dir $as_dirs"
22448 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22450 X"$as_dir" : 'X\(//\)[^/]' \| \
22451 X"$as_dir" : 'X\(//\)$' \| \
22452 X"$as_dir" : 'X\(/\)' \| \
22453 . : '\(.\)' 2>/dev/null ||
22455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22457 /^X\(\/\/\)$/{ s//\1/; q; }
22458 /^X\(\/\).*/{ s//\1/; q; }
22461 test ! -n "$as_dirs" || mkdir $as_dirs
22462 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22463 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22464 { (exit 1); exit 1; }; }; }
22466 # echo "creating $dirpart/$file"
22467 echo '# dummy' > "$dirpart/$file"
22471 default ) chmod +x chasen-config ;;
22476 cat >>$CONFIG_STATUS <<\_ACEOF
22478 { (exit 0); exit 0; }
22480 chmod +x $CONFIG_STATUS
22481 ac_clean_files=$ac_clean_files_save
22484 # configure is writing to config.log, and then calls config.status.
22485 # config.status does its own redirection, appending to config.log.
22486 # Unfortunately, on DOS this fails, as config.log is still kept open
22487 # by configure, so config.status won't be able to write to it; its
22488 # output is simply discarded. So we exec the FD to /dev/null,
22489 # effectively closing config.log, so it can be properly (re)opened and
22490 # appended to by config.status. When coming back to configure, we
22491 # need to make the FD available again.
22492 if test "$no_create" != yes; then
22494 ac_config_status_args=
22495 test "$silent" = yes &&
22496 ac_config_status_args="$ac_config_status_args --quiet"
22498 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22500 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22501 # would make configure fail if this is the last instruction.
22502 $ac_cs_success || { (exit 1); exit 1; }
22507 # removed the following entry from AC_OUTPUT
22508 # lib/Makefile.mingw32
22511 # mode:shell-script