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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 LIB@&t@OBJS 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
1044 --with-tags@<:@=TAGS@:>@
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
1181 @%:@@%:@ --------- @%:@@%:@
1182 @%:@@%:@ Platform. @%:@@%:@
1183 @%:@@%:@ --------- @%:@@%:@
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"
1217 @%:@@%:@ ----------- @%:@@%:@
1218 @%:@@%:@ Core tests. @%:@@%:@
1219 @%:@@%:@ ----------- @%:@@%:@
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
1323 @%:@@%:@ ------------- @%:@@%:@
1324 @%:@@%:@ Output files. @%:@@%:@
1325 @%:@@%:@ ------------- @%:@@%:@
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
1338 @%:@@%:@ ----------- @%:@@%:@
1339 @%:@@%:@ confdefs.h. @%:@@%:@
1340 @%:@@%:@ ----------- @%:@@%:@
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.8"
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 # Keeping the `.' argument allows $(mkdir_p) to be used without
1680 # argument. Indeed, we sometimes output rules like
1681 # $(mkdir_p) $(somedir)
1682 # where $(somedir) is conditionally defined.
1683 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1684 # expensive solution, as it forces Make to start a sub-shell.)
1685 mkdir_p='mkdir -p -- .'
1687 # On NextStep and OpenStep, the `mkdir' command does not
1688 # recognize any option. It will interpret all options as
1689 # directories to create, and then abort because `.' already
1691 for d in ./-p ./--version;
1693 test -d $d && rmdir $d
1695 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1696 if test -f "$ac_aux_dir/mkinstalldirs"; then
1697 mkdir_p='$(mkinstalldirs)'
1699 mkdir_p='$(install_sh) -d'
1703 for ac_prog in gawk mawk nawk awk
1705 # Extract the first word of "$ac_prog", so it can be a program name with args.
1706 set dummy $ac_prog; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_AWK+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 if test -n "$AWK"; then
1713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_AWK="$ac_prog"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 if test -n "$AWK"; then
1733 echo "$as_me:$LINENO: result: $AWK" >&5
1734 echo "${ECHO_T}$AWK" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 test -n "$AWK" && break
1743 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1744 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1745 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1746 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 cat >conftest.make <<\_ACEOF
1751 @echo 'ac_maketemp="$(MAKE)"'
1753 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1754 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1755 if test -n "$ac_maketemp"; then
1756 eval ac_cv_prog_make_${ac_make}_set=yes
1758 eval ac_cv_prog_make_${ac_make}_set=no
1762 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1763 echo "$as_me:$LINENO: result: yes" >&5
1764 echo "${ECHO_T}yes" >&6
1767 echo "$as_me:$LINENO: result: no" >&5
1768 echo "${ECHO_T}no" >&6
1769 SET_MAKE="MAKE=${MAKE-make}"
1772 rm -rf .tst 2>/dev/null
1773 mkdir .tst 2>/dev/null
1774 if test -d .tst; then
1779 rmdir .tst 2>/dev/null
1781 # test to see if srcdir already configured
1782 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1783 test -f $srcdir/config.status; then
1784 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1785 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1786 { (exit 1); exit 1; }; }
1789 # test whether we have cygpath
1790 if test -z "$CYGPATH_W"; then
1791 if (cygpath --version) >/dev/null 2>/dev/null; then
1792 CYGPATH_W='cygpath -w'
1799 # Define the identity of the package.
1801 VERSION=2.4.0-preview1
1804 cat >>confdefs.h <<_ACEOF
1805 @%:@define PACKAGE "$PACKAGE"
1809 cat >>confdefs.h <<_ACEOF
1810 @%:@define VERSION "$VERSION"
1813 # Some tools Automake needs.
1815 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1818 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1821 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1824 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1827 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1830 AMTAR=${AMTAR-"${am_missing_run}tar"}
1832 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1834 # Installed binaries are usually stripped using `strip' when the user
1835 # run `make install-strip'. However `strip' might not be the right
1836 # tool to use in cross-compilation environments, therefore Automake
1837 # will honor the `STRIP' environment variable to overrule this program.
1838 if test "$cross_compiling" != no; then
1839 if test -n "$ac_tool_prefix"; then
1840 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1841 set dummy ${ac_tool_prefix}strip; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_STRIP+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 if test -n "$STRIP"; then
1848 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 STRIP=$ac_cv_prog_STRIP
1867 if test -n "$STRIP"; then
1868 echo "$as_me:$LINENO: result: $STRIP" >&5
1869 echo "${ECHO_T}$STRIP" >&6
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1876 if test -z "$ac_cv_prog_STRIP"; then
1878 # Extract the first word of "strip", so it can be a program name with args.
1879 set dummy strip; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$ac_ct_STRIP"; then
1886 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_ac_ct_STRIP="strip"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1906 if test -n "$ac_ct_STRIP"; then
1907 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1908 echo "${ECHO_T}$ac_ct_STRIP" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1916 STRIP="$ac_cv_prog_STRIP"
1920 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1922 # We need awk for the "check" target. The system "awk" is bad on
1927 ac_config_headers="$ac_config_headers config.h"
1929 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1930 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1931 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1932 if test "${enable_maintainer_mode+set}" = set; then
1933 enableval="$enable_maintainer_mode"
1934 USE_MAINTAINER_MODE=$enableval
1936 USE_MAINTAINER_MODE=no
1938 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1939 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1942 if test $USE_MAINTAINER_MODE = yes; then
1943 MAINTAINER_MODE_TRUE=
1944 MAINTAINER_MODE_FALSE='#'
1946 MAINTAINER_MODE_TRUE='#'
1947 MAINTAINER_MODE_FALSE=
1950 MAINT=$MAINTAINER_MODE_TRUE
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1961 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 if test -n "$CC"; then
1968 ac_cv_prog_CC="$CC" # Let the user override the test.
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 if test -n "$CC"; then
1988 echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1996 if test -z "$ac_cv_prog_CC"; then
1998 # Extract the first word of "gcc", so it can be a program name with args.
1999 set dummy gcc; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 if test -n "$ac_ct_CC"; then
2006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_ac_ct_CC="gcc"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025 if test -n "$ac_ct_CC"; then
2026 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027 echo "${ECHO_T}$ac_ct_CC" >&6
2029 echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6
2038 if test -z "$CC"; then
2039 if test -n "$ac_tool_prefix"; then
2040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2041 set dummy ${ac_tool_prefix}cc; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_CC="${ac_tool_prefix}cc"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067 if test -n "$CC"; then
2068 echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2076 if test -z "$ac_cv_prog_CC"; then
2078 # Extract the first word of "cc", so it can be a program name with args.
2079 set dummy cc; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test -n "$ac_ct_CC"; then
2086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_ac_ct_CC="cc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2105 if test -n "$ac_ct_CC"; then
2106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2107 echo "${ECHO_T}$ac_ct_CC" >&6
2109 echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2119 if test -z "$CC"; then
2120 # Extract the first word of "cc", so it can be a program name with args.
2121 set dummy cc; ac_word=$2
2122 echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124 if test "${ac_cv_prog_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 if test -n "$CC"; then
2128 ac_cv_prog_CC="$CC" # Let the user override the test.
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2139 ac_prog_rejected=yes
2143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 if test $ac_prog_rejected = yes; then
2150 # We found a bogon in the path, so make sure we never use it.
2151 set dummy $ac_cv_prog_CC
2153 if test $@%:@ != 0; then
2154 # We chose a different compiler from the bogus one.
2155 # However, it has the same basename, so the bogon will be chosen
2156 # first if we set CC to just the basename; use the full file name.
2158 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2164 if test -n "$CC"; then
2165 echo "$as_me:$LINENO: result: $CC" >&5
2166 echo "${ECHO_T}$CC" >&6
2168 echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6
2173 if test -z "$CC"; then
2174 if test -n "$ac_tool_prefix"; then
2177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2179 echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2181 if test "${ac_cv_prog_CC+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 if test -n "$CC"; then
2185 ac_cv_prog_CC="$CC" # Let the user override the test.
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 if test -n "$CC"; then
2205 echo "$as_me:$LINENO: result: $CC" >&5
2206 echo "${ECHO_T}$CC" >&6
2208 echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2212 test -n "$CC" && break
2215 if test -z "$CC"; then
2219 # Extract the first word of "$ac_prog", so it can be a program name with args.
2220 set dummy $ac_prog; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 if test -n "$ac_ct_CC"; then
2227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236 ac_cv_prog_ac_ct_CC="$ac_prog"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2246 if test -n "$ac_ct_CC"; then
2247 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2248 echo "${ECHO_T}$ac_ct_CC" >&6
2250 echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2254 test -n "$ac_ct_CC" && break
2263 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: no acceptable C compiler found in \$PATH
2266 See \`config.log' for more details." >&2;}
2267 { (exit 1); exit 1; }; }
2269 # Provide some information about the compiler.
2270 echo "$as_me:$LINENO:" \
2271 "checking for C compiler version" >&5
2272 ac_compiler=`set X $ac_compile; echo $2`
2273 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2274 (eval $ac_compiler --version </dev/null >&5) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2279 (eval $ac_compiler -v </dev/null >&5) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2284 (eval $ac_compiler -V </dev/null >&5) 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 ac_clean_files_save=$ac_clean_files
2305 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2306 # Try to create an executable without -o first, disregard a.out.
2307 # It will help us diagnose broken compilers, and finding out an intuition
2309 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2310 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2311 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2312 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2313 (eval $ac_link_default) 2>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; then
2317 # Find the output, starting from the most likely. This scheme is
2318 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2321 # Be careful to initialize this variable, since it used to be cached.
2322 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2324 # b.out is created by i960 compilers.
2325 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2327 test -f "$ac_file" || continue
2329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2332 # This is the source file.
2335 # We found the default executable, but exeext='' is most
2339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2340 # FIXME: I believe we export ac_cv_exeext for Libtool,
2341 # but it would be cool to find out if it's true. Does anybody
2342 # maintain Libtool? --akim.
2350 echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2353 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: C compiler cannot create executables
2356 See \`config.log' for more details." >&2;}
2357 { (exit 77); exit 77; }; }
2360 ac_exeext=$ac_cv_exeext
2361 echo "$as_me:$LINENO: result: $ac_file" >&5
2362 echo "${ECHO_T}$ac_file" >&6
2364 # Check the compiler produces executables we can run. If not, either
2365 # the compiler is broken, or we cross compile.
2366 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2367 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2368 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2369 # If not cross compiling, check that we can run a simple program.
2370 if test "$cross_compiling" != yes; then
2371 if { ac_try='./$ac_file'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 if test "$cross_compiling" = maybe; then
2382 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2383 If you meant to cross compile, use \`--host'.
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: cannot run C compiled programs.
2386 If you meant to cross compile, use \`--host'.
2387 See \`config.log' for more details." >&2;}
2388 { (exit 1); exit 1; }; }
2392 echo "$as_me:$LINENO: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6
2395 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2396 ac_clean_files=$ac_clean_files_save
2397 # Check the compiler produces executables we can run. If not, either
2398 # the compiler is broken, or we cross compile.
2399 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2400 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2401 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2402 echo "${ECHO_T}$cross_compiling" >&6
2404 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2405 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2407 (eval $ac_link) 2>&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; then
2411 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2412 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2413 # work properly (i.e., refer to `conftest.exe'), while it won't with
2415 for ac_file in conftest.exe conftest conftest.*; do
2416 test -f "$ac_file" || continue
2418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2433 rm -f conftest$ac_cv_exeext
2434 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6
2437 rm -f conftest.$ac_ext
2438 EXEEXT=$ac_cv_exeext
2440 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2442 if test "${ac_cv_objext+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 cat >conftest.$ac_ext <<_ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2460 rm -f conftest.o conftest.obj
2461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462 (eval $ac_compile) 2>&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; then
2466 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2469 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2477 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2480 See \`config.log' for more details." >&2;}
2481 { (exit 1); exit 1; }; }
2484 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2486 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2487 echo "${ECHO_T}$ac_cv_objext" >&6
2488 OBJEXT=$ac_cv_objext
2490 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2491 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2492 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 cat >conftest.$ac_ext <<_ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>conftest.er1
2517 grep -v '^ *+' conftest.er1 >conftest.err
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -z "$ac_c_werror_flag"
2523 || test ! -s conftest.err'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2546 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2547 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2548 GCC=`test $ac_compiler_gnu = yes && echo yes`
2549 ac_test_CFLAGS=${CFLAGS+set}
2550 ac_save_CFLAGS=$CFLAGS
2552 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2553 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2554 if test "${ac_cv_prog_cc_g+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 cat >conftest.$ac_ext <<_ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2576 grep -v '^ *+' conftest.er1 >conftest.err
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2603 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2605 if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2614 if test "$GCC" = yes; then
2620 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2621 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 ac_cv_prog_cc_stdc=no
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2651 s = g (p, va_arg (v,int));
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2657 function prototypes and stuff, but not '\xHH' hex character constants.
2658 These don't provoke an error unfortunately, instead are silently treated
2659 as 'x'. The following induces an error, until -std1 is added to get
2660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2661 array size at least. It's necessary to write '\x00'==0 to get something
2662 that's true only with -std1. */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2665 int test (int i, double x);
2666 struct s1 {int (*f) (int a);};
2667 struct s2 {int (*f) (double a);};
2668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2679 # Don't try gcc -ansi; that turns off useful extensions and
2680 # breaks some systems' header files.
2681 # AIX -qlanglvl=ansi
2682 # Ultrix and OSF/1 -std1
2683 # HP-UX 10.20 and later -Ae
2684 # HP-UX older versions -Aa -D_HPUX_SOURCE
2685 # SVR4 -Xc -D__EXTENSIONS__
2686 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2688 CC="$ac_save_CC $ac_arg"
2689 rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>conftest.er1
2693 grep -v '^ *+' conftest.er1 >conftest.err
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag"
2699 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 ac_cv_prog_cc_stdc=$ac_arg
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2718 rm -f conftest.err conftest.$ac_objext
2720 rm -f conftest.$ac_ext conftest.$ac_objext
2725 case "x$ac_cv_prog_cc_stdc" in
2727 echo "$as_me:$LINENO: result: none needed" >&5
2728 echo "${ECHO_T}none needed" >&6 ;;
2730 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2732 CC="$CC $ac_cv_prog_cc_stdc" ;;
2735 # Some people use a C++ compiler to compile C. Since we use `exit',
2736 # in C++ we need to declare it. In case someone uses the same compiler
2737 # for both compiling C and C++ we need to have the C++ compiler decide
2738 # the declaration of exit, since it's the most demanding environment.
2739 cat >conftest.$ac_ext <<_ACEOF
2740 @%:@ifndef __cplusplus
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 for ac_declaration in \
2768 'extern "C" void std::exit (int) throw (); using std::exit;' \
2769 'extern "C" void std::exit (int); using std::exit;' \
2770 'extern "C" void exit (int) throw ();' \
2771 'extern "C" void exit (int);' \
2774 cat >conftest.$ac_ext <<_ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2781 @%:@include <stdlib.h>
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>conftest.er1
2794 grep -v '^ *+' conftest.er1 >conftest.err
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 { ac_try='test -z "$ac_c_werror_flag"
2800 || test ! -s conftest.err'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try='test -s conftest.$ac_objext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -z "$ac_c_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 if test -n "$ac_declaration"; then
2867 echo '#ifdef __cplusplus' >>confdefs.h
2868 echo $ac_declaration >>confdefs.h
2869 echo '#endif' >>confdefs.h
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 DEPDIR="${am__leading_dot}deps"
2885 ac_config_commands="$ac_config_commands depfiles"
2888 am_make=${MAKE-make}
2889 cat > confinc << 'END'
2894 # If we don't find an include directive, just comment out the code.
2895 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2896 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2900 # First try GNU make style include.
2901 echo "include confinc" > confmf
2902 # We grep out `Entering directory' and `Leaving directory'
2903 # messages which can occur if `w' ends up in MAKEFLAGS.
2904 # In particular we don't look at `^make:' because GNU make might
2905 # be invoked under some other name (usually "gmake"), in which
2906 # case it prints its new name instead of `make'.
2907 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2912 # Now try BSD make style include.
2913 if test "$am__include" = "#"; then
2914 echo '.include "confinc"' > confmf
2915 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2916 am__include=.include
2923 echo "$as_me:$LINENO: result: $_am_result" >&5
2924 echo "${ECHO_T}$_am_result" >&6
2925 rm -f confinc confmf
2927 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2928 if test "${enable_dependency_tracking+set}" = set; then
2929 enableval="$enable_dependency_tracking"
2932 if test "x$enable_dependency_tracking" != xno; then
2933 am_depcomp="$ac_aux_dir/depcomp"
2938 if test "x$enable_dependency_tracking" != xno; then
2949 depcc="$CC" am_compiler_list=
2951 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2952 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2953 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2957 # We make a subdir and do the tests there. Otherwise we can end up
2958 # making bogus files that we don't know about and never remove. For
2959 # instance it was reported that on HP-UX the gcc test will end up
2960 # making a dummy file named `D' -- because `-MD' means `put the output
2963 # Copy depcomp to subdir because otherwise we won't find it if we're
2964 # using a relative directory.
2965 cp "$am_depcomp" conftest.dir
2967 # We will build objects and dependencies in a subdirectory because
2968 # it helps to detect inapplicable dependency modes. For instance
2969 # both Tru64's cc and ICC support -MD to output dependencies as a
2970 # side effect of compilation, but ICC will put the dependencies in
2971 # the current directory while Tru64 will put them in the object
2975 am_cv_CC_dependencies_compiler_type=none
2976 if test "$am_compiler_list" = ""; then
2977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2979 for depmode in $am_compiler_list; do
2980 # Setup a source with many dependencies, because some compilers
2981 # like to wrap large dependency lists on column 80 (with \), and
2982 # we should not choose a depcomp mode which is confused by this.
2984 # We need to recreate these files for each test, as the compiler may
2985 # overwrite some of them when testing with obscure command lines.
2986 # This happens at least with the AIX C compiler.
2988 for i in 1 2 3 4 5 6; do
2989 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2990 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2991 # Solaris 8's {/usr,}/bin/sh.
2992 touch sub/conftst$i.h
2994 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2998 # after this tag, mechanisms are not by side-effect, so they'll
2999 # only be used when explicitly requested
3000 if test "x$enable_dependency_tracking" = xyes; then
3008 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3009 # mode. It turns out that the SunPro C++ compiler does not properly
3010 # handle `-M -o', and we need to detect this.
3011 if depmode=$depmode \
3012 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3013 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3014 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3015 >/dev/null 2>conftest.err &&
3016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3017 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3019 # icc doesn't choke on unknown options, it will just issue warnings
3020 # (even with -Werror). So we grep stderr for any message
3021 # that says an option was ignored.
3022 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3023 am_cv_CC_dependencies_compiler_type=$depmode
3032 am_cv_CC_dependencies_compiler_type=none
3036 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3037 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3038 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3043 test "x$enable_dependency_tracking" != xno \
3044 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3046 am__fastdepCC_FALSE='#'
3048 am__fastdepCC_TRUE='#'
3049 am__fastdepCC_FALSE=
3054 ac_cpp='$CXXCPP $CPPFLAGS'
3055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_prog_CXX+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 if test -n "$CXX"; then
3069 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 if test -n "$CXX"; then
3089 echo "$as_me:$LINENO: result: $CXX" >&5
3090 echo "${ECHO_T}$CXX" >&6
3092 echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3096 test -n "$CXX" && break
3099 if test -z "$CXX"; then
3101 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 if test -n "$ac_ct_CXX"; then
3111 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_CXX="$ac_prog"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3130 if test -n "$ac_ct_CXX"; then
3131 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3132 echo "${ECHO_T}$ac_ct_CXX" >&6
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3138 test -n "$ac_ct_CXX" && break
3140 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3146 # Provide some information about the compiler.
3147 echo "$as_me:$LINENO:" \
3148 "checking for C++ compiler version" >&5
3149 ac_compiler=`set X $ac_compile; echo $2`
3150 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3151 (eval $ac_compiler --version </dev/null >&5) 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }
3155 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3156 (eval $ac_compiler -v </dev/null >&5) 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }
3160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3161 (eval $ac_compiler -V </dev/null >&5) 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }
3166 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3167 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3168 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } &&
3198 { ac_try='test -z "$ac_cxx_werror_flag"
3199 || test ! -s conftest.err'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; }; then
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3219 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3222 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3223 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3224 GXX=`test $ac_compiler_gnu = yes && echo yes`
3225 ac_test_CXXFLAGS=${CXXFLAGS+set}
3226 ac_save_CXXFLAGS=$CXXFLAGS
3228 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3229 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3230 if test "${ac_cv_prog_cxx_g+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>conftest.er1
3252 grep -v '^ *+' conftest.er1 >conftest.err
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -z "$ac_cxx_werror_flag"
3258 || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_cv_prog_cxx_g=yes
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3281 if test "$ac_test_CXXFLAGS" = set; then
3282 CXXFLAGS=$ac_save_CXXFLAGS
3283 elif test $ac_cv_prog_cxx_g = yes; then
3284 if test "$GXX" = yes; then
3290 if test "$GXX" = yes; then
3296 for ac_declaration in \
3298 'extern "C" void std::exit (int) throw (); using std::exit;' \
3299 'extern "C" void std::exit (int); using std::exit;' \
3300 'extern "C" void exit (int) throw ();' \
3301 'extern "C" void exit (int);' \
3304 cat >conftest.$ac_ext <<_ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3311 @%:@include <stdlib.h>
3320 rm -f conftest.$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_cxx_werror_flag"
3330 || test ! -s conftest.err'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; } &&
3336 { ac_try='test -s conftest.$ac_objext'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3350 cat >conftest.$ac_ext <<_ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3365 rm -f conftest.$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_cxx_werror_flag"
3375 || test ! -s conftest.err'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3396 if test -n "$ac_declaration"; then
3397 echo '#ifdef __cplusplus' >>confdefs.h
3398 echo $ac_declaration >>confdefs.h
3399 echo '#endif' >>confdefs.h
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408 depcc="$CXX" am_compiler_list=
3410 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3411 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3412 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3416 # We make a subdir and do the tests there. Otherwise we can end up
3417 # making bogus files that we don't know about and never remove. For
3418 # instance it was reported that on HP-UX the gcc test will end up
3419 # making a dummy file named `D' -- because `-MD' means `put the output
3422 # Copy depcomp to subdir because otherwise we won't find it if we're
3423 # using a relative directory.
3424 cp "$am_depcomp" conftest.dir
3426 # We will build objects and dependencies in a subdirectory because
3427 # it helps to detect inapplicable dependency modes. For instance
3428 # both Tru64's cc and ICC support -MD to output dependencies as a
3429 # side effect of compilation, but ICC will put the dependencies in
3430 # the current directory while Tru64 will put them in the object
3434 am_cv_CXX_dependencies_compiler_type=none
3435 if test "$am_compiler_list" = ""; then
3436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3438 for depmode in $am_compiler_list; do
3439 # Setup a source with many dependencies, because some compilers
3440 # like to wrap large dependency lists on column 80 (with \), and
3441 # we should not choose a depcomp mode which is confused by this.
3443 # We need to recreate these files for each test, as the compiler may
3444 # overwrite some of them when testing with obscure command lines.
3445 # This happens at least with the AIX C compiler.
3447 for i in 1 2 3 4 5 6; do
3448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3449 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3450 # Solaris 8's {/usr,}/bin/sh.
3451 touch sub/conftst$i.h
3453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3457 # after this tag, mechanisms are not by side-effect, so they'll
3458 # only be used when explicitly requested
3459 if test "x$enable_dependency_tracking" = xyes; then
3467 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3468 # mode. It turns out that the SunPro C++ compiler does not properly
3469 # handle `-M -o', and we need to detect this.
3470 if depmode=$depmode \
3471 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3473 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3474 >/dev/null 2>conftest.err &&
3475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3476 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3478 # icc doesn't choke on unknown options, it will just issue warnings
3479 # (even with -Werror). So we grep stderr for any message
3480 # that says an option was ignored.
3481 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3482 am_cv_CXX_dependencies_compiler_type=$depmode
3491 am_cv_CXX_dependencies_compiler_type=none
3495 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3496 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3497 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3502 test "x$enable_dependency_tracking" != xno \
3503 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3504 am__fastdepCXX_TRUE=
3505 am__fastdepCXX_FALSE='#'
3507 am__fastdepCXX_TRUE='#'
3508 am__fastdepCXX_FALSE=
3512 # Check whether --enable-shared or --disable-shared was given.
3513 if test "${enable_shared+set}" = set; then
3514 enableval="$enable_shared"
3515 p=${PACKAGE-default}
3517 yes) enable_shared=yes ;;
3518 no) enable_shared=no ;;
3521 # Look at the argument we got. We use all the common list separators.
3522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3523 for pkg in $enableval; do
3525 if test "X$pkg" = "X$p"; then
3536 # Check whether --enable-static or --disable-static was given.
3537 if test "${enable_static+set}" = set; then
3538 enableval="$enable_static"
3539 p=${PACKAGE-default}
3541 yes) enable_static=yes ;;
3542 no) enable_static=no ;;
3545 # Look at the argument we got. We use all the common list separators.
3546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3547 for pkg in $enableval; do
3549 if test "X$pkg" = "X$p"; then
3560 # Check whether --enable-fast-install or --disable-fast-install was given.
3561 if test "${enable_fast_install+set}" = set; then
3562 enableval="$enable_fast_install"
3563 p=${PACKAGE-default}
3565 yes) enable_fast_install=yes ;;
3566 no) enable_fast_install=no ;;
3568 enable_fast_install=no
3569 # Look at the argument we got. We use all the common list separators.
3570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3571 for pkg in $enableval; do
3573 if test "X$pkg" = "X$p"; then
3574 enable_fast_install=yes
3581 enable_fast_install=yes
3584 # Make sure we can run config.sub.
3585 $ac_config_sub sun4 >/dev/null 2>&1 ||
3586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3587 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3588 { (exit 1); exit 1; }; }
3590 echo "$as_me:$LINENO: checking build system type" >&5
3591 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3592 if test "${ac_cv_build+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 ac_cv_build_alias=$build_alias
3596 test -z "$ac_cv_build_alias" &&
3597 ac_cv_build_alias=`$ac_config_guess`
3598 test -z "$ac_cv_build_alias" &&
3599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3600 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3601 { (exit 1); exit 1; }; }
3602 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3604 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3605 { (exit 1); exit 1; }; }
3608 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3609 echo "${ECHO_T}$ac_cv_build" >&6
3611 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3612 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3613 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3616 echo "$as_me:$LINENO: checking host system type" >&5
3617 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3618 if test "${ac_cv_host+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 ac_cv_host_alias=$host_alias
3622 test -z "$ac_cv_host_alias" &&
3623 ac_cv_host_alias=$ac_cv_build_alias
3624 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3626 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3627 { (exit 1); exit 1; }; }
3630 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3631 echo "${ECHO_T}$ac_cv_host" >&6
3633 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3634 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3635 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3638 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3639 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3640 if test "${lt_cv_path_SED+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 # Loop through the user's path and test for sed and gsed.
3644 # Then use that list of sed's as ones to test for truncation.
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 test -z "$as_dir" && as_dir=.
3650 for lt_ac_prog in sed gsed; do
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3653 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3660 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3661 # along with /bin/sed that truncates output.
3662 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3663 test ! -f $lt_ac_sed && break
3664 cat /dev/null > conftest.in
3666 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3667 # Check for GNU sed and select it if it is found.
3668 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3669 lt_cv_path_SED=$lt_ac_sed
3673 cat conftest.in conftest.in >conftest.tmp
3674 mv conftest.tmp conftest.in
3675 cp conftest.in conftest.nl
3677 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3678 cmp -s conftest.out conftest.nl || break
3679 # 10000 chars as input seems more than enough
3680 test $lt_ac_count -gt 10 && break
3681 lt_ac_count=`expr $lt_ac_count + 1`
3682 if test $lt_ac_count -gt $lt_ac_max; then
3683 lt_ac_max=$lt_ac_count
3684 lt_cv_path_SED=$lt_ac_sed
3692 echo "$as_me:$LINENO: result: $SED" >&5
3693 echo "${ECHO_T}$SED" >&6
3695 echo "$as_me:$LINENO: checking for egrep" >&5
3696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3697 if test "${ac_cv_prog_egrep+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3701 then ac_cv_prog_egrep='grep -E'
3702 else ac_cv_prog_egrep='egrep'
3705 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3706 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3707 EGREP=$ac_cv_prog_egrep
3711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3712 if test "${with_gnu_ld+set}" = set; then
3713 withval="$with_gnu_ld"
3714 test "$withval" = no || with_gnu_ld=yes
3719 if test "$GCC" = yes; then
3720 # Check if gcc -print-prog-name=ld gives a path.
3721 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3722 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3725 # gcc leaves a trailing carriage return which upsets mingw
3726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3731 # Accept absolute paths.
3733 re_direlt='/[^/][^/]*/\.\./'
3734 # Canonicalize the pathname of ld
3735 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3736 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3737 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3739 test -z "$LD" && LD="$ac_prog"
3742 # If it fails, then pretend we aren't using GCC.
3746 # If it is relative, then search for the first ld in PATH.
3750 elif test "$with_gnu_ld" = yes; then
3751 echo "$as_me:$LINENO: checking for GNU ld" >&5
3752 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3754 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3755 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3757 if test "${lt_cv_path_LD+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -z "$LD"; then
3761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3762 for ac_dir in $PATH; do
3764 test -z "$ac_dir" && ac_dir=.
3765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3766 lt_cv_path_LD="$ac_dir/$ac_prog"
3767 # Check to see if the program is GNU ld. I'd rather use --version,
3768 # but apparently some GNU ld's only accept -v.
3769 # Break only if it was the GNU/non-GNU ld that we prefer.
3770 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3771 *GNU* | *'with BFD'*)
3772 test "$with_gnu_ld" != no && break
3775 test "$with_gnu_ld" != yes && break
3782 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3787 if test -n "$LD"; then
3788 echo "$as_me:$LINENO: result: $LD" >&5
3789 echo "${ECHO_T}$LD" >&6
3791 echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3794 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3795 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3796 { (exit 1); exit 1; }; }
3797 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3798 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3799 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3803 case `$LD -v 2>&1 </dev/null` in
3804 *GNU* | *'with BFD'*)
3805 lt_cv_prog_gnu_ld=yes
3808 lt_cv_prog_gnu_ld=no
3812 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3813 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3814 with_gnu_ld=$lt_cv_prog_gnu_ld
3817 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3818 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3819 if test "${lt_cv_ld_reload_flag+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 lt_cv_ld_reload_flag='-r'
3824 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3825 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3826 reload_flag=$lt_cv_ld_reload_flag
3827 case $reload_flag in
3829 *) reload_flag=" $reload_flag" ;;
3831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3833 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3834 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3835 if test "${lt_cv_path_NM+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 if test -n "$NM"; then
3839 # Let the user override the test.
3842 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3843 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3845 test -z "$ac_dir" && ac_dir=.
3846 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3847 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3848 # Check to see if the nm accepts a BSD-compat flag.
3849 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3850 # nm: unknown option "B" ignored
3851 # Tru64's nm complains that /dev/null is an invalid object file
3852 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3853 */dev/null* | *'Invalid file or object type'*)
3854 lt_cv_path_NM="$tmp_nm -B"
3858 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3860 lt_cv_path_NM="$tmp_nm -p"
3864 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3865 continue # so that we can try to find one that supports BSD flags
3872 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3875 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3876 echo "${ECHO_T}$lt_cv_path_NM" >&6
3879 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3880 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3882 if test "$LN_S" = "ln -s"; then
3883 echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6
3886 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3887 echo "${ECHO_T}no, using $LN_S" >&6
3890 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3891 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3892 if test "${lt_cv_deplibs_check_method+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 lt_cv_file_magic_cmd='$MAGIC_CMD'
3896 lt_cv_file_magic_test_file=
3897 lt_cv_deplibs_check_method='unknown'
3898 # Need to set the preceding variable on all platforms that support
3899 # interlibrary dependencies.
3900 # 'none' -- dependencies not supported.
3901 # `unknown' -- same as none, but documents that we really don't know.
3902 # 'pass_all' -- all dependencies passed with no checks.
3903 # 'test_compile' -- check by making test program.
3904 # 'file_magic [[regex]]' -- check by looking for files in library path
3905 # which responds to the $file_magic_cmd with a given extended regex.
3906 # If you have `file' or equivalent on your system and you're not sure
3907 # whether `pass_all' will *always* work, you probably want this one.
3911 lt_cv_deplibs_check_method=pass_all
3915 lt_cv_deplibs_check_method=pass_all
3919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3920 lt_cv_file_magic_cmd='/usr/bin/file -L'
3921 lt_cv_file_magic_test_file=/shlib/libc.so
3925 # func_win32_libid is a shell function defined in ltmain.sh
3926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3927 lt_cv_file_magic_cmd='func_win32_libid'
3931 # Base MSYS/MinGW do not provide the 'file' command needed by
3932 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3933 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3934 lt_cv_file_magic_cmd='$OBJDUMP -f'
3937 darwin* | rhapsody*)
3938 lt_cv_deplibs_check_method=pass_all
3941 freebsd* | kfreebsd*-gnu)
3942 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3945 # Not sure whether the presence of OpenBSD here was a mistake.
3946 # Let's accept both of them until this is cleared up.
3947 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3948 lt_cv_file_magic_cmd=/usr/bin/file
3949 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3953 lt_cv_deplibs_check_method=pass_all
3958 lt_cv_deplibs_check_method=pass_all
3961 hpux10.20* | hpux11*)
3962 lt_cv_file_magic_cmd=/usr/bin/file
3965 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3966 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3969 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]'
3970 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3974 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3979 irix5* | irix6* | nonstopux*)
3981 *-32|*"-32 ") libmagic=32-bit;;
3982 *-n32|*"-n32 ") libmagic=N32;;
3983 *-64|*"-64 ") libmagic=64-bit;;
3984 *) libmagic=never-match;;
3986 lt_cv_deplibs_check_method=pass_all
3989 # This must be Linux ELF.
3992 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3993 lt_cv_deplibs_check_method=pass_all ;;
3995 # glibc up to 2.1.1 does not perform some relocations on ARM
3996 # this will be overridden with pass_all, but let us keep it just in case
3997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3999 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4000 lt_cv_deplibs_check_method=pass_all
4004 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4013 lt_cv_file_magic_cmd=/usr/bin/file
4014 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4018 lt_cv_deplibs_check_method=unknown
4022 lt_cv_file_magic_cmd=/usr/bin/file
4023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4027 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4031 osf3* | osf4* | osf5*)
4032 lt_cv_deplibs_check_method=pass_all
4036 lt_cv_deplibs_check_method=pass_all
4040 lt_cv_deplibs_check_method=pass_all
4043 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4044 case $host_vendor in
4046 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]'
4047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4050 lt_cv_deplibs_check_method=pass_all
4053 lt_cv_file_magic_cmd='/bin/file'
4054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4057 lt_cv_file_magic_cmd='/bin/file'
4058 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4059 lt_cv_file_magic_test_file=/lib/libc.so
4062 lt_cv_deplibs_check_method=pass_all
4067 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4068 lt_cv_deplibs_check_method=pass_all
4073 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4074 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4075 file_magic_cmd=$lt_cv_file_magic_cmd
4076 deplibs_check_method=$lt_cv_deplibs_check_method
4077 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4082 # If no C compiler was specified, use CC.
4085 # Allow CC to be a program name with arguments.
4089 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4090 if test "${enable_libtool_lock+set}" = set; then
4091 enableval="$enable_libtool_lock"
4094 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4096 # Some flags need to be propagated to the compiler or linker for good
4100 # Find out which ABI we are using.
4101 echo 'int i;' > conftest.$ac_ext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103 (eval $ac_compile) 2>&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; then
4107 case `/usr/bin/file conftest.$ac_objext` in
4119 # Find out which ABI we are using.
4120 echo '#line __oline__ "configure"' > conftest.$ac_ext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; then
4126 if test "$lt_cv_prog_gnu_ld" = yes; then
4127 case `/usr/bin/file conftest.$ac_objext` in
4129 LD="${LD-ld} -melf32bsmip"
4132 LD="${LD-ld} -melf32bmipn32"
4135 LD="${LD-ld} -melf64bmip"
4139 case `/usr/bin/file conftest.$ac_objext` in
4155 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4156 # Find out which ABI we are using.
4157 echo 'int i;' > conftest.$ac_ext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; then
4163 case "`/usr/bin/file conftest.o`" in
4167 LD="${LD-ld} -m elf_i386"
4169 ppc64-*linux*|powerpc64-*linux*)
4170 LD="${LD-ld} -m elf32ppclinux"
4173 LD="${LD-ld} -m elf_s390"
4176 LD="${LD-ld} -m elf32_sparc"
4183 LD="${LD-ld} -m elf_x86_64"
4185 ppc*-*linux*|powerpc*-*linux*)
4186 LD="${LD-ld} -m elf64ppc"
4189 LD="${LD-ld} -m elf64_s390"
4192 LD="${LD-ld} -m elf64_sparc"
4202 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4203 SAVE_CFLAGS="$CFLAGS"
4204 CFLAGS="$CFLAGS -belf"
4205 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4206 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4207 if test "${lt_cv_cc_needs_belf+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 cat >conftest.$ac_ext <<_ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4231 rm -f conftest.$ac_objext conftest$ac_exeext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4233 (eval $ac_link) 2>conftest.er1
4235 grep -v '^ *+' conftest.er1 >conftest.err
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -z "$ac_c_werror_flag"
4241 || test ! -s conftest.err'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; } &&
4247 { ac_try='test -s conftest$ac_exeext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 lt_cv_cc_needs_belf=yes
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 lt_cv_cc_needs_belf=no
4260 rm -f conftest.err conftest.$ac_objext \
4261 conftest$ac_exeext conftest.$ac_ext
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4270 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4271 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4272 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4273 CFLAGS="$SAVE_CFLAGS"
4279 need_locks="$enable_libtool_lock"
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4288 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4289 # On Suns, sometimes $CPP names a directory.
4290 if test -n "$CPP" && test -d "$CPP"; then
4293 if test -z "$CPP"; then
4294 if test "${ac_cv_prog_CPP+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 # Double quotes because CPP needs to be expanded
4298 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4301 for ac_c_preproc_warn_flag in '' yes
4303 # Use a header file that comes with gcc, so configuring glibc
4304 # with a fresh cross-compiler works.
4305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4306 # <limits.h> exists even on freestanding compilers.
4307 # On the NeXT, cc -E runs the code through the compiler's parser,
4308 # not just through cpp. "Syntax error" is here to catch this case.
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4316 @%:@ include <limits.h>
4318 @%:@ include <assert.h>
4322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4325 grep -v '^ *+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } >/dev/null; then
4330 if test -s conftest.err; then
4331 ac_cpp_err=$ac_c_preproc_warn_flag
4332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4339 if test -z "$ac_cpp_err"; then
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 # Broken: fails on valid input.
4348 rm -f conftest.err conftest.$ac_ext
4350 # OK, works on sane cases. Now check whether non-existent headers
4351 # can be detected and how.
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 @%:@include <ac_nonexistent.h>
4360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4363 grep -v '^ *+' conftest.er1 >conftest.err
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } >/dev/null; then
4368 if test -s conftest.err; then
4369 ac_cpp_err=$ac_c_preproc_warn_flag
4370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4377 if test -z "$ac_cpp_err"; then
4378 # Broken: success on invalid input.
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4384 # Passes both tests.
4388 rm -f conftest.err conftest.$ac_ext
4391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4392 rm -f conftest.err conftest.$ac_ext
4393 if $ac_preproc_ok; then
4405 echo "$as_me:$LINENO: result: $CPP" >&5
4406 echo "${ECHO_T}$CPP" >&6
4408 for ac_c_preproc_warn_flag in '' yes
4410 # Use a header file that comes with gcc, so configuring glibc
4411 # with a fresh cross-compiler works.
4412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4413 # <limits.h> exists even on freestanding compilers.
4414 # On the NeXT, cc -E runs the code through the compiler's parser,
4415 # not just through cpp. "Syntax error" is here to catch this case.
4416 cat >conftest.$ac_ext <<_ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4423 @%:@ include <limits.h>
4425 @%:@ include <assert.h>
4429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } >/dev/null; then
4437 if test -s conftest.err; then
4438 ac_cpp_err=$ac_c_preproc_warn_flag
4439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4446 if test -z "$ac_cpp_err"; then
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 # Broken: fails on valid input.
4455 rm -f conftest.err conftest.$ac_ext
4457 # OK, works on sane cases. Now check whether non-existent headers
4458 # can be detected and how.
4459 cat >conftest.$ac_ext <<_ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 @%:@include <ac_nonexistent.h>
4467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4470 grep -v '^ *+' conftest.er1 >conftest.err
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } >/dev/null; then
4475 if test -s conftest.err; then
4476 ac_cpp_err=$ac_c_preproc_warn_flag
4477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4484 if test -z "$ac_cpp_err"; then
4485 # Broken: success on invalid input.
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 # Passes both tests.
4495 rm -f conftest.err conftest.$ac_ext
4498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4499 rm -f conftest.err conftest.$ac_ext
4500 if $ac_preproc_ok; then
4503 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4504 See \`config.log' for more details." >&5
4505 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4506 See \`config.log' for more details." >&2;}
4507 { (exit 1); exit 1; }; }
4511 ac_cpp='$CPP $CPPFLAGS'
4512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4518 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4519 if test "${ac_cv_header_stdc+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>conftest.er1
4545 grep -v '^ *+' conftest.er1 >conftest.err
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try='test -z "$ac_c_werror_flag"
4551 || test ! -s conftest.err'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 ac_cv_header_stdc=yes
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 ac_cv_header_stdc=no
4570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572 if test $ac_cv_header_stdc = yes; then
4573 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4574 cat >conftest.$ac_ext <<_ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 $EGREP "memchr" >/dev/null 2>&1; then
4587 ac_cv_header_stdc=no
4593 if test $ac_cv_header_stdc = yes; then
4594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4595 cat >conftest.$ac_ext <<_ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "free" >/dev/null 2>&1; then
4608 ac_cv_header_stdc=no
4614 if test $ac_cv_header_stdc = yes; then
4615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4616 if test "$cross_compiling" = yes; then
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4626 #if ((' ' & 0x0FF) == 0x020)
4627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4630 # define ISLOWER(c) \
4631 (('a' <= (c) && (c) <= 'i') \
4632 || ('j' <= (c) && (c) <= 'r') \
4633 || ('s' <= (c) && (c) <= 'z'))
4634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4642 for (i = 0; i < 256; i++)
4643 if (XOR (islower (i), ISLOWER (i))
4644 || toupper (i) != TOUPPER (i))
4649 rm -f conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4662 echo "$as_me: program exited with status $ac_status" >&5
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4667 ac_cv_header_stdc=no
4669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4673 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4674 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4675 if test $ac_cv_header_stdc = yes; then
4677 cat >>confdefs.h <<\_ACEOF
4678 @%:@define STDC_HEADERS 1
4683 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4693 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4694 inttypes.h stdint.h unistd.h
4696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4697 echo "$as_me:$LINENO: checking for $ac_header" >&5
4698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 cat >conftest.$ac_ext <<_ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 $ac_includes_default
4710 @%:@include <$ac_header>
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4716 grep -v '^ *+' conftest.er1 >conftest.err
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 eval "$as_ac_Header=yes"
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 eval "$as_ac_Header=no"
4741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4746 cat >>confdefs.h <<_ACEOF
4747 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4756 for ac_header in dlfcn.h
4758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760 echo "$as_me:$LINENO: checking for $ac_header" >&5
4761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 # Is the header compilable?
4769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4771 cat >conftest.$ac_ext <<_ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 $ac_includes_default
4778 @%:@include <$ac_header>
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>conftest.er1
4784 grep -v '^ *+' conftest.er1 >conftest.err
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_header_compiler=yes
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 ac_header_compiler=no
4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4811 echo "${ECHO_T}$ac_header_compiler" >&6
4813 # Is the header present?
4814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4816 cat >conftest.$ac_ext <<_ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 @%:@include <$ac_header>
4824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4827 grep -v '^ *+' conftest.er1 >conftest.err
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } >/dev/null; then
4832 if test -s conftest.err; then
4833 ac_cpp_err=$ac_c_preproc_warn_flag
4834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4841 if test -z "$ac_cpp_err"; then
4842 ac_header_preproc=yes
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4847 ac_header_preproc=no
4849 rm -f conftest.err conftest.$ac_ext
4850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4851 echo "${ECHO_T}$ac_header_preproc" >&6
4853 # So? What about this header?
4854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4860 ac_header_preproc=yes
4863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4877 @%:@@%:@ ------------------------------------------ @%:@@%:@
4878 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
4879 @%:@@%:@ ------------------------------------------ @%:@@%:@
4882 sed "s/^/$as_me: WARNING: /" >&2
4885 echo "$as_me:$LINENO: checking for $ac_header" >&5
4886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 eval "$as_ac_Header=\$ac_header_preproc"
4892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4897 cat >>confdefs.h <<_ACEOF
4898 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4906 ac_cpp='$CXXCPP $CPPFLAGS'
4907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4910 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4911 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4912 if test -z "$CXXCPP"; then
4913 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 # Double quotes because CXXCPP needs to be expanded
4917 for CXXCPP in "$CXX -E" "/lib/cpp"
4920 for ac_cxx_preproc_warn_flag in '' yes
4922 # Use a header file that comes with gcc, so configuring glibc
4923 # with a fresh cross-compiler works.
4924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4925 # <limits.h> exists even on freestanding compilers.
4926 # On the NeXT, cc -E runs the code through the compiler's parser,
4927 # not just through cpp. "Syntax error" is here to catch this case.
4928 cat >conftest.$ac_ext <<_ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4935 @%:@ include <limits.h>
4937 @%:@ include <assert.h>
4941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4944 grep -v '^ *+' conftest.er1 >conftest.err
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } >/dev/null; then
4949 if test -s conftest.err; then
4950 ac_cpp_err=$ac_cxx_preproc_warn_flag
4951 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4958 if test -z "$ac_cpp_err"; then
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 # Broken: fails on valid input.
4967 rm -f conftest.err conftest.$ac_ext
4969 # OK, works on sane cases. Now check whether non-existent headers
4970 # can be detected and how.
4971 cat >conftest.$ac_ext <<_ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4977 @%:@include <ac_nonexistent.h>
4979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4982 grep -v '^ *+' conftest.er1 >conftest.err
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev/null; then
4987 if test -s conftest.err; then
4988 ac_cpp_err=$ac_cxx_preproc_warn_flag
4989 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4996 if test -z "$ac_cpp_err"; then
4997 # Broken: success on invalid input.
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 # Passes both tests.
5007 rm -f conftest.err conftest.$ac_ext
5010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5011 rm -f conftest.err conftest.$ac_ext
5012 if $ac_preproc_ok; then
5017 ac_cv_prog_CXXCPP=$CXXCPP
5020 CXXCPP=$ac_cv_prog_CXXCPP
5022 ac_cv_prog_CXXCPP=$CXXCPP
5024 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5025 echo "${ECHO_T}$CXXCPP" >&6
5027 for ac_cxx_preproc_warn_flag in '' yes
5029 # Use a header file that comes with gcc, so configuring glibc
5030 # with a fresh cross-compiler works.
5031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5032 # <limits.h> exists even on freestanding compilers.
5033 # On the NeXT, cc -E runs the code through the compiler's parser,
5034 # not just through cpp. "Syntax error" is here to catch this case.
5035 cat >conftest.$ac_ext <<_ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5042 @%:@ include <limits.h>
5044 @%:@ include <assert.h>
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_cxx_preproc_warn_flag
5058 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5065 if test -z "$ac_cpp_err"; then
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 # Broken: fails on valid input.
5074 rm -f conftest.err conftest.$ac_ext
5076 # OK, works on sane cases. Now check whether non-existent headers
5077 # can be detected and how.
5078 cat >conftest.$ac_ext <<_ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 @%:@include <ac_nonexistent.h>
5086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089 grep -v '^ *+' conftest.er1 >conftest.err
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null; then
5094 if test -s conftest.err; then
5095 ac_cpp_err=$ac_cxx_preproc_warn_flag
5096 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5103 if test -z "$ac_cpp_err"; then
5104 # Broken: success on invalid input.
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 # Passes both tests.
5114 rm -f conftest.err conftest.$ac_ext
5117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5118 rm -f conftest.err conftest.$ac_ext
5119 if $ac_preproc_ok; then
5122 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5123 See \`config.log' for more details." >&5
5124 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5125 See \`config.log' for more details." >&2;}
5126 { (exit 1); exit 1; }; }
5130 ac_cpp='$CXXCPP $CPPFLAGS'
5131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5137 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5138 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5140 if test -n "$ac_tool_prefix"; then
5141 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5145 echo "$as_me:$LINENO: checking for $ac_word" >&5
5146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5147 if test "${ac_cv_prog_F77+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 if test -n "$F77"; then
5151 ac_cv_prog_F77="$F77" # Let the user override the test.
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 if test -n "$F77"; then
5171 echo "$as_me:$LINENO: result: $F77" >&5
5172 echo "${ECHO_T}$F77" >&6
5174 echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5178 test -n "$F77" && break
5181 if test -z "$F77"; then
5183 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5185 # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 if test -n "$ac_ct_F77"; then
5193 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_F77="$ac_prog"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5212 if test -n "$ac_ct_F77"; then
5213 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5214 echo "${ECHO_T}$ac_ct_F77" >&6
5216 echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5220 test -n "$ac_ct_F77" && break
5227 # Provide some information about the compiler.
5228 echo "$as_me:__oline__:" \
5229 "checking for Fortran 77 compiler version" >&5
5230 ac_compiler=`set X $ac_compile; echo $2`
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5232 (eval $ac_compiler --version </dev/null >&5) 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }
5236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5237 (eval $ac_compiler -v </dev/null >&5) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5241 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5242 (eval $ac_compiler -V </dev/null >&5) 2>&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }
5248 # If we don't use `.F' as extension, the preprocessor is not run on the
5249 # input file. (Note that this only needs to work for GNU compilers.)
5252 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5253 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5254 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 cat >conftest.$ac_ext <<_ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>conftest.er1
5269 grep -v '^ *+' conftest.er1 >conftest.err
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try='test -z "$ac_f77_werror_flag"
5275 || test ! -s conftest.err'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; } &&
5281 { ac_try='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5295 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5298 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5299 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5301 ac_test_FFLAGS=${FFLAGS+set}
5302 ac_save_FFLAGS=$FFLAGS
5304 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5305 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5306 if test "${ac_cv_prog_f77_g+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 cat >conftest.$ac_ext <<_ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_f77_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_cv_prog_f77_g=yes
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5348 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5349 if test "$ac_test_FFLAGS" = set; then
5350 FFLAGS=$ac_save_FFLAGS
5351 elif test $ac_cv_prog_f77_g = yes; then
5352 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5358 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5365 G77=`test $ac_compiler_gnu = yes && echo yes`
5367 ac_cpp='$CPP $CPPFLAGS'
5368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5374 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5376 # find the maximum length of command line arguments
5377 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5378 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 # On DJGPP, this test can blow up pretty badly due to problems in libc
5388 # (any single argument exceeding 2000 bytes causes a buffer overrun
5389 # during glob expansion). Even if it were fixed, the result of this
5390 # check would be larger than it should be.
5391 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5395 # Under GNU Hurd, this test is not required because there is
5396 # no limit to the length of command line arguments.
5397 # Libtool will interpret -1 as no limit whatsoever
5398 lt_cv_sys_max_cmd_len=-1;
5402 # On Win9x/ME, this test blows up -- it succeeds, but takes
5403 # about 5 minutes as the teststring grows exponentially.
5404 # Worse, since 9x/ME are not pre-emptively multitasking,
5405 # you end up with a "frozen" computer, even though with patience
5406 # the test eventually succeeds (with a max line length of 256k).
5407 # Instead, let's just punt: use the minimum linelength reported by
5408 # all of the supported platforms: 8192 (on NT/2K/XP).
5409 lt_cv_sys_max_cmd_len=8192;
5413 # On AmigaOS with pdksh, this test takes hours, literally.
5414 # So we just punt and use a minimum line length of 8192.
5415 lt_cv_sys_max_cmd_len=8192;
5419 # If test is not a shell built-in, we'll probably end up computing a
5420 # maximum length that is only half of the actual maximum length, but
5422 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5423 = "XX$teststring") >/dev/null 2>&1 &&
5424 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5425 lt_cv_sys_max_cmd_len=$new_result &&
5426 test $i != 17 # 1/2 MB should be enough
5429 teststring=$teststring$teststring
5432 # Add a significant safety factor because C++ compilers can tack on massive
5433 # amounts of additional arguments before passing them to the linker.
5434 # It appears as though 1/2 is a usable value.
5435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5441 if test -n $lt_cv_sys_max_cmd_len ; then
5442 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5443 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5445 echo "$as_me:$LINENO: result: none" >&5
5446 echo "${ECHO_T}none" >&6
5452 # Check for command to grab the raw symbol name followed by C symbol from nm.
5453 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5454 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5455 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 # These are sane defaults that work on at least a few old systems.
5460 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5462 # Character class describing NM global symbol codes.
5463 symcode='[BCDEGRST]'
5465 # Regexp to match symbols that can be accessed directly from C.
5466 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5468 # Transform the above into a raw symbol and a C symbol.
5469 symxfrm='\1 \2\3 \3'
5471 # Transform an extracted symbol line into a proper C declaration
5472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5474 # Transform an extracted symbol line into symbol name and symbol address
5475 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'"
5477 # Define system-specific variables.
5482 cygwin* | mingw* | pw32*)
5483 symcode='[ABCDGISTW]'
5485 hpux*) # Its linker distinguishes data from code symbols
5486 if test "$host_cpu" = ia64; then
5487 symcode='[ABCDEGRST]'
5489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5490 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'"
5493 symcode='[BCDEGRST]'
5496 symcode='[BCDEGQRST]'
5506 # Handle CRLF in mingw tool chain
5510 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5514 # If we're using GNU nm, then use its standard symbol codes.
5515 case `$NM -V 2>&1` in
5516 *GNU* | *'with BFD'*)
5517 symcode='[ABCDGIRSTW]' ;;
5520 # Try without a prefix undercore, then with it.
5521 for ac_symprfx in "" "_"; do
5523 # Write the raw and C identifiers.
5524 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5526 # Check to see that the pipe works correctly.
5530 cat > conftest.$ac_ext <<EOF
5535 void nm_test_func(){}
5539 int main(){nm_test_var='a';nm_test_func();return(0);}
5542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543 (eval $ac_compile) 2>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; then
5547 # Now try to grab the symbols.
5549 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5550 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } && test -s "$nlist"; then
5554 # Try sorting and uniquifying the output.
5555 if sort "$nlist" | uniq > "$nlist"T; then
5556 mv -f "$nlist"T "$nlist"
5561 # Make sure that we snagged all the symbols we need.
5562 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5563 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5564 cat <<EOF > conftest.$ac_ext
5570 # Now generate the symbol file.
5571 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5573 cat <<EOF >> conftest.$ac_ext
5574 #if defined (__STDC__) && __STDC__
5575 # define lt_ptr_t void *
5577 # define lt_ptr_t char *
5581 /* The mapping between symbol names and symbols. */
5586 lt_preloaded_symbols[] =
5589 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5590 cat <<\EOF >> conftest.$ac_ext
5598 # Now try linking the two files.
5599 mv conftest.$ac_objext conftstm.$ac_objext
5600 lt_save_LIBS="$LIBS"
5601 lt_save_CFLAGS="$CFLAGS"
5602 LIBS="conftstm.$ac_objext"
5603 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605 (eval $ac_link) 2>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5611 LIBS="$lt_save_LIBS"
5612 CFLAGS="$lt_save_CFLAGS"
5614 echo "cannot find nm_test_func in $nlist" >&5
5617 echo "cannot find nm_test_var in $nlist" >&5
5620 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5623 echo "$progname: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5626 rm -f conftest* conftst*
5628 # Do not use the global_symbol_pipe unless it works.
5629 if test "$pipe_works" = yes; then
5632 lt_cv_sys_global_symbol_pipe=
5638 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5639 lt_cv_sys_global_symbol_to_cdecl=
5641 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5642 echo "$as_me:$LINENO: result: failed" >&5
5643 echo "${ECHO_T}failed" >&6
5645 echo "$as_me:$LINENO: result: ok" >&5
5646 echo "${ECHO_T}ok" >&6
5649 echo "$as_me:$LINENO: checking for objdir" >&5
5650 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5651 if test "${lt_cv_objdir+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 rm -f .libs 2>/dev/null
5655 mkdir .libs 2>/dev/null
5656 if test -d .libs; then
5659 # MS-DOS does not allow filenames that begin with a dot.
5662 rmdir .libs 2>/dev/null
5664 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5665 echo "${ECHO_T}$lt_cv_objdir" >&6
5666 objdir=$lt_cv_objdir
5674 # AIX sometimes has problems with the GCC collect2 program. For some
5675 # reason, if we set the COLLECT_NAMES environment variable, the problems
5676 # vanish in a puff of smoke.
5677 if test "X${COLLECT_NAMES+set}" != Xset; then
5679 export COLLECT_NAMES
5684 # Sed substitution that helps us do robust quoting. It backslashifies
5685 # metacharacters that are still active within double-quoted strings.
5686 Xsed='sed -e s/^X//'
5687 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5689 # Same as above, but do not quote variable references.
5690 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5692 # Sed substitution to delay expansion of an escaped shell variable in a
5693 # double_quote_subst'ed string.
5694 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5696 # Sed substitution to avoid accidental globbing in evaled expressions
5697 no_glob_subst='s/\*/\\\*/g'
5703 default_ofile=libtool
5704 can_build_shared=yes
5706 # All known linkers require a `.a' archive for static linking (except M$VC,
5707 # which needs '.lib').
5709 ltmain="$ac_aux_dir/ltmain.sh"
5710 ofile="$default_ofile"
5711 with_gnu_ld="$lt_cv_prog_gnu_ld"
5713 if test -n "$ac_tool_prefix"; then
5714 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}ar; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_prog_AR+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 if test -n "$AR"; then
5722 ac_cv_prog_AR="$AR" # Let the user override the test.
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_AR="${ac_tool_prefix}ar"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 if test -n "$AR"; then
5742 echo "$as_me:$LINENO: result: $AR" >&5
5743 echo "${ECHO_T}$AR" >&6
5745 echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5750 if test -z "$ac_cv_prog_AR"; then
5752 # Extract the first word of "ar", so it can be a program name with args.
5753 set dummy ar; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 if test -n "$ac_ct_AR"; then
5760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_ac_ct_AR="ar"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5780 if test -n "$ac_ct_AR"; then
5781 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5782 echo "${ECHO_T}$ac_ct_AR" >&6
5784 echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5793 if test -n "$ac_tool_prefix"; then
5794 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5796 echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5798 if test "${ac_cv_prog_RANLIB+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 if test -n "$RANLIB"; then
5802 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 RANLIB=$ac_cv_prog_RANLIB
5821 if test -n "$RANLIB"; then
5822 echo "$as_me:$LINENO: result: $RANLIB" >&5
5823 echo "${ECHO_T}$RANLIB" >&6
5825 echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6
5830 if test -z "$ac_cv_prog_RANLIB"; then
5831 ac_ct_RANLIB=$RANLIB
5832 # Extract the first word of "ranlib", so it can be a program name with args.
5833 set dummy ranlib; ac_word=$2
5834 echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 if test -n "$ac_ct_RANLIB"; then
5840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_RANLIB="ranlib"
5850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5859 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5860 if test -n "$ac_ct_RANLIB"; then
5861 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5862 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5864 echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5868 RANLIB=$ac_ct_RANLIB
5870 RANLIB="$ac_cv_prog_RANLIB"
5873 if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}strip; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_STRIP+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 if test -n "$STRIP"; then
5882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 STRIP=$ac_cv_prog_STRIP
5901 if test -n "$STRIP"; then
5902 echo "$as_me:$LINENO: result: $STRIP" >&5
5903 echo "${ECHO_T}$STRIP" >&6
5905 echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5910 if test -z "$ac_cv_prog_STRIP"; then
5912 # Extract the first word of "strip", so it can be a program name with args.
5913 set dummy strip; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 if test -n "$ac_ct_STRIP"; then
5920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_STRIP="strip"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5940 if test -n "$ac_ct_STRIP"; then
5941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5942 echo "${ECHO_T}$ac_ct_STRIP" >&6
5944 echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5950 STRIP="$ac_cv_prog_STRIP"
5955 old_CFLAGS="$CFLAGS"
5957 # Set sane defaults for various variables
5958 test -z "$AR" && AR=ar
5959 test -z "$AR_FLAGS" && AR_FLAGS=cru
5960 test -z "$AS" && AS=as
5961 test -z "$CC" && CC=cc
5962 test -z "$LTCC" && LTCC=$CC
5963 test -z "$DLLTOOL" && DLLTOOL=dlltool
5964 test -z "$LD" && LD=ld
5965 test -z "$LN_S" && LN_S="ln -s"
5966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5967 test -z "$NM" && NM=nm
5968 test -z "$SED" && SED=sed
5969 test -z "$OBJDUMP" && OBJDUMP=objdump
5970 test -z "$RANLIB" && RANLIB=:
5971 test -z "$STRIP" && STRIP=:
5972 test -z "$ac_objext" && ac_objext=o
5974 # Determine commands to create old-style static archives.
5975 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5976 old_postinstall_cmds='chmod 644 $oldlib'
5977 old_postuninstall_cmds=
5979 if test -n "$RANLIB"; then
5982 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5985 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5988 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5991 # Only perform the check for file, if the check method requires it
5992 case $deplibs_check_method in
5994 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5995 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5996 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5997 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6005 lt_save_MAGIC_CMD="$MAGIC_CMD"
6006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6008 for ac_dir in $ac_dummy; do
6010 test -z "$ac_dir" && ac_dir=.
6011 if test -f $ac_dir/${ac_tool_prefix}file; then
6012 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6013 if test -n "$file_magic_test_file"; then
6014 case $deplibs_check_method in
6016 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6019 $EGREP "$file_magic_regex" > /dev/null; then
6024 *** Warning: the command libtool uses to detect shared libraries,
6025 *** $file_magic_cmd, produces output that libtool cannot recognize.
6026 *** The result is that libtool may fail to recognize shared libraries
6027 *** as such. This will affect the creation of libtool libraries that
6028 *** depend on shared libraries, but programs linked with such libtool
6029 *** libraries will work regardless of this problem. Nevertheless, you
6030 *** may want to report the problem to your system manager and/or to
6031 *** bug-libtool@gnu.org
6041 MAGIC_CMD="$lt_save_MAGIC_CMD"
6046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6047 if test -n "$MAGIC_CMD"; then
6048 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6049 echo "${ECHO_T}$MAGIC_CMD" >&6
6051 echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6
6055 if test -z "$lt_cv_path_MAGIC_CMD"; then
6056 if test -n "$ac_tool_prefix"; then
6057 echo "$as_me:$LINENO: checking for file" >&5
6058 echo $ECHO_N "checking for file... $ECHO_C" >&6
6059 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6067 lt_save_MAGIC_CMD="$MAGIC_CMD"
6068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6070 for ac_dir in $ac_dummy; do
6072 test -z "$ac_dir" && ac_dir=.
6073 if test -f $ac_dir/file; then
6074 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6075 if test -n "$file_magic_test_file"; then
6076 case $deplibs_check_method in
6078 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6081 $EGREP "$file_magic_regex" > /dev/null; then
6086 *** Warning: the command libtool uses to detect shared libraries,
6087 *** $file_magic_cmd, produces output that libtool cannot recognize.
6088 *** The result is that libtool may fail to recognize shared libraries
6089 *** as such. This will affect the creation of libtool libraries that
6090 *** depend on shared libraries, but programs linked with such libtool
6091 *** libraries will work regardless of this problem. Nevertheless, you
6092 *** may want to report the problem to your system manager and/or to
6093 *** bug-libtool@gnu.org
6103 MAGIC_CMD="$lt_save_MAGIC_CMD"
6108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6109 if test -n "$MAGIC_CMD"; then
6110 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6111 echo "${ECHO_T}$MAGIC_CMD" >&6
6113 echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6129 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6130 if test "${enable_libtool_lock+set}" = set; then
6131 enableval="$enable_libtool_lock"
6134 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6137 # Check whether --with-pic or --without-pic was given.
6138 if test "${with_pic+set}" = set; then
6144 test -z "$pic_mode" && pic_mode=default
6146 # Use C for the default configuration in the libtool script
6150 ac_cpp='$CPP $CPPFLAGS'
6151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156 # Source file extension for C test sources.
6159 # Object file extension for compiled C test sources.
6163 # Code to be used in simple compile tests
6164 lt_simple_compile_test_code="int some_variable = 0;\n"
6166 # Code to be used in simple link tests
6167 lt_simple_link_test_code='int main(){return(0);}\n'
6170 # If no C compiler was specified, use CC.
6173 # Allow CC to be a program name with arguments.
6178 # Check for any special shared library compilation flags.
6181 if test "$GCC" = no; then
6184 lt_prog_cc_shlib='-belf'
6188 if test -n "$lt_prog_cc_shlib"; then
6189 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6190 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6191 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6193 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6194 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6195 lt_cv_prog_cc_can_build_shared=no
6201 # Check to make sure the static flag actually works.
6203 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6204 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6205 if test "${lt_prog_compiler_static_works+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 lt_prog_compiler_static_works=no
6209 save_LDFLAGS="$LDFLAGS"
6210 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6211 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6212 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6213 # The compiler can only warn and ignore the option if not recognized
6214 # So say no if there are warnings
6215 if test -s conftest.err; then
6216 # Append any errors to the config.log.
6217 cat conftest.err 1>&5
6219 lt_prog_compiler_static_works=yes
6223 LDFLAGS="$save_LDFLAGS"
6226 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6227 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6229 if test x"$lt_prog_compiler_static_works" = xyes; then
6232 lt_prog_compiler_static=
6238 ## There is no encapsulation within the following macros, do not change
6239 ## the running order or otherwise move them around unless you know exactly
6240 ## what you are doing...
6242 lt_prog_compiler_no_builtin_flag=
6244 if test "$GCC" = yes; then
6245 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6248 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6249 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6250 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 lt_cv_prog_compiler_rtti_exceptions=no
6254 ac_outfile=conftest.$ac_objext
6255 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6256 lt_compiler_flag="-fno-rtti -fno-exceptions"
6257 # Insert the option either (1) after the last *FLAGS variable, or
6258 # (2) before a word containing "conftest.", or (3) at the end.
6259 # Note that $ac_compile itself does not contain backslashes and begins
6260 # with a dollar sign (not a hyphen), so the echo should work correctly.
6261 # The option is referenced via a variable to avoid confusing sed.
6262 lt_compile=`echo "$ac_compile" | $SED \
6263 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6265 -e 's:$: $lt_compiler_flag:'`
6266 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6267 (eval "$lt_compile" 2>conftest.err)
6269 cat conftest.err >&5
6270 echo "$as_me:__oline__: \$? = $ac_status" >&5
6271 if (exit $ac_status) && test -s "$ac_outfile"; then
6272 # The compiler can only warn and ignore the option if not recognized
6273 # So say no if there are warnings
6274 if test ! -s conftest.err; then
6275 lt_cv_prog_compiler_rtti_exceptions=yes
6281 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6282 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6284 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6285 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6292 lt_prog_compiler_wl=
6293 lt_prog_compiler_pic=
6294 lt_prog_compiler_static=
6296 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6297 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6299 if test "$GCC" = yes; then
6300 lt_prog_compiler_wl='-Wl,'
6301 lt_prog_compiler_static='-static'
6305 # All AIX code is PIC.
6306 if test "$host_cpu" = ia64; then
6307 # AIX 5 now supports IA64 processor
6308 lt_prog_compiler_static='-Bstatic'
6313 # FIXME: we need at least 68020 code to build shared libraries, but
6314 # adding the `-m68020' flag to GCC prevents building anything better,
6316 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6319 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6320 # PIC is the default for these OSes.
6323 mingw* | pw32* | os2*)
6324 # This hack is so that the source file can tell whether it is being
6325 # built for inclusion in a dll (and should export symbols for example).
6326 lt_prog_compiler_pic='-DDLL_EXPORT'
6329 darwin* | rhapsody*)
6330 # PIC is the default on this platform
6331 # Common symbols not allowed in MH_DYLIB files
6332 lt_prog_compiler_pic='-fno-common'
6336 # Just because we use GCC doesn't mean we suddenly get shared libraries
6337 # on systems that don't support them.
6338 lt_prog_compiler_can_build_shared=no
6343 if test -d /usr/nec; then
6344 lt_prog_compiler_pic=-Kconform_pic
6349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6356 lt_prog_compiler_pic='-fPIC'
6362 lt_prog_compiler_pic='-fPIC'
6366 # PORTME Check for flag to pass linker flags through the system compiler.
6369 lt_prog_compiler_wl='-Wl,'
6370 if test "$host_cpu" = ia64; then
6371 # AIX 5 now supports IA64 processor
6372 lt_prog_compiler_static='-Bstatic'
6374 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6378 mingw* | pw32* | os2*)
6379 # This hack is so that the source file can tell whether it is being
6380 # built for inclusion in a dll (and should export symbols for example).
6381 lt_prog_compiler_pic='-DDLL_EXPORT'
6384 hpux9* | hpux10* | hpux11*)
6385 lt_prog_compiler_wl='-Wl,'
6386 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6393 lt_prog_compiler_pic='+Z'
6396 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6397 lt_prog_compiler_static='${wl}-a ${wl}archive'
6400 irix5* | irix6* | nonstopux*)
6401 lt_prog_compiler_wl='-Wl,'
6402 # PIC (with -KPIC) is the default.
6403 lt_prog_compiler_static='-non_shared'
6407 lt_prog_compiler_pic='-KPIC'
6408 lt_prog_compiler_static='-Bstatic'
6414 lt_prog_compiler_wl='-Wl,'
6415 lt_prog_compiler_pic='-KPIC'
6416 lt_prog_compiler_static='-static'
6419 lt_prog_compiler_wl='-Wl,'
6420 # All Alpha code is PIC.
6421 lt_prog_compiler_static='-non_shared'
6426 osf3* | osf4* | osf5*)
6427 lt_prog_compiler_wl='-Wl,'
6428 # All OSF/1 code is PIC.
6429 lt_prog_compiler_static='-non_shared'
6433 lt_prog_compiler_pic='-Kpic'
6434 lt_prog_compiler_static='-dn'
6438 lt_prog_compiler_wl='-Wl,'
6439 lt_prog_compiler_pic='-KPIC'
6440 lt_prog_compiler_static='-Bstatic'
6444 lt_prog_compiler_wl='-Qoption ld '
6445 lt_prog_compiler_pic='-PIC'
6446 lt_prog_compiler_static='-Bstatic'
6449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6450 lt_prog_compiler_wl='-Wl,'
6451 lt_prog_compiler_pic='-KPIC'
6452 lt_prog_compiler_static='-Bstatic'
6456 if test -d /usr/nec ;then
6457 lt_prog_compiler_pic='-Kconform_pic'
6458 lt_prog_compiler_static='-Bstatic'
6463 lt_prog_compiler_pic='-pic'
6464 lt_prog_compiler_static='-Bstatic'
6468 lt_prog_compiler_can_build_shared=no
6473 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6474 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6477 # Check to make sure the PIC flag actually works.
6479 if test -n "$lt_prog_compiler_pic"; then
6481 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6482 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6483 if test "${lt_prog_compiler_pic_works+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 lt_prog_compiler_pic_works=no
6487 ac_outfile=conftest.$ac_objext
6488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6489 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6490 # Insert the option either (1) after the last *FLAGS variable, or
6491 # (2) before a word containing "conftest.", or (3) at the end.
6492 # Note that $ac_compile itself does not contain backslashes and begins
6493 # with a dollar sign (not a hyphen), so the echo should work correctly.
6494 # The option is referenced via a variable to avoid confusing sed.
6495 lt_compile=`echo "$ac_compile" | $SED \
6496 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6498 -e 's:$: $lt_compiler_flag:'`
6499 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6500 (eval "$lt_compile" 2>conftest.err)
6502 cat conftest.err >&5
6503 echo "$as_me:__oline__: \$? = $ac_status" >&5
6504 if (exit $ac_status) && test -s "$ac_outfile"; then
6505 # The compiler can only warn and ignore the option if not recognized
6506 # So say no if there are warnings
6507 if test ! -s conftest.err; then
6508 lt_prog_compiler_pic_works=yes
6514 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6515 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6517 if test x"$lt_prog_compiler_pic_works" = xyes; then
6518 case $lt_prog_compiler_pic in
6520 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6523 lt_prog_compiler_pic=
6524 lt_prog_compiler_can_build_shared=no
6529 # For platforms which do not support PIC, -DPIC is meaningless:
6531 lt_prog_compiler_pic=
6534 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6538 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6540 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 lt_cv_prog_compiler_c_o=no
6544 $rm -r conftest 2>/dev/null
6548 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6550 lt_compiler_flag="-o out/conftest2.$ac_objext"
6551 # Insert the option either (1) after the last *FLAGS variable, or
6552 # (2) before a word containing "conftest.", or (3) at the end.
6553 # Note that $ac_compile itself does not contain backslashes and begins
6554 # with a dollar sign (not a hyphen), so the echo should work correctly.
6555 lt_compile=`echo "$ac_compile" | $SED \
6556 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6558 -e 's:$: $lt_compiler_flag:'`
6559 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6560 (eval "$lt_compile" 2>out/conftest.err)
6562 cat out/conftest.err >&5
6563 echo "$as_me:__oline__: \$? = $ac_status" >&5
6564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6566 # The compiler can only warn and ignore the option if not recognized
6567 # So say no if there are warnings
6568 if test ! -s out/conftest.err; then
6569 lt_cv_prog_compiler_c_o=yes
6574 # SGI C++ compiler will create directory out/ii_files/ for
6575 # template instantiation
6576 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6577 $rm out/* && rmdir out
6583 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6584 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6587 hard_links="nottested"
6588 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6589 # do not overwrite the value of need_locks provided by the user
6590 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6591 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6594 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6596 ln conftest.a conftest.b 2>&5 || hard_links=no
6597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6598 echo "$as_me:$LINENO: result: $hard_links" >&5
6599 echo "${ECHO_T}$hard_links" >&6
6600 if test "$hard_links" = no; then
6601 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6602 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6609 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6610 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6613 allow_undefined_flag=
6614 enable_shared_with_static_runtimes=no
6616 archive_expsym_cmds=
6617 old_archive_From_new_cmds=
6618 old_archive_from_expsyms_cmds=
6619 export_dynamic_flag_spec=
6620 whole_archive_flag_spec=
6621 thread_safe_flag_spec=
6622 hardcode_libdir_flag_spec=
6623 hardcode_libdir_flag_spec_ld=
6624 hardcode_libdir_separator=
6627 hardcode_shlibpath_var=unsupported
6628 link_all_deplibs=unknown
6629 hardcode_automatic=no
6632 always_export_symbols=no
6633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6634 # include_expsyms should be a list of space-separated symbols to be *always*
6635 # included in the symbol list
6637 # exclude_expsyms can be an extended regexp of symbols to exclude
6638 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6639 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6640 # as well as any symbol that contains `d'.
6641 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6642 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6643 # platforms (ab)use it in PIC code, but their linkers get confused if
6644 # the symbol is explicitly referenced. Since portable code cannot
6645 # rely on this symbol name, it's probably fine to never include it in
6646 # preloaded symbol tables.
6647 extract_expsyms_cmds=
6650 cygwin* | mingw* | pw32*)
6651 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6652 # When not using gcc, we currently assume that we are using
6653 # Microsoft Visual C++.
6654 if test "$GCC" != yes; then
6664 if test "$with_gnu_ld" = yes; then
6665 # If archive_cmds runs LD, not CC, wlarc should be empty
6668 # See if GNU ld supports shared libraries.
6670 aix3* | aix4* | aix5*)
6671 # On AIX/PPC, the GNU linker is very broken
6672 if test "$host_cpu" != ia64; then
6676 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6677 *** to be unable to reliably create shared libraries on AIX.
6678 *** Therefore, libtool is disabling shared libraries support. If you
6679 *** really care for shared libraries, you may want to modify your PATH
6680 *** so that a non-GNU linker is found, and then restart.
6687 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)'
6688 hardcode_libdir_flag_spec='-L$libdir'
6689 hardcode_minus_L=yes
6691 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6692 # that the semantics of dynamic libraries on AmigaOS, at least up
6693 # to version 4, is to share data among multiple programs linked
6694 # with the same dynamic library. Since this doesn't match the
6695 # behavior of shared libraries on other platforms, we can't use
6701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6702 allow_undefined_flag=unsupported
6703 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6704 # support --undefined. This deserves some investigation. FIXME
6705 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6711 cygwin* | mingw* | pw32*)
6712 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6713 # as there is no search path for DLLs.
6714 hardcode_libdir_flag_spec='-L$libdir'
6715 allow_undefined_flag=unsupported
6716 always_export_symbols=no
6717 enable_shared_with_static_runtimes=yes
6718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6720 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6722 # If the export-symbols file already is a .def file (1st line
6723 # is EXPORTS), use it as is; otherwise, prepend...
6724 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6725 cp $export_symbols $output_objdir/$soname.def;
6727 echo EXPORTS > $output_objdir/$soname.def;
6728 cat $export_symbols >> $output_objdir/$soname.def;
6730 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6738 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6747 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6751 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6752 *** create shared libraries on Solaris systems. Therefore, libtool
6753 *** is disabling shared libraries support. We urge you to upgrade GNU
6754 *** binutils to release 2.9.1 or newer. Another option is to modify
6755 *** your PATH or compiler configuration so that the native linker is
6756 *** used, and then restart.
6759 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6768 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6771 hardcode_shlibpath_var=no
6775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6776 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777 archive_cmds="$tmp_archive_cmds"
6778 supports_anon_versioning=no
6779 case `$LD -v 2>/dev/null` in
6780 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6781 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6782 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6783 *\ 2.11.*) ;; # other 2.11 versions
6784 *) supports_anon_versioning=yes ;;
6786 if test $supports_anon_versioning = yes; then
6787 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6789 $echo "local: *; };" >> $output_objdir/$libname.ver~
6790 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6792 archive_expsym_cmds="$tmp_archive_cmds"
6800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6809 if test "$ld_shlibs" = yes; then
6810 runpath_var=LD_RUN_PATH
6811 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6812 export_dynamic_flag_spec='${wl}--export-dynamic'
6813 # ancient GNU ld didn't support --whole-archive et. al.
6814 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6815 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6817 whole_archive_flag_spec=
6821 # PORTME fill in a description of your system's linker (not GNU ld)
6824 allow_undefined_flag=unsupported
6825 always_export_symbols=yes
6826 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'
6827 # Note: this linker hardcodes the directories in LIBPATH if there
6828 # are no directories specified by -L.
6829 hardcode_minus_L=yes
6830 if test "$GCC" = yes && test -z "$link_static_flag"; then
6831 # Neither direct hardcoding nor static linking is supported with a
6833 hardcode_direct=unsupported
6838 if test "$host_cpu" = ia64; then
6839 # On IA64, the linker does run time linking by default, so we don't
6840 # have to do anything special.
6841 aix_use_runtimelinking=no
6842 exp_sym_flag='-Bexport'
6845 # If we're using GNU nm, then we don't want the "-C" option.
6846 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6847 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6848 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'
6850 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'
6852 aix_use_runtimelinking=no
6854 # Test if we are trying to use run time linking or normal
6855 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6856 # need to do runtime linking.
6857 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6858 for ld_flag in $LDFLAGS; do
6859 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6860 aix_use_runtimelinking=yes
6866 exp_sym_flag='-bexport'
6867 no_entry_flag='-bnoentry'
6870 # When large executables or shared objects are built, AIX ld can
6871 # have problems creating the table of contents. If linking a library
6872 # or program results in "error TOC overflow" add -mminimal-toc to
6873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6878 hardcode_libdir_separator=':'
6879 link_all_deplibs=yes
6881 if test "$GCC" = yes; then
6882 case $host_os in aix4.012|aix4.012.*)
6883 # We only want to do this on AIX 4.2 and lower, the check
6884 # below for broken collect2 doesn't work under 4.3+
6885 collect2name=`${CC} -print-prog-name=collect2`
6886 if test -f "$collect2name" && \
6887 strings "$collect2name" | grep resolve_lib_name >/dev/null
6889 # We have reworked collect2
6892 # We have old collect2
6893 hardcode_direct=unsupported
6894 # It fails to find uninstalled libraries when the uninstalled
6895 # path is not listed in the libpath. Setting hardcode_minus_L
6896 # to unsupported forces relinking
6897 hardcode_minus_L=yes
6898 hardcode_libdir_flag_spec='-L$libdir'
6899 hardcode_libdir_separator=
6902 shared_flag='-shared'
6905 if test "$host_cpu" = ia64; then
6906 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6907 # chokes on -Wl,-G. The following line is correct:
6910 if test "$aix_use_runtimelinking" = yes; then
6911 shared_flag='${wl}-G'
6913 shared_flag='${wl}-bM:SRE'
6918 # It seems that -bexpall does not export symbols beginning with
6919 # underscore (_), so it is better to generate a list of symbols to export.
6920 always_export_symbols=yes
6921 if test "$aix_use_runtimelinking" = yes; then
6922 # Warning - without using the other runtime loading flags (-brtl),
6923 # -berok will link without error, but may produce a broken library.
6924 allow_undefined_flag='-berok'
6925 # Determine the default libpath from the value encoded in an empty executable.
6926 cat >conftest.$ac_ext <<_ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>conftest.er1
6945 grep -v '^ *+' conftest.er1 >conftest.err
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag"
6951 || test ! -s conftest.err'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6964 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6966 # Check for a 64-bit object if we didn't find anything.
6967 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; }
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6974 rm -f conftest.err conftest.$ac_objext \
6975 conftest$ac_exeext conftest.$ac_ext
6976 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6978 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6979 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"
6981 if test "$host_cpu" = ia64; then
6982 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6983 allow_undefined_flag="-z nodefs"
6984 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"
6986 # Determine the default libpath from the value encoded in an empty executable.
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004 (eval $ac_link) 2>conftest.er1
7006 grep -v '^ *+' conftest.er1 >conftest.err
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -z "$ac_c_werror_flag"
7012 || test ! -s conftest.err'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; } &&
7018 { ac_try='test -s conftest$ac_exeext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7027 # Check for a 64-bit object if we didn't find anything.
7028 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; }
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7035 rm -f conftest.err conftest.$ac_objext \
7036 conftest$ac_exeext conftest.$ac_ext
7037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7039 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7040 # Warning - without using the other run time loading flags,
7041 # -berok will link without error, but may produce a broken library.
7042 no_undefined_flag=' ${wl}-bernotok'
7043 allow_undefined_flag=' ${wl}-berok'
7044 # -bexpall does not export symbols beginning with underscore (_)
7045 always_export_symbols=yes
7046 # Exported symbols can be pulled into shared objects from archives
7047 whole_archive_flag_spec=' '
7048 archive_cmds_need_lc=yes
7049 # This is similar to how AIX traditionally builds it's shared libraries.
7050 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'
7056 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)'
7057 hardcode_libdir_flag_spec='-L$libdir'
7058 hardcode_minus_L=yes
7059 # see comment about different semantics on the GNU ld section
7064 export_dynamic_flag_spec=-rdynamic
7067 cygwin* | mingw* | pw32*)
7068 # When not using gcc, we currently assume that we are using
7069 # Microsoft Visual C++.
7070 # hardcode_libdir_flag_spec is actually meaningless, as there is
7071 # no search path for DLLs.
7072 hardcode_libdir_flag_spec=' '
7073 allow_undefined_flag=unsupported
7074 # Tell ltmain to make .lib files, not .a files.
7076 # Tell ltmain to make .dll files, not .so files.
7078 # FIXME: Setting linknames here is a bad hack.
7079 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7080 # The linker will automatically build a .lib file if we build a DLL.
7081 old_archive_From_new_cmds='true'
7082 # FIXME: Should let the user specify the lib program.
7083 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7084 fix_srcfile_path='`cygpath -w "$srcfile"`'
7085 enable_shared_with_static_runtimes=yes
7088 darwin* | rhapsody*)
7089 if test "$GXX" = yes ; then
7090 archive_cmds_need_lc=no
7092 rhapsody* | darwin1.[012])
7093 allow_undefined_flag='-undefined suppress'
7096 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7097 allow_undefined_flag='-flat_namespace -undefined suppress'
7099 case ${MACOSX_DEPLOYMENT_TARGET} in
7101 allow_undefined_flag='-flat_namespace -undefined suppress'
7104 allow_undefined_flag='-undefined dynamic_lookup'
7110 lt_int_apple_cc_single_mod=no
7111 output_verbose_link_cmd='echo'
7112 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7113 lt_int_apple_cc_single_mod=yes
7115 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7116 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7118 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'
7120 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7121 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7122 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7123 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}'
7125 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}'
7127 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}'
7129 hardcode_automatic=yes
7130 hardcode_shlibpath_var=unsupported
7131 whole_archive_flag_spec='-all_load $convenience'
7132 link_all_deplibs=yes
7139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7140 hardcode_libdir_flag_spec='-L$libdir'
7141 hardcode_shlibpath_var=no
7148 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7149 # support. Future versions do this automatically, but an explicit c++rt0.o
7150 # does not break anything, and helps significantly (at the cost of a little
7153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7154 hardcode_libdir_flag_spec='-R$libdir'
7156 hardcode_shlibpath_var=no
7159 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7163 hardcode_minus_L=yes
7164 hardcode_shlibpath_var=no
7167 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7168 freebsd* | kfreebsd*-gnu)
7169 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7170 hardcode_libdir_flag_spec='-R$libdir'
7172 hardcode_shlibpath_var=no
7176 if test "$GCC" = yes; then
7177 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'
7179 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'
7181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7182 hardcode_libdir_separator=:
7185 # hardcode_minus_L: Not really in the search PATH,
7186 # but as the default location of the library.
7187 hardcode_minus_L=yes
7188 export_dynamic_flag_spec='${wl}-E'
7192 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7195 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7198 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7204 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7207 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7211 if test "$with_gnu_ld" = no; then
7214 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7215 hardcode_libdir_flag_spec_ld='+b $libdir'
7216 hardcode_libdir_separator=:
7218 hardcode_shlibpath_var=no
7221 hardcode_libdir_flag_spec='-L$libdir'
7223 hardcode_shlibpath_var=no
7225 # hardcode_minus_L: Not really in the search PATH,
7226 # but as the default location of the library.
7227 hardcode_minus_L=yes
7230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7231 hardcode_libdir_separator=:
7233 export_dynamic_flag_spec='${wl}-E'
7235 # hardcode_minus_L: Not really in the search PATH,
7236 # but as the default location of the library.
7237 hardcode_minus_L=yes
7243 irix5* | irix6* | nonstopux*)
7244 if test "$GCC" = yes; then
7245 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'
7247 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'
7248 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7251 hardcode_libdir_separator=:
7252 link_all_deplibs=yes
7256 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7259 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7261 hardcode_libdir_flag_spec='-R$libdir'
7263 hardcode_shlibpath_var=no
7267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7270 hardcode_libdir_separator=:
7271 hardcode_shlibpath_var=no
7276 hardcode_shlibpath_var=no
7277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7280 export_dynamic_flag_spec='${wl}-E'
7283 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7285 hardcode_libdir_flag_spec='-R$libdir'
7288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7289 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7296 hardcode_libdir_flag_spec='-L$libdir'
7297 hardcode_minus_L=yes
7298 allow_undefined_flag=unsupported
7299 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'
7300 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7304 if test "$GCC" = yes; then
7305 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7306 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'
7308 allow_undefined_flag=' -expect_unresolved \*'
7309 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'
7311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7312 hardcode_libdir_separator=:
7315 osf4* | osf5*) # as osf3* with the addition of -msym flag
7316 if test "$GCC" = yes; then
7317 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7318 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'
7319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7321 allow_undefined_flag=' -expect_unresolved \*'
7322 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'
7323 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7324 $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'
7326 # Both c and cxx compiler support -rpath directly
7327 hardcode_libdir_flag_spec='-rpath $libdir'
7329 hardcode_libdir_separator=:
7333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7334 hardcode_shlibpath_var=no
7335 export_dynamic_flag_spec='${wl}-Bexport'
7336 runpath_var=LD_RUN_PATH
7337 hardcode_runpath_var=yes
7341 no_undefined_flag=' -z text'
7342 if test "$GCC" = yes; then
7343 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7344 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7345 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7347 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7348 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7349 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7351 hardcode_libdir_flag_spec='-R$libdir'
7352 hardcode_shlibpath_var=no
7354 solaris2.[0-5] | solaris2.[0-5].*) ;;
7355 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7356 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7358 link_all_deplibs=yes
7362 if test "x$host_vendor" = xsequent; then
7363 # Use $CC to link under sequent, because it throws in some extra .o
7364 # files that make .init and .fini sections work.
7365 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7367 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7369 hardcode_libdir_flag_spec='-L$libdir'
7371 hardcode_minus_L=yes
7372 hardcode_shlibpath_var=no
7376 case $host_vendor in
7378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7379 hardcode_direct=yes # is this really true???
7382 ## LD is ld it makes a PLAMLIB
7383 ## CC just makes a GrossModule.
7384 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7385 reload_cmds='$CC -r -o $output$reload_objs'
7389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7390 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7393 runpath_var='LD_RUN_PATH'
7394 hardcode_shlibpath_var=no
7398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399 hardcode_shlibpath_var=no
7400 export_dynamic_flag_spec='-Bexport'
7404 if test -d /usr/nec; then
7405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7406 hardcode_shlibpath_var=no
7407 runpath_var=LD_RUN_PATH
7408 hardcode_runpath_var=yes
7414 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7417 hardcode_shlibpath_var=no
7418 hardcode_runpath_var=yes
7419 runpath_var=LD_RUN_PATH
7422 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7423 no_undefined_flag='${wl}-z ${wl}text'
7424 if test "$GCC" = yes; then
7425 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7427 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7429 runpath_var='LD_RUN_PATH'
7430 hardcode_shlibpath_var=no
7434 no_undefined_flag=' -z text'
7435 # $CC -shared without GNU ld will not create a library from C++
7436 # object files and a static libstdc++, better avoid it by now
7437 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7438 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7439 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7440 hardcode_libdir_flag_spec=
7441 hardcode_shlibpath_var=no
7442 runpath_var='LD_RUN_PATH'
7446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7447 hardcode_libdir_flag_spec='-L$libdir'
7448 hardcode_shlibpath_var=no
7457 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7458 echo "${ECHO_T}$ld_shlibs" >&6
7459 test "$ld_shlibs" = no && can_build_shared=no
7461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7462 if test "$GCC" = yes; then
7463 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7467 # Do we need to explicitly link libc?
7469 case "x$archive_cmds_need_lc" in
7471 # Assume -lc should be added
7472 archive_cmds_need_lc=yes
7474 if test "$enable_shared" = yes && test "$GCC" = yes; then
7475 case $archive_cmds in
7477 # FIXME: we may have to deal with multi-command sequences.
7480 # Test whether the compiler implicitly links with -lc since on some
7481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7482 # to ld, don't add -lc before -lgcc.
7483 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7484 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7486 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489 (eval $ac_compile) 2>&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } 2>conftest.err; then
7495 libobjs=conftest.$ac_objext
7497 wl=$lt_prog_compiler_wl
7503 lt_save_allow_undefined_flag=$allow_undefined_flag
7504 allow_undefined_flag=
7505 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7506 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }
7511 archive_cmds_need_lc=no
7513 archive_cmds_need_lc=yes
7515 allow_undefined_flag=$lt_save_allow_undefined_flag
7517 cat conftest.err 1>&5
7520 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7521 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7528 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7529 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7531 libname_spec='lib$name'
7539 shlibpath_overrides_runpath=unknown
7541 dynamic_linker="$host_os ld.so"
7542 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7543 if test "$GCC" = yes; then
7544 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7545 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7546 # if the path contains ";" then we assume it to be the separator
7547 # otherwise default to the standard path separator (i.e. ":") - it is
7548 # assumed that no part of a normal pathname contains ";" but that should
7549 # okay in the real world where ";" in dirpaths is itself problematic.
7550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7555 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7557 need_lib_prefix=unknown
7558 hardcode_into_libs=no
7560 # when you set need_version to no, make sure it does not cause -set_version
7561 # flags to be left without arguments
7562 need_version=unknown
7567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7568 shlibpath_var=LIBPATH
7570 # AIX 3 has no versioning support, so we append a major version to the name.
7571 soname_spec='${libname}${release}${shared_ext}$major'
7578 hardcode_into_libs=yes
7579 if test "$host_cpu" = ia64; then
7580 # AIX 5 supports IA64
7581 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7582 shlibpath_var=LD_LIBRARY_PATH
7584 # With GCC up to 2.95.x, collect2 would create an import file
7585 # for dependence libraries. The import file would start with
7586 # the line `#! .'. This would cause the generated library to
7587 # depend on `.', always an invalid library. This was fixed in
7588 # development snapshots of GCC prior to 3.0.
7590 aix4 | aix4.[01] | aix4.[01].*)
7591 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7593 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7600 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7601 # soname into executable. Probably we can add versioning support to
7602 # collect2, so additional links can be useful in future.
7603 if test "$aix_use_runtimelinking" = yes; then
7604 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7605 # instead of lib<name>.a to let people know that these are not
7606 # typical AIX shared libraries.
7607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609 # We preserve .a as extension for shared libraries through AIX4.2
7610 # and later when we are not doing run time linking.
7611 library_names_spec='${libname}${release}.a $libname.a'
7612 soname_spec='${libname}${release}${shared_ext}$major'
7614 shlibpath_var=LIBPATH
7619 library_names_spec='$libname.ixlibrary $libname.a'
7620 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7621 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'
7625 library_names_spec='${libname}${shared_ext}'
7626 dynamic_linker="$host_os ld.so"
7627 shlibpath_var=LIBRARY_PATH
7633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7634 soname_spec='${libname}${release}${shared_ext}$major'
7635 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7636 shlibpath_var=LD_LIBRARY_PATH
7637 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7638 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7639 # the default ld.so.conf also contains /usr/contrib/lib and
7640 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7641 # libtool to hard-code these into programs
7644 cygwin* | mingw* | pw32*)
7645 version_type=windows
7650 case $GCC,$host_os in
7651 yes,cygwin* | yes,mingw* | yes,pw32*)
7652 library_names_spec='$libname.dll.a'
7653 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7654 postinstall_cmds='base_file=`basename \${file}`~
7655 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7656 dldir=$destdir/`dirname \$dlpath`~
7657 test -d \$dldir || mkdir -p \$dldir~
7658 $install_prog $dir/$dlname \$dldir/$dlname'
7659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7660 dlpath=$dir/\$dldll~
7662 shlibpath_overrides_runpath=yes
7666 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7667 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7668 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7671 # MinGW DLLs use traditional 'lib' prefix
7672 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7673 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7674 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7675 # It is most probably a Windows format PATH printed by
7676 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7677 # path with ; separators, and with drive letters. We can handle the
7678 # drive letters (cygwin fileutils understands them), so leave them,
7679 # especially as we might pass files found there to a mingw objdump,
7680 # which wouldn't understand a cygwinified path. Ahh.
7681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7687 # pw32 DLLs use 'pw' prefix rather than 'lib'
7688 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7697 dynamic_linker='Win32 ld.exe'
7698 # FIXME: first we should search . and the directory the executable is in
7702 darwin* | rhapsody*)
7703 dynamic_linker="$host_os dyld"
7707 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7708 soname_spec='${libname}${release}${major}$shared_ext'
7709 shlibpath_overrides_runpath=yes
7710 shlibpath_var=DYLD_LIBRARY_PATH
7711 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7712 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7713 if test "$GCC" = yes; then
7714 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"`
7716 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7718 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7726 soname_spec='${libname}${release}${shared_ext}$major'
7727 shlibpath_var=LD_LIBRARY_PATH
7738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7739 soname_spec='${libname}${release}${shared_ext}$major'
7740 shlibpath_var=LD_LIBRARY_PATH
7741 shlibpath_overrides_runpath=no
7742 hardcode_into_libs=yes
7743 dynamic_linker='GNU ld.so'
7747 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7748 version_type=freebsd-$objformat
7749 case $version_type in
7751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7756 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7760 shlibpath_var=LD_LIBRARY_PATH
7763 shlibpath_overrides_runpath=yes
7765 freebsd3.01* | freebsdelf3.01*)
7766 shlibpath_overrides_runpath=yes
7767 hardcode_into_libs=yes
7770 shlibpath_overrides_runpath=no
7771 hardcode_into_libs=yes
7780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7781 soname_spec='${libname}${release}${shared_ext}$major'
7782 shlibpath_var=LD_LIBRARY_PATH
7783 hardcode_into_libs=yes
7786 hpux9* | hpux10* | hpux11*)
7787 # Give a soname corresponding to the major version so that dld.sl refuses to
7788 # link against other versions.
7795 hardcode_into_libs=yes
7796 dynamic_linker="$host_os dld.so"
7797 shlibpath_var=LD_LIBRARY_PATH
7798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7800 soname_spec='${libname}${release}${shared_ext}$major'
7801 if test "X$HPUX_IA64_MODE" = X32; then
7802 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7804 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7810 hardcode_into_libs=yes
7811 dynamic_linker="$host_os dld.sl"
7812 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815 soname_spec='${libname}${release}${shared_ext}$major'
7816 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7821 dynamic_linker="$host_os dld.sl"
7822 shlibpath_var=SHLIB_PATH
7823 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7825 soname_spec='${libname}${release}${shared_ext}$major'
7828 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7829 postinstall_cmds='chmod 555 $lib'
7832 irix5* | irix6* | nonstopux*)
7834 nonstopux*) version_type=nonstopux ;;
7836 if test "$lt_cv_prog_gnu_ld" = yes; then
7844 soname_spec='${libname}${release}${shared_ext}$major'
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7847 irix5* | nonstopux*)
7851 case $LD in # libtool.m4 will add one of these switches to LD
7852 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7853 libsuff= shlibsuff= libmagic=32-bit;;
7854 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7855 libsuff=32 shlibsuff=N32 libmagic=N32;;
7856 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7857 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7858 *) libsuff= shlibsuff= libmagic=never-match;;
7862 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7863 shlibpath_overrides_runpath=no
7864 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7865 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7866 hardcode_into_libs=yes
7869 # No shared lib support for Linux oldld, aout, or coff.
7870 linux*oldld* | linux*aout* | linux*coff*)
7874 # This must be Linux ELF.
7879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7880 soname_spec='${libname}${release}${shared_ext}$major'
7881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7882 shlibpath_var=LD_LIBRARY_PATH
7883 shlibpath_overrides_runpath=no
7884 # This implies no fast_install, which is unacceptable.
7885 # Some rework will be needed to allow for fast_install
7886 # before this can be enabled.
7887 hardcode_into_libs=yes
7889 # find out which ABI we are using
7892 x86_64*|s390x*|powerpc64*)
7893 echo '#line __oline__ "configure"' > conftest.$ac_ext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; then
7899 case `/usr/bin/file conftest.$ac_objext` in
7902 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7910 # Append ld.so.conf contents to the search path
7911 if test -f /etc/ld.so.conf; then
7912 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7913 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7916 # We used to test for /lib/ld.so.1 and disable shared libraries on
7917 # powerpc, because MkLinux only supported shared libraries with the
7918 # GNU dynamic linker. Since this was broken with cross compilers,
7919 # most powerpc-linux boxes support dynamic linking these days and
7920 # people can always --disable-shared, the test was removed, and we
7921 # assume the GNU/Linux dynamic linker is in use.
7922 dynamic_linker='GNU/Linux ld.so'
7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7930 soname_spec='${libname}${release}${shared_ext}$major'
7931 shlibpath_var=LD_LIBRARY_PATH
7932 shlibpath_overrides_runpath=no
7933 hardcode_into_libs=yes
7934 dynamic_linker='GNU ld.so'
7941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7944 dynamic_linker='NetBSD (a.out) ld.so'
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7947 soname_spec='${libname}${release}${shared_ext}$major'
7948 dynamic_linker='NetBSD ld.elf_so'
7950 shlibpath_var=LD_LIBRARY_PATH
7951 shlibpath_overrides_runpath=yes
7952 hardcode_into_libs=yes
7957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7958 shlibpath_var=LD_LIBRARY_PATH
7959 shlibpath_overrides_runpath=yes
7966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967 soname_spec='${libname}${release}${shared_ext}$major'
7968 shlibpath_var=LD_LIBRARY_PATH
7969 shlibpath_overrides_runpath=yes
7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7978 shlibpath_var=LD_LIBRARY_PATH
7979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7981 openbsd2.[89] | openbsd2.[89].*)
7982 shlibpath_overrides_runpath=no
7985 shlibpath_overrides_runpath=yes
7989 shlibpath_overrides_runpath=yes
7994 libname_spec='$name'
7997 library_names_spec='$libname${shared_ext} $libname.a'
7998 dynamic_linker='OS/2 ld.exe'
7999 shlibpath_var=LIBPATH
8002 osf3* | osf4* | osf5*)
8006 soname_spec='${libname}${release}${shared_ext}$major'
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008 shlibpath_var=LD_LIBRARY_PATH
8009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8015 soname_spec='${libname}${release}${shared_ext}$major'
8016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8017 shlibpath_var=LD_LIBRARY_PATH
8024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8025 soname_spec='${libname}${release}${shared_ext}$major'
8026 shlibpath_var=LD_LIBRARY_PATH
8027 shlibpath_overrides_runpath=yes
8028 hardcode_into_libs=yes
8029 # ldd complains unless libraries are executable
8030 postinstall_cmds='chmod +x $lib'
8035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8037 shlibpath_var=LD_LIBRARY_PATH
8038 shlibpath_overrides_runpath=yes
8039 if test "$with_gnu_ld" = yes; then
8045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048 soname_spec='${libname}${release}${shared_ext}$major'
8049 shlibpath_var=LD_LIBRARY_PATH
8050 case $host_vendor in
8052 shlibpath_overrides_runpath=no
8054 export_dynamic_flag_spec='${wl}-Blargedynsym'
8055 runpath_var=LD_RUN_PATH
8063 shlibpath_overrides_runpath=no
8064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8070 if test -d /usr/nec ;then
8072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8073 soname_spec='$libname${shared_ext}.$major'
8074 shlibpath_var=LD_LIBRARY_PATH
8080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8081 soname_spec='${libname}${release}${shared_ext}$major'
8082 shlibpath_var=LD_LIBRARY_PATH
8089 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8090 echo "${ECHO_T}$dynamic_linker" >&6
8091 test "$dynamic_linker" = no && can_build_shared=no
8093 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8094 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8096 if test -n "$hardcode_libdir_flag_spec" || \
8097 test -n "$runpath_var " || \
8098 test "X$hardcode_automatic"="Xyes" ; then
8100 # We can hardcode non-existant directories.
8101 if test "$hardcode_direct" != no &&
8102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8103 # have to relink, otherwise we might link with an installed library
8104 # when we should be linking with a yet-to-be-installed one
8105 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8106 test "$hardcode_minus_L" != no; then
8107 # Linking always hardcodes the temporary library directory.
8108 hardcode_action=relink
8110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8111 hardcode_action=immediate
8114 # We cannot hardcode anything, or else we can only hardcode existing
8116 hardcode_action=unsupported
8118 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8119 echo "${ECHO_T}$hardcode_action" >&6
8121 if test "$hardcode_action" = relink; then
8122 # Fast installation is not supported
8123 enable_fast_install=no
8124 elif test "$shlibpath_overrides_runpath" = yes ||
8125 test "$enable_shared" = no; then
8126 # Fast installation is not necessary
8127 enable_fast_install=needless
8132 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8133 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8134 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8135 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8136 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8137 echo "$as_me:$LINENO: result: yes" >&5
8138 echo "${ECHO_T}yes" >&6
8140 # FIXME - insert some real tests, host_os isn't really good enough
8143 if test -n "$STRIP" ; then
8144 striplib="$STRIP -x"
8145 echo "$as_me:$LINENO: result: yes" >&5
8146 echo "${ECHO_T}yes" >&6
8148 echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8153 echo "$as_me:$LINENO: result: no" >&5
8154 echo "${ECHO_T}no" >&6
8159 if test "x$enable_dlopen" != xyes; then
8160 enable_dlopen=unknown
8161 enable_dlopen_self=unknown
8162 enable_dlopen_self_static=unknown
8169 lt_cv_dlopen="load_add_on"
8171 lt_cv_dlopen_self=yes
8175 lt_cv_dlopen="LoadLibrary"
8180 lt_cv_dlopen="dlopen"
8185 # if libdl is installed we need to link against it
8186 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8187 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 ac_check_lib_save_LIBS=$LIBS
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8200 /* Override any gcc2 internal prototype to avoid an error. */
8204 /* We use char because int might match the return type of a gcc2
8205 builtin and then its argument prototype would still apply. */
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217 (eval $ac_link) 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_c_werror_flag"
8225 || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest$ac_exeext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 ac_cv_lib_dl_dlopen=yes
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 ac_cv_lib_dl_dlopen=no
8244 rm -f conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8246 LIBS=$ac_check_lib_save_LIBS
8248 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8249 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8250 if test $ac_cv_lib_dl_dlopen = yes; then
8251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8256 lt_cv_dlopen_self=yes
8263 echo "$as_me:$LINENO: checking for shl_load" >&5
8264 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8265 if test "${ac_cv_func_shl_load+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 cat >conftest.$ac_ext <<_ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8276 #define shl_load innocuous_shl_load
8278 /* System header to define __stub macros and hopefully few prototypes,
8279 which can conflict with char shl_load (); below.
8280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8281 <limits.h> exists even on freestanding compilers. */
8284 # include <limits.h>
8286 # include <assert.h>
8291 /* Override any gcc2 internal prototype to avoid an error. */
8296 /* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8299 /* The GNU C library defines this for functions which it implements
8300 to always fail with ENOSYS. Some functions are actually named
8301 something starting with __ and the normal name is an alias. */
8302 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8305 char (*f) () = shl_load;
8314 return f != shl_load;
8319 rm -f conftest.$ac_objext conftest$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321 (eval $ac_link) 2>conftest.er1
8323 grep -v '^ *+' conftest.er1 >conftest.err
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_c_werror_flag"
8329 || test ! -s conftest.err'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; } &&
8335 { ac_try='test -s conftest$ac_exeext'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8341 ac_cv_func_shl_load=yes
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8346 ac_cv_func_shl_load=no
8348 rm -f conftest.err conftest.$ac_objext \
8349 conftest$ac_exeext conftest.$ac_ext
8351 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8352 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8353 if test $ac_cv_func_shl_load = yes; then
8354 lt_cv_dlopen="shl_load"
8356 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8357 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8358 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 ac_check_lib_save_LIBS=$LIBS
8363 cat >conftest.$ac_ext <<_ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8370 /* Override any gcc2 internal prototype to avoid an error. */
8374 /* We use char because int might match the return type of a gcc2
8375 builtin and then its argument prototype would still apply. */
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387 (eval $ac_link) 2>conftest.er1
8389 grep -v '^ *+' conftest.er1 >conftest.err
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag"
8395 || test ! -s conftest.err'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest$ac_exeext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_cv_lib_dld_shl_load=yes
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_cv_lib_dld_shl_load=no
8414 rm -f conftest.err conftest.$ac_objext \
8415 conftest$ac_exeext conftest.$ac_ext
8416 LIBS=$ac_check_lib_save_LIBS
8418 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8419 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8420 if test $ac_cv_lib_dld_shl_load = yes; then
8421 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8423 echo "$as_me:$LINENO: checking for dlopen" >&5
8424 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8425 if test "${ac_cv_func_dlopen+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8436 #define dlopen innocuous_dlopen
8438 /* System header to define __stub macros and hopefully few prototypes,
8439 which can conflict with char dlopen (); below.
8440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8441 <limits.h> exists even on freestanding compilers. */
8444 # include <limits.h>
8446 # include <assert.h>
8451 /* Override any gcc2 internal prototype to avoid an error. */
8456 /* We use char because int might match the return type of a gcc2
8457 builtin and then its argument prototype would still apply. */
8459 /* The GNU C library defines this for functions which it implements
8460 to always fail with ENOSYS. Some functions are actually named
8461 something starting with __ and the normal name is an alias. */
8462 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8465 char (*f) () = dlopen;
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>conftest.er1
8483 grep -v '^ *+' conftest.er1 >conftest.err
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_c_werror_flag"
8489 || test ! -s conftest.err'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; } &&
8495 { ac_try='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 ac_cv_func_dlopen=yes
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 ac_cv_func_dlopen=no
8508 rm -f conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8511 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8512 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8513 if test $ac_cv_func_dlopen = yes; then
8514 lt_cv_dlopen="dlopen"
8516 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8517 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8518 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 ac_check_lib_save_LIBS=$LIBS
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8530 /* Override any gcc2 internal prototype to avoid an error. */
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8547 (eval $ac_link) 2>conftest.er1
8549 grep -v '^ *+' conftest.er1 >conftest.err
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag"
8555 || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest$ac_exeext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_lib_dl_dlopen=yes
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 ac_cv_lib_dl_dlopen=no
8574 rm -f conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_lib_save_LIBS
8578 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8579 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8580 if test $ac_cv_lib_dl_dlopen = yes; then
8581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8583 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8584 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8585 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 ac_check_lib_save_LIBS=$LIBS
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8597 /* Override any gcc2 internal prototype to avoid an error. */
8601 /* We use char because int might match the return type of a gcc2
8602 builtin and then its argument prototype would still apply. */
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614 (eval $ac_link) 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag"
8622 || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest$ac_exeext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_cv_lib_svld_dlopen=yes
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8639 ac_cv_lib_svld_dlopen=no
8641 rm -f conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
8643 LIBS=$ac_check_lib_save_LIBS
8645 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8646 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8647 if test $ac_cv_lib_svld_dlopen = yes; then
8648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8650 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8651 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8652 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 ac_check_lib_save_LIBS=$LIBS
8657 cat >conftest.$ac_ext <<_ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8664 /* Override any gcc2 internal prototype to avoid an error. */
8668 /* We use char because int might match the return type of a gcc2
8669 builtin and then its argument prototype would still apply. */
8679 rm -f conftest.$ac_objext conftest$ac_exeext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681 (eval $ac_link) 2>conftest.er1
8683 grep -v '^ *+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_c_werror_flag"
8689 || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_cv_lib_dld_dld_link=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_cv_lib_dld_dld_link=no
8708 rm -f conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8710 LIBS=$ac_check_lib_save_LIBS
8712 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8713 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8714 if test $ac_cv_lib_dld_dld_link = yes; then
8715 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8736 if test "x$lt_cv_dlopen" != xno; then
8742 case $lt_cv_dlopen in
8744 save_CPPFLAGS="$CPPFLAGS"
8745 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8747 save_LDFLAGS="$LDFLAGS"
8748 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8751 LIBS="$lt_cv_dlopen_libs $LIBS"
8753 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8754 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8755 if test "${lt_cv_dlopen_self+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 if test "$cross_compiling" = yes; then :
8759 lt_cv_dlopen_self=cross
8761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8762 lt_status=$lt_dlunknown
8763 cat > conftest.$ac_ext <<EOF
8764 #line __oline__ "configure"
8765 #include "confdefs.h"
8774 # define LT_DLGLOBAL RTLD_GLOBAL
8777 # define LT_DLGLOBAL DL_GLOBAL
8779 # define LT_DLGLOBAL 0
8783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8784 find out it does not work in some platform. */
8785 #ifndef LT_DLLAZY_OR_NOW
8787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8790 # define LT_DLLAZY_OR_NOW DL_LAZY
8793 # define LT_DLLAZY_OR_NOW RTLD_NOW
8796 # define LT_DLLAZY_OR_NOW DL_NOW
8798 # define LT_DLLAZY_OR_NOW 0
8806 extern "C" void exit (int);
8809 void fnord() { int i=42;}
8812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8813 int status = $lt_dlunknown;
8817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8819 /* dlclose (self); */
8825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8826 (eval $ac_link) 2>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8830 (./conftest; exit; ) 2>/dev/null
8833 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8834 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8835 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8838 # compilation failed
8839 lt_cv_dlopen_self=no
8846 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8847 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8849 if test "x$lt_cv_dlopen_self" = xyes; then
8850 LDFLAGS="$LDFLAGS $link_static_flag"
8851 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8852 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8853 if test "${lt_cv_dlopen_self_static+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 if test "$cross_compiling" = yes; then :
8857 lt_cv_dlopen_self_static=cross
8859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8860 lt_status=$lt_dlunknown
8861 cat > conftest.$ac_ext <<EOF
8862 #line __oline__ "configure"
8863 #include "confdefs.h"
8872 # define LT_DLGLOBAL RTLD_GLOBAL
8875 # define LT_DLGLOBAL DL_GLOBAL
8877 # define LT_DLGLOBAL 0
8881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8882 find out it does not work in some platform. */
8883 #ifndef LT_DLLAZY_OR_NOW
8885 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8888 # define LT_DLLAZY_OR_NOW DL_LAZY
8891 # define LT_DLLAZY_OR_NOW RTLD_NOW
8894 # define LT_DLLAZY_OR_NOW DL_NOW
8896 # define LT_DLLAZY_OR_NOW 0
8904 extern "C" void exit (int);
8907 void fnord() { int i=42;}
8910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8911 int status = $lt_dlunknown;
8915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8916 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8917 /* dlclose (self); */
8923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924 (eval $ac_link) 2>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8928 (./conftest; exit; ) 2>/dev/null
8931 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8932 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8933 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8936 # compilation failed
8937 lt_cv_dlopen_self_static=no
8944 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8945 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8948 CPPFLAGS="$save_CPPFLAGS"
8949 LDFLAGS="$save_LDFLAGS"
8954 case $lt_cv_dlopen_self in
8955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8956 *) enable_dlopen_self=unknown ;;
8959 case $lt_cv_dlopen_self_static in
8960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8961 *) enable_dlopen_self_static=unknown ;;
8966 # Report which librarie types wil actually be built
8967 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8968 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8969 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8970 echo "${ECHO_T}$can_build_shared" >&6
8972 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8973 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8974 test "$can_build_shared" = "no" && enable_shared=no
8976 # On AIX, shared libraries and static libraries use the same namespace, and
8977 # are all built from PIC.
8980 test "$enable_shared" = yes && enable_static=no
8981 if test -n "$RANLIB"; then
8982 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8983 postinstall_cmds='$RANLIB $lib'
8988 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8989 test "$enable_shared" = yes && enable_static=no
8992 darwin* | rhapsody*)
8993 if test "$GCC" = yes; then
8994 archive_cmds_need_lc=no
8996 rhapsody* | darwin1.[012])
8997 allow_undefined_flag='-undefined suppress'
9000 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9001 allow_undefined_flag='-flat_namespace -undefined suppress'
9003 case ${MACOSX_DEPLOYMENT_TARGET} in
9005 allow_undefined_flag='-flat_namespace -undefined suppress'
9008 allow_undefined_flag='-undefined dynamic_lookup'
9014 output_verbose_link_cmd='echo'
9015 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9016 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9018 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9019 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9021 hardcode_automatic=yes
9022 hardcode_shlibpath_var=unsupported
9023 whole_archive_flag_spec='-all_load $convenience'
9024 link_all_deplibs=yes
9030 echo "$as_me:$LINENO: result: $enable_shared" >&5
9031 echo "${ECHO_T}$enable_shared" >&6
9033 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9034 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9035 # Make sure either enable_shared or enable_static is yes.
9036 test "$enable_shared" = yes || enable_static=yes
9037 echo "$as_me:$LINENO: result: $enable_static" >&5
9038 echo "${ECHO_T}$enable_static" >&6
9040 # The else clause should only fire when bootstrapping the
9041 # libtool distribution, otherwise you forgot to ship ltmain.sh
9042 # with your package, and you will get complaints that there are
9043 # no rules to generate ltmain.sh.
9044 if test -f "$ltmain"; then
9045 # See if we are running on zsh, and set the options which allow our commands through
9046 # without removal of \ escapes.
9047 if test -n "${ZSH_VERSION+set}" ; then
9048 setopt NO_GLOB_SUBST
9050 # Now quote all the things that may contain metacharacters while being
9051 # careful not to overquote the AC_SUBSTed values. We take copies of the
9052 # variables and quote the copies for generation of the libtool script.
9053 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9055 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9056 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9057 deplibs_check_method reload_flag reload_cmds need_locks \
9058 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9059 lt_cv_sys_global_symbol_to_c_name_address \
9060 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9061 old_postinstall_cmds old_postuninstall_cmds \
9065 lt_prog_compiler_wl \
9066 lt_prog_compiler_pic \
9067 lt_prog_compiler_static \
9068 lt_prog_compiler_no_builtin_flag \
9069 export_dynamic_flag_spec \
9070 thread_safe_flag_spec \
9071 whole_archive_flag_spec \
9072 enable_shared_with_static_runtimes \
9074 old_archive_from_new_cmds \
9079 compiler_lib_search_path \
9081 archive_expsym_cmds \
9083 postuninstall_cmds \
9084 old_archive_from_expsyms_cmds \
9085 allow_undefined_flag \
9087 export_symbols_cmds \
9088 hardcode_libdir_flag_spec \
9089 hardcode_libdir_flag_spec_ld \
9090 hardcode_libdir_separator \
9091 hardcode_automatic \
9093 module_expsym_cmds \
9094 lt_cv_prog_compiler_c_o \
9099 old_archive_cmds | \
9100 old_archive_from_new_cmds | \
9102 archive_expsym_cmds | \
9104 module_expsym_cmds | \
9105 old_archive_from_expsyms_cmds | \
9106 export_symbols_cmds | \
9107 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9108 postinstall_cmds | postuninstall_cmds | \
9109 old_postinstall_cmds | old_postuninstall_cmds | \
9110 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9111 # Double-quote double-evaled strings.
9112 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9121 *'\$0 --fallback-echo"')
9122 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9127 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9129 { echo "$as_me:$LINENO: creating $ofile" >&5
9130 echo "$as_me: creating $ofile" >&6;}
9132 cat <<__EOF__ >> "$cfgfile"
9135 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9136 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9137 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9139 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9140 # Free Software Foundation, Inc.
9142 # This file is part of GNU Libtool:
9143 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9145 # This program is free software; you can redistribute it and/or modify
9146 # it under the terms of the GNU General Public License as published by
9147 # the Free Software Foundation; either version 2 of the License, or
9148 # (at your option) any later version.
9150 # This program is distributed in the hope that it will be useful, but
9151 # WITHOUT ANY WARRANTY; without even the implied warranty of
9152 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9153 # General Public License for more details.
9155 # You should have received a copy of the GNU General Public License
9156 # along with this program; if not, write to the Free Software
9157 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9159 # As a special exception to the GNU General Public License, if you
9160 # distribute this file as part of a program that contains a
9161 # configuration script generated by Autoconf, you may include it under
9162 # the same distribution terms that you use for the rest of that program.
9164 # A sed program that does not truncate output.
9167 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9168 Xsed="$SED -e s/^X//"
9170 # The HP-UX ksh and POSIX shell print the target directory to stdout
9172 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9174 # The names of the tagged configurations supported by this script.
9177 # ### BEGIN LIBTOOL CONFIG
9179 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9181 # Shell to use when invoking shell scripts.
9184 # Whether or not to build shared libraries.
9185 build_libtool_libs=$enable_shared
9187 # Whether or not to build static libraries.
9188 build_old_libs=$enable_static
9190 # Whether or not to add -lc for building shared libraries.
9191 build_libtool_need_lc=$archive_cmds_need_lc
9193 # Whether or not to disallow shared libs when runtime libs are static
9194 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9196 # Whether or not to optimize for fast installation.
9197 fast_install=$enable_fast_install
9200 host_alias=$host_alias
9203 # An echo program that does not interpret backslashes.
9208 AR_FLAGS=$lt_AR_FLAGS
9213 # A language-specific compiler.
9216 # Is the compiler the GNU C compiler?
9222 # The linker used to build libraries.
9225 # Whether we need hard or soft links.
9228 # A BSD-compatible nm program.
9231 # A symbol stripping program
9234 # Used to examine libraries when file_magic_cmd begins "file"
9235 MAGIC_CMD=$MAGIC_CMD
9237 # Used on cygwin: DLL creation program.
9240 # Used on cygwin: object dumper.
9243 # Used on cygwin: assembler.
9246 # The name of the directory that contains temporary libtool files.
9249 # How to create reloadable object files.
9250 reload_flag=$lt_reload_flag
9251 reload_cmds=$lt_reload_cmds
9253 # How to pass a linker flag through the compiler.
9254 wl=$lt_lt_prog_compiler_wl
9256 # Object file suffix (normally "o").
9259 # Old archive suffix (normally "a").
9262 # Shared library suffix (normally ".so").
9263 shrext_cmds='$shrext_cmds'
9265 # Executable file suffix (normally "").
9268 # Additional compiler flags for building library objects.
9269 pic_flag=$lt_lt_prog_compiler_pic
9272 # What is the maximum length of a command?
9273 max_cmd_len=$lt_cv_sys_max_cmd_len
9275 # Does compiler simultaneously support -c and -o options?
9276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9278 # Must we lock files when doing compilation ?
9279 need_locks=$lt_need_locks
9281 # Do we need the lib prefix for modules?
9282 need_lib_prefix=$need_lib_prefix
9284 # Do we need a version for libraries?
9285 need_version=$need_version
9287 # Whether dlopen is supported.
9288 dlopen_support=$enable_dlopen
9290 # Whether dlopen of programs is supported.
9291 dlopen_self=$enable_dlopen_self
9293 # Whether dlopen of statically linked programs is supported.
9294 dlopen_self_static=$enable_dlopen_self_static
9296 # Compiler flag to prevent dynamic linking.
9297 link_static_flag=$lt_lt_prog_compiler_static
9299 # Compiler flag to turn off builtin functions.
9300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9302 # Compiler flag to allow reflexive dlopens.
9303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9305 # Compiler flag to generate shared objects directly from archives.
9306 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9308 # Compiler flag to generate thread-safe objects.
9309 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9311 # Library versioning type.
9312 version_type=$version_type
9314 # Format of library name prefix.
9315 libname_spec=$lt_libname_spec
9317 # List of archive names. First name is the real one, the rest are links.
9318 # The last name is the one that the linker finds with -lNAME.
9319 library_names_spec=$lt_library_names_spec
9321 # The coded name of the library, if different from the real name.
9322 soname_spec=$lt_soname_spec
9324 # Commands used to build and install an old-style archive.
9326 old_archive_cmds=$lt_old_archive_cmds
9327 old_postinstall_cmds=$lt_old_postinstall_cmds
9328 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9330 # Create an old-style archive from a shared archive.
9331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9333 # Create a temporary old-style archive to link instead of a shared archive.
9334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9336 # Commands used to build and install a shared archive.
9337 archive_cmds=$lt_archive_cmds
9338 archive_expsym_cmds=$lt_archive_expsym_cmds
9339 postinstall_cmds=$lt_postinstall_cmds
9340 postuninstall_cmds=$lt_postuninstall_cmds
9342 # Commands used to build a loadable module (assumed same as above if empty)
9343 module_cmds=$lt_module_cmds
9344 module_expsym_cmds=$lt_module_expsym_cmds
9346 # Commands to strip libraries.
9347 old_striplib=$lt_old_striplib
9348 striplib=$lt_striplib
9350 # Dependencies to place before the objects being linked to create a
9352 predep_objects=$lt_predep_objects
9354 # Dependencies to place after the objects being linked to create a
9356 postdep_objects=$lt_postdep_objects
9358 # Dependencies to place before the objects being linked to create a
9362 # Dependencies to place after the objects being linked to create a
9364 postdeps=$lt_postdeps
9366 # The library search path used internally by the compiler when linking
9368 compiler_lib_search_path=$lt_compiler_lib_search_path
9370 # Method to check whether dependent libraries are shared objects.
9371 deplibs_check_method=$lt_deplibs_check_method
9373 # Command to use when deplibs_check_method == file_magic.
9374 file_magic_cmd=$lt_file_magic_cmd
9376 # Flag that allows shared libraries with undefined symbols to be built.
9377 allow_undefined_flag=$lt_allow_undefined_flag
9379 # Flag that forces no undefined symbols.
9380 no_undefined_flag=$lt_no_undefined_flag
9382 # Commands used to finish a libtool library installation in a directory.
9383 finish_cmds=$lt_finish_cmds
9385 # Same as above, but a single script fragment to be evaled but not shown.
9386 finish_eval=$lt_finish_eval
9388 # Take the output of nm and produce a listing of raw symbols and C names.
9389 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9391 # Transform the output of nm in a proper C declaration
9392 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9394 # Transform the output of nm in a C name address pair
9395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9397 # This is the shared library runtime path variable.
9398 runpath_var=$runpath_var
9400 # This is the shared library path variable.
9401 shlibpath_var=$shlibpath_var
9403 # Is shlibpath searched before the hard-coded library search path?
9404 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9406 # How to hardcode a shared library path into an executable.
9407 hardcode_action=$hardcode_action
9409 # Whether we should hardcode library paths into libraries.
9410 hardcode_into_libs=$hardcode_into_libs
9412 # Flag to hardcode \$libdir into a binary during linking.
9413 # This must work even if \$libdir does not exist.
9414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9416 # If ld is used when linking, flag to hardcode \$libdir into
9417 # a binary during linking. This must work even if \$libdir does
9419 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9421 # Whether we need a single -rpath flag with a separated argument.
9422 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9424 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9426 hardcode_direct=$hardcode_direct
9428 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9430 hardcode_minus_L=$hardcode_minus_L
9432 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9433 # the resulting binary.
9434 hardcode_shlibpath_var=$hardcode_shlibpath_var
9436 # Set to yes if building a shared library automatically hardcodes DIR into the library
9437 # and all subsequent libraries and executables linked against it.
9438 hardcode_automatic=$hardcode_automatic
9440 # Variables whose values should be saved in libtool wrapper scripts and
9441 # restored at relink time.
9442 variables_saved_for_relink="$variables_saved_for_relink"
9444 # Whether libtool must link a program against all its dependency libraries.
9445 link_all_deplibs=$link_all_deplibs
9447 # Compile-time system search path for libraries
9448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9450 # Run-time system search path for libraries
9451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9453 # Fix the shell variable \$srcfile for the compiler.
9454 fix_srcfile_path="$fix_srcfile_path"
9456 # Set to yes if exported symbols are required.
9457 always_export_symbols=$always_export_symbols
9459 # The commands to list exported symbols.
9460 export_symbols_cmds=$lt_export_symbols_cmds
9462 # The commands to extract the exported symbol list from a shared archive.
9463 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9465 # Symbols that should not be listed in the preloaded symbols.
9466 exclude_expsyms=$lt_exclude_expsyms
9468 # Symbols that must always be exported.
9469 include_expsyms=$lt_include_expsyms
9471 # ### END LIBTOOL CONFIG
9478 cat <<\EOF >> "$cfgfile"
9480 # AIX sometimes has problems with the GCC collect2 program. For some
9481 # reason, if we set the COLLECT_NAMES environment variable, the problems
9482 # vanish in a puff of smoke.
9483 if test "X${COLLECT_NAMES+set}" != Xset; then
9485 export COLLECT_NAMES
9491 # We use sed instead of cat because bash on DJGPP gets confused if
9492 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9493 # text mode, it properly converts lines to CR/LF. This bash problem
9494 # is reportedly fixed, but why not run on old versions too?
9495 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9497 mv -f "$cfgfile" "$ofile" || \
9498 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9502 # If there is no Makefile yet, we rely on a make rule to execute
9503 # `config.status --recheck' to rerun these tests and create the
9504 # libtool script then.
9505 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9506 if test -f "$ltmain_in"; then
9507 test -f Makefile && make "$ltmain"
9513 ac_cpp='$CPP $CPPFLAGS'
9514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9521 # Check whether --with-tags or --without-tags was given.
9522 if test "${with_tags+set}" = set; then
9523 withval="$with_tags"
9527 if test -f "$ltmain" && test -n "$tagnames"; then
9528 if test ! -f "${ofile}"; then
9529 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9530 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9533 if test -z "$LTCC"; then
9534 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9535 if test -z "$LTCC"; then
9536 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9537 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9539 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9540 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9544 # Extract list of available tagged configurations in $ofile.
9545 # Note that this assumes the entire list is on one line.
9546 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9549 for tagname in $tagnames; do
9551 # Check whether tagname contains only valid characters
9552 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9554 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9555 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9556 { (exit 1); exit 1; }; }
9560 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9562 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9563 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9564 { (exit 1); exit 1; }; }
9567 # Update the list of available tags.
9568 if test -n "$tagname"; then
9569 echo appending configuration tag \"$tagname\" to $ofile
9573 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9575 ac_cpp='$CXXCPP $CPPFLAGS'
9576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9583 archive_cmds_need_lc_CXX=no
9584 allow_undefined_flag_CXX=
9585 always_export_symbols_CXX=no
9586 archive_expsym_cmds_CXX=
9587 export_dynamic_flag_spec_CXX=
9588 hardcode_direct_CXX=no
9589 hardcode_libdir_flag_spec_CXX=
9590 hardcode_libdir_flag_spec_ld_CXX=
9591 hardcode_libdir_separator_CXX=
9592 hardcode_minus_L_CXX=no
9593 hardcode_automatic_CXX=no
9595 module_expsym_cmds_CXX=
9596 link_all_deplibs_CXX=unknown
9597 old_archive_cmds_CXX=$old_archive_cmds
9598 no_undefined_flag_CXX=
9599 whole_archive_flag_spec_CXX=
9600 enable_shared_with_static_runtimes_CXX=no
9602 # Dependencies to place before and after the object being linked:
9604 postdep_objects_CXX=
9607 compiler_lib_search_path_CXX=
9609 # Source file extension for C++ test sources.
9612 # Object file extension for compiled C++ test sources.
9616 # Code to be used in simple compile tests
9617 lt_simple_compile_test_code="int some_variable = 0;\n"
9619 # Code to be used in simple link tests
9620 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9622 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9624 # If no C compiler was specified, use CC.
9627 # Allow CC to be a program name with arguments.
9631 # Allow CC to be a program name with arguments.
9636 lt_save_with_gnu_ld=$with_gnu_ld
9637 lt_save_path_LD=$lt_cv_path_LD
9638 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9639 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9641 unset lt_cv_prog_gnu_ld
9643 if test -n "${lt_cv_path_LDCXX+set}"; then
9644 lt_cv_path_LD=$lt_cv_path_LDCXX
9648 test -z "${LDCXX+set}" || LD=$LDCXX
9652 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9654 # We don't want -fno-exception wen compiling C++ code, so set the
9655 # no_builtin_flag separately
9656 if test "$GXX" = yes; then
9657 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9659 lt_prog_compiler_no_builtin_flag_CXX=
9662 if test "$GXX" = yes; then
9663 # Set up default GNU C++ configuration
9666 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9667 if test "${with_gnu_ld+set}" = set; then
9668 withval="$with_gnu_ld"
9669 test "$withval" = no || with_gnu_ld=yes
9674 if test "$GCC" = yes; then
9675 # Check if gcc -print-prog-name=ld gives a path.
9676 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9677 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9680 # gcc leaves a trailing carriage return which upsets mingw
9681 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9683 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9686 # Accept absolute paths.
9688 re_direlt='/[^/][^/]*/\.\./'
9689 # Canonicalize the pathname of ld
9690 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9691 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9692 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9694 test -z "$LD" && LD="$ac_prog"
9697 # If it fails, then pretend we aren't using GCC.
9701 # If it is relative, then search for the first ld in PATH.
9705 elif test "$with_gnu_ld" = yes; then
9706 echo "$as_me:$LINENO: checking for GNU ld" >&5
9707 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9709 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9710 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9712 if test "${lt_cv_path_LD+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 if test -z "$LD"; then
9716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9717 for ac_dir in $PATH; do
9719 test -z "$ac_dir" && ac_dir=.
9720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9721 lt_cv_path_LD="$ac_dir/$ac_prog"
9722 # Check to see if the program is GNU ld. I'd rather use --version,
9723 # but apparently some GNU ld's only accept -v.
9724 # Break only if it was the GNU/non-GNU ld that we prefer.
9725 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9726 *GNU* | *'with BFD'*)
9727 test "$with_gnu_ld" != no && break
9730 test "$with_gnu_ld" != yes && break
9737 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9742 if test -n "$LD"; then
9743 echo "$as_me:$LINENO: result: $LD" >&5
9744 echo "${ECHO_T}$LD" >&6
9746 echo "$as_me:$LINENO: result: no" >&5
9747 echo "${ECHO_T}no" >&6
9749 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9750 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9751 { (exit 1); exit 1; }; }
9752 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9753 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9754 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9758 case `$LD -v 2>&1 </dev/null` in
9759 *GNU* | *'with BFD'*)
9760 lt_cv_prog_gnu_ld=yes
9763 lt_cv_prog_gnu_ld=no
9767 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9768 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9769 with_gnu_ld=$lt_cv_prog_gnu_ld
9773 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9774 # archiving commands below assume that GNU ld is being used.
9775 if test "$with_gnu_ld" = yes; then
9776 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9779 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9780 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9782 # If archive_cmds runs LD, not CC, wlarc should be empty
9783 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9784 # investigate it a little bit more. (MM)
9787 # ancient GNU ld didn't support --whole-archive et. al.
9788 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9789 grep 'no-whole-archive' > /dev/null; then
9790 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9792 whole_archive_flag_spec_CXX=
9798 # A generic and very simple default shared library creation
9799 # command for GNU C++ for the case where it uses the native
9800 # linker, instead of GNU ld. If possible, this setting should
9801 # overridden to take advantage of the native linker features on
9802 # the platform it is being used on.
9803 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9806 # Commands to make compiler produce verbose output that lists
9807 # what "hidden" libraries, object files and flags are used when
9808 # linking a shared library.
9809 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9817 # PORTME: fill in a description of your system's C++ link characteristics
9818 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9819 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9823 # FIXME: insert proper C++ library support
9827 if test "$host_cpu" = ia64; then
9828 # On IA64, the linker does run time linking by default, so we don't
9829 # have to do anything special.
9830 aix_use_runtimelinking=no
9831 exp_sym_flag='-Bexport'
9834 aix_use_runtimelinking=no
9836 # Test if we are trying to use run time linking or normal
9837 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9838 # need to do runtime linking.
9839 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9840 for ld_flag in $LDFLAGS; do
9843 aix_use_runtimelinking=yes
9850 exp_sym_flag='-bexport'
9851 no_entry_flag='-bnoentry'
9854 # When large executables or shared objects are built, AIX ld can
9855 # have problems creating the table of contents. If linking a library
9856 # or program results in "error TOC overflow" add -mminimal-toc to
9857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9861 hardcode_direct_CXX=yes
9862 hardcode_libdir_separator_CXX=':'
9863 link_all_deplibs_CXX=yes
9865 if test "$GXX" = yes; then
9866 case $host_os in aix4.012|aix4.012.*)
9867 # We only want to do this on AIX 4.2 and lower, the check
9868 # below for broken collect2 doesn't work under 4.3+
9869 collect2name=`${CC} -print-prog-name=collect2`
9870 if test -f "$collect2name" && \
9871 strings "$collect2name" | grep resolve_lib_name >/dev/null
9873 # We have reworked collect2
9874 hardcode_direct_CXX=yes
9876 # We have old collect2
9877 hardcode_direct_CXX=unsupported
9878 # It fails to find uninstalled libraries when the uninstalled
9879 # path is not listed in the libpath. Setting hardcode_minus_L
9880 # to unsupported forces relinking
9881 hardcode_minus_L_CXX=yes
9882 hardcode_libdir_flag_spec_CXX='-L$libdir'
9883 hardcode_libdir_separator_CXX=
9886 shared_flag='-shared'
9889 if test "$host_cpu" = ia64; then
9890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9891 # chokes on -Wl,-G. The following line is correct:
9894 if test "$aix_use_runtimelinking" = yes; then
9895 shared_flag='${wl}-G'
9897 shared_flag='${wl}-bM:SRE'
9902 # It seems that -bexpall does not export symbols beginning with
9903 # underscore (_), so it is better to generate a list of symbols to export.
9904 always_export_symbols_CXX=yes
9905 if test "$aix_use_runtimelinking" = yes; then
9906 # Warning - without using the other runtime loading flags (-brtl),
9907 # -berok will link without error, but may produce a broken library.
9908 allow_undefined_flag_CXX='-berok'
9909 # Determine the default libpath from the value encoded in an empty executable.
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927 (eval $ac_link) 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -z "$ac_cxx_werror_flag"
9935 || test ! -s conftest.err'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9950 # Check for a 64-bit object if we didn't find anything.
9951 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; }
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9958 rm -f conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9962 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9964 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"
9966 if test "$host_cpu" = ia64; then
9967 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9968 allow_undefined_flag_CXX="-z nodefs"
9969 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"
9971 # Determine the default libpath from the value encoded in an empty executable.
9972 cat >conftest.$ac_ext <<_ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h. */
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9991 grep -v '^ *+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_cxx_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10012 # Check for a 64-bit object if we didn't find anything.
10013 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; }
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10020 rm -f conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10024 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10025 # Warning - without using the other run time loading flags,
10026 # -berok will link without error, but may produce a broken library.
10027 no_undefined_flag_CXX=' ${wl}-bernotok'
10028 allow_undefined_flag_CXX=' ${wl}-berok'
10029 # -bexpall does not export symbols beginning with underscore (_)
10030 always_export_symbols_CXX=yes
10031 # Exported symbols can be pulled into shared objects from archives
10032 whole_archive_flag_spec_CXX=' '
10033 archive_cmds_need_lc_CXX=yes
10034 # This is similar to how AIX traditionally builds it's shared libraries.
10035 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'
10040 case $cc_basename in
10042 # FIXME: insert proper C++ library support
10048 cygwin* | mingw* | pw32*)
10049 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10050 # as there is no search path for DLLs.
10051 hardcode_libdir_flag_spec_CXX='-L$libdir'
10052 allow_undefined_flag_CXX=unsupported
10053 always_export_symbols_CXX=no
10054 enable_shared_with_static_runtimes_CXX=yes
10056 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10057 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'
10058 # If the export-symbols file already is a .def file (1st line
10059 # is EXPORTS), use it as is; otherwise, prepend...
10060 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10061 cp $export_symbols $output_objdir/$soname.def;
10063 echo EXPORTS > $output_objdir/$soname.def;
10064 cat $export_symbols >> $output_objdir/$soname.def;
10066 $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'
10072 darwin* | rhapsody*)
10073 if test "$GXX" = yes; then
10074 archive_cmds_need_lc_CXX=no
10076 rhapsody* | darwin1.[012])
10077 allow_undefined_flag_CXX='-undefined suppress'
10080 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10081 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10083 case ${MACOSX_DEPLOYMENT_TARGET} in
10085 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10088 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10094 lt_int_apple_cc_single_mod=no
10095 output_verbose_link_cmd='echo'
10096 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10097 lt_int_apple_cc_single_mod=yes
10099 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10100 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10102 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'
10104 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10106 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10107 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10108 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}'
10110 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}'
10112 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}'
10113 hardcode_direct_CXX=no
10114 hardcode_automatic_CXX=yes
10115 hardcode_shlibpath_var_CXX=unsupported
10116 whole_archive_flag_spec_CXX='-all_load $convenience'
10117 link_all_deplibs_CXX=yes
10124 case $cc_basename in
10126 # FIXME: insert proper C++ library support
10130 # Green Hills C++ Compiler
10131 # FIXME: insert proper C++ library support
10135 # FIXME: insert proper C++ library support
10141 # C++ shared libraries reported to be fairly broken before switch to ELF
10145 archive_cmds_need_lc_CXX=no
10147 freebsd* | kfreebsd*-gnu)
10148 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10155 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10156 hardcode_libdir_separator_CXX=:
10157 export_dynamic_flag_spec_CXX='${wl}-E'
10158 hardcode_direct_CXX=yes
10159 hardcode_minus_L_CXX=yes # Not in the search PATH,
10160 # but as the default
10161 # location of the library.
10163 case $cc_basename in
10165 # FIXME: insert proper C++ library support
10169 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'
10170 # Commands to make compiler produce verbose output that lists
10171 # what "hidden" libraries, object files and flags are used when
10172 # linking a shared library.
10174 # There doesn't appear to be a way to prevent this compiler from
10175 # explicitly linking system object files so we need to strip them
10176 # from the output so that they don't get included in the library
10178 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'
10181 if test "$GXX" = yes; then
10182 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'
10184 # FIXME: insert proper C++ library support
10191 if test $with_gnu_ld = no; then
10192 case "$host_cpu" in
10194 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10195 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10196 hardcode_libdir_separator_CXX=:
10199 hardcode_libdir_flag_spec_CXX='-L$libdir'
10202 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10203 hardcode_libdir_separator_CXX=:
10204 export_dynamic_flag_spec_CXX='${wl}-E'
10208 case "$host_cpu" in
10210 hardcode_direct_CXX=no
10211 hardcode_shlibpath_var_CXX=no
10214 hardcode_direct_CXX=no
10215 hardcode_shlibpath_var_CXX=no
10216 hardcode_minus_L_CXX=yes # Not in the search PATH,
10217 # but as the default
10218 # location of the library.
10221 hardcode_direct_CXX=yes
10222 hardcode_minus_L_CXX=yes # Not in the search PATH,
10223 # but as the default
10224 # location of the library.
10228 case $cc_basename in
10230 # FIXME: insert proper C++ library support
10234 case "$host_cpu" in
10236 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10239 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10242 # Commands to make compiler produce verbose output that lists
10243 # what "hidden" libraries, object files and flags are used when
10244 # linking a shared library.
10246 # There doesn't appear to be a way to prevent this compiler from
10247 # explicitly linking system object files so we need to strip them
10248 # from the output so that they don't get included in the library
10250 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'
10253 if test "$GXX" = yes; then
10254 if test $with_gnu_ld = no; then
10255 case "$host_cpu" in
10257 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10260 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'
10265 # FIXME: insert proper C++ library support
10272 case $cc_basename in
10275 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'
10277 # Archives containing C++ object files must be created using
10278 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10279 # necessary to make sure instantiated templates are included
10281 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10284 if test "$GXX" = yes; then
10285 if test "$with_gnu_ld" = no; then
10286 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10288 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'
10291 link_all_deplibs_CXX=yes
10294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10295 hardcode_libdir_separator_CXX=:
10298 case $cc_basename in
10300 # Kuck and Associates, Inc. (KAI) C++ Compiler
10302 # KCC will only create a shared library if the output file
10303 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10304 # to its proper name (with version) after linking.
10305 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'
10306 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'
10307 # Commands to make compiler produce verbose output that lists
10308 # what "hidden" libraries, object files and flags are used when
10309 # linking a shared library.
10311 # There doesn't appear to be a way to prevent this compiler from
10312 # explicitly linking system object files so we need to strip them
10313 # from the output so that they don't get included in the library
10315 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'
10317 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10318 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10320 # Archives containing C++ object files must be created using
10321 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10322 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10327 archive_cmds_need_lc_CXX=no
10328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10329 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'
10330 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10331 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10332 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10336 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10337 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'
10339 runpath_var=LD_RUN_PATH
10340 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10341 hardcode_libdir_separator_CXX=:
10343 # Commands to make compiler produce verbose output that lists
10344 # what "hidden" libraries, object files and flags are used when
10345 # linking a shared library.
10347 # There doesn't appear to be a way to prevent this compiler from
10348 # explicitly linking system object files so we need to strip them
10349 # from the output so that they don't get included in the library
10351 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'
10356 # FIXME: insert proper C++ library support
10360 # FIXME: insert proper C++ library support
10364 case $cc_basename in
10366 # FIXME: insert proper C++ library support
10370 # FIXME: insert proper C++ library support
10376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10377 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10379 hardcode_libdir_flag_spec_CXX='-R$libdir'
10380 hardcode_direct_CXX=yes
10381 hardcode_shlibpath_var_CXX=no
10383 # Workaround some broken pre-1.5 toolchains
10384 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10387 case $cc_basename in
10389 # Kuck and Associates, Inc. (KAI) C++ Compiler
10391 # KCC will only create a shared library if the output file
10392 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10393 # to its proper name (with version) after linking.
10394 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'
10396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10397 hardcode_libdir_separator_CXX=:
10399 # Archives containing C++ object files must be created using
10400 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10401 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10405 # Rational C++ 2.4.1
10406 # FIXME: insert proper C++ library support
10410 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10411 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'
10413 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10414 hardcode_libdir_separator_CXX=:
10416 # Commands to make compiler produce verbose output that lists
10417 # what "hidden" libraries, object files and flags are used when
10418 # linking a shared library.
10420 # There doesn't appear to be a way to prevent this compiler from
10421 # explicitly linking system object files so we need to strip them
10422 # from the output so that they don't get included in the library
10424 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'
10427 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10428 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10429 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'
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.
10437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10440 # FIXME: insert proper C++ library support
10447 case $cc_basename in
10449 # Kuck and Associates, Inc. (KAI) C++ Compiler
10451 # KCC will only create a shared library if the output file
10452 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10453 # to its proper name (with version) after linking.
10454 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'
10456 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10457 hardcode_libdir_separator_CXX=:
10459 # Archives containing C++ object files must be created using
10460 # the KAI C++ compiler.
10461 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10464 # Rational C++ 2.4.1
10465 # FIXME: insert proper C++ library support
10469 allow_undefined_flag_CXX=' -expect_unresolved \*'
10470 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'
10471 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10472 echo "-hidden">> $lib.exp~
10473 $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~
10476 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10477 hardcode_libdir_separator_CXX=:
10479 # Commands to make compiler produce verbose output that lists
10480 # what "hidden" libraries, object files and flags are used when
10481 # linking a shared library.
10483 # There doesn't appear to be a way to prevent this compiler from
10484 # explicitly linking system object files so we need to strip them
10485 # from the output so that they don't get included in the library
10487 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'
10490 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10491 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10492 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'
10494 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$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.
10500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10503 # FIXME: insert proper C++ library support
10510 # FIXME: insert proper C++ library support
10514 archive_cmds_need_lc_CXX=no
10515 case $cc_basename in
10517 # FIXME: insert proper C++ library support
10521 # FIXME: insert proper C++ library support
10527 case $cc_basename in
10530 # FIXME: insert proper C++ library support
10535 # FIXME: insert proper C++ library support
10539 # FIXME: insert proper C++ library support
10545 case $cc_basename in
10547 # Sun C++ 4.2, 5.x and Centerline C++
10548 no_undefined_flag_CXX=' -zdefs'
10549 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10550 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10551 $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'
10553 hardcode_libdir_flag_spec_CXX='-R$libdir'
10554 hardcode_shlibpath_var_CXX=no
10556 solaris2.0-5 | solaris2.0-5.*) ;;
10558 # The C++ compiler is used as linker so we must use $wl
10559 # flag to pass the commands to the underlying system
10561 # Supported since Solaris 2.6 (maybe 2.5.1?)
10562 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10565 link_all_deplibs_CXX=yes
10567 # Commands to make compiler produce verbose output that lists
10568 # what "hidden" libraries, object files and flags are used when
10569 # linking a shared library.
10571 # There doesn't appear to be a way to prevent this compiler from
10572 # explicitly linking system object files so we need to strip them
10573 # from the output so that they don't get included in the library
10575 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'
10577 # Archives containing C++ object files must be created using
10578 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10579 # necessary to make sure instantiated templates are included
10581 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10584 # Green Hills C++ Compiler
10585 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10587 # The C++ compiler must be used to create the archive.
10588 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10591 # GNU C++ compiler with Solaris linker
10592 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10593 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10594 if $CC --version | grep -v '^2\.7' > /dev/null; then
10595 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10596 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10597 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10599 # Commands to make compiler produce verbose output that lists
10600 # what "hidden" libraries, object files and flags are used when
10601 # linking a shared library.
10602 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10604 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10606 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10607 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10608 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10610 # Commands to make compiler produce verbose output that lists
10611 # what "hidden" libraries, object files and flags are used when
10612 # linking a shared library.
10613 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10616 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10621 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10622 archive_cmds_need_lc_CXX=no
10625 case $cc_basename in
10627 # NonStop-UX NCC 3.20
10628 # FIXME: insert proper C++ library support
10632 # FIXME: insert proper C++ library support
10638 # FIXME: insert proper C++ library support
10642 # FIXME: insert proper C++ library support
10646 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10647 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10648 test "$ld_shlibs_CXX" = no && can_build_shared=no
10654 ## There is no encapsulation within the following macros, do not change
10655 ## the running order or otherwise move them around unless you know exactly
10656 ## what you are doing...
10658 cat > conftest.$ac_ext <<EOF
10662 Foo (void) { a = 0; }
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; then
10673 # Parse the compiler output and extract the necessary
10674 # objects, libraries and library flags.
10676 # Sentinel used to keep track of whether or not we are before
10677 # the conftest object file.
10678 pre_test_object_deps_done=no
10680 # The `*' in the case matches for architectures that use `case' in
10681 # $output_verbose_cmd can trigger glob expansion during the loop
10682 # eval without this substitution.
10683 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10685 for p in `eval $output_verbose_link_cmd`; do
10689 # Some compilers place space between "-{L,R}" and the path.
10690 # Remove the space.
10691 if test $p = "-L" \
10692 || test $p = "-R"; then
10699 if test "$pre_test_object_deps_done" = no; then
10702 # Internal compiler library paths should come after those
10703 # provided the user. The postdeps already come after the
10704 # user supplied libs so there is no need to process them.
10705 if test -z "$compiler_lib_search_path_CXX"; then
10706 compiler_lib_search_path_CXX="${prev}${p}"
10708 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10711 # The "-l" case would never come before the object being
10712 # linked, so don't bother handling this case.
10715 if test -z "$postdeps_CXX"; then
10716 postdeps_CXX="${prev}${p}"
10718 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10724 # This assumes that the test object file only shows up
10725 # once in the compiler output.
10726 if test "$p" = "conftest.$objext"; then
10727 pre_test_object_deps_done=yes
10731 if test "$pre_test_object_deps_done" = no; then
10732 if test -z "$predep_objects_CXX"; then
10733 predep_objects_CXX="$p"
10735 predep_objects_CXX="$predep_objects_CXX $p"
10738 if test -z "$postdep_objects_CXX"; then
10739 postdep_objects_CXX="$p"
10741 postdep_objects_CXX="$postdep_objects_CXX $p"
10746 *) ;; # Ignore the rest.
10754 echo "libtool.m4: error: problem compiling CXX test program"
10757 $rm -f confest.$objext
10759 case " $postdeps_CXX " in
10760 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10763 lt_prog_compiler_wl_CXX=
10764 lt_prog_compiler_pic_CXX=
10765 lt_prog_compiler_static_CXX=
10767 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10770 # C++ specific cases for pic, static, wl, etc.
10771 if test "$GXX" = yes; then
10772 lt_prog_compiler_wl_CXX='-Wl,'
10773 lt_prog_compiler_static_CXX='-static'
10777 # All AIX code is PIC.
10778 if test "$host_cpu" = ia64; then
10779 # AIX 5 now supports IA64 processor
10780 lt_prog_compiler_static_CXX='-Bstatic'
10784 # FIXME: we need at least 68020 code to build shared libraries, but
10785 # adding the `-m68020' flag to GCC prevents building anything better,
10787 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10789 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10790 # PIC is the default for these OSes.
10792 mingw* | os2* | pw32*)
10793 # This hack is so that the source file can tell whether it is being
10794 # built for inclusion in a dll (and should export symbols for example).
10795 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10797 darwin* | rhapsody*)
10798 # PIC is the default on this platform
10799 # Common symbols not allowed in MH_DYLIB files
10800 lt_prog_compiler_pic_CXX='-fno-common'
10803 # DJGPP does not support shared libraries at all
10804 lt_prog_compiler_pic_CXX=
10807 if test -d /usr/nec; then
10808 lt_prog_compiler_pic_CXX=-Kconform_pic
10812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10813 # not for PA HP-UX.
10814 case "$host_cpu" in
10818 lt_prog_compiler_pic_CXX='-fPIC'
10823 lt_prog_compiler_pic_CXX='-fPIC'
10829 # All AIX code is PIC.
10830 if test "$host_cpu" = ia64; then
10831 # AIX 5 now supports IA64 processor
10832 lt_prog_compiler_static_CXX='-Bstatic'
10834 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10838 case $cc_basename in
10840 # Green Hills C++ Compiler
10841 # _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"
10846 case $cc_basename in
10848 lt_prog_compiler_pic_CXX='-KPIC'
10851 # Green Hills C++ Compiler
10852 lt_prog_compiler_pic_CXX='-pic'
10858 freebsd* | kfreebsd*-gnu)
10859 # FreeBSD uses GNU C++
10861 hpux9* | hpux10* | hpux11*)
10862 case $cc_basename in
10864 lt_prog_compiler_wl_CXX='-Wl,'
10865 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10866 if test "$host_cpu" != ia64; then
10867 lt_prog_compiler_pic_CXX='+Z'
10871 lt_prog_compiler_wl_CXX='-Wl,'
10872 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10873 case "$host_cpu" in
10878 lt_prog_compiler_pic_CXX='+Z'
10886 irix5* | irix6* | nonstopux*)
10887 case $cc_basename in
10889 lt_prog_compiler_wl_CXX='-Wl,'
10890 lt_prog_compiler_static_CXX='-non_shared'
10891 # CC pic flag -KPIC is the default.
10898 case $cc_basename in
10901 lt_prog_compiler_wl_CXX='--backend -Wl,'
10902 lt_prog_compiler_pic_CXX='-fPIC'
10906 lt_prog_compiler_wl_CXX='-Wl,'
10907 lt_prog_compiler_pic_CXX='-KPIC'
10908 lt_prog_compiler_static_CXX='-static'
10912 # Make sure the PIC flag is empty. It appears that all Alpha
10913 # Linux and Compaq Tru64 Unix objects are PIC.
10914 lt_prog_compiler_pic_CXX=
10915 lt_prog_compiler_static_CXX='-non_shared'
10926 case $cc_basename in
10928 lt_prog_compiler_pic_CXX='-W c,exportall'
10936 osf3* | osf4* | osf5*)
10937 case $cc_basename in
10939 lt_prog_compiler_wl_CXX='--backend -Wl,'
10942 # Rational C++ 2.4.1
10943 lt_prog_compiler_pic_CXX='-pic'
10946 # Digital/Compaq C++
10947 lt_prog_compiler_wl_CXX='-Wl,'
10948 # Make sure the PIC flag is empty. It appears that all Alpha
10949 # Linux and Compaq Tru64 Unix objects are PIC.
10950 lt_prog_compiler_pic_CXX=
10951 lt_prog_compiler_static_CXX='-non_shared'
10960 case $cc_basename in
10962 lt_prog_compiler_pic_CXX='-fPIC'
10969 case $cc_basename in
10971 # Sun C++ 4.2, 5.x and Centerline C++
10972 lt_prog_compiler_pic_CXX='-KPIC'
10973 lt_prog_compiler_static_CXX='-Bstatic'
10974 lt_prog_compiler_wl_CXX='-Qoption ld '
10977 # Green Hills C++ Compiler
10978 lt_prog_compiler_pic_CXX='-PIC'
10985 case $cc_basename in
10988 lt_prog_compiler_pic_CXX='-pic'
10989 lt_prog_compiler_static_CXX='-Bstatic'
10993 lt_prog_compiler_pic_CXX='-pic'
11000 case $cc_basename in
11002 # NonStop-UX NCC 3.20
11003 lt_prog_compiler_pic_CXX='-KPIC'
11014 lt_prog_compiler_can_build_shared_CXX=no
11019 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11020 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11023 # Check to make sure the PIC flag actually works.
11025 if test -n "$lt_prog_compiler_pic_CXX"; then
11027 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11028 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11029 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 lt_prog_compiler_pic_works_CXX=no
11033 ac_outfile=conftest.$ac_objext
11034 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11035 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11036 # Insert the option either (1) after the last *FLAGS variable, or
11037 # (2) before a word containing "conftest.", or (3) at the end.
11038 # Note that $ac_compile itself does not contain backslashes and begins
11039 # with a dollar sign (not a hyphen), so the echo should work correctly.
11040 # The option is referenced via a variable to avoid confusing sed.
11041 lt_compile=`echo "$ac_compile" | $SED \
11042 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11044 -e 's:$: $lt_compiler_flag:'`
11045 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11046 (eval "$lt_compile" 2>conftest.err)
11048 cat conftest.err >&5
11049 echo "$as_me:__oline__: \$? = $ac_status" >&5
11050 if (exit $ac_status) && test -s "$ac_outfile"; then
11051 # The compiler can only warn and ignore the option if not recognized
11052 # So say no if there are warnings
11053 if test ! -s conftest.err; then
11054 lt_prog_compiler_pic_works_CXX=yes
11060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11061 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11063 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11064 case $lt_prog_compiler_pic_CXX in
11066 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11069 lt_prog_compiler_pic_CXX=
11070 lt_prog_compiler_can_build_shared_CXX=no
11075 # For platforms which do not support PIC, -DPIC is meaningless:
11077 lt_prog_compiler_pic_CXX=
11080 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11084 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11085 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11086 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 lt_cv_prog_compiler_c_o_CXX=no
11090 $rm -r conftest 2>/dev/null
11094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11096 lt_compiler_flag="-o out/conftest2.$ac_objext"
11097 # Insert the option either (1) after the last *FLAGS variable, or
11098 # (2) before a word containing "conftest.", or (3) at the end.
11099 # Note that $ac_compile itself does not contain backslashes and begins
11100 # with a dollar sign (not a hyphen), so the echo should work correctly.
11101 lt_compile=`echo "$ac_compile" | $SED \
11102 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11104 -e 's:$: $lt_compiler_flag:'`
11105 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11106 (eval "$lt_compile" 2>out/conftest.err)
11108 cat out/conftest.err >&5
11109 echo "$as_me:__oline__: \$? = $ac_status" >&5
11110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11112 # The compiler can only warn and ignore the option if not recognized
11113 # So say no if there are warnings
11114 if test ! -s out/conftest.err; then
11115 lt_cv_prog_compiler_c_o_CXX=yes
11120 # SGI C++ compiler will create directory out/ii_files/ for
11121 # template instantiation
11122 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11123 $rm out/* && rmdir out
11129 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11130 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11133 hard_links="nottested"
11134 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11135 # do not overwrite the value of need_locks provided by the user
11136 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11137 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11142 ln conftest.a conftest.b 2>&5 || hard_links=no
11143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11144 echo "$as_me:$LINENO: result: $hard_links" >&5
11145 echo "${ECHO_T}$hard_links" >&6
11146 if test "$hard_links" = no; then
11147 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11148 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11155 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11156 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11158 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11161 # If we're using GNU nm, then we don't want the "-C" option.
11162 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11163 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11164 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'
11166 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'
11170 export_symbols_cmds_CXX="$ltdll_cmds"
11173 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11176 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11180 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11181 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11182 test "$ld_shlibs_CXX" = no && can_build_shared=no
11184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11185 if test "$GCC" = yes; then
11186 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11190 # Do we need to explicitly link libc?
11192 case "x$archive_cmds_need_lc_CXX" in
11194 # Assume -lc should be added
11195 archive_cmds_need_lc_CXX=yes
11197 if test "$enable_shared" = yes && test "$GCC" = yes; then
11198 case $archive_cmds_CXX in
11200 # FIXME: we may have to deal with multi-command sequences.
11203 # Test whether the compiler implicitly links with -lc since on some
11204 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11205 # to ld, don't add -lc before -lgcc.
11206 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11207 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11209 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212 (eval $ac_compile) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } 2>conftest.err; then
11218 libobjs=conftest.$ac_objext
11220 wl=$lt_prog_compiler_wl_CXX
11226 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11227 allow_undefined_flag_CXX=
11228 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11229 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }
11234 archive_cmds_need_lc_CXX=no
11236 archive_cmds_need_lc_CXX=yes
11238 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11240 cat conftest.err 1>&5
11243 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11244 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11251 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11252 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11253 library_names_spec=
11254 libname_spec='lib$name'
11258 postuninstall_cmds=
11262 shlibpath_overrides_runpath=unknown
11264 dynamic_linker="$host_os ld.so"
11265 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11266 if test "$GCC" = yes; then
11267 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11268 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11269 # if the path contains ";" then we assume it to be the separator
11270 # otherwise default to the standard path separator (i.e. ":") - it is
11271 # assumed that no part of a normal pathname contains ";" but that should
11272 # okay in the real world where ";" in dirpaths is itself problematic.
11273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11278 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11280 need_lib_prefix=unknown
11281 hardcode_into_libs=no
11283 # when you set need_version to no, make sure it does not cause -set_version
11284 # flags to be left without arguments
11285 need_version=unknown
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11291 shlibpath_var=LIBPATH
11293 # AIX 3 has no versioning support, so we append a major version to the name.
11294 soname_spec='${libname}${release}${shared_ext}$major'
11301 hardcode_into_libs=yes
11302 if test "$host_cpu" = ia64; then
11303 # AIX 5 supports IA64
11304 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11305 shlibpath_var=LD_LIBRARY_PATH
11307 # With GCC up to 2.95.x, collect2 would create an import file
11308 # for dependence libraries. The import file would start with
11309 # the line `#! .'. This would cause the generated library to
11310 # depend on `.', always an invalid library. This was fixed in
11311 # development snapshots of GCC prior to 3.0.
11313 aix4 | aix4.[01] | aix4.[01].*)
11314 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11316 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11319 can_build_shared=no
11323 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11324 # soname into executable. Probably we can add versioning support to
11325 # collect2, so additional links can be useful in future.
11326 if test "$aix_use_runtimelinking" = yes; then
11327 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11328 # instead of lib<name>.a to let people know that these are not
11329 # typical AIX shared libraries.
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332 # We preserve .a as extension for shared libraries through AIX4.2
11333 # and later when we are not doing run time linking.
11334 library_names_spec='${libname}${release}.a $libname.a'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11337 shlibpath_var=LIBPATH
11342 library_names_spec='$libname.ixlibrary $libname.a'
11343 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11344 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'
11348 library_names_spec='${libname}${shared_ext}'
11349 dynamic_linker="$host_os ld.so"
11350 shlibpath_var=LIBRARY_PATH
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11359 shlibpath_var=LD_LIBRARY_PATH
11360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11362 # the default ld.so.conf also contains /usr/contrib/lib and
11363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11364 # libtool to hard-code these into programs
11367 cygwin* | mingw* | pw32*)
11368 version_type=windows
11373 case $GCC,$host_os in
11374 yes,cygwin* | yes,mingw* | yes,pw32*)
11375 library_names_spec='$libname.dll.a'
11376 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11377 postinstall_cmds='base_file=`basename \${file}`~
11378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11379 dldir=$destdir/`dirname \$dlpath`~
11380 test -d \$dldir || mkdir -p \$dldir~
11381 $install_prog $dir/$dlname \$dldir/$dlname'
11382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11383 dlpath=$dir/\$dldll~
11385 shlibpath_overrides_runpath=yes
11389 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11390 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11391 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11394 # MinGW DLLs use traditional 'lib' prefix
11395 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11396 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11397 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11398 # It is most probably a Windows format PATH printed by
11399 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11400 # path with ; separators, and with drive letters. We can handle the
11401 # drive letters (cygwin fileutils understands them), so leave them,
11402 # especially as we might pass files found there to a mingw objdump,
11403 # which wouldn't understand a cygwinified path. Ahh.
11404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11410 # pw32 DLLs use 'pw' prefix rather than 'lib'
11411 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11417 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11420 dynamic_linker='Win32 ld.exe'
11421 # FIXME: first we should search . and the directory the executable is in
11425 darwin* | rhapsody*)
11426 dynamic_linker="$host_os dyld"
11427 version_type=darwin
11430 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11431 soname_spec='${libname}${release}${major}$shared_ext'
11432 shlibpath_overrides_runpath=yes
11433 shlibpath_var=DYLD_LIBRARY_PATH
11434 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11435 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11436 if test "$GCC" = yes; then
11437 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"`
11439 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11441 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11449 soname_spec='${libname}${release}${shared_ext}$major'
11450 shlibpath_var=LD_LIBRARY_PATH
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465 hardcode_into_libs=yes
11466 dynamic_linker='GNU ld.so'
11470 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11471 version_type=freebsd-$objformat
11472 case $version_type in
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11483 shlibpath_var=LD_LIBRARY_PATH
11486 shlibpath_overrides_runpath=yes
11488 freebsd3.01* | freebsdelf3.01*)
11489 shlibpath_overrides_runpath=yes
11490 hardcode_into_libs=yes
11493 shlibpath_overrides_runpath=no
11494 hardcode_into_libs=yes
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 shlibpath_var=LD_LIBRARY_PATH
11506 hardcode_into_libs=yes
11509 hpux9* | hpux10* | hpux11*)
11510 # Give a soname corresponding to the major version so that dld.sl refuses to
11511 # link against other versions.
11515 case "$host_cpu" in
11518 hardcode_into_libs=yes
11519 dynamic_linker="$host_os dld.so"
11520 shlibpath_var=LD_LIBRARY_PATH
11521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11523 soname_spec='${libname}${release}${shared_ext}$major'
11524 if test "X$HPUX_IA64_MODE" = X32; then
11525 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11527 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11533 hardcode_into_libs=yes
11534 dynamic_linker="$host_os dld.sl"
11535 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11544 dynamic_linker="$host_os dld.sl"
11545 shlibpath_var=SHLIB_PATH
11546 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548 soname_spec='${libname}${release}${shared_ext}$major'
11551 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11552 postinstall_cmds='chmod 555 $lib'
11555 irix5* | irix6* | nonstopux*)
11557 nonstopux*) version_type=nonstopux ;;
11559 if test "$lt_cv_prog_gnu_ld" = yes; then
11567 soname_spec='${libname}${release}${shared_ext}$major'
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11570 irix5* | nonstopux*)
11571 libsuff= shlibsuff=
11574 case $LD in # libtool.m4 will add one of these switches to LD
11575 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11576 libsuff= shlibsuff= libmagic=32-bit;;
11577 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11578 libsuff=32 shlibsuff=N32 libmagic=N32;;
11579 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11580 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11581 *) libsuff= shlibsuff= libmagic=never-match;;
11585 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11586 shlibpath_overrides_runpath=no
11587 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11588 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11589 hardcode_into_libs=yes
11592 # No shared lib support for Linux oldld, aout, or coff.
11593 linux*oldld* | linux*aout* | linux*coff*)
11597 # This must be Linux ELF.
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11603 soname_spec='${libname}${release}${shared_ext}$major'
11604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=no
11607 # This implies no fast_install, which is unacceptable.
11608 # Some rework will be needed to allow for fast_install
11609 # before this can be enabled.
11610 hardcode_into_libs=yes
11612 # find out which ABI we are using
11614 case "$host_cpu" in
11615 x86_64*|s390x*|powerpc64*)
11616 echo '#line __oline__ "configure"' > conftest.$ac_ext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11618 (eval $ac_compile) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; then
11622 case `/usr/bin/file conftest.$ac_objext` in
11625 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11633 # Append ld.so.conf contents to the search path
11634 if test -f /etc/ld.so.conf; then
11635 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11636 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11639 # We used to test for /lib/ld.so.1 and disable shared libraries on
11640 # powerpc, because MkLinux only supported shared libraries with the
11641 # GNU dynamic linker. Since this was broken with cross compilers,
11642 # most powerpc-linux boxes support dynamic linking these days and
11643 # people can always --disable-shared, the test was removed, and we
11644 # assume the GNU/Linux dynamic linker is in use.
11645 dynamic_linker='GNU/Linux ld.so'
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 shlibpath_var=LD_LIBRARY_PATH
11655 shlibpath_overrides_runpath=no
11656 hardcode_into_libs=yes
11657 dynamic_linker='GNU ld.so'
11664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11667 dynamic_linker='NetBSD (a.out) ld.so'
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 dynamic_linker='NetBSD ld.elf_so'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=yes
11675 hardcode_into_libs=yes
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=yes
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 shlibpath_var=LD_LIBRARY_PATH
11692 shlibpath_overrides_runpath=yes
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11704 openbsd2.[89] | openbsd2.[89].*)
11705 shlibpath_overrides_runpath=no
11708 shlibpath_overrides_runpath=yes
11712 shlibpath_overrides_runpath=yes
11717 libname_spec='$name'
11720 library_names_spec='$libname${shared_ext} $libname.a'
11721 dynamic_linker='OS/2 ld.exe'
11722 shlibpath_var=LIBPATH
11725 osf3* | osf4* | osf5*)
11729 soname_spec='${libname}${release}${shared_ext}$major'
11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740 shlibpath_var=LD_LIBRARY_PATH
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748 soname_spec='${libname}${release}${shared_ext}$major'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=yes
11751 hardcode_into_libs=yes
11752 # ldd complains unless libraries are executable
11753 postinstall_cmds='chmod +x $lib'
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=yes
11762 if test "$with_gnu_ld" = yes; then
11768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 case $host_vendor in
11775 shlibpath_overrides_runpath=no
11777 export_dynamic_flag_spec='${wl}-Blargedynsym'
11778 runpath_var=LD_RUN_PATH
11786 shlibpath_overrides_runpath=no
11787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11793 if test -d /usr/nec ;then
11795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11796 soname_spec='$libname${shared_ext}.$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 soname_spec='${libname}${release}${shared_ext}$major'
11805 shlibpath_var=LD_LIBRARY_PATH
11812 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11813 echo "${ECHO_T}$dynamic_linker" >&6
11814 test "$dynamic_linker" = no && can_build_shared=no
11816 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11817 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11818 hardcode_action_CXX=
11819 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11820 test -n "$runpath_var CXX" || \
11821 test "X$hardcode_automatic_CXX"="Xyes" ; then
11823 # We can hardcode non-existant directories.
11824 if test "$hardcode_direct_CXX" != no &&
11825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11826 # have to relink, otherwise we might link with an installed library
11827 # when we should be linking with a yet-to-be-installed one
11828 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11829 test "$hardcode_minus_L_CXX" != no; then
11830 # Linking always hardcodes the temporary library directory.
11831 hardcode_action_CXX=relink
11833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11834 hardcode_action_CXX=immediate
11837 # We cannot hardcode anything, or else we can only hardcode existing
11839 hardcode_action_CXX=unsupported
11841 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11842 echo "${ECHO_T}$hardcode_action_CXX" >&6
11844 if test "$hardcode_action_CXX" = relink; then
11845 # Fast installation is not supported
11846 enable_fast_install=no
11847 elif test "$shlibpath_overrides_runpath" = yes ||
11848 test "$enable_shared" = no; then
11849 # Fast installation is not necessary
11850 enable_fast_install=needless
11855 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11856 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11857 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11858 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11859 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11860 echo "$as_me:$LINENO: result: yes" >&5
11861 echo "${ECHO_T}yes" >&6
11863 # FIXME - insert some real tests, host_os isn't really good enough
11866 if test -n "$STRIP" ; then
11867 striplib="$STRIP -x"
11868 echo "$as_me:$LINENO: result: yes" >&5
11869 echo "${ECHO_T}yes" >&6
11871 echo "$as_me:$LINENO: result: no" >&5
11872 echo "${ECHO_T}no" >&6
11876 echo "$as_me:$LINENO: result: no" >&5
11877 echo "${ECHO_T}no" >&6
11882 if test "x$enable_dlopen" != xyes; then
11883 enable_dlopen=unknown
11884 enable_dlopen_self=unknown
11885 enable_dlopen_self_static=unknown
11892 lt_cv_dlopen="load_add_on"
11894 lt_cv_dlopen_self=yes
11898 lt_cv_dlopen="LoadLibrary"
11903 lt_cv_dlopen="dlopen"
11908 # if libdl is installed we need to link against it
11909 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 ac_check_lib_save_LIBS=$LIBS
11916 cat >conftest.$ac_ext <<_ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11923 /* Override any gcc2 internal prototype to avoid an error. */
11927 /* We use char because int might match the return type of a gcc2
11928 builtin and then its argument prototype would still apply. */
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11940 (eval $ac_link) 2>conftest.er1
11942 grep -v '^ *+' conftest.er1 >conftest.err
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_cxx_werror_flag"
11948 || test ! -s conftest.err'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest$ac_exeext'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 ac_cv_lib_dl_dlopen=yes
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 ac_cv_lib_dl_dlopen=no
11967 rm -f conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11973 if test $ac_cv_lib_dl_dlopen = yes; then
11974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11977 lt_cv_dlopen="dyld"
11979 lt_cv_dlopen_self=yes
11986 echo "$as_me:$LINENO: checking for shl_load" >&5
11987 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11988 if test "${ac_cv_func_shl_load+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 cat >conftest.$ac_ext <<_ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11999 #define shl_load innocuous_shl_load
12001 /* System header to define __stub macros and hopefully few prototypes,
12002 which can conflict with char shl_load (); below.
12003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12004 <limits.h> exists even on freestanding compilers. */
12007 # include <limits.h>
12009 # include <assert.h>
12014 /* Override any gcc2 internal prototype to avoid an error. */
12019 /* We use char because int might match the return type of a gcc2
12020 builtin and then its argument prototype would still apply. */
12022 /* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12028 char (*f) () = shl_load;
12037 return f != shl_load;
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044 (eval $ac_link) 2>conftest.er1
12046 grep -v '^ *+' conftest.er1 >conftest.err
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_cxx_werror_flag"
12052 || test ! -s conftest.err'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest$ac_exeext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_func_shl_load=yes
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_cv_func_shl_load=no
12071 rm -f conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12074 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12075 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12076 if test $ac_cv_func_shl_load = yes; then
12077 lt_cv_dlopen="shl_load"
12079 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12080 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12081 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 ac_check_lib_save_LIBS=$LIBS
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12093 /* Override any gcc2 internal prototype to avoid an error. */
12097 /* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12110 (eval $ac_link) 2>conftest.er1
12112 grep -v '^ *+' conftest.er1 >conftest.err
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_cxx_werror_flag"
12118 || test ! -s conftest.err'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest$ac_exeext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 ac_cv_lib_dld_shl_load=yes
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 ac_cv_lib_dld_shl_load=no
12137 rm -f conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12139 LIBS=$ac_check_lib_save_LIBS
12141 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12142 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12143 if test $ac_cv_lib_dld_shl_load = yes; then
12144 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12146 echo "$as_me:$LINENO: checking for dlopen" >&5
12147 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12148 if test "${ac_cv_func_dlopen+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 cat >conftest.$ac_ext <<_ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12157 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12159 #define dlopen innocuous_dlopen
12161 /* System header to define __stub macros and hopefully few prototypes,
12162 which can conflict with char dlopen (); below.
12163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12164 <limits.h> exists even on freestanding compilers. */
12167 # include <limits.h>
12169 # include <assert.h>
12174 /* Override any gcc2 internal prototype to avoid an error. */
12179 /* We use char because int might match the return type of a gcc2
12180 builtin and then its argument prototype would still apply. */
12182 /* The GNU C library defines this for functions which it implements
12183 to always fail with ENOSYS. Some functions are actually named
12184 something starting with __ and the normal name is an alias. */
12185 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12188 char (*f) () = dlopen;
12197 return f != dlopen;
12202 rm -f conftest.$ac_objext conftest$ac_exeext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12204 (eval $ac_link) 2>conftest.er1
12206 grep -v '^ *+' conftest.er1 >conftest.err
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_cxx_werror_flag"
12212 || test ! -s conftest.err'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest$ac_exeext'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_func_dlopen=yes
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ac_cv_func_dlopen=no
12231 rm -f conftest.err conftest.$ac_objext \
12232 conftest$ac_exeext conftest.$ac_ext
12234 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12235 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12236 if test $ac_cv_func_dlopen = yes; then
12237 lt_cv_dlopen="dlopen"
12239 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12240 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 ac_check_lib_save_LIBS=$LIBS
12246 cat >conftest.$ac_ext <<_ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12253 /* Override any gcc2 internal prototype to avoid an error. */
12257 /* We use char because int might match the return type of a gcc2
12258 builtin and then its argument prototype would still apply. */
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12270 (eval $ac_link) 2>conftest.er1
12272 grep -v '^ *+' conftest.er1 >conftest.err
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -z "$ac_cxx_werror_flag"
12278 || test ! -s conftest.err'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest$ac_exeext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_cv_lib_dl_dlopen=yes
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12295 ac_cv_lib_dl_dlopen=no
12297 rm -f conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12303 if test $ac_cv_lib_dl_dlopen = yes; then
12304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12306 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12307 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12308 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 ac_check_lib_save_LIBS=$LIBS
12312 LIBS="-lsvld $LIBS"
12313 cat >conftest.$ac_ext <<_ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12320 /* Override any gcc2 internal prototype to avoid an error. */
12324 /* We use char because int might match the return type of a gcc2
12325 builtin and then its argument prototype would still apply. */
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_cxx_werror_flag"
12345 || test ! -s conftest.err'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try='test -s conftest$ac_exeext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_cv_lib_svld_dlopen=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_cv_lib_svld_dlopen=no
12364 rm -f conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12368 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12369 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12370 if test $ac_cv_lib_svld_dlopen = yes; then
12371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12373 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12374 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12375 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 ac_check_lib_save_LIBS=$LIBS
12380 cat >conftest.$ac_ext <<_ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12387 /* Override any gcc2 internal prototype to avoid an error. */
12391 /* We use char because int might match the return type of a gcc2
12392 builtin and then its argument prototype would still apply. */
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>conftest.er1
12406 grep -v '^ *+' conftest.er1 >conftest.err
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -z "$ac_cxx_werror_flag"
12412 || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_lib_dld_dld_link=yes
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12429 ac_cv_lib_dld_dld_link=no
12431 rm -f conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433 LIBS=$ac_check_lib_save_LIBS
12435 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12436 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12437 if test $ac_cv_lib_dld_dld_link = yes; then
12438 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12459 if test "x$lt_cv_dlopen" != xno; then
12465 case $lt_cv_dlopen in
12467 save_CPPFLAGS="$CPPFLAGS"
12468 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12470 save_LDFLAGS="$LDFLAGS"
12471 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12474 LIBS="$lt_cv_dlopen_libs $LIBS"
12476 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12477 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12478 if test "${lt_cv_dlopen_self+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 if test "$cross_compiling" = yes; then :
12482 lt_cv_dlopen_self=cross
12484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12485 lt_status=$lt_dlunknown
12486 cat > conftest.$ac_ext <<EOF
12487 #line __oline__ "configure"
12488 #include "confdefs.h"
12497 # define LT_DLGLOBAL RTLD_GLOBAL
12500 # define LT_DLGLOBAL DL_GLOBAL
12502 # define LT_DLGLOBAL 0
12506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12507 find out it does not work in some platform. */
12508 #ifndef LT_DLLAZY_OR_NOW
12510 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12513 # define LT_DLLAZY_OR_NOW DL_LAZY
12516 # define LT_DLLAZY_OR_NOW RTLD_NOW
12519 # define LT_DLLAZY_OR_NOW DL_NOW
12521 # define LT_DLLAZY_OR_NOW 0
12529 extern "C" void exit (int);
12532 void fnord() { int i=42;}
12535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12536 int status = $lt_dlunknown;
12540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12541 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12542 /* dlclose (self); */
12548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12549 (eval $ac_link) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12553 (./conftest; exit; ) 2>/dev/null
12555 case x$lt_status in
12556 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12557 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12558 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12561 # compilation failed
12562 lt_cv_dlopen_self=no
12569 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12570 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12572 if test "x$lt_cv_dlopen_self" = xyes; then
12573 LDFLAGS="$LDFLAGS $link_static_flag"
12574 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12575 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12576 if test "${lt_cv_dlopen_self_static+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 if test "$cross_compiling" = yes; then :
12580 lt_cv_dlopen_self_static=cross
12582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12583 lt_status=$lt_dlunknown
12584 cat > conftest.$ac_ext <<EOF
12585 #line __oline__ "configure"
12586 #include "confdefs.h"
12595 # define LT_DLGLOBAL RTLD_GLOBAL
12598 # define LT_DLGLOBAL DL_GLOBAL
12600 # define LT_DLGLOBAL 0
12604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12605 find out it does not work in some platform. */
12606 #ifndef LT_DLLAZY_OR_NOW
12608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12611 # define LT_DLLAZY_OR_NOW DL_LAZY
12614 # define LT_DLLAZY_OR_NOW RTLD_NOW
12617 # define LT_DLLAZY_OR_NOW DL_NOW
12619 # define LT_DLLAZY_OR_NOW 0
12627 extern "C" void exit (int);
12630 void fnord() { int i=42;}
12633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12634 int status = $lt_dlunknown;
12638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12639 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12640 /* dlclose (self); */
12646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12647 (eval $ac_link) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12651 (./conftest; exit; ) 2>/dev/null
12653 case x$lt_status in
12654 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12655 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12656 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12659 # compilation failed
12660 lt_cv_dlopen_self_static=no
12667 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12668 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12671 CPPFLAGS="$save_CPPFLAGS"
12672 LDFLAGS="$save_LDFLAGS"
12677 case $lt_cv_dlopen_self in
12678 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12679 *) enable_dlopen_self=unknown ;;
12682 case $lt_cv_dlopen_self_static in
12683 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12684 *) enable_dlopen_self_static=unknown ;;
12689 # The else clause should only fire when bootstrapping the
12690 # libtool distribution, otherwise you forgot to ship ltmain.sh
12691 # with your package, and you will get complaints that there are
12692 # no rules to generate ltmain.sh.
12693 if test -f "$ltmain"; then
12694 # See if we are running on zsh, and set the options which allow our commands through
12695 # without removal of \ escapes.
12696 if test -n "${ZSH_VERSION+set}" ; then
12697 setopt NO_GLOB_SUBST
12699 # Now quote all the things that may contain metacharacters while being
12700 # careful not to overquote the AC_SUBSTed values. We take copies of the
12701 # variables and quote the copies for generation of the libtool script.
12702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12706 deplibs_check_method reload_flag reload_cmds need_locks \
12707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12708 lt_cv_sys_global_symbol_to_c_name_address \
12709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12710 old_postinstall_cmds old_postuninstall_cmds \
12714 lt_prog_compiler_wl_CXX \
12715 lt_prog_compiler_pic_CXX \
12716 lt_prog_compiler_static_CXX \
12717 lt_prog_compiler_no_builtin_flag_CXX \
12718 export_dynamic_flag_spec_CXX \
12719 thread_safe_flag_spec_CXX \
12720 whole_archive_flag_spec_CXX \
12721 enable_shared_with_static_runtimes_CXX \
12722 old_archive_cmds_CXX \
12723 old_archive_from_new_cmds_CXX \
12724 predep_objects_CXX \
12725 postdep_objects_CXX \
12728 compiler_lib_search_path_CXX \
12730 archive_expsym_cmds_CXX \
12731 postinstall_cmds_CXX \
12732 postuninstall_cmds_CXX \
12733 old_archive_from_expsyms_cmds_CXX \
12734 allow_undefined_flag_CXX \
12735 no_undefined_flag_CXX \
12736 export_symbols_cmds_CXX \
12737 hardcode_libdir_flag_spec_CXX \
12738 hardcode_libdir_flag_spec_ld_CXX \
12739 hardcode_libdir_separator_CXX \
12740 hardcode_automatic_CXX \
12742 module_expsym_cmds_CXX \
12743 lt_cv_prog_compiler_c_o_CXX \
12744 exclude_expsyms_CXX \
12745 include_expsyms_CXX; do
12748 old_archive_cmds_CXX | \
12749 old_archive_from_new_cmds_CXX | \
12750 archive_cmds_CXX | \
12751 archive_expsym_cmds_CXX | \
12752 module_cmds_CXX | \
12753 module_expsym_cmds_CXX | \
12754 old_archive_from_expsyms_cmds_CXX | \
12755 export_symbols_cmds_CXX | \
12756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12757 postinstall_cmds | postuninstall_cmds | \
12758 old_postinstall_cmds | old_postuninstall_cmds | \
12759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12760 # Double-quote double-evaled strings.
12761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12770 *'\$0 --fallback-echo"')
12771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12777 cat <<__EOF__ >> "$cfgfile"
12778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12782 # Shell to use when invoking shell scripts.
12785 # Whether or not to build shared libraries.
12786 build_libtool_libs=$enable_shared
12788 # Whether or not to build static libraries.
12789 build_old_libs=$enable_static
12791 # Whether or not to add -lc for building shared libraries.
12792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12794 # Whether or not to disallow shared libs when runtime libs are static
12795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12797 # Whether or not to optimize for fast installation.
12798 fast_install=$enable_fast_install
12801 host_alias=$host_alias
12804 # An echo program that does not interpret backslashes.
12809 AR_FLAGS=$lt_AR_FLAGS
12814 # A language-specific compiler.
12815 CC=$lt_compiler_CXX
12817 # Is the compiler the GNU C compiler?
12823 # The linker used to build libraries.
12826 # Whether we need hard or soft links.
12829 # A BSD-compatible nm program.
12832 # A symbol stripping program
12835 # Used to examine libraries when file_magic_cmd begins "file"
12836 MAGIC_CMD=$MAGIC_CMD
12838 # Used on cygwin: DLL creation program.
12841 # Used on cygwin: object dumper.
12844 # Used on cygwin: assembler.
12847 # The name of the directory that contains temporary libtool files.
12850 # How to create reloadable object files.
12851 reload_flag=$lt_reload_flag
12852 reload_cmds=$lt_reload_cmds
12854 # How to pass a linker flag through the compiler.
12855 wl=$lt_lt_prog_compiler_wl_CXX
12857 # Object file suffix (normally "o").
12858 objext="$ac_objext"
12860 # Old archive suffix (normally "a").
12863 # Shared library suffix (normally ".so").
12864 shrext_cmds='$shrext_cmds'
12866 # Executable file suffix (normally "").
12869 # Additional compiler flags for building library objects.
12870 pic_flag=$lt_lt_prog_compiler_pic_CXX
12873 # What is the maximum length of a command?
12874 max_cmd_len=$lt_cv_sys_max_cmd_len
12876 # Does compiler simultaneously support -c and -o options?
12877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12879 # Must we lock files when doing compilation ?
12880 need_locks=$lt_need_locks
12882 # Do we need the lib prefix for modules?
12883 need_lib_prefix=$need_lib_prefix
12885 # Do we need a version for libraries?
12886 need_version=$need_version
12888 # Whether dlopen is supported.
12889 dlopen_support=$enable_dlopen
12891 # Whether dlopen of programs is supported.
12892 dlopen_self=$enable_dlopen_self
12894 # Whether dlopen of statically linked programs is supported.
12895 dlopen_self_static=$enable_dlopen_self_static
12897 # Compiler flag to prevent dynamic linking.
12898 link_static_flag=$lt_lt_prog_compiler_static_CXX
12900 # Compiler flag to turn off builtin functions.
12901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12903 # Compiler flag to allow reflexive dlopens.
12904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12906 # Compiler flag to generate shared objects directly from archives.
12907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12909 # Compiler flag to generate thread-safe objects.
12910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12912 # Library versioning type.
12913 version_type=$version_type
12915 # Format of library name prefix.
12916 libname_spec=$lt_libname_spec
12918 # List of archive names. First name is the real one, the rest are links.
12919 # The last name is the one that the linker finds with -lNAME.
12920 library_names_spec=$lt_library_names_spec
12922 # The coded name of the library, if different from the real name.
12923 soname_spec=$lt_soname_spec
12925 # Commands used to build and install an old-style archive.
12927 old_archive_cmds=$lt_old_archive_cmds_CXX
12928 old_postinstall_cmds=$lt_old_postinstall_cmds
12929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12931 # Create an old-style archive from a shared archive.
12932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12934 # Create a temporary old-style archive to link instead of a shared archive.
12935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12937 # Commands used to build and install a shared archive.
12938 archive_cmds=$lt_archive_cmds_CXX
12939 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12940 postinstall_cmds=$lt_postinstall_cmds
12941 postuninstall_cmds=$lt_postuninstall_cmds
12943 # Commands used to build a loadable module (assumed same as above if empty)
12944 module_cmds=$lt_module_cmds_CXX
12945 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12947 # Commands to strip libraries.
12948 old_striplib=$lt_old_striplib
12949 striplib=$lt_striplib
12951 # Dependencies to place before the objects being linked to create a
12953 predep_objects=$lt_predep_objects_CXX
12955 # Dependencies to place after the objects being linked to create a
12957 postdep_objects=$lt_postdep_objects_CXX
12959 # Dependencies to place before the objects being linked to create a
12961 predeps=$lt_predeps_CXX
12963 # Dependencies to place after the objects being linked to create a
12965 postdeps=$lt_postdeps_CXX
12967 # The library search path used internally by the compiler when linking
12968 # a shared library.
12969 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12971 # Method to check whether dependent libraries are shared objects.
12972 deplibs_check_method=$lt_deplibs_check_method
12974 # Command to use when deplibs_check_method == file_magic.
12975 file_magic_cmd=$lt_file_magic_cmd
12977 # Flag that allows shared libraries with undefined symbols to be built.
12978 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12980 # Flag that forces no undefined symbols.
12981 no_undefined_flag=$lt_no_undefined_flag_CXX
12983 # Commands used to finish a libtool library installation in a directory.
12984 finish_cmds=$lt_finish_cmds
12986 # Same as above, but a single script fragment to be evaled but not shown.
12987 finish_eval=$lt_finish_eval
12989 # Take the output of nm and produce a listing of raw symbols and C names.
12990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12992 # Transform the output of nm in a proper C declaration
12993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12995 # Transform the output of nm in a C name address pair
12996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12998 # This is the shared library runtime path variable.
12999 runpath_var=$runpath_var
13001 # This is the shared library path variable.
13002 shlibpath_var=$shlibpath_var
13004 # Is shlibpath searched before the hard-coded library search path?
13005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13007 # How to hardcode a shared library path into an executable.
13008 hardcode_action=$hardcode_action_CXX
13010 # Whether we should hardcode library paths into libraries.
13011 hardcode_into_libs=$hardcode_into_libs
13013 # Flag to hardcode \$libdir into a binary during linking.
13014 # This must work even if \$libdir does not exist.
13015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13017 # If ld is used when linking, flag to hardcode \$libdir into
13018 # a binary during linking. This must work even if \$libdir does
13020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13022 # Whether we need a single -rpath flag with a separated argument.
13023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13026 # resulting binary.
13027 hardcode_direct=$hardcode_direct_CXX
13029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13030 # resulting binary.
13031 hardcode_minus_L=$hardcode_minus_L_CXX
13033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13034 # the resulting binary.
13035 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13037 # Set to yes if building a shared library automatically hardcodes DIR into the library
13038 # and all subsequent libraries and executables linked against it.
13039 hardcode_automatic=$hardcode_automatic_CXX
13041 # Variables whose values should be saved in libtool wrapper scripts and
13042 # restored at relink time.
13043 variables_saved_for_relink="$variables_saved_for_relink"
13045 # Whether libtool must link a program against all its dependency libraries.
13046 link_all_deplibs=$link_all_deplibs_CXX
13048 # Compile-time system search path for libraries
13049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13051 # Run-time system search path for libraries
13052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13054 # Fix the shell variable \$srcfile for the compiler.
13055 fix_srcfile_path="$fix_srcfile_path_CXX"
13057 # Set to yes if exported symbols are required.
13058 always_export_symbols=$always_export_symbols_CXX
13060 # The commands to list exported symbols.
13061 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13063 # The commands to extract the exported symbol list from a shared archive.
13064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13066 # Symbols that should not be listed in the preloaded symbols.
13067 exclude_expsyms=$lt_exclude_expsyms_CXX
13069 # Symbols that must always be exported.
13070 include_expsyms=$lt_include_expsyms_CXX
13072 # ### END LIBTOOL TAG CONFIG: $tagname
13078 # If there is no Makefile yet, we rely on a make rule to execute
13079 # `config.status --recheck' to rerun these tests and create the
13080 # libtool script then.
13081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13082 if test -f "$ltmain_in"; then
13083 test -f Makefile && make "$ltmain"
13089 ac_cpp='$CPP $CPPFLAGS'
13090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13098 with_gnu_ldcxx=$with_gnu_ld
13099 with_gnu_ld=$lt_save_with_gnu_ld
13100 lt_cv_path_LDCXX=$lt_cv_path_LD
13101 lt_cv_path_LD=$lt_save_path_LD
13102 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13103 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13111 if test -n "$F77" && test "X$F77" != "Xno"; then
13114 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13115 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13116 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13119 archive_cmds_need_lc_F77=no
13120 allow_undefined_flag_F77=
13121 always_export_symbols_F77=no
13122 archive_expsym_cmds_F77=
13123 export_dynamic_flag_spec_F77=
13124 hardcode_direct_F77=no
13125 hardcode_libdir_flag_spec_F77=
13126 hardcode_libdir_flag_spec_ld_F77=
13127 hardcode_libdir_separator_F77=
13128 hardcode_minus_L_F77=no
13129 hardcode_automatic_F77=no
13131 module_expsym_cmds_F77=
13132 link_all_deplibs_F77=unknown
13133 old_archive_cmds_F77=$old_archive_cmds
13134 no_undefined_flag_F77=
13135 whole_archive_flag_spec_F77=
13136 enable_shared_with_static_runtimes_F77=no
13138 # Source file extension for f77 test sources.
13141 # Object file extension for compiled f77 test sources.
13145 # Code to be used in simple compile tests
13146 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13148 # Code to be used in simple link tests
13149 lt_simple_link_test_code=" program t\n end\n"
13151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13153 # If no C compiler was specified, use CC.
13156 # Allow CC to be a program name with arguments.
13160 # Allow CC to be a program name with arguments.
13165 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13167 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13168 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13169 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13170 echo "${ECHO_T}$can_build_shared" >&6
13172 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13173 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13174 test "$can_build_shared" = "no" && enable_shared=no
13176 # On AIX, shared libraries and static libraries use the same namespace, and
13177 # are all built from PIC.
13180 test "$enable_shared" = yes && enable_static=no
13181 if test -n "$RANLIB"; then
13182 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13183 postinstall_cmds='$RANLIB $lib'
13187 test "$enable_shared" = yes && enable_static=no
13190 echo "$as_me:$LINENO: result: $enable_shared" >&5
13191 echo "${ECHO_T}$enable_shared" >&6
13193 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13194 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13195 # Make sure either enable_shared or enable_static is yes.
13196 test "$enable_shared" = yes || enable_static=yes
13197 echo "$as_me:$LINENO: result: $enable_static" >&5
13198 echo "${ECHO_T}$enable_static" >&6
13200 test "$ld_shlibs_F77" = no && can_build_shared=no
13205 lt_prog_compiler_wl_F77=
13206 lt_prog_compiler_pic_F77=
13207 lt_prog_compiler_static_F77=
13209 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13210 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13212 if test "$GCC" = yes; then
13213 lt_prog_compiler_wl_F77='-Wl,'
13214 lt_prog_compiler_static_F77='-static'
13218 # All AIX code is PIC.
13219 if test "$host_cpu" = ia64; then
13220 # AIX 5 now supports IA64 processor
13221 lt_prog_compiler_static_F77='-Bstatic'
13226 # FIXME: we need at least 68020 code to build shared libraries, but
13227 # adding the `-m68020' flag to GCC prevents building anything better,
13229 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13233 # PIC is the default for these OSes.
13236 mingw* | pw32* | os2*)
13237 # This hack is so that the source file can tell whether it is being
13238 # built for inclusion in a dll (and should export symbols for example).
13239 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13242 darwin* | rhapsody*)
13243 # PIC is the default on this platform
13244 # Common symbols not allowed in MH_DYLIB files
13245 lt_prog_compiler_pic_F77='-fno-common'
13249 # Just because we use GCC doesn't mean we suddenly get shared libraries
13250 # on systems that don't support them.
13251 lt_prog_compiler_can_build_shared_F77=no
13256 if test -d /usr/nec; then
13257 lt_prog_compiler_pic_F77=-Kconform_pic
13262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13263 # not for PA HP-UX.
13264 case "$host_cpu" in
13269 lt_prog_compiler_pic_F77='-fPIC'
13275 lt_prog_compiler_pic_F77='-fPIC'
13279 # PORTME Check for flag to pass linker flags through the system compiler.
13282 lt_prog_compiler_wl_F77='-Wl,'
13283 if test "$host_cpu" = ia64; then
13284 # AIX 5 now supports IA64 processor
13285 lt_prog_compiler_static_F77='-Bstatic'
13287 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13291 mingw* | pw32* | os2*)
13292 # This hack is so that the source file can tell whether it is being
13293 # built for inclusion in a dll (and should export symbols for example).
13294 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13297 hpux9* | hpux10* | hpux11*)
13298 lt_prog_compiler_wl_F77='-Wl,'
13299 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13300 # not for PA HP-UX.
13301 case "$host_cpu" in
13306 lt_prog_compiler_pic_F77='+Z'
13309 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13310 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13313 irix5* | irix6* | nonstopux*)
13314 lt_prog_compiler_wl_F77='-Wl,'
13315 # PIC (with -KPIC) is the default.
13316 lt_prog_compiler_static_F77='-non_shared'
13320 lt_prog_compiler_pic_F77='-KPIC'
13321 lt_prog_compiler_static_F77='-Bstatic'
13327 lt_prog_compiler_wl_F77='-Wl,'
13328 lt_prog_compiler_pic_F77='-KPIC'
13329 lt_prog_compiler_static_F77='-static'
13332 lt_prog_compiler_wl_F77='-Wl,'
13333 # All Alpha code is PIC.
13334 lt_prog_compiler_static_F77='-non_shared'
13339 osf3* | osf4* | osf5*)
13340 lt_prog_compiler_wl_F77='-Wl,'
13341 # All OSF/1 code is PIC.
13342 lt_prog_compiler_static_F77='-non_shared'
13346 lt_prog_compiler_pic_F77='-Kpic'
13347 lt_prog_compiler_static_F77='-dn'
13351 lt_prog_compiler_wl_F77='-Wl,'
13352 lt_prog_compiler_pic_F77='-KPIC'
13353 lt_prog_compiler_static_F77='-Bstatic'
13357 lt_prog_compiler_wl_F77='-Qoption ld '
13358 lt_prog_compiler_pic_F77='-PIC'
13359 lt_prog_compiler_static_F77='-Bstatic'
13362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13363 lt_prog_compiler_wl_F77='-Wl,'
13364 lt_prog_compiler_pic_F77='-KPIC'
13365 lt_prog_compiler_static_F77='-Bstatic'
13369 if test -d /usr/nec ;then
13370 lt_prog_compiler_pic_F77='-Kconform_pic'
13371 lt_prog_compiler_static_F77='-Bstatic'
13376 lt_prog_compiler_pic_F77='-pic'
13377 lt_prog_compiler_static_F77='-Bstatic'
13381 lt_prog_compiler_can_build_shared_F77=no
13386 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13387 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13390 # Check to make sure the PIC flag actually works.
13392 if test -n "$lt_prog_compiler_pic_F77"; then
13394 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13395 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13396 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 lt_prog_compiler_pic_works_F77=no
13400 ac_outfile=conftest.$ac_objext
13401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13402 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13403 # Insert the option either (1) after the last *FLAGS variable, or
13404 # (2) before a word containing "conftest.", or (3) at the end.
13405 # Note that $ac_compile itself does not contain backslashes and begins
13406 # with a dollar sign (not a hyphen), so the echo should work correctly.
13407 # The option is referenced via a variable to avoid confusing sed.
13408 lt_compile=`echo "$ac_compile" | $SED \
13409 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13411 -e 's:$: $lt_compiler_flag:'`
13412 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13413 (eval "$lt_compile" 2>conftest.err)
13415 cat conftest.err >&5
13416 echo "$as_me:__oline__: \$? = $ac_status" >&5
13417 if (exit $ac_status) && test -s "$ac_outfile"; then
13418 # The compiler can only warn and ignore the option if not recognized
13419 # So say no if there are warnings
13420 if test ! -s conftest.err; then
13421 lt_prog_compiler_pic_works_F77=yes
13427 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13428 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13430 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13431 case $lt_prog_compiler_pic_F77 in
13433 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13436 lt_prog_compiler_pic_F77=
13437 lt_prog_compiler_can_build_shared_F77=no
13442 # For platforms which do not support PIC, -DPIC is meaningless:
13444 lt_prog_compiler_pic_F77=
13447 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13451 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13452 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13453 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 lt_cv_prog_compiler_c_o_F77=no
13457 $rm -r conftest 2>/dev/null
13461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13463 lt_compiler_flag="-o out/conftest2.$ac_objext"
13464 # Insert the option either (1) after the last *FLAGS variable, or
13465 # (2) before a word containing "conftest.", or (3) at the end.
13466 # Note that $ac_compile itself does not contain backslashes and begins
13467 # with a dollar sign (not a hyphen), so the echo should work correctly.
13468 lt_compile=`echo "$ac_compile" | $SED \
13469 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13471 -e 's:$: $lt_compiler_flag:'`
13472 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13473 (eval "$lt_compile" 2>out/conftest.err)
13475 cat out/conftest.err >&5
13476 echo "$as_me:__oline__: \$? = $ac_status" >&5
13477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13479 # The compiler can only warn and ignore the option if not recognized
13480 # So say no if there are warnings
13481 if test ! -s out/conftest.err; then
13482 lt_cv_prog_compiler_c_o_F77=yes
13487 # SGI C++ compiler will create directory out/ii_files/ for
13488 # template instantiation
13489 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13490 $rm out/* && rmdir out
13496 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13497 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13500 hard_links="nottested"
13501 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13502 # do not overwrite the value of need_locks provided by the user
13503 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13504 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13509 ln conftest.a conftest.b 2>&5 || hard_links=no
13510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13511 echo "$as_me:$LINENO: result: $hard_links" >&5
13512 echo "${ECHO_T}$hard_links" >&6
13513 if test "$hard_links" = no; then
13514 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13515 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13522 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13523 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13526 allow_undefined_flag_F77=
13527 enable_shared_with_static_runtimes_F77=no
13529 archive_expsym_cmds_F77=
13530 old_archive_From_new_cmds_F77=
13531 old_archive_from_expsyms_cmds_F77=
13532 export_dynamic_flag_spec_F77=
13533 whole_archive_flag_spec_F77=
13534 thread_safe_flag_spec_F77=
13535 hardcode_libdir_flag_spec_F77=
13536 hardcode_libdir_flag_spec_ld_F77=
13537 hardcode_libdir_separator_F77=
13538 hardcode_direct_F77=no
13539 hardcode_minus_L_F77=no
13540 hardcode_shlibpath_var_F77=unsupported
13541 link_all_deplibs_F77=unknown
13542 hardcode_automatic_F77=no
13544 module_expsym_cmds_F77=
13545 always_export_symbols_F77=no
13546 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13547 # include_expsyms should be a list of space-separated symbols to be *always*
13548 # included in the symbol list
13549 include_expsyms_F77=
13550 # exclude_expsyms can be an extended regexp of symbols to exclude
13551 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13552 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13553 # as well as any symbol that contains `d'.
13554 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13555 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13556 # platforms (ab)use it in PIC code, but their linkers get confused if
13557 # the symbol is explicitly referenced. Since portable code cannot
13558 # rely on this symbol name, it's probably fine to never include it in
13559 # preloaded symbol tables.
13560 extract_expsyms_cmds=
13563 cygwin* | mingw* | pw32*)
13564 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13565 # When not using gcc, we currently assume that we are using
13566 # Microsoft Visual C++.
13567 if test "$GCC" != yes; then
13577 if test "$with_gnu_ld" = yes; then
13578 # If archive_cmds runs LD, not CC, wlarc should be empty
13581 # See if GNU ld supports shared libraries.
13583 aix3* | aix4* | aix5*)
13584 # On AIX/PPC, the GNU linker is very broken
13585 if test "$host_cpu" != ia64; then
13589 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13590 *** to be unable to reliably create shared libraries on AIX.
13591 *** Therefore, libtool is disabling shared libraries support. If you
13592 *** really care for shared libraries, you may want to modify your PATH
13593 *** so that a non-GNU linker is found, and then restart.
13600 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)'
13601 hardcode_libdir_flag_spec_F77='-L$libdir'
13602 hardcode_minus_L_F77=yes
13604 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13605 # that the semantics of dynamic libraries on AmigaOS, at least up
13606 # to version 4, is to share data among multiple programs linked
13607 # with the same dynamic library. Since this doesn't match the
13608 # behavior of shared libraries on other platforms, we can't use
13614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13615 allow_undefined_flag_F77=unsupported
13616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13617 # support --undefined. This deserves some investigation. FIXME
13618 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13624 cygwin* | mingw* | pw32*)
13625 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13626 # as there is no search path for DLLs.
13627 hardcode_libdir_flag_spec_F77='-L$libdir'
13628 allow_undefined_flag_F77=unsupported
13629 always_export_symbols_F77=no
13630 enable_shared_with_static_runtimes_F77=yes
13631 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13633 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13634 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13635 # If the export-symbols file already is a .def file (1st line
13636 # is EXPORTS), use it as is; otherwise, prepend...
13637 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13638 cp $export_symbols $output_objdir/$soname.def;
13640 echo EXPORTS > $output_objdir/$soname.def;
13641 cat $export_symbols >> $output_objdir/$soname.def;
13643 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13651 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13654 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13655 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13660 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13664 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13665 *** create shared libraries on Solaris systems. Therefore, libtool
13666 *** is disabling shared libraries support. We urge you to upgrade GNU
13667 *** binutils to release 2.9.1 or newer. Another option is to modify
13668 *** your PATH or compiler configuration so that the native linker is
13669 *** used, and then restart.
13672 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13673 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13674 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13681 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13683 hardcode_direct_F77=yes
13684 hardcode_shlibpath_var_F77=no
13688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13689 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13690 archive_cmds_F77="$tmp_archive_cmds"
13691 supports_anon_versioning=no
13692 case `$LD -v 2>/dev/null` in
13693 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13694 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13695 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13696 *\ 2.11.*) ;; # other 2.11 versions
13697 *) supports_anon_versioning=yes ;;
13699 if test $supports_anon_versioning = yes; then
13700 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13702 $echo "local: *; };" >> $output_objdir/$libname.ver~
13703 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13705 archive_expsym_cmds_F77="$tmp_archive_cmds"
13713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13714 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13715 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13722 if test "$ld_shlibs_F77" = yes; then
13723 runpath_var=LD_RUN_PATH
13724 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13725 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13726 # ancient GNU ld didn't support --whole-archive et. al.
13727 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13728 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13730 whole_archive_flag_spec_F77=
13734 # PORTME fill in a description of your system's linker (not GNU ld)
13737 allow_undefined_flag_F77=unsupported
13738 always_export_symbols_F77=yes
13739 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'
13740 # Note: this linker hardcodes the directories in LIBPATH if there
13741 # are no directories specified by -L.
13742 hardcode_minus_L_F77=yes
13743 if test "$GCC" = yes && test -z "$link_static_flag"; then
13744 # Neither direct hardcoding nor static linking is supported with a
13746 hardcode_direct_F77=unsupported
13751 if test "$host_cpu" = ia64; then
13752 # On IA64, the linker does run time linking by default, so we don't
13753 # have to do anything special.
13754 aix_use_runtimelinking=no
13755 exp_sym_flag='-Bexport'
13758 # If we're using GNU nm, then we don't want the "-C" option.
13759 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13760 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13761 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'
13763 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'
13765 aix_use_runtimelinking=no
13767 # Test if we are trying to use run time linking or normal
13768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13769 # need to do runtime linking.
13770 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13771 for ld_flag in $LDFLAGS; do
13772 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13773 aix_use_runtimelinking=yes
13779 exp_sym_flag='-bexport'
13780 no_entry_flag='-bnoentry'
13783 # When large executables or shared objects are built, AIX ld can
13784 # have problems creating the table of contents. If linking a library
13785 # or program results in "error TOC overflow" add -mminimal-toc to
13786 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13787 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13789 archive_cmds_F77=''
13790 hardcode_direct_F77=yes
13791 hardcode_libdir_separator_F77=':'
13792 link_all_deplibs_F77=yes
13794 if test "$GCC" = yes; then
13795 case $host_os in aix4.012|aix4.012.*)
13796 # We only want to do this on AIX 4.2 and lower, the check
13797 # below for broken collect2 doesn't work under 4.3+
13798 collect2name=`${CC} -print-prog-name=collect2`
13799 if test -f "$collect2name" && \
13800 strings "$collect2name" | grep resolve_lib_name >/dev/null
13802 # We have reworked collect2
13803 hardcode_direct_F77=yes
13805 # We have old collect2
13806 hardcode_direct_F77=unsupported
13807 # It fails to find uninstalled libraries when the uninstalled
13808 # path is not listed in the libpath. Setting hardcode_minus_L
13809 # to unsupported forces relinking
13810 hardcode_minus_L_F77=yes
13811 hardcode_libdir_flag_spec_F77='-L$libdir'
13812 hardcode_libdir_separator_F77=
13815 shared_flag='-shared'
13818 if test "$host_cpu" = ia64; then
13819 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13820 # chokes on -Wl,-G. The following line is correct:
13823 if test "$aix_use_runtimelinking" = yes; then
13824 shared_flag='${wl}-G'
13826 shared_flag='${wl}-bM:SRE'
13831 # It seems that -bexpall does not export symbols beginning with
13832 # underscore (_), so it is better to generate a list of symbols to export.
13833 always_export_symbols_F77=yes
13834 if test "$aix_use_runtimelinking" = yes; then
13835 # Warning - without using the other runtime loading flags (-brtl),
13836 # -berok will link without error, but may produce a broken library.
13837 allow_undefined_flag_F77='-berok'
13838 # Determine the default libpath from the value encoded in an empty executable.
13839 cat >conftest.$ac_ext <<_ACEOF
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_f77_werror_flag"
13854 || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest$ac_exeext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13867 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13869 # Check for a 64-bit object if we didn't find anything.
13870 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; }
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13877 rm -f conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13881 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13882 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"
13884 if test "$host_cpu" = ia64; then
13885 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13886 allow_undefined_flag_F77="-z nodefs"
13887 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"
13889 # Determine the default libpath from the value encoded in an empty executable.
13890 cat >conftest.$ac_ext <<_ACEOF
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>conftest.er1
13899 grep -v '^ *+' conftest.er1 >conftest.err
13901 cat conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } &&
13904 { ac_try='test -z "$ac_f77_werror_flag"
13905 || test ! -s conftest.err'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; } &&
13911 { ac_try='test -s conftest$ac_exeext'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13920 # Check for a 64-bit object if we didn't find anything.
13921 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; }
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13928 rm -f conftest.err conftest.$ac_objext \
13929 conftest$ac_exeext conftest.$ac_ext
13930 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13932 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13933 # Warning - without using the other run time loading flags,
13934 # -berok will link without error, but may produce a broken library.
13935 no_undefined_flag_F77=' ${wl}-bernotok'
13936 allow_undefined_flag_F77=' ${wl}-berok'
13937 # -bexpall does not export symbols beginning with underscore (_)
13938 always_export_symbols_F77=yes
13939 # Exported symbols can be pulled into shared objects from archives
13940 whole_archive_flag_spec_F77=' '
13941 archive_cmds_need_lc_F77=yes
13942 # This is similar to how AIX traditionally builds it's shared libraries.
13943 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'
13949 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)'
13950 hardcode_libdir_flag_spec_F77='-L$libdir'
13951 hardcode_minus_L_F77=yes
13952 # see comment about different semantics on the GNU ld section
13957 export_dynamic_flag_spec_F77=-rdynamic
13960 cygwin* | mingw* | pw32*)
13961 # When not using gcc, we currently assume that we are using
13962 # Microsoft Visual C++.
13963 # hardcode_libdir_flag_spec is actually meaningless, as there is
13964 # no search path for DLLs.
13965 hardcode_libdir_flag_spec_F77=' '
13966 allow_undefined_flag_F77=unsupported
13967 # Tell ltmain to make .lib files, not .a files.
13969 # Tell ltmain to make .dll files, not .so files.
13971 # FIXME: Setting linknames here is a bad hack.
13972 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13973 # The linker will automatically build a .lib file if we build a DLL.
13974 old_archive_From_new_cmds_F77='true'
13975 # FIXME: Should let the user specify the lib program.
13976 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13977 fix_srcfile_path='`cygpath -w "$srcfile"`'
13978 enable_shared_with_static_runtimes_F77=yes
13981 darwin* | rhapsody*)
13982 if test "$GXX" = yes ; then
13983 archive_cmds_need_lc_F77=no
13985 rhapsody* | darwin1.[012])
13986 allow_undefined_flag_F77='-undefined suppress'
13989 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13990 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13992 case ${MACOSX_DEPLOYMENT_TARGET} in
13994 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13997 allow_undefined_flag_F77='-undefined dynamic_lookup'
14003 lt_int_apple_cc_single_mod=no
14004 output_verbose_link_cmd='echo'
14005 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14006 lt_int_apple_cc_single_mod=yes
14008 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14009 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14011 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'
14013 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14014 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14015 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14016 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}'
14018 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}'
14020 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}'
14021 hardcode_direct_F77=no
14022 hardcode_automatic_F77=yes
14023 hardcode_shlibpath_var_F77=unsupported
14024 whole_archive_flag_spec_F77='-all_load $convenience'
14025 link_all_deplibs_F77=yes
14032 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14033 hardcode_libdir_flag_spec_F77='-L$libdir'
14034 hardcode_shlibpath_var_F77=no
14041 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14042 # support. Future versions do this automatically, but an explicit c++rt0.o
14043 # does not break anything, and helps significantly (at the cost of a little
14046 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14047 hardcode_libdir_flag_spec_F77='-R$libdir'
14048 hardcode_direct_F77=yes
14049 hardcode_shlibpath_var_F77=no
14052 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14054 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14055 hardcode_direct_F77=yes
14056 hardcode_minus_L_F77=yes
14057 hardcode_shlibpath_var_F77=no
14060 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14061 freebsd* | kfreebsd*-gnu)
14062 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14063 hardcode_libdir_flag_spec_F77='-R$libdir'
14064 hardcode_direct_F77=yes
14065 hardcode_shlibpath_var_F77=no
14069 if test "$GCC" = yes; then
14070 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'
14072 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'
14074 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14075 hardcode_libdir_separator_F77=:
14076 hardcode_direct_F77=yes
14078 # hardcode_minus_L: Not really in the search PATH,
14079 # but as the default location of the library.
14080 hardcode_minus_L_F77=yes
14081 export_dynamic_flag_spec_F77='${wl}-E'
14085 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14086 case "$host_cpu" in
14088 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14091 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14095 case "$host_cpu" in
14097 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14100 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14104 if test "$with_gnu_ld" = no; then
14105 case "$host_cpu" in
14107 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14108 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14109 hardcode_libdir_separator_F77=:
14110 hardcode_direct_F77=no
14111 hardcode_shlibpath_var_F77=no
14114 hardcode_libdir_flag_spec_F77='-L$libdir'
14115 hardcode_direct_F77=no
14116 hardcode_shlibpath_var_F77=no
14118 # hardcode_minus_L: Not really in the search PATH,
14119 # but as the default location of the library.
14120 hardcode_minus_L_F77=yes
14123 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14124 hardcode_libdir_separator_F77=:
14125 hardcode_direct_F77=yes
14126 export_dynamic_flag_spec_F77='${wl}-E'
14128 # hardcode_minus_L: Not really in the search PATH,
14129 # but as the default location of the library.
14130 hardcode_minus_L_F77=yes
14136 irix5* | irix6* | nonstopux*)
14137 if test "$GCC" = yes; then
14138 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'
14140 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'
14141 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14143 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14144 hardcode_libdir_separator_F77=:
14145 link_all_deplibs_F77=yes
14149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14150 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14152 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14154 hardcode_libdir_flag_spec_F77='-R$libdir'
14155 hardcode_direct_F77=yes
14156 hardcode_shlibpath_var_F77=no
14160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14161 hardcode_direct_F77=yes
14162 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14163 hardcode_libdir_separator_F77=:
14164 hardcode_shlibpath_var_F77=no
14168 hardcode_direct_F77=yes
14169 hardcode_shlibpath_var_F77=no
14170 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14171 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14172 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14173 export_dynamic_flag_spec_F77='${wl}-E'
14176 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14177 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14178 hardcode_libdir_flag_spec_F77='-R$libdir'
14181 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14182 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14189 hardcode_libdir_flag_spec_F77='-L$libdir'
14190 hardcode_minus_L_F77=yes
14191 allow_undefined_flag_F77=unsupported
14192 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'
14193 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14197 if test "$GCC" = yes; then
14198 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14199 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'
14201 allow_undefined_flag_F77=' -expect_unresolved \*'
14202 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'
14204 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14205 hardcode_libdir_separator_F77=:
14208 osf4* | osf5*) # as osf3* with the addition of -msym flag
14209 if test "$GCC" = yes; then
14210 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14211 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'
14212 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14214 allow_undefined_flag_F77=' -expect_unresolved \*'
14215 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'
14216 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~
14217 $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'
14219 # Both c and cxx compiler support -rpath directly
14220 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14222 hardcode_libdir_separator_F77=:
14226 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227 hardcode_shlibpath_var_F77=no
14228 export_dynamic_flag_spec_F77='${wl}-Bexport'
14229 runpath_var=LD_RUN_PATH
14230 hardcode_runpath_var=yes
14234 no_undefined_flag_F77=' -z text'
14235 if test "$GCC" = yes; then
14236 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14237 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14238 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14240 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14241 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14242 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14244 hardcode_libdir_flag_spec_F77='-R$libdir'
14245 hardcode_shlibpath_var_F77=no
14247 solaris2.[0-5] | solaris2.[0-5].*) ;;
14248 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14249 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14251 link_all_deplibs_F77=yes
14255 if test "x$host_vendor" = xsequent; then
14256 # Use $CC to link under sequent, because it throws in some extra .o
14257 # files that make .init and .fini sections work.
14258 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14260 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14262 hardcode_libdir_flag_spec_F77='-L$libdir'
14263 hardcode_direct_F77=yes
14264 hardcode_minus_L_F77=yes
14265 hardcode_shlibpath_var_F77=no
14269 case $host_vendor in
14271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272 hardcode_direct_F77=yes # is this really true???
14275 ## LD is ld it makes a PLAMLIB
14276 ## CC just makes a GrossModule.
14277 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14278 reload_cmds_F77='$CC -r -o $output$reload_objs'
14279 hardcode_direct_F77=no
14282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14286 runpath_var='LD_RUN_PATH'
14287 hardcode_shlibpath_var_F77=no
14291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14292 hardcode_shlibpath_var_F77=no
14293 export_dynamic_flag_spec_F77='-Bexport'
14297 if test -d /usr/nec; then
14298 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14299 hardcode_shlibpath_var_F77=no
14300 runpath_var=LD_RUN_PATH
14301 hardcode_runpath_var=yes
14307 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14308 hardcode_direct_F77=yes
14309 hardcode_minus_L_F77=no
14310 hardcode_shlibpath_var_F77=no
14311 hardcode_runpath_var=yes
14312 runpath_var=LD_RUN_PATH
14315 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14316 no_undefined_flag_F77='${wl}-z ${wl}text'
14317 if test "$GCC" = yes; then
14318 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14320 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14322 runpath_var='LD_RUN_PATH'
14323 hardcode_shlibpath_var_F77=no
14327 no_undefined_flag_F77=' -z text'
14328 # $CC -shared without GNU ld will not create a library from C++
14329 # object files and a static libstdc++, better avoid it by now
14330 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14331 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14332 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14333 hardcode_libdir_flag_spec_F77=
14334 hardcode_shlibpath_var_F77=no
14335 runpath_var='LD_RUN_PATH'
14339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340 hardcode_libdir_flag_spec_F77='-L$libdir'
14341 hardcode_shlibpath_var_F77=no
14350 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14351 echo "${ECHO_T}$ld_shlibs_F77" >&6
14352 test "$ld_shlibs_F77" = no && can_build_shared=no
14354 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14355 if test "$GCC" = yes; then
14356 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14360 # Do we need to explicitly link libc?
14362 case "x$archive_cmds_need_lc_F77" in
14364 # Assume -lc should be added
14365 archive_cmds_need_lc_F77=yes
14367 if test "$enable_shared" = yes && test "$GCC" = yes; then
14368 case $archive_cmds_F77 in
14370 # FIXME: we may have to deal with multi-command sequences.
14373 # Test whether the compiler implicitly links with -lc since on some
14374 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14375 # to ld, don't add -lc before -lgcc.
14376 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14377 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14379 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382 (eval $ac_compile) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } 2>conftest.err; then
14388 libobjs=conftest.$ac_objext
14390 wl=$lt_prog_compiler_wl_F77
14396 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14397 allow_undefined_flag_F77=
14398 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14399 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }
14404 archive_cmds_need_lc_F77=no
14406 archive_cmds_need_lc_F77=yes
14408 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14410 cat conftest.err 1>&5
14413 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14414 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14421 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14422 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14423 library_names_spec=
14424 libname_spec='lib$name'
14428 postuninstall_cmds=
14432 shlibpath_overrides_runpath=unknown
14434 dynamic_linker="$host_os ld.so"
14435 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14436 if test "$GCC" = yes; then
14437 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14438 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14439 # if the path contains ";" then we assume it to be the separator
14440 # otherwise default to the standard path separator (i.e. ":") - it is
14441 # assumed that no part of a normal pathname contains ";" but that should
14442 # okay in the real world where ";" in dirpaths is itself problematic.
14443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14445 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14448 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14450 need_lib_prefix=unknown
14451 hardcode_into_libs=no
14453 # when you set need_version to no, make sure it does not cause -set_version
14454 # flags to be left without arguments
14455 need_version=unknown
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14461 shlibpath_var=LIBPATH
14463 # AIX 3 has no versioning support, so we append a major version to the name.
14464 soname_spec='${libname}${release}${shared_ext}$major'
14471 hardcode_into_libs=yes
14472 if test "$host_cpu" = ia64; then
14473 # AIX 5 supports IA64
14474 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14475 shlibpath_var=LD_LIBRARY_PATH
14477 # With GCC up to 2.95.x, collect2 would create an import file
14478 # for dependence libraries. The import file would start with
14479 # the line `#! .'. This would cause the generated library to
14480 # depend on `.', always an invalid library. This was fixed in
14481 # development snapshots of GCC prior to 3.0.
14483 aix4 | aix4.[01] | aix4.[01].*)
14484 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14486 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14489 can_build_shared=no
14493 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14494 # soname into executable. Probably we can add versioning support to
14495 # collect2, so additional links can be useful in future.
14496 if test "$aix_use_runtimelinking" = yes; then
14497 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14498 # instead of lib<name>.a to let people know that these are not
14499 # typical AIX shared libraries.
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502 # We preserve .a as extension for shared libraries through AIX4.2
14503 # and later when we are not doing run time linking.
14504 library_names_spec='${libname}${release}.a $libname.a'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14507 shlibpath_var=LIBPATH
14512 library_names_spec='$libname.ixlibrary $libname.a'
14513 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14514 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'
14518 library_names_spec='${libname}${shared_ext}'
14519 dynamic_linker="$host_os ld.so"
14520 shlibpath_var=LIBRARY_PATH
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14527 soname_spec='${libname}${release}${shared_ext}$major'
14528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14531 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14532 # the default ld.so.conf also contains /usr/contrib/lib and
14533 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14534 # libtool to hard-code these into programs
14537 cygwin* | mingw* | pw32*)
14538 version_type=windows
14543 case $GCC,$host_os in
14544 yes,cygwin* | yes,mingw* | yes,pw32*)
14545 library_names_spec='$libname.dll.a'
14546 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14547 postinstall_cmds='base_file=`basename \${file}`~
14548 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14549 dldir=$destdir/`dirname \$dlpath`~
14550 test -d \$dldir || mkdir -p \$dldir~
14551 $install_prog $dir/$dlname \$dldir/$dlname'
14552 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14553 dlpath=$dir/\$dldll~
14555 shlibpath_overrides_runpath=yes
14559 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14560 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14561 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14564 # MinGW DLLs use traditional 'lib' prefix
14565 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14567 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14568 # It is most probably a Windows format PATH printed by
14569 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14570 # path with ; separators, and with drive letters. We can handle the
14571 # drive letters (cygwin fileutils understands them), so leave them,
14572 # especially as we might pass files found there to a mingw objdump,
14573 # which wouldn't understand a cygwinified path. Ahh.
14574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14580 # pw32 DLLs use 'pw' prefix rather than 'lib'
14581 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14587 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14590 dynamic_linker='Win32 ld.exe'
14591 # FIXME: first we should search . and the directory the executable is in
14595 darwin* | rhapsody*)
14596 dynamic_linker="$host_os dyld"
14597 version_type=darwin
14600 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14601 soname_spec='${libname}${release}${major}$shared_ext'
14602 shlibpath_overrides_runpath=yes
14603 shlibpath_var=DYLD_LIBRARY_PATH
14604 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14605 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14606 if test "$GCC" = yes; then
14607 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"`
14609 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14611 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14619 soname_spec='${libname}${release}${shared_ext}$major'
14620 shlibpath_var=LD_LIBRARY_PATH
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 shlibpath_var=LD_LIBRARY_PATH
14634 shlibpath_overrides_runpath=no
14635 hardcode_into_libs=yes
14636 dynamic_linker='GNU ld.so'
14640 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14641 version_type=freebsd-$objformat
14642 case $version_type in
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14653 shlibpath_var=LD_LIBRARY_PATH
14656 shlibpath_overrides_runpath=yes
14658 freebsd3.01* | freebsdelf3.01*)
14659 shlibpath_overrides_runpath=yes
14660 hardcode_into_libs=yes
14663 shlibpath_overrides_runpath=no
14664 hardcode_into_libs=yes
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 shlibpath_var=LD_LIBRARY_PATH
14676 hardcode_into_libs=yes
14679 hpux9* | hpux10* | hpux11*)
14680 # Give a soname corresponding to the major version so that dld.sl refuses to
14681 # link against other versions.
14685 case "$host_cpu" in
14688 hardcode_into_libs=yes
14689 dynamic_linker="$host_os dld.so"
14690 shlibpath_var=LD_LIBRARY_PATH
14691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 if test "X$HPUX_IA64_MODE" = X32; then
14695 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14697 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14703 hardcode_into_libs=yes
14704 dynamic_linker="$host_os dld.sl"
14705 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708 soname_spec='${libname}${release}${shared_ext}$major'
14709 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14714 dynamic_linker="$host_os dld.sl"
14715 shlibpath_var=SHLIB_PATH
14716 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718 soname_spec='${libname}${release}${shared_ext}$major'
14721 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14722 postinstall_cmds='chmod 555 $lib'
14725 irix5* | irix6* | nonstopux*)
14727 nonstopux*) version_type=nonstopux ;;
14729 if test "$lt_cv_prog_gnu_ld" = yes; then
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14740 irix5* | nonstopux*)
14741 libsuff= shlibsuff=
14744 case $LD in # libtool.m4 will add one of these switches to LD
14745 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14746 libsuff= shlibsuff= libmagic=32-bit;;
14747 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14748 libsuff=32 shlibsuff=N32 libmagic=N32;;
14749 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14750 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14751 *) libsuff= shlibsuff= libmagic=never-match;;
14755 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14756 shlibpath_overrides_runpath=no
14757 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14758 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14759 hardcode_into_libs=yes
14762 # No shared lib support for Linux oldld, aout, or coff.
14763 linux*oldld* | linux*aout* | linux*coff*)
14767 # This must be Linux ELF.
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773 soname_spec='${libname}${release}${shared_ext}$major'
14774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=no
14777 # This implies no fast_install, which is unacceptable.
14778 # Some rework will be needed to allow for fast_install
14779 # before this can be enabled.
14780 hardcode_into_libs=yes
14782 # find out which ABI we are using
14784 case "$host_cpu" in
14785 x86_64*|s390x*|powerpc64*)
14786 echo '#line __oline__ "configure"' > conftest.$ac_ext
14787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14788 (eval $ac_compile) 2>&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; then
14792 case `/usr/bin/file conftest.$ac_objext` in
14795 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14803 # Append ld.so.conf contents to the search path
14804 if test -f /etc/ld.so.conf; then
14805 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14806 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14809 # We used to test for /lib/ld.so.1 and disable shared libraries on
14810 # powerpc, because MkLinux only supported shared libraries with the
14811 # GNU dynamic linker. Since this was broken with cross compilers,
14812 # most powerpc-linux boxes support dynamic linking these days and
14813 # people can always --disable-shared, the test was removed, and we
14814 # assume the GNU/Linux dynamic linker is in use.
14815 dynamic_linker='GNU/Linux ld.so'
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14823 soname_spec='${libname}${release}${shared_ext}$major'
14824 shlibpath_var=LD_LIBRARY_PATH
14825 shlibpath_overrides_runpath=no
14826 hardcode_into_libs=yes
14827 dynamic_linker='GNU ld.so'
14834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14837 dynamic_linker='NetBSD (a.out) ld.so'
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 dynamic_linker='NetBSD ld.elf_so'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 shlibpath_overrides_runpath=yes
14845 hardcode_into_libs=yes
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851 shlibpath_var=LD_LIBRARY_PATH
14852 shlibpath_overrides_runpath=yes
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860 soname_spec='${libname}${release}${shared_ext}$major'
14861 shlibpath_var=LD_LIBRARY_PATH
14862 shlibpath_overrides_runpath=yes
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14871 shlibpath_var=LD_LIBRARY_PATH
14872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14874 openbsd2.[89] | openbsd2.[89].*)
14875 shlibpath_overrides_runpath=no
14878 shlibpath_overrides_runpath=yes
14882 shlibpath_overrides_runpath=yes
14887 libname_spec='$name'
14890 library_names_spec='$libname${shared_ext} $libname.a'
14891 dynamic_linker='OS/2 ld.exe'
14892 shlibpath_var=LIBPATH
14895 osf3* | osf4* | osf5*)
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901 shlibpath_var=LD_LIBRARY_PATH
14902 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14903 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14908 soname_spec='${libname}${release}${shared_ext}$major'
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 shlibpath_var=LD_LIBRARY_PATH
14917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918 soname_spec='${libname}${release}${shared_ext}$major'
14919 shlibpath_var=LD_LIBRARY_PATH
14920 shlibpath_overrides_runpath=yes
14921 hardcode_into_libs=yes
14922 # ldd complains unless libraries are executable
14923 postinstall_cmds='chmod +x $lib'
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14929 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14930 shlibpath_var=LD_LIBRARY_PATH
14931 shlibpath_overrides_runpath=yes
14932 if test "$with_gnu_ld" = yes; then
14938 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 shlibpath_var=LD_LIBRARY_PATH
14943 case $host_vendor in
14945 shlibpath_overrides_runpath=no
14947 export_dynamic_flag_spec='${wl}-Blargedynsym'
14948 runpath_var=LD_RUN_PATH
14956 shlibpath_overrides_runpath=no
14957 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14963 if test -d /usr/nec ;then
14965 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14966 soname_spec='$libname${shared_ext}.$major'
14967 shlibpath_var=LD_LIBRARY_PATH
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 shlibpath_var=LD_LIBRARY_PATH
14982 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14983 echo "${ECHO_T}$dynamic_linker" >&6
14984 test "$dynamic_linker" = no && can_build_shared=no
14986 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14987 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14988 hardcode_action_F77=
14989 if test -n "$hardcode_libdir_flag_spec_F77" || \
14990 test -n "$runpath_var F77" || \
14991 test "X$hardcode_automatic_F77"="Xyes" ; then
14993 # We can hardcode non-existant directories.
14994 if test "$hardcode_direct_F77" != no &&
14995 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14996 # have to relink, otherwise we might link with an installed library
14997 # when we should be linking with a yet-to-be-installed one
14998 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14999 test "$hardcode_minus_L_F77" != no; then
15000 # Linking always hardcodes the temporary library directory.
15001 hardcode_action_F77=relink
15003 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15004 hardcode_action_F77=immediate
15007 # We cannot hardcode anything, or else we can only hardcode existing
15009 hardcode_action_F77=unsupported
15011 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15012 echo "${ECHO_T}$hardcode_action_F77" >&6
15014 if test "$hardcode_action_F77" = relink; then
15015 # Fast installation is not supported
15016 enable_fast_install=no
15017 elif test "$shlibpath_overrides_runpath" = yes ||
15018 test "$enable_shared" = no; then
15019 # Fast installation is not necessary
15020 enable_fast_install=needless
15025 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15026 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15027 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15028 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15029 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15030 echo "$as_me:$LINENO: result: yes" >&5
15031 echo "${ECHO_T}yes" >&6
15033 # FIXME - insert some real tests, host_os isn't really good enough
15036 if test -n "$STRIP" ; then
15037 striplib="$STRIP -x"
15038 echo "$as_me:$LINENO: result: yes" >&5
15039 echo "${ECHO_T}yes" >&6
15041 echo "$as_me:$LINENO: result: no" >&5
15042 echo "${ECHO_T}no" >&6
15046 echo "$as_me:$LINENO: result: no" >&5
15047 echo "${ECHO_T}no" >&6
15054 # The else clause should only fire when bootstrapping the
15055 # libtool distribution, otherwise you forgot to ship ltmain.sh
15056 # with your package, and you will get complaints that there are
15057 # no rules to generate ltmain.sh.
15058 if test -f "$ltmain"; then
15059 # See if we are running on zsh, and set the options which allow our commands through
15060 # without removal of \ escapes.
15061 if test -n "${ZSH_VERSION+set}" ; then
15062 setopt NO_GLOB_SUBST
15064 # Now quote all the things that may contain metacharacters while being
15065 # careful not to overquote the AC_SUBSTed values. We take copies of the
15066 # variables and quote the copies for generation of the libtool script.
15067 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15069 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15070 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15071 deplibs_check_method reload_flag reload_cmds need_locks \
15072 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15073 lt_cv_sys_global_symbol_to_c_name_address \
15074 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15075 old_postinstall_cmds old_postuninstall_cmds \
15079 lt_prog_compiler_wl_F77 \
15080 lt_prog_compiler_pic_F77 \
15081 lt_prog_compiler_static_F77 \
15082 lt_prog_compiler_no_builtin_flag_F77 \
15083 export_dynamic_flag_spec_F77 \
15084 thread_safe_flag_spec_F77 \
15085 whole_archive_flag_spec_F77 \
15086 enable_shared_with_static_runtimes_F77 \
15087 old_archive_cmds_F77 \
15088 old_archive_from_new_cmds_F77 \
15089 predep_objects_F77 \
15090 postdep_objects_F77 \
15093 compiler_lib_search_path_F77 \
15095 archive_expsym_cmds_F77 \
15096 postinstall_cmds_F77 \
15097 postuninstall_cmds_F77 \
15098 old_archive_from_expsyms_cmds_F77 \
15099 allow_undefined_flag_F77 \
15100 no_undefined_flag_F77 \
15101 export_symbols_cmds_F77 \
15102 hardcode_libdir_flag_spec_F77 \
15103 hardcode_libdir_flag_spec_ld_F77 \
15104 hardcode_libdir_separator_F77 \
15105 hardcode_automatic_F77 \
15107 module_expsym_cmds_F77 \
15108 lt_cv_prog_compiler_c_o_F77 \
15109 exclude_expsyms_F77 \
15110 include_expsyms_F77; do
15113 old_archive_cmds_F77 | \
15114 old_archive_from_new_cmds_F77 | \
15115 archive_cmds_F77 | \
15116 archive_expsym_cmds_F77 | \
15117 module_cmds_F77 | \
15118 module_expsym_cmds_F77 | \
15119 old_archive_from_expsyms_cmds_F77 | \
15120 export_symbols_cmds_F77 | \
15121 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15122 postinstall_cmds | postuninstall_cmds | \
15123 old_postinstall_cmds | old_postuninstall_cmds | \
15124 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15125 # Double-quote double-evaled strings.
15126 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15129 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15135 *'\$0 --fallback-echo"')
15136 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15142 cat <<__EOF__ >> "$cfgfile"
15143 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15147 # Shell to use when invoking shell scripts.
15150 # Whether or not to build shared libraries.
15151 build_libtool_libs=$enable_shared
15153 # Whether or not to build static libraries.
15154 build_old_libs=$enable_static
15156 # Whether or not to add -lc for building shared libraries.
15157 build_libtool_need_lc=$archive_cmds_need_lc_F77
15159 # Whether or not to disallow shared libs when runtime libs are static
15160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15162 # Whether or not to optimize for fast installation.
15163 fast_install=$enable_fast_install
15166 host_alias=$host_alias
15169 # An echo program that does not interpret backslashes.
15174 AR_FLAGS=$lt_AR_FLAGS
15179 # A language-specific compiler.
15180 CC=$lt_compiler_F77
15182 # Is the compiler the GNU C compiler?
15188 # The linker used to build libraries.
15191 # Whether we need hard or soft links.
15194 # A BSD-compatible nm program.
15197 # A symbol stripping program
15200 # Used to examine libraries when file_magic_cmd begins "file"
15201 MAGIC_CMD=$MAGIC_CMD
15203 # Used on cygwin: DLL creation program.
15206 # Used on cygwin: object dumper.
15209 # Used on cygwin: assembler.
15212 # The name of the directory that contains temporary libtool files.
15215 # How to create reloadable object files.
15216 reload_flag=$lt_reload_flag
15217 reload_cmds=$lt_reload_cmds
15219 # How to pass a linker flag through the compiler.
15220 wl=$lt_lt_prog_compiler_wl_F77
15222 # Object file suffix (normally "o").
15223 objext="$ac_objext"
15225 # Old archive suffix (normally "a").
15228 # Shared library suffix (normally ".so").
15229 shrext_cmds='$shrext_cmds'
15231 # Executable file suffix (normally "").
15234 # Additional compiler flags for building library objects.
15235 pic_flag=$lt_lt_prog_compiler_pic_F77
15238 # What is the maximum length of a command?
15239 max_cmd_len=$lt_cv_sys_max_cmd_len
15241 # Does compiler simultaneously support -c and -o options?
15242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15244 # Must we lock files when doing compilation ?
15245 need_locks=$lt_need_locks
15247 # Do we need the lib prefix for modules?
15248 need_lib_prefix=$need_lib_prefix
15250 # Do we need a version for libraries?
15251 need_version=$need_version
15253 # Whether dlopen is supported.
15254 dlopen_support=$enable_dlopen
15256 # Whether dlopen of programs is supported.
15257 dlopen_self=$enable_dlopen_self
15259 # Whether dlopen of statically linked programs is supported.
15260 dlopen_self_static=$enable_dlopen_self_static
15262 # Compiler flag to prevent dynamic linking.
15263 link_static_flag=$lt_lt_prog_compiler_static_F77
15265 # Compiler flag to turn off builtin functions.
15266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15268 # Compiler flag to allow reflexive dlopens.
15269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15271 # Compiler flag to generate shared objects directly from archives.
15272 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15274 # Compiler flag to generate thread-safe objects.
15275 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15277 # Library versioning type.
15278 version_type=$version_type
15280 # Format of library name prefix.
15281 libname_spec=$lt_libname_spec
15283 # List of archive names. First name is the real one, the rest are links.
15284 # The last name is the one that the linker finds with -lNAME.
15285 library_names_spec=$lt_library_names_spec
15287 # The coded name of the library, if different from the real name.
15288 soname_spec=$lt_soname_spec
15290 # Commands used to build and install an old-style archive.
15292 old_archive_cmds=$lt_old_archive_cmds_F77
15293 old_postinstall_cmds=$lt_old_postinstall_cmds
15294 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15296 # Create an old-style archive from a shared archive.
15297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15299 # Create a temporary old-style archive to link instead of a shared archive.
15300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15302 # Commands used to build and install a shared archive.
15303 archive_cmds=$lt_archive_cmds_F77
15304 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15305 postinstall_cmds=$lt_postinstall_cmds
15306 postuninstall_cmds=$lt_postuninstall_cmds
15308 # Commands used to build a loadable module (assumed same as above if empty)
15309 module_cmds=$lt_module_cmds_F77
15310 module_expsym_cmds=$lt_module_expsym_cmds_F77
15312 # Commands to strip libraries.
15313 old_striplib=$lt_old_striplib
15314 striplib=$lt_striplib
15316 # Dependencies to place before the objects being linked to create a
15318 predep_objects=$lt_predep_objects_F77
15320 # Dependencies to place after the objects being linked to create a
15322 postdep_objects=$lt_postdep_objects_F77
15324 # Dependencies to place before the objects being linked to create a
15326 predeps=$lt_predeps_F77
15328 # Dependencies to place after the objects being linked to create a
15330 postdeps=$lt_postdeps_F77
15332 # The library search path used internally by the compiler when linking
15333 # a shared library.
15334 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15336 # Method to check whether dependent libraries are shared objects.
15337 deplibs_check_method=$lt_deplibs_check_method
15339 # Command to use when deplibs_check_method == file_magic.
15340 file_magic_cmd=$lt_file_magic_cmd
15342 # Flag that allows shared libraries with undefined symbols to be built.
15343 allow_undefined_flag=$lt_allow_undefined_flag_F77
15345 # Flag that forces no undefined symbols.
15346 no_undefined_flag=$lt_no_undefined_flag_F77
15348 # Commands used to finish a libtool library installation in a directory.
15349 finish_cmds=$lt_finish_cmds
15351 # Same as above, but a single script fragment to be evaled but not shown.
15352 finish_eval=$lt_finish_eval
15354 # Take the output of nm and produce a listing of raw symbols and C names.
15355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15357 # Transform the output of nm in a proper C declaration
15358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15360 # Transform the output of nm in a C name address pair
15361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15363 # This is the shared library runtime path variable.
15364 runpath_var=$runpath_var
15366 # This is the shared library path variable.
15367 shlibpath_var=$shlibpath_var
15369 # Is shlibpath searched before the hard-coded library search path?
15370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15372 # How to hardcode a shared library path into an executable.
15373 hardcode_action=$hardcode_action_F77
15375 # Whether we should hardcode library paths into libraries.
15376 hardcode_into_libs=$hardcode_into_libs
15378 # Flag to hardcode \$libdir into a binary during linking.
15379 # This must work even if \$libdir does not exist.
15380 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15382 # If ld is used when linking, flag to hardcode \$libdir into
15383 # a binary during linking. This must work even if \$libdir does
15385 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15387 # Whether we need a single -rpath flag with a separated argument.
15388 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15390 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15391 # resulting binary.
15392 hardcode_direct=$hardcode_direct_F77
15394 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15395 # resulting binary.
15396 hardcode_minus_L=$hardcode_minus_L_F77
15398 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15399 # the resulting binary.
15400 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15402 # Set to yes if building a shared library automatically hardcodes DIR into the library
15403 # and all subsequent libraries and executables linked against it.
15404 hardcode_automatic=$hardcode_automatic_F77
15406 # Variables whose values should be saved in libtool wrapper scripts and
15407 # restored at relink time.
15408 variables_saved_for_relink="$variables_saved_for_relink"
15410 # Whether libtool must link a program against all its dependency libraries.
15411 link_all_deplibs=$link_all_deplibs_F77
15413 # Compile-time system search path for libraries
15414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15416 # Run-time system search path for libraries
15417 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15419 # Fix the shell variable \$srcfile for the compiler.
15420 fix_srcfile_path="$fix_srcfile_path_F77"
15422 # Set to yes if exported symbols are required.
15423 always_export_symbols=$always_export_symbols_F77
15425 # The commands to list exported symbols.
15426 export_symbols_cmds=$lt_export_symbols_cmds_F77
15428 # The commands to extract the exported symbol list from a shared archive.
15429 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15431 # Symbols that should not be listed in the preloaded symbols.
15432 exclude_expsyms=$lt_exclude_expsyms_F77
15434 # Symbols that must always be exported.
15435 include_expsyms=$lt_include_expsyms_F77
15437 # ### END LIBTOOL TAG CONFIG: $tagname
15443 # If there is no Makefile yet, we rely on a make rule to execute
15444 # `config.status --recheck' to rerun these tests and create the
15445 # libtool script then.
15446 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15447 if test -f "$ltmain_in"; then
15448 test -f Makefile && make "$ltmain"
15454 ac_cpp='$CPP $CPPFLAGS'
15455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15467 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15471 # Source file extension for Java test sources.
15474 # Object file extension for compiled Java test sources.
15478 # Code to be used in simple compile tests
15479 lt_simple_compile_test_code="class foo {}\n"
15481 # Code to be used in simple link tests
15482 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15484 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15486 # If no C compiler was specified, use CC.
15489 # Allow CC to be a program name with arguments.
15493 # Allow CC to be a program name with arguments.
15499 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15500 archive_cmds_need_lc_GCJ=no
15503 ## There is no encapsulation within the following macros, do not change
15504 ## the running order or otherwise move them around unless you know exactly
15505 ## what you are doing...
15507 lt_prog_compiler_no_builtin_flag_GCJ=
15509 if test "$GCC" = yes; then
15510 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15513 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15514 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15515 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 lt_cv_prog_compiler_rtti_exceptions=no
15519 ac_outfile=conftest.$ac_objext
15520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15521 lt_compiler_flag="-fno-rtti -fno-exceptions"
15522 # Insert the option either (1) after the last *FLAGS variable, or
15523 # (2) before a word containing "conftest.", or (3) at the end.
15524 # Note that $ac_compile itself does not contain backslashes and begins
15525 # with a dollar sign (not a hyphen), so the echo should work correctly.
15526 # The option is referenced via a variable to avoid confusing sed.
15527 lt_compile=`echo "$ac_compile" | $SED \
15528 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15530 -e 's:$: $lt_compiler_flag:'`
15531 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15532 (eval "$lt_compile" 2>conftest.err)
15534 cat conftest.err >&5
15535 echo "$as_me:__oline__: \$? = $ac_status" >&5
15536 if (exit $ac_status) && test -s "$ac_outfile"; then
15537 # The compiler can only warn and ignore the option if not recognized
15538 # So say no if there are warnings
15539 if test ! -s conftest.err; then
15540 lt_cv_prog_compiler_rtti_exceptions=yes
15546 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15547 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15549 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15550 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15557 lt_prog_compiler_wl_GCJ=
15558 lt_prog_compiler_pic_GCJ=
15559 lt_prog_compiler_static_GCJ=
15561 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15562 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15564 if test "$GCC" = yes; then
15565 lt_prog_compiler_wl_GCJ='-Wl,'
15566 lt_prog_compiler_static_GCJ='-static'
15570 # All AIX code is PIC.
15571 if test "$host_cpu" = ia64; then
15572 # AIX 5 now supports IA64 processor
15573 lt_prog_compiler_static_GCJ='-Bstatic'
15578 # FIXME: we need at least 68020 code to build shared libraries, but
15579 # adding the `-m68020' flag to GCC prevents building anything better,
15581 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15584 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15585 # PIC is the default for these OSes.
15588 mingw* | pw32* | os2*)
15589 # This hack is so that the source file can tell whether it is being
15590 # built for inclusion in a dll (and should export symbols for example).
15591 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15594 darwin* | rhapsody*)
15595 # PIC is the default on this platform
15596 # Common symbols not allowed in MH_DYLIB files
15597 lt_prog_compiler_pic_GCJ='-fno-common'
15601 # Just because we use GCC doesn't mean we suddenly get shared libraries
15602 # on systems that don't support them.
15603 lt_prog_compiler_can_build_shared_GCJ=no
15608 if test -d /usr/nec; then
15609 lt_prog_compiler_pic_GCJ=-Kconform_pic
15614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15615 # not for PA HP-UX.
15616 case "$host_cpu" in
15621 lt_prog_compiler_pic_GCJ='-fPIC'
15627 lt_prog_compiler_pic_GCJ='-fPIC'
15631 # PORTME Check for flag to pass linker flags through the system compiler.
15634 lt_prog_compiler_wl_GCJ='-Wl,'
15635 if test "$host_cpu" = ia64; then
15636 # AIX 5 now supports IA64 processor
15637 lt_prog_compiler_static_GCJ='-Bstatic'
15639 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15643 mingw* | pw32* | os2*)
15644 # This hack is so that the source file can tell whether it is being
15645 # built for inclusion in a dll (and should export symbols for example).
15646 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15649 hpux9* | hpux10* | hpux11*)
15650 lt_prog_compiler_wl_GCJ='-Wl,'
15651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15652 # not for PA HP-UX.
15653 case "$host_cpu" in
15658 lt_prog_compiler_pic_GCJ='+Z'
15661 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15662 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15665 irix5* | irix6* | nonstopux*)
15666 lt_prog_compiler_wl_GCJ='-Wl,'
15667 # PIC (with -KPIC) is the default.
15668 lt_prog_compiler_static_GCJ='-non_shared'
15672 lt_prog_compiler_pic_GCJ='-KPIC'
15673 lt_prog_compiler_static_GCJ='-Bstatic'
15679 lt_prog_compiler_wl_GCJ='-Wl,'
15680 lt_prog_compiler_pic_GCJ='-KPIC'
15681 lt_prog_compiler_static_GCJ='-static'
15684 lt_prog_compiler_wl_GCJ='-Wl,'
15685 # All Alpha code is PIC.
15686 lt_prog_compiler_static_GCJ='-non_shared'
15691 osf3* | osf4* | osf5*)
15692 lt_prog_compiler_wl_GCJ='-Wl,'
15693 # All OSF/1 code is PIC.
15694 lt_prog_compiler_static_GCJ='-non_shared'
15698 lt_prog_compiler_pic_GCJ='-Kpic'
15699 lt_prog_compiler_static_GCJ='-dn'
15703 lt_prog_compiler_wl_GCJ='-Wl,'
15704 lt_prog_compiler_pic_GCJ='-KPIC'
15705 lt_prog_compiler_static_GCJ='-Bstatic'
15709 lt_prog_compiler_wl_GCJ='-Qoption ld '
15710 lt_prog_compiler_pic_GCJ='-PIC'
15711 lt_prog_compiler_static_GCJ='-Bstatic'
15714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15715 lt_prog_compiler_wl_GCJ='-Wl,'
15716 lt_prog_compiler_pic_GCJ='-KPIC'
15717 lt_prog_compiler_static_GCJ='-Bstatic'
15721 if test -d /usr/nec ;then
15722 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15723 lt_prog_compiler_static_GCJ='-Bstatic'
15728 lt_prog_compiler_pic_GCJ='-pic'
15729 lt_prog_compiler_static_GCJ='-Bstatic'
15733 lt_prog_compiler_can_build_shared_GCJ=no
15738 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15739 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15742 # Check to make sure the PIC flag actually works.
15744 if test -n "$lt_prog_compiler_pic_GCJ"; then
15746 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15748 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 lt_prog_compiler_pic_works_GCJ=no
15752 ac_outfile=conftest.$ac_objext
15753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15754 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15755 # Insert the option either (1) after the last *FLAGS variable, or
15756 # (2) before a word containing "conftest.", or (3) at the end.
15757 # Note that $ac_compile itself does not contain backslashes and begins
15758 # with a dollar sign (not a hyphen), so the echo should work correctly.
15759 # The option is referenced via a variable to avoid confusing sed.
15760 lt_compile=`echo "$ac_compile" | $SED \
15761 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15763 -e 's:$: $lt_compiler_flag:'`
15764 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15765 (eval "$lt_compile" 2>conftest.err)
15767 cat conftest.err >&5
15768 echo "$as_me:__oline__: \$? = $ac_status" >&5
15769 if (exit $ac_status) && test -s "$ac_outfile"; then
15770 # The compiler can only warn and ignore the option if not recognized
15771 # So say no if there are warnings
15772 if test ! -s conftest.err; then
15773 lt_prog_compiler_pic_works_GCJ=yes
15779 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15780 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15782 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15783 case $lt_prog_compiler_pic_GCJ in
15785 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15788 lt_prog_compiler_pic_GCJ=
15789 lt_prog_compiler_can_build_shared_GCJ=no
15794 # For platforms which do not support PIC, -DPIC is meaningless:
15796 lt_prog_compiler_pic_GCJ=
15799 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15803 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15805 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15808 lt_cv_prog_compiler_c_o_GCJ=no
15809 $rm -r conftest 2>/dev/null
15813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15815 lt_compiler_flag="-o out/conftest2.$ac_objext"
15816 # Insert the option either (1) after the last *FLAGS variable, or
15817 # (2) before a word containing "conftest.", or (3) at the end.
15818 # Note that $ac_compile itself does not contain backslashes and begins
15819 # with a dollar sign (not a hyphen), so the echo should work correctly.
15820 lt_compile=`echo "$ac_compile" | $SED \
15821 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15823 -e 's:$: $lt_compiler_flag:'`
15824 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15825 (eval "$lt_compile" 2>out/conftest.err)
15827 cat out/conftest.err >&5
15828 echo "$as_me:__oline__: \$? = $ac_status" >&5
15829 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15831 # The compiler can only warn and ignore the option if not recognized
15832 # So say no if there are warnings
15833 if test ! -s out/conftest.err; then
15834 lt_cv_prog_compiler_c_o_GCJ=yes
15839 # SGI C++ compiler will create directory out/ii_files/ for
15840 # template instantiation
15841 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15842 $rm out/* && rmdir out
15848 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15849 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15852 hard_links="nottested"
15853 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15854 # do not overwrite the value of need_locks provided by the user
15855 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15856 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15861 ln conftest.a conftest.b 2>&5 || hard_links=no
15862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15863 echo "$as_me:$LINENO: result: $hard_links" >&5
15864 echo "${ECHO_T}$hard_links" >&6
15865 if test "$hard_links" = no; then
15866 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15867 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15874 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15875 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15878 allow_undefined_flag_GCJ=
15879 enable_shared_with_static_runtimes_GCJ=no
15881 archive_expsym_cmds_GCJ=
15882 old_archive_From_new_cmds_GCJ=
15883 old_archive_from_expsyms_cmds_GCJ=
15884 export_dynamic_flag_spec_GCJ=
15885 whole_archive_flag_spec_GCJ=
15886 thread_safe_flag_spec_GCJ=
15887 hardcode_libdir_flag_spec_GCJ=
15888 hardcode_libdir_flag_spec_ld_GCJ=
15889 hardcode_libdir_separator_GCJ=
15890 hardcode_direct_GCJ=no
15891 hardcode_minus_L_GCJ=no
15892 hardcode_shlibpath_var_GCJ=unsupported
15893 link_all_deplibs_GCJ=unknown
15894 hardcode_automatic_GCJ=no
15896 module_expsym_cmds_GCJ=
15897 always_export_symbols_GCJ=no
15898 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15899 # include_expsyms should be a list of space-separated symbols to be *always*
15900 # included in the symbol list
15901 include_expsyms_GCJ=
15902 # exclude_expsyms can be an extended regexp of symbols to exclude
15903 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15904 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15905 # as well as any symbol that contains `d'.
15906 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15907 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15908 # platforms (ab)use it in PIC code, but their linkers get confused if
15909 # the symbol is explicitly referenced. Since portable code cannot
15910 # rely on this symbol name, it's probably fine to never include it in
15911 # preloaded symbol tables.
15912 extract_expsyms_cmds=
15915 cygwin* | mingw* | pw32*)
15916 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15917 # When not using gcc, we currently assume that we are using
15918 # Microsoft Visual C++.
15919 if test "$GCC" != yes; then
15929 if test "$with_gnu_ld" = yes; then
15930 # If archive_cmds runs LD, not CC, wlarc should be empty
15933 # See if GNU ld supports shared libraries.
15935 aix3* | aix4* | aix5*)
15936 # On AIX/PPC, the GNU linker is very broken
15937 if test "$host_cpu" != ia64; then
15941 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15942 *** to be unable to reliably create shared libraries on AIX.
15943 *** Therefore, libtool is disabling shared libraries support. If you
15944 *** really care for shared libraries, you may want to modify your PATH
15945 *** so that a non-GNU linker is found, and then restart.
15952 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)'
15953 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15954 hardcode_minus_L_GCJ=yes
15956 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15957 # that the semantics of dynamic libraries on AmigaOS, at least up
15958 # to version 4, is to share data among multiple programs linked
15959 # with the same dynamic library. Since this doesn't match the
15960 # behavior of shared libraries on other platforms, we can't use
15966 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15967 allow_undefined_flag_GCJ=unsupported
15968 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15969 # support --undefined. This deserves some investigation. FIXME
15970 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15976 cygwin* | mingw* | pw32*)
15977 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15978 # as there is no search path for DLLs.
15979 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15980 allow_undefined_flag_GCJ=unsupported
15981 always_export_symbols_GCJ=no
15982 enable_shared_with_static_runtimes_GCJ=yes
15983 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15985 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15986 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15987 # If the export-symbols file already is a .def file (1st line
15988 # is EXPORTS), use it as is; otherwise, prepend...
15989 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15990 cp $export_symbols $output_objdir/$soname.def;
15992 echo EXPORTS > $output_objdir/$soname.def;
15993 cat $export_symbols >> $output_objdir/$soname.def;
15995 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16003 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16006 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16007 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16012 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16017 *** create shared libraries on Solaris systems. Therefore, libtool
16018 *** is disabling shared libraries support. We urge you to upgrade GNU
16019 *** binutils to release 2.9.1 or newer. Another option is to modify
16020 *** your PATH or compiler configuration so that the native linker is
16021 *** used, and then restart.
16024 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16025 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16026 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16033 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16035 hardcode_direct_GCJ=yes
16036 hardcode_shlibpath_var_GCJ=no
16040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16041 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042 archive_cmds_GCJ="$tmp_archive_cmds"
16043 supports_anon_versioning=no
16044 case `$LD -v 2>/dev/null` in
16045 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16046 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16047 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16048 *\ 2.11.*) ;; # other 2.11 versions
16049 *) supports_anon_versioning=yes ;;
16051 if test $supports_anon_versioning = yes; then
16052 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16053 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16054 $echo "local: *; };" >> $output_objdir/$libname.ver~
16055 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16057 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16074 if test "$ld_shlibs_GCJ" = yes; then
16075 runpath_var=LD_RUN_PATH
16076 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16077 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16078 # ancient GNU ld didn't support --whole-archive et. al.
16079 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16080 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16082 whole_archive_flag_spec_GCJ=
16086 # PORTME fill in a description of your system's linker (not GNU ld)
16089 allow_undefined_flag_GCJ=unsupported
16090 always_export_symbols_GCJ=yes
16091 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'
16092 # Note: this linker hardcodes the directories in LIBPATH if there
16093 # are no directories specified by -L.
16094 hardcode_minus_L_GCJ=yes
16095 if test "$GCC" = yes && test -z "$link_static_flag"; then
16096 # Neither direct hardcoding nor static linking is supported with a
16098 hardcode_direct_GCJ=unsupported
16103 if test "$host_cpu" = ia64; then
16104 # On IA64, the linker does run time linking by default, so we don't
16105 # have to do anything special.
16106 aix_use_runtimelinking=no
16107 exp_sym_flag='-Bexport'
16110 # If we're using GNU nm, then we don't want the "-C" option.
16111 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16112 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16113 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'
16115 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'
16117 aix_use_runtimelinking=no
16119 # Test if we are trying to use run time linking or normal
16120 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16121 # need to do runtime linking.
16122 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16123 for ld_flag in $LDFLAGS; do
16124 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16125 aix_use_runtimelinking=yes
16131 exp_sym_flag='-bexport'
16132 no_entry_flag='-bnoentry'
16135 # When large executables or shared objects are built, AIX ld can
16136 # have problems creating the table of contents. If linking a library
16137 # or program results in "error TOC overflow" add -mminimal-toc to
16138 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16139 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16141 archive_cmds_GCJ=''
16142 hardcode_direct_GCJ=yes
16143 hardcode_libdir_separator_GCJ=':'
16144 link_all_deplibs_GCJ=yes
16146 if test "$GCC" = yes; then
16147 case $host_os in aix4.012|aix4.012.*)
16148 # We only want to do this on AIX 4.2 and lower, the check
16149 # below for broken collect2 doesn't work under 4.3+
16150 collect2name=`${CC} -print-prog-name=collect2`
16151 if test -f "$collect2name" && \
16152 strings "$collect2name" | grep resolve_lib_name >/dev/null
16154 # We have reworked collect2
16155 hardcode_direct_GCJ=yes
16157 # We have old collect2
16158 hardcode_direct_GCJ=unsupported
16159 # It fails to find uninstalled libraries when the uninstalled
16160 # path is not listed in the libpath. Setting hardcode_minus_L
16161 # to unsupported forces relinking
16162 hardcode_minus_L_GCJ=yes
16163 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16164 hardcode_libdir_separator_GCJ=
16167 shared_flag='-shared'
16170 if test "$host_cpu" = ia64; then
16171 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16172 # chokes on -Wl,-G. The following line is correct:
16175 if test "$aix_use_runtimelinking" = yes; then
16176 shared_flag='${wl}-G'
16178 shared_flag='${wl}-bM:SRE'
16183 # It seems that -bexpall does not export symbols beginning with
16184 # underscore (_), so it is better to generate a list of symbols to export.
16185 always_export_symbols_GCJ=yes
16186 if test "$aix_use_runtimelinking" = yes; then
16187 # Warning - without using the other runtime loading flags (-brtl),
16188 # -berok will link without error, but may produce a broken library.
16189 allow_undefined_flag_GCJ='-berok'
16190 # Determine the default libpath from the value encoded in an empty executable.
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16206 rm -f conftest.$ac_objext conftest$ac_exeext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16208 (eval $ac_link) 2>conftest.er1
16210 grep -v '^ *+' conftest.er1 >conftest.err
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
16215 { ac_try='test -z "$ac_c_werror_flag"
16216 || test ! -s conftest.err'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest$ac_exeext'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16231 # Check for a 64-bit object if we didn't find anything.
16232 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; }
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16239 rm -f conftest.err conftest.$ac_objext \
16240 conftest$ac_exeext conftest.$ac_ext
16241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16243 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16244 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"
16246 if test "$host_cpu" = ia64; then
16247 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16248 allow_undefined_flag_GCJ="-z nodefs"
16249 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"
16251 # Determine the default libpath from the value encoded in an empty executable.
16252 cat >conftest.$ac_ext <<_ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16267 rm -f conftest.$ac_objext conftest$ac_exeext
16268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16269 (eval $ac_link) 2>conftest.er1
16271 grep -v '^ *+' conftest.er1 >conftest.err
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } &&
16276 { ac_try='test -z "$ac_c_werror_flag"
16277 || test ! -s conftest.err'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; } &&
16283 { ac_try='test -s conftest$ac_exeext'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16292 # Check for a 64-bit object if we didn't find anything.
16293 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; }
16296 echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16300 rm -f conftest.err conftest.$ac_objext \
16301 conftest$ac_exeext conftest.$ac_ext
16302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16304 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16305 # Warning - without using the other run time loading flags,
16306 # -berok will link without error, but may produce a broken library.
16307 no_undefined_flag_GCJ=' ${wl}-bernotok'
16308 allow_undefined_flag_GCJ=' ${wl}-berok'
16309 # -bexpall does not export symbols beginning with underscore (_)
16310 always_export_symbols_GCJ=yes
16311 # Exported symbols can be pulled into shared objects from archives
16312 whole_archive_flag_spec_GCJ=' '
16313 archive_cmds_need_lc_GCJ=yes
16314 # This is similar to how AIX traditionally builds it's shared libraries.
16315 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'
16321 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)'
16322 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323 hardcode_minus_L_GCJ=yes
16324 # see comment about different semantics on the GNU ld section
16329 export_dynamic_flag_spec_GCJ=-rdynamic
16332 cygwin* | mingw* | pw32*)
16333 # When not using gcc, we currently assume that we are using
16334 # Microsoft Visual C++.
16335 # hardcode_libdir_flag_spec is actually meaningless, as there is
16336 # no search path for DLLs.
16337 hardcode_libdir_flag_spec_GCJ=' '
16338 allow_undefined_flag_GCJ=unsupported
16339 # Tell ltmain to make .lib files, not .a files.
16341 # Tell ltmain to make .dll files, not .so files.
16343 # FIXME: Setting linknames here is a bad hack.
16344 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16345 # The linker will automatically build a .lib file if we build a DLL.
16346 old_archive_From_new_cmds_GCJ='true'
16347 # FIXME: Should let the user specify the lib program.
16348 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16349 fix_srcfile_path='`cygpath -w "$srcfile"`'
16350 enable_shared_with_static_runtimes_GCJ=yes
16353 darwin* | rhapsody*)
16354 if test "$GXX" = yes ; then
16355 archive_cmds_need_lc_GCJ=no
16357 rhapsody* | darwin1.[012])
16358 allow_undefined_flag_GCJ='-undefined suppress'
16361 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16362 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16364 case ${MACOSX_DEPLOYMENT_TARGET} in
16366 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16369 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16375 lt_int_apple_cc_single_mod=no
16376 output_verbose_link_cmd='echo'
16377 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16378 lt_int_apple_cc_single_mod=yes
16380 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16381 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16383 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'
16385 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16386 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16387 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16388 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}'
16390 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}'
16392 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}'
16393 hardcode_direct_GCJ=no
16394 hardcode_automatic_GCJ=yes
16395 hardcode_shlibpath_var_GCJ=unsupported
16396 whole_archive_flag_spec_GCJ='-all_load $convenience'
16397 link_all_deplibs_GCJ=yes
16404 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16406 hardcode_shlibpath_var_GCJ=no
16413 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16414 # support. Future versions do this automatically, but an explicit c++rt0.o
16415 # does not break anything, and helps significantly (at the cost of a little
16418 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16419 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16420 hardcode_direct_GCJ=yes
16421 hardcode_shlibpath_var_GCJ=no
16424 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16426 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16427 hardcode_direct_GCJ=yes
16428 hardcode_minus_L_GCJ=yes
16429 hardcode_shlibpath_var_GCJ=no
16432 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16433 freebsd* | kfreebsd*-gnu)
16434 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16435 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16436 hardcode_direct_GCJ=yes
16437 hardcode_shlibpath_var_GCJ=no
16441 if test "$GCC" = yes; then
16442 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'
16444 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'
16446 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16447 hardcode_libdir_separator_GCJ=:
16448 hardcode_direct_GCJ=yes
16450 # hardcode_minus_L: Not really in the search PATH,
16451 # but as the default location of the library.
16452 hardcode_minus_L_GCJ=yes
16453 export_dynamic_flag_spec_GCJ='${wl}-E'
16457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16458 case "$host_cpu" in
16460 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16463 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16467 case "$host_cpu" in
16469 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16472 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16476 if test "$with_gnu_ld" = no; then
16477 case "$host_cpu" in
16479 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16480 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16481 hardcode_libdir_separator_GCJ=:
16482 hardcode_direct_GCJ=no
16483 hardcode_shlibpath_var_GCJ=no
16486 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16487 hardcode_direct_GCJ=no
16488 hardcode_shlibpath_var_GCJ=no
16490 # hardcode_minus_L: Not really in the search PATH,
16491 # but as the default location of the library.
16492 hardcode_minus_L_GCJ=yes
16495 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16496 hardcode_libdir_separator_GCJ=:
16497 hardcode_direct_GCJ=yes
16498 export_dynamic_flag_spec_GCJ='${wl}-E'
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
16508 irix5* | irix6* | nonstopux*)
16509 if test "$GCC" = yes; then
16510 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'
16512 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'
16513 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16515 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16516 hardcode_libdir_separator_GCJ=:
16517 link_all_deplibs_GCJ=yes
16521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16522 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16524 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16526 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16527 hardcode_direct_GCJ=yes
16528 hardcode_shlibpath_var_GCJ=no
16532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16533 hardcode_direct_GCJ=yes
16534 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16535 hardcode_libdir_separator_GCJ=:
16536 hardcode_shlibpath_var_GCJ=no
16540 hardcode_direct_GCJ=yes
16541 hardcode_shlibpath_var_GCJ=no
16542 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16543 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16544 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16545 export_dynamic_flag_spec_GCJ='${wl}-E'
16548 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16549 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16550 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16553 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16554 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16562 hardcode_minus_L_GCJ=yes
16563 allow_undefined_flag_GCJ=unsupported
16564 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'
16565 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16569 if test "$GCC" = yes; then
16570 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16571 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'
16573 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16574 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'
16576 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16577 hardcode_libdir_separator_GCJ=:
16580 osf4* | osf5*) # as osf3* with the addition of -msym flag
16581 if test "$GCC" = yes; then
16582 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16583 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'
16584 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16586 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16587 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'
16588 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~
16589 $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'
16591 # Both c and cxx compiler support -rpath directly
16592 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16594 hardcode_libdir_separator_GCJ=:
16598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599 hardcode_shlibpath_var_GCJ=no
16600 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16601 runpath_var=LD_RUN_PATH
16602 hardcode_runpath_var=yes
16606 no_undefined_flag_GCJ=' -z text'
16607 if test "$GCC" = yes; then
16608 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16609 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16610 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16612 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16613 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16614 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16616 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16617 hardcode_shlibpath_var_GCJ=no
16619 solaris2.[0-5] | solaris2.[0-5].*) ;;
16620 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16621 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16623 link_all_deplibs_GCJ=yes
16627 if test "x$host_vendor" = xsequent; then
16628 # Use $CC to link under sequent, because it throws in some extra .o
16629 # files that make .init and .fini sections work.
16630 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16632 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16634 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16635 hardcode_direct_GCJ=yes
16636 hardcode_minus_L_GCJ=yes
16637 hardcode_shlibpath_var_GCJ=no
16641 case $host_vendor in
16643 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16644 hardcode_direct_GCJ=yes # is this really true???
16647 ## LD is ld it makes a PLAMLIB
16648 ## CC just makes a GrossModule.
16649 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16650 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16651 hardcode_direct_GCJ=no
16654 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16655 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16658 runpath_var='LD_RUN_PATH'
16659 hardcode_shlibpath_var_GCJ=no
16663 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 hardcode_shlibpath_var_GCJ=no
16665 export_dynamic_flag_spec_GCJ='-Bexport'
16669 if test -d /usr/nec; then
16670 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671 hardcode_shlibpath_var_GCJ=no
16672 runpath_var=LD_RUN_PATH
16673 hardcode_runpath_var=yes
16679 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16680 hardcode_direct_GCJ=yes
16681 hardcode_minus_L_GCJ=no
16682 hardcode_shlibpath_var_GCJ=no
16683 hardcode_runpath_var=yes
16684 runpath_var=LD_RUN_PATH
16687 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16688 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16689 if test "$GCC" = yes; then
16690 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16694 runpath_var='LD_RUN_PATH'
16695 hardcode_shlibpath_var_GCJ=no
16699 no_undefined_flag_GCJ=' -z text'
16700 # $CC -shared without GNU ld will not create a library from C++
16701 # object files and a static libstdc++, better avoid it by now
16702 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16704 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16705 hardcode_libdir_flag_spec_GCJ=
16706 hardcode_shlibpath_var_GCJ=no
16707 runpath_var='LD_RUN_PATH'
16711 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16712 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16713 hardcode_shlibpath_var_GCJ=no
16722 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16723 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16724 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16726 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16727 if test "$GCC" = yes; then
16728 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16732 # Do we need to explicitly link libc?
16734 case "x$archive_cmds_need_lc_GCJ" in
16736 # Assume -lc should be added
16737 archive_cmds_need_lc_GCJ=yes
16739 if test "$enable_shared" = yes && test "$GCC" = yes; then
16740 case $archive_cmds_GCJ in
16742 # FIXME: we may have to deal with multi-command sequences.
16745 # Test whether the compiler implicitly links with -lc since on some
16746 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16747 # to ld, don't add -lc before -lgcc.
16748 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16749 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16754 (eval $ac_compile) 2>&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } 2>conftest.err; then
16760 libobjs=conftest.$ac_objext
16762 wl=$lt_prog_compiler_wl_GCJ
16768 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16769 allow_undefined_flag_GCJ=
16770 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16771 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }
16776 archive_cmds_need_lc_GCJ=no
16778 archive_cmds_need_lc_GCJ=yes
16780 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16782 cat conftest.err 1>&5
16785 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16786 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16793 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16794 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16795 library_names_spec=
16796 libname_spec='lib$name'
16800 postuninstall_cmds=
16804 shlibpath_overrides_runpath=unknown
16806 dynamic_linker="$host_os ld.so"
16807 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16808 if test "$GCC" = yes; then
16809 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16810 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16811 # if the path contains ";" then we assume it to be the separator
16812 # otherwise default to the standard path separator (i.e. ":") - it is
16813 # assumed that no part of a normal pathname contains ";" but that should
16814 # okay in the real world where ";" in dirpaths is itself problematic.
16815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16820 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16822 need_lib_prefix=unknown
16823 hardcode_into_libs=no
16825 # when you set need_version to no, make sure it does not cause -set_version
16826 # flags to be left without arguments
16827 need_version=unknown
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16833 shlibpath_var=LIBPATH
16835 # AIX 3 has no versioning support, so we append a major version to the name.
16836 soname_spec='${libname}${release}${shared_ext}$major'
16843 hardcode_into_libs=yes
16844 if test "$host_cpu" = ia64; then
16845 # AIX 5 supports IA64
16846 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16847 shlibpath_var=LD_LIBRARY_PATH
16849 # With GCC up to 2.95.x, collect2 would create an import file
16850 # for dependence libraries. The import file would start with
16851 # the line `#! .'. This would cause the generated library to
16852 # depend on `.', always an invalid library. This was fixed in
16853 # development snapshots of GCC prior to 3.0.
16855 aix4 | aix4.[01] | aix4.[01].*)
16856 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16858 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16861 can_build_shared=no
16865 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16866 # soname into executable. Probably we can add versioning support to
16867 # collect2, so additional links can be useful in future.
16868 if test "$aix_use_runtimelinking" = yes; then
16869 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16870 # instead of lib<name>.a to let people know that these are not
16871 # typical AIX shared libraries.
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 # We preserve .a as extension for shared libraries through AIX4.2
16875 # and later when we are not doing run time linking.
16876 library_names_spec='${libname}${release}.a $libname.a'
16877 soname_spec='${libname}${release}${shared_ext}$major'
16879 shlibpath_var=LIBPATH
16884 library_names_spec='$libname.ixlibrary $libname.a'
16885 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16886 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'
16890 library_names_spec='${libname}${shared_ext}'
16891 dynamic_linker="$host_os ld.so"
16892 shlibpath_var=LIBRARY_PATH
16898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16899 soname_spec='${libname}${release}${shared_ext}$major'
16900 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16901 shlibpath_var=LD_LIBRARY_PATH
16902 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16903 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16904 # the default ld.so.conf also contains /usr/contrib/lib and
16905 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16906 # libtool to hard-code these into programs
16909 cygwin* | mingw* | pw32*)
16910 version_type=windows
16915 case $GCC,$host_os in
16916 yes,cygwin* | yes,mingw* | yes,pw32*)
16917 library_names_spec='$libname.dll.a'
16918 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16919 postinstall_cmds='base_file=`basename \${file}`~
16920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16921 dldir=$destdir/`dirname \$dlpath`~
16922 test -d \$dldir || mkdir -p \$dldir~
16923 $install_prog $dir/$dlname \$dldir/$dlname'
16924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16925 dlpath=$dir/\$dldll~
16927 shlibpath_overrides_runpath=yes
16931 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16932 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16933 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16936 # MinGW DLLs use traditional 'lib' prefix
16937 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16939 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16940 # It is most probably a Windows format PATH printed by
16941 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16942 # path with ; separators, and with drive letters. We can handle the
16943 # drive letters (cygwin fileutils understands them), so leave them,
16944 # especially as we might pass files found there to a mingw objdump,
16945 # which wouldn't understand a cygwinified path. Ahh.
16946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16952 # pw32 DLLs use 'pw' prefix rather than 'lib'
16953 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16962 dynamic_linker='Win32 ld.exe'
16963 # FIXME: first we should search . and the directory the executable is in
16967 darwin* | rhapsody*)
16968 dynamic_linker="$host_os dyld"
16969 version_type=darwin
16972 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16973 soname_spec='${libname}${release}${major}$shared_ext'
16974 shlibpath_overrides_runpath=yes
16975 shlibpath_var=DYLD_LIBRARY_PATH
16976 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16977 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16978 if test "$GCC" = yes; then
16979 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"`
16981 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16991 soname_spec='${libname}${release}${shared_ext}$major'
16992 shlibpath_var=LD_LIBRARY_PATH
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 shlibpath_var=LD_LIBRARY_PATH
17006 shlibpath_overrides_runpath=no
17007 hardcode_into_libs=yes
17008 dynamic_linker='GNU ld.so'
17012 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17013 version_type=freebsd-$objformat
17014 case $version_type in
17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17025 shlibpath_var=LD_LIBRARY_PATH
17028 shlibpath_overrides_runpath=yes
17030 freebsd3.01* | freebsdelf3.01*)
17031 shlibpath_overrides_runpath=yes
17032 hardcode_into_libs=yes
17035 shlibpath_overrides_runpath=no
17036 hardcode_into_libs=yes
17045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17046 soname_spec='${libname}${release}${shared_ext}$major'
17047 shlibpath_var=LD_LIBRARY_PATH
17048 hardcode_into_libs=yes
17051 hpux9* | hpux10* | hpux11*)
17052 # Give a soname corresponding to the major version so that dld.sl refuses to
17053 # link against other versions.
17057 case "$host_cpu" in
17060 hardcode_into_libs=yes
17061 dynamic_linker="$host_os dld.so"
17062 shlibpath_var=LD_LIBRARY_PATH
17063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 if test "X$HPUX_IA64_MODE" = X32; then
17067 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17069 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17075 hardcode_into_libs=yes
17076 dynamic_linker="$host_os dld.sl"
17077 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080 soname_spec='${libname}${release}${shared_ext}$major'
17081 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17086 dynamic_linker="$host_os dld.sl"
17087 shlibpath_var=SHLIB_PATH
17088 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
17093 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17094 postinstall_cmds='chmod 555 $lib'
17097 irix5* | irix6* | nonstopux*)
17099 nonstopux*) version_type=nonstopux ;;
17101 if test "$lt_cv_prog_gnu_ld" = yes; then
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17112 irix5* | nonstopux*)
17113 libsuff= shlibsuff=
17116 case $LD in # libtool.m4 will add one of these switches to LD
17117 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17118 libsuff= shlibsuff= libmagic=32-bit;;
17119 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17120 libsuff=32 shlibsuff=N32 libmagic=N32;;
17121 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17122 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17123 *) libsuff= shlibsuff= libmagic=never-match;;
17127 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17128 shlibpath_overrides_runpath=no
17129 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17130 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17131 hardcode_into_libs=yes
17134 # No shared lib support for Linux oldld, aout, or coff.
17135 linux*oldld* | linux*aout* | linux*coff*)
17139 # This must be Linux ELF.
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17145 soname_spec='${libname}${release}${shared_ext}$major'
17146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=no
17149 # This implies no fast_install, which is unacceptable.
17150 # Some rework will be needed to allow for fast_install
17151 # before this can be enabled.
17152 hardcode_into_libs=yes
17154 # find out which ABI we are using
17156 case "$host_cpu" in
17157 x86_64*|s390x*|powerpc64*)
17158 echo '#line __oline__ "configure"' > conftest.$ac_ext
17159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17160 (eval $ac_compile) 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; then
17164 case `/usr/bin/file conftest.$ac_objext` in
17167 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17175 # Append ld.so.conf contents to the search path
17176 if test -f /etc/ld.so.conf; then
17177 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17178 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17181 # We used to test for /lib/ld.so.1 and disable shared libraries on
17182 # powerpc, because MkLinux only supported shared libraries with the
17183 # GNU dynamic linker. Since this was broken with cross compilers,
17184 # most powerpc-linux boxes support dynamic linking these days and
17185 # people can always --disable-shared, the test was removed, and we
17186 # assume the GNU/Linux dynamic linker is in use.
17187 dynamic_linker='GNU/Linux ld.so'
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 shlibpath_overrides_runpath=no
17198 hardcode_into_libs=yes
17199 dynamic_linker='GNU ld.so'
17206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17209 dynamic_linker='NetBSD (a.out) ld.so'
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 dynamic_linker='NetBSD ld.elf_so'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath=yes
17217 hardcode_into_libs=yes
17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 shlibpath_overrides_runpath=yes
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 shlibpath_overrides_runpath=yes
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17243 shlibpath_var=LD_LIBRARY_PATH
17244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17246 openbsd2.[89] | openbsd2.[89].*)
17247 shlibpath_overrides_runpath=no
17250 shlibpath_overrides_runpath=yes
17254 shlibpath_overrides_runpath=yes
17259 libname_spec='$name'
17262 library_names_spec='$libname${shared_ext} $libname.a'
17263 dynamic_linker='OS/2 ld.exe'
17264 shlibpath_var=LIBPATH
17267 osf3* | osf4* | osf5*)
17271 soname_spec='${libname}${release}${shared_ext}$major'
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 shlibpath_var=LD_LIBRARY_PATH
17274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17275 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17280 soname_spec='${libname}${release}${shared_ext}$major'
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282 shlibpath_var=LD_LIBRARY_PATH
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=yes
17293 hardcode_into_libs=yes
17294 # ldd complains unless libraries are executable
17295 postinstall_cmds='chmod +x $lib'
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 shlibpath_overrides_runpath=yes
17304 if test "$with_gnu_ld" = yes; then
17310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313 soname_spec='${libname}${release}${shared_ext}$major'
17314 shlibpath_var=LD_LIBRARY_PATH
17315 case $host_vendor in
17317 shlibpath_overrides_runpath=no
17319 export_dynamic_flag_spec='${wl}-Blargedynsym'
17320 runpath_var=LD_RUN_PATH
17328 shlibpath_overrides_runpath=no
17329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17335 if test -d /usr/nec ;then
17337 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17338 soname_spec='$libname${shared_ext}.$major'
17339 shlibpath_var=LD_LIBRARY_PATH
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346 soname_spec='${libname}${release}${shared_ext}$major'
17347 shlibpath_var=LD_LIBRARY_PATH
17354 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17355 echo "${ECHO_T}$dynamic_linker" >&6
17356 test "$dynamic_linker" = no && can_build_shared=no
17358 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17359 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17360 hardcode_action_GCJ=
17361 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17362 test -n "$runpath_var GCJ" || \
17363 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17365 # We can hardcode non-existant directories.
17366 if test "$hardcode_direct_GCJ" != no &&
17367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17368 # have to relink, otherwise we might link with an installed library
17369 # when we should be linking with a yet-to-be-installed one
17370 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17371 test "$hardcode_minus_L_GCJ" != no; then
17372 # Linking always hardcodes the temporary library directory.
17373 hardcode_action_GCJ=relink
17375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17376 hardcode_action_GCJ=immediate
17379 # We cannot hardcode anything, or else we can only hardcode existing
17381 hardcode_action_GCJ=unsupported
17383 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17384 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17386 if test "$hardcode_action_GCJ" = relink; then
17387 # Fast installation is not supported
17388 enable_fast_install=no
17389 elif test "$shlibpath_overrides_runpath" = yes ||
17390 test "$enable_shared" = no; then
17391 # Fast installation is not necessary
17392 enable_fast_install=needless
17397 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17398 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17399 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17402 echo "$as_me:$LINENO: result: yes" >&5
17403 echo "${ECHO_T}yes" >&6
17405 # FIXME - insert some real tests, host_os isn't really good enough
17408 if test -n "$STRIP" ; then
17409 striplib="$STRIP -x"
17410 echo "$as_me:$LINENO: result: yes" >&5
17411 echo "${ECHO_T}yes" >&6
17413 echo "$as_me:$LINENO: result: no" >&5
17414 echo "${ECHO_T}no" >&6
17418 echo "$as_me:$LINENO: result: no" >&5
17419 echo "${ECHO_T}no" >&6
17424 if test "x$enable_dlopen" != xyes; then
17425 enable_dlopen=unknown
17426 enable_dlopen_self=unknown
17427 enable_dlopen_self_static=unknown
17434 lt_cv_dlopen="load_add_on"
17436 lt_cv_dlopen_self=yes
17440 lt_cv_dlopen="LoadLibrary"
17445 lt_cv_dlopen="dlopen"
17450 # if libdl is installed we need to link against it
17451 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17452 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 ac_check_lib_save_LIBS=$LIBS
17458 cat >conftest.$ac_ext <<_ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17465 /* Override any gcc2 internal prototype to avoid an error. */
17469 /* We use char because int might match the return type of a gcc2
17470 builtin and then its argument prototype would still apply. */
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17482 (eval $ac_link) 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -z "$ac_c_werror_flag"
17490 || test ! -s conftest.err'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_cv_lib_dl_dlopen=yes
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_cv_lib_dl_dlopen=no
17509 rm -f conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17511 LIBS=$ac_check_lib_save_LIBS
17513 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17515 if test $ac_cv_lib_dl_dlopen = yes; then
17516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17519 lt_cv_dlopen="dyld"
17521 lt_cv_dlopen_self=yes
17528 echo "$as_me:$LINENO: checking for shl_load" >&5
17529 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17530 if test "${ac_cv_func_shl_load+set}" = set; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17533 cat >conftest.$ac_ext <<_ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17539 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17541 #define shl_load innocuous_shl_load
17543 /* System header to define __stub macros and hopefully few prototypes,
17544 which can conflict with char shl_load (); below.
17545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546 <limits.h> exists even on freestanding compilers. */
17549 # include <limits.h>
17551 # include <assert.h>
17556 /* Override any gcc2 internal prototype to avoid an error. */
17561 /* We use char because int might match the return type of a gcc2
17562 builtin and then its argument prototype would still apply. */
17564 /* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17570 char (*f) () = shl_load;
17579 return f != shl_load;
17584 rm -f conftest.$ac_objext conftest$ac_exeext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17586 (eval $ac_link) 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag"
17594 || test ! -s conftest.err'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest$ac_exeext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 ac_cv_func_shl_load=yes
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 ac_cv_func_shl_load=no
17613 rm -f conftest.err conftest.$ac_objext \
17614 conftest$ac_exeext conftest.$ac_ext
17616 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17617 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17618 if test $ac_cv_func_shl_load = yes; then
17619 lt_cv_dlopen="shl_load"
17621 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17622 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17623 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 ac_check_lib_save_LIBS=$LIBS
17628 cat >conftest.$ac_ext <<_ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h. */
17635 /* Override any gcc2 internal prototype to avoid an error. */
17639 /* We use char because int might match the return type of a gcc2
17640 builtin and then its argument prototype would still apply. */
17650 rm -f conftest.$ac_objext conftest$ac_exeext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652 (eval $ac_link) 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag"
17660 || test ! -s conftest.err'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest$ac_exeext'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 ac_cv_lib_dld_shl_load=yes
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17677 ac_cv_lib_dld_shl_load=no
17679 rm -f conftest.err conftest.$ac_objext \
17680 conftest$ac_exeext conftest.$ac_ext
17681 LIBS=$ac_check_lib_save_LIBS
17683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17684 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17685 if test $ac_cv_lib_dld_shl_load = yes; then
17686 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17688 echo "$as_me:$LINENO: checking for dlopen" >&5
17689 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17690 if test "${ac_cv_func_dlopen+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 cat >conftest.$ac_ext <<_ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17699 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17701 #define dlopen innocuous_dlopen
17703 /* System header to define __stub macros and hopefully few prototypes,
17704 which can conflict with char dlopen (); below.
17705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17706 <limits.h> exists even on freestanding compilers. */
17709 # include <limits.h>
17711 # include <assert.h>
17716 /* Override any gcc2 internal prototype to avoid an error. */
17721 /* We use char because int might match the return type of a gcc2
17722 builtin and then its argument prototype would still apply. */
17724 /* The GNU C library defines this for functions which it implements
17725 to always fail with ENOSYS. Some functions are actually named
17726 something starting with __ and the normal name is an alias. */
17727 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17730 char (*f) () = dlopen;
17739 return f != dlopen;
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746 (eval $ac_link) 2>conftest.er1
17748 grep -v '^ *+' conftest.er1 >conftest.err
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try='test -z "$ac_c_werror_flag"
17754 || test ! -s conftest.err'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest$ac_exeext'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_cv_func_dlopen=yes
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 ac_cv_func_dlopen=no
17773 rm -f conftest.err conftest.$ac_objext \
17774 conftest$ac_exeext conftest.$ac_ext
17776 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17777 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17778 if test $ac_cv_func_dlopen = yes; then
17779 lt_cv_dlopen="dlopen"
17781 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17782 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17783 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 ac_check_lib_save_LIBS=$LIBS
17788 cat >conftest.$ac_ext <<_ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17795 /* Override any gcc2 internal prototype to avoid an error. */
17799 /* We use char because int might match the return type of a gcc2
17800 builtin and then its argument prototype would still apply. */
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812 (eval $ac_link) 2>conftest.er1
17814 grep -v '^ *+' conftest.er1 >conftest.err
17816 cat conftest.err >&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } &&
17819 { ac_try='test -z "$ac_c_werror_flag"
17820 || test ! -s conftest.err'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest$ac_exeext'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; }; then
17832 ac_cv_lib_dl_dlopen=yes
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17837 ac_cv_lib_dl_dlopen=no
17839 rm -f conftest.err conftest.$ac_objext \
17840 conftest$ac_exeext conftest.$ac_ext
17841 LIBS=$ac_check_lib_save_LIBS
17843 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17845 if test $ac_cv_lib_dl_dlopen = yes; then
17846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17848 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17849 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17850 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 ac_check_lib_save_LIBS=$LIBS
17854 LIBS="-lsvld $LIBS"
17855 cat >conftest.$ac_ext <<_ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h. */
17862 /* Override any gcc2 internal prototype to avoid an error. */
17866 /* We use char because int might match the return type of a gcc2
17867 builtin and then its argument prototype would still apply. */
17877 rm -f conftest.$ac_objext conftest$ac_exeext
17878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17879 (eval $ac_link) 2>conftest.er1
17881 grep -v '^ *+' conftest.er1 >conftest.err
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 { ac_try='test -z "$ac_c_werror_flag"
17887 || test ! -s conftest.err'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; } &&
17893 { ac_try='test -s conftest$ac_exeext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 ac_cv_lib_svld_dlopen=yes
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 ac_cv_lib_svld_dlopen=no
17906 rm -f conftest.err conftest.$ac_objext \
17907 conftest$ac_exeext conftest.$ac_ext
17908 LIBS=$ac_check_lib_save_LIBS
17910 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17911 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17912 if test $ac_cv_lib_svld_dlopen = yes; then
17913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17915 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17916 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 ac_check_lib_save_LIBS=$LIBS
17922 cat >conftest.$ac_ext <<_ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17929 /* Override any gcc2 internal prototype to avoid an error. */
17933 /* We use char because int might match the return type of a gcc2
17934 builtin and then its argument prototype would still apply. */
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17946 (eval $ac_link) 2>conftest.er1
17948 grep -v '^ *+' conftest.er1 >conftest.err
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
17953 { ac_try='test -z "$ac_c_werror_flag"
17954 || test ! -s conftest.err'
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; } &&
17960 { ac_try='test -s conftest$ac_exeext'
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17966 ac_cv_lib_dld_dld_link=yes
17968 echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17971 ac_cv_lib_dld_dld_link=no
17973 rm -f conftest.err conftest.$ac_objext \
17974 conftest$ac_exeext conftest.$ac_ext
17975 LIBS=$ac_check_lib_save_LIBS
17977 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17978 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17979 if test $ac_cv_lib_dld_dld_link = yes; then
17980 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18001 if test "x$lt_cv_dlopen" != xno; then
18007 case $lt_cv_dlopen in
18009 save_CPPFLAGS="$CPPFLAGS"
18010 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18012 save_LDFLAGS="$LDFLAGS"
18013 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18016 LIBS="$lt_cv_dlopen_libs $LIBS"
18018 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18019 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18020 if test "${lt_cv_dlopen_self+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 if test "$cross_compiling" = yes; then :
18024 lt_cv_dlopen_self=cross
18026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18027 lt_status=$lt_dlunknown
18028 cat > conftest.$ac_ext <<EOF
18029 #line __oline__ "configure"
18030 #include "confdefs.h"
18039 # define LT_DLGLOBAL RTLD_GLOBAL
18042 # define LT_DLGLOBAL DL_GLOBAL
18044 # define LT_DLGLOBAL 0
18048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18049 find out it does not work in some platform. */
18050 #ifndef LT_DLLAZY_OR_NOW
18052 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18055 # define LT_DLLAZY_OR_NOW DL_LAZY
18058 # define LT_DLLAZY_OR_NOW RTLD_NOW
18061 # define LT_DLLAZY_OR_NOW DL_NOW
18063 # define LT_DLLAZY_OR_NOW 0
18071 extern "C" void exit (int);
18074 void fnord() { int i=42;}
18077 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18078 int status = $lt_dlunknown;
18082 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18083 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18084 /* dlclose (self); */
18090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18091 (eval $ac_link) 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18095 (./conftest; exit; ) 2>/dev/null
18097 case x$lt_status in
18098 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18099 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18100 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18103 # compilation failed
18104 lt_cv_dlopen_self=no
18111 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18112 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18114 if test "x$lt_cv_dlopen_self" = xyes; then
18115 LDFLAGS="$LDFLAGS $link_static_flag"
18116 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18117 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18118 if test "${lt_cv_dlopen_self_static+set}" = set; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18121 if test "$cross_compiling" = yes; then :
18122 lt_cv_dlopen_self_static=cross
18124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18125 lt_status=$lt_dlunknown
18126 cat > conftest.$ac_ext <<EOF
18127 #line __oline__ "configure"
18128 #include "confdefs.h"
18137 # define LT_DLGLOBAL RTLD_GLOBAL
18140 # define LT_DLGLOBAL DL_GLOBAL
18142 # define LT_DLGLOBAL 0
18146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18147 find out it does not work in some platform. */
18148 #ifndef LT_DLLAZY_OR_NOW
18150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18153 # define LT_DLLAZY_OR_NOW DL_LAZY
18156 # define LT_DLLAZY_OR_NOW RTLD_NOW
18159 # define LT_DLLAZY_OR_NOW DL_NOW
18161 # define LT_DLLAZY_OR_NOW 0
18169 extern "C" void exit (int);
18172 void fnord() { int i=42;}
18175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18176 int status = $lt_dlunknown;
18180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18182 /* dlclose (self); */
18188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18189 (eval $ac_link) 2>&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18193 (./conftest; exit; ) 2>/dev/null
18195 case x$lt_status in
18196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18198 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18201 # compilation failed
18202 lt_cv_dlopen_self_static=no
18209 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18210 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18213 CPPFLAGS="$save_CPPFLAGS"
18214 LDFLAGS="$save_LDFLAGS"
18219 case $lt_cv_dlopen_self in
18220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18221 *) enable_dlopen_self=unknown ;;
18224 case $lt_cv_dlopen_self_static in
18225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18226 *) enable_dlopen_self_static=unknown ;;
18231 # The else clause should only fire when bootstrapping the
18232 # libtool distribution, otherwise you forgot to ship ltmain.sh
18233 # with your package, and you will get complaints that there are
18234 # no rules to generate ltmain.sh.
18235 if test -f "$ltmain"; then
18236 # See if we are running on zsh, and set the options which allow our commands through
18237 # without removal of \ escapes.
18238 if test -n "${ZSH_VERSION+set}" ; then
18239 setopt NO_GLOB_SUBST
18241 # Now quote all the things that may contain metacharacters while being
18242 # careful not to overquote the AC_SUBSTed values. We take copies of the
18243 # variables and quote the copies for generation of the libtool script.
18244 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18246 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18247 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18248 deplibs_check_method reload_flag reload_cmds need_locks \
18249 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18250 lt_cv_sys_global_symbol_to_c_name_address \
18251 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18252 old_postinstall_cmds old_postuninstall_cmds \
18256 lt_prog_compiler_wl_GCJ \
18257 lt_prog_compiler_pic_GCJ \
18258 lt_prog_compiler_static_GCJ \
18259 lt_prog_compiler_no_builtin_flag_GCJ \
18260 export_dynamic_flag_spec_GCJ \
18261 thread_safe_flag_spec_GCJ \
18262 whole_archive_flag_spec_GCJ \
18263 enable_shared_with_static_runtimes_GCJ \
18264 old_archive_cmds_GCJ \
18265 old_archive_from_new_cmds_GCJ \
18266 predep_objects_GCJ \
18267 postdep_objects_GCJ \
18270 compiler_lib_search_path_GCJ \
18272 archive_expsym_cmds_GCJ \
18273 postinstall_cmds_GCJ \
18274 postuninstall_cmds_GCJ \
18275 old_archive_from_expsyms_cmds_GCJ \
18276 allow_undefined_flag_GCJ \
18277 no_undefined_flag_GCJ \
18278 export_symbols_cmds_GCJ \
18279 hardcode_libdir_flag_spec_GCJ \
18280 hardcode_libdir_flag_spec_ld_GCJ \
18281 hardcode_libdir_separator_GCJ \
18282 hardcode_automatic_GCJ \
18284 module_expsym_cmds_GCJ \
18285 lt_cv_prog_compiler_c_o_GCJ \
18286 exclude_expsyms_GCJ \
18287 include_expsyms_GCJ; do
18290 old_archive_cmds_GCJ | \
18291 old_archive_from_new_cmds_GCJ | \
18292 archive_cmds_GCJ | \
18293 archive_expsym_cmds_GCJ | \
18294 module_cmds_GCJ | \
18295 module_expsym_cmds_GCJ | \
18296 old_archive_from_expsyms_cmds_GCJ | \
18297 export_symbols_cmds_GCJ | \
18298 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18299 postinstall_cmds | postuninstall_cmds | \
18300 old_postinstall_cmds | old_postuninstall_cmds | \
18301 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18302 # Double-quote double-evaled strings.
18303 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18306 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18312 *'\$0 --fallback-echo"')
18313 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18319 cat <<__EOF__ >> "$cfgfile"
18320 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18324 # Shell to use when invoking shell scripts.
18327 # Whether or not to build shared libraries.
18328 build_libtool_libs=$enable_shared
18330 # Whether or not to build static libraries.
18331 build_old_libs=$enable_static
18333 # Whether or not to add -lc for building shared libraries.
18334 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18336 # Whether or not to disallow shared libs when runtime libs are static
18337 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18339 # Whether or not to optimize for fast installation.
18340 fast_install=$enable_fast_install
18343 host_alias=$host_alias
18346 # An echo program that does not interpret backslashes.
18351 AR_FLAGS=$lt_AR_FLAGS
18356 # A language-specific compiler.
18357 CC=$lt_compiler_GCJ
18359 # Is the compiler the GNU C compiler?
18365 # The linker used to build libraries.
18368 # Whether we need hard or soft links.
18371 # A BSD-compatible nm program.
18374 # A symbol stripping program
18377 # Used to examine libraries when file_magic_cmd begins "file"
18378 MAGIC_CMD=$MAGIC_CMD
18380 # Used on cygwin: DLL creation program.
18383 # Used on cygwin: object dumper.
18386 # Used on cygwin: assembler.
18389 # The name of the directory that contains temporary libtool files.
18392 # How to create reloadable object files.
18393 reload_flag=$lt_reload_flag
18394 reload_cmds=$lt_reload_cmds
18396 # How to pass a linker flag through the compiler.
18397 wl=$lt_lt_prog_compiler_wl_GCJ
18399 # Object file suffix (normally "o").
18400 objext="$ac_objext"
18402 # Old archive suffix (normally "a").
18405 # Shared library suffix (normally ".so").
18406 shrext_cmds='$shrext_cmds'
18408 # Executable file suffix (normally "").
18411 # Additional compiler flags for building library objects.
18412 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18415 # What is the maximum length of a command?
18416 max_cmd_len=$lt_cv_sys_max_cmd_len
18418 # Does compiler simultaneously support -c and -o options?
18419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18421 # Must we lock files when doing compilation ?
18422 need_locks=$lt_need_locks
18424 # Do we need the lib prefix for modules?
18425 need_lib_prefix=$need_lib_prefix
18427 # Do we need a version for libraries?
18428 need_version=$need_version
18430 # Whether dlopen is supported.
18431 dlopen_support=$enable_dlopen
18433 # Whether dlopen of programs is supported.
18434 dlopen_self=$enable_dlopen_self
18436 # Whether dlopen of statically linked programs is supported.
18437 dlopen_self_static=$enable_dlopen_self_static
18439 # Compiler flag to prevent dynamic linking.
18440 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18442 # Compiler flag to turn off builtin functions.
18443 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18445 # Compiler flag to allow reflexive dlopens.
18446 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18448 # Compiler flag to generate shared objects directly from archives.
18449 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18451 # Compiler flag to generate thread-safe objects.
18452 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18454 # Library versioning type.
18455 version_type=$version_type
18457 # Format of library name prefix.
18458 libname_spec=$lt_libname_spec
18460 # List of archive names. First name is the real one, the rest are links.
18461 # The last name is the one that the linker finds with -lNAME.
18462 library_names_spec=$lt_library_names_spec
18464 # The coded name of the library, if different from the real name.
18465 soname_spec=$lt_soname_spec
18467 # Commands used to build and install an old-style archive.
18469 old_archive_cmds=$lt_old_archive_cmds_GCJ
18470 old_postinstall_cmds=$lt_old_postinstall_cmds
18471 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18473 # Create an old-style archive from a shared archive.
18474 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18476 # Create a temporary old-style archive to link instead of a shared archive.
18477 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18479 # Commands used to build and install a shared archive.
18480 archive_cmds=$lt_archive_cmds_GCJ
18481 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18482 postinstall_cmds=$lt_postinstall_cmds
18483 postuninstall_cmds=$lt_postuninstall_cmds
18485 # Commands used to build a loadable module (assumed same as above if empty)
18486 module_cmds=$lt_module_cmds_GCJ
18487 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18489 # Commands to strip libraries.
18490 old_striplib=$lt_old_striplib
18491 striplib=$lt_striplib
18493 # Dependencies to place before the objects being linked to create a
18495 predep_objects=$lt_predep_objects_GCJ
18497 # Dependencies to place after the objects being linked to create a
18499 postdep_objects=$lt_postdep_objects_GCJ
18501 # Dependencies to place before the objects being linked to create a
18503 predeps=$lt_predeps_GCJ
18505 # Dependencies to place after the objects being linked to create a
18507 postdeps=$lt_postdeps_GCJ
18509 # The library search path used internally by the compiler when linking
18510 # a shared library.
18511 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18513 # Method to check whether dependent libraries are shared objects.
18514 deplibs_check_method=$lt_deplibs_check_method
18516 # Command to use when deplibs_check_method == file_magic.
18517 file_magic_cmd=$lt_file_magic_cmd
18519 # Flag that allows shared libraries with undefined symbols to be built.
18520 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18522 # Flag that forces no undefined symbols.
18523 no_undefined_flag=$lt_no_undefined_flag_GCJ
18525 # Commands used to finish a libtool library installation in a directory.
18526 finish_cmds=$lt_finish_cmds
18528 # Same as above, but a single script fragment to be evaled but not shown.
18529 finish_eval=$lt_finish_eval
18531 # Take the output of nm and produce a listing of raw symbols and C names.
18532 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18534 # Transform the output of nm in a proper C declaration
18535 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18537 # Transform the output of nm in a C name address pair
18538 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18540 # This is the shared library runtime path variable.
18541 runpath_var=$runpath_var
18543 # This is the shared library path variable.
18544 shlibpath_var=$shlibpath_var
18546 # Is shlibpath searched before the hard-coded library search path?
18547 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18549 # How to hardcode a shared library path into an executable.
18550 hardcode_action=$hardcode_action_GCJ
18552 # Whether we should hardcode library paths into libraries.
18553 hardcode_into_libs=$hardcode_into_libs
18555 # Flag to hardcode \$libdir into a binary during linking.
18556 # This must work even if \$libdir does not exist.
18557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18559 # If ld is used when linking, flag to hardcode \$libdir into
18560 # a binary during linking. This must work even if \$libdir does
18562 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18564 # Whether we need a single -rpath flag with a separated argument.
18565 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18567 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18568 # resulting binary.
18569 hardcode_direct=$hardcode_direct_GCJ
18571 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18572 # resulting binary.
18573 hardcode_minus_L=$hardcode_minus_L_GCJ
18575 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18576 # the resulting binary.
18577 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18579 # Set to yes if building a shared library automatically hardcodes DIR into the library
18580 # and all subsequent libraries and executables linked against it.
18581 hardcode_automatic=$hardcode_automatic_GCJ
18583 # Variables whose values should be saved in libtool wrapper scripts and
18584 # restored at relink time.
18585 variables_saved_for_relink="$variables_saved_for_relink"
18587 # Whether libtool must link a program against all its dependency libraries.
18588 link_all_deplibs=$link_all_deplibs_GCJ
18590 # Compile-time system search path for libraries
18591 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18593 # Run-time system search path for libraries
18594 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18596 # Fix the shell variable \$srcfile for the compiler.
18597 fix_srcfile_path="$fix_srcfile_path_GCJ"
18599 # Set to yes if exported symbols are required.
18600 always_export_symbols=$always_export_symbols_GCJ
18602 # The commands to list exported symbols.
18603 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18605 # The commands to extract the exported symbol list from a shared archive.
18606 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18608 # Symbols that should not be listed in the preloaded symbols.
18609 exclude_expsyms=$lt_exclude_expsyms_GCJ
18611 # Symbols that must always be exported.
18612 include_expsyms=$lt_include_expsyms_GCJ
18614 # ### END LIBTOOL TAG CONFIG: $tagname
18620 # If there is no Makefile yet, we rely on a make rule to execute
18621 # `config.status --recheck' to rerun these tests and create the
18622 # libtool script then.
18623 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18624 if test -f "$ltmain_in"; then
18625 test -f Makefile && make "$ltmain"
18631 ac_cpp='$CPP $CPPFLAGS'
18632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18647 # Source file extension for RC test sources.
18650 # Object file extension for compiled RC test sources.
18654 # Code to be used in simple compile tests
18655 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18657 # Code to be used in simple link tests
18658 lt_simple_link_test_code="$lt_simple_compile_test_code"
18660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18662 # If no C compiler was specified, use CC.
18665 # Allow CC to be a program name with arguments.
18669 # Allow CC to be a program name with arguments.
18674 lt_cv_prog_compiler_c_o_RC=yes
18676 # The else clause should only fire when bootstrapping the
18677 # libtool distribution, otherwise you forgot to ship ltmain.sh
18678 # with your package, and you will get complaints that there are
18679 # no rules to generate ltmain.sh.
18680 if test -f "$ltmain"; then
18681 # See if we are running on zsh, and set the options which allow our commands through
18682 # without removal of \ escapes.
18683 if test -n "${ZSH_VERSION+set}" ; then
18684 setopt NO_GLOB_SUBST
18686 # Now quote all the things that may contain metacharacters while being
18687 # careful not to overquote the AC_SUBSTed values. We take copies of the
18688 # variables and quote the copies for generation of the libtool script.
18689 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18691 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18692 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18693 deplibs_check_method reload_flag reload_cmds need_locks \
18694 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18695 lt_cv_sys_global_symbol_to_c_name_address \
18696 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18697 old_postinstall_cmds old_postuninstall_cmds \
18701 lt_prog_compiler_wl_RC \
18702 lt_prog_compiler_pic_RC \
18703 lt_prog_compiler_static_RC \
18704 lt_prog_compiler_no_builtin_flag_RC \
18705 export_dynamic_flag_spec_RC \
18706 thread_safe_flag_spec_RC \
18707 whole_archive_flag_spec_RC \
18708 enable_shared_with_static_runtimes_RC \
18709 old_archive_cmds_RC \
18710 old_archive_from_new_cmds_RC \
18711 predep_objects_RC \
18712 postdep_objects_RC \
18715 compiler_lib_search_path_RC \
18717 archive_expsym_cmds_RC \
18718 postinstall_cmds_RC \
18719 postuninstall_cmds_RC \
18720 old_archive_from_expsyms_cmds_RC \
18721 allow_undefined_flag_RC \
18722 no_undefined_flag_RC \
18723 export_symbols_cmds_RC \
18724 hardcode_libdir_flag_spec_RC \
18725 hardcode_libdir_flag_spec_ld_RC \
18726 hardcode_libdir_separator_RC \
18727 hardcode_automatic_RC \
18729 module_expsym_cmds_RC \
18730 lt_cv_prog_compiler_c_o_RC \
18731 exclude_expsyms_RC \
18732 include_expsyms_RC; do
18735 old_archive_cmds_RC | \
18736 old_archive_from_new_cmds_RC | \
18737 archive_cmds_RC | \
18738 archive_expsym_cmds_RC | \
18740 module_expsym_cmds_RC | \
18741 old_archive_from_expsyms_cmds_RC | \
18742 export_symbols_cmds_RC | \
18743 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18744 postinstall_cmds | postuninstall_cmds | \
18745 old_postinstall_cmds | old_postuninstall_cmds | \
18746 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18747 # Double-quote double-evaled strings.
18748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18757 *'\$0 --fallback-echo"')
18758 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18764 cat <<__EOF__ >> "$cfgfile"
18765 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18769 # Shell to use when invoking shell scripts.
18772 # Whether or not to build shared libraries.
18773 build_libtool_libs=$enable_shared
18775 # Whether or not to build static libraries.
18776 build_old_libs=$enable_static
18778 # Whether or not to add -lc for building shared libraries.
18779 build_libtool_need_lc=$archive_cmds_need_lc_RC
18781 # Whether or not to disallow shared libs when runtime libs are static
18782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18784 # Whether or not to optimize for fast installation.
18785 fast_install=$enable_fast_install
18788 host_alias=$host_alias
18791 # An echo program that does not interpret backslashes.
18796 AR_FLAGS=$lt_AR_FLAGS
18801 # A language-specific compiler.
18804 # Is the compiler the GNU C compiler?
18810 # The linker used to build libraries.
18813 # Whether we need hard or soft links.
18816 # A BSD-compatible nm program.
18819 # A symbol stripping program
18822 # Used to examine libraries when file_magic_cmd begins "file"
18823 MAGIC_CMD=$MAGIC_CMD
18825 # Used on cygwin: DLL creation program.
18828 # Used on cygwin: object dumper.
18831 # Used on cygwin: assembler.
18834 # The name of the directory that contains temporary libtool files.
18837 # How to create reloadable object files.
18838 reload_flag=$lt_reload_flag
18839 reload_cmds=$lt_reload_cmds
18841 # How to pass a linker flag through the compiler.
18842 wl=$lt_lt_prog_compiler_wl_RC
18844 # Object file suffix (normally "o").
18845 objext="$ac_objext"
18847 # Old archive suffix (normally "a").
18850 # Shared library suffix (normally ".so").
18851 shrext_cmds='$shrext_cmds'
18853 # Executable file suffix (normally "").
18856 # Additional compiler flags for building library objects.
18857 pic_flag=$lt_lt_prog_compiler_pic_RC
18860 # What is the maximum length of a command?
18861 max_cmd_len=$lt_cv_sys_max_cmd_len
18863 # Does compiler simultaneously support -c and -o options?
18864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18866 # Must we lock files when doing compilation ?
18867 need_locks=$lt_need_locks
18869 # Do we need the lib prefix for modules?
18870 need_lib_prefix=$need_lib_prefix
18872 # Do we need a version for libraries?
18873 need_version=$need_version
18875 # Whether dlopen is supported.
18876 dlopen_support=$enable_dlopen
18878 # Whether dlopen of programs is supported.
18879 dlopen_self=$enable_dlopen_self
18881 # Whether dlopen of statically linked programs is supported.
18882 dlopen_self_static=$enable_dlopen_self_static
18884 # Compiler flag to prevent dynamic linking.
18885 link_static_flag=$lt_lt_prog_compiler_static_RC
18887 # Compiler flag to turn off builtin functions.
18888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18890 # Compiler flag to allow reflexive dlopens.
18891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18893 # Compiler flag to generate shared objects directly from archives.
18894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18896 # Compiler flag to generate thread-safe objects.
18897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18899 # Library versioning type.
18900 version_type=$version_type
18902 # Format of library name prefix.
18903 libname_spec=$lt_libname_spec
18905 # List of archive names. First name is the real one, the rest are links.
18906 # The last name is the one that the linker finds with -lNAME.
18907 library_names_spec=$lt_library_names_spec
18909 # The coded name of the library, if different from the real name.
18910 soname_spec=$lt_soname_spec
18912 # Commands used to build and install an old-style archive.
18914 old_archive_cmds=$lt_old_archive_cmds_RC
18915 old_postinstall_cmds=$lt_old_postinstall_cmds
18916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18918 # Create an old-style archive from a shared archive.
18919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18921 # Create a temporary old-style archive to link instead of a shared archive.
18922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18924 # Commands used to build and install a shared archive.
18925 archive_cmds=$lt_archive_cmds_RC
18926 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18927 postinstall_cmds=$lt_postinstall_cmds
18928 postuninstall_cmds=$lt_postuninstall_cmds
18930 # Commands used to build a loadable module (assumed same as above if empty)
18931 module_cmds=$lt_module_cmds_RC
18932 module_expsym_cmds=$lt_module_expsym_cmds_RC
18934 # Commands to strip libraries.
18935 old_striplib=$lt_old_striplib
18936 striplib=$lt_striplib
18938 # Dependencies to place before the objects being linked to create a
18940 predep_objects=$lt_predep_objects_RC
18942 # Dependencies to place after the objects being linked to create a
18944 postdep_objects=$lt_postdep_objects_RC
18946 # Dependencies to place before the objects being linked to create a
18948 predeps=$lt_predeps_RC
18950 # Dependencies to place after the objects being linked to create a
18952 postdeps=$lt_postdeps_RC
18954 # The library search path used internally by the compiler when linking
18955 # a shared library.
18956 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18958 # Method to check whether dependent libraries are shared objects.
18959 deplibs_check_method=$lt_deplibs_check_method
18961 # Command to use when deplibs_check_method == file_magic.
18962 file_magic_cmd=$lt_file_magic_cmd
18964 # Flag that allows shared libraries with undefined symbols to be built.
18965 allow_undefined_flag=$lt_allow_undefined_flag_RC
18967 # Flag that forces no undefined symbols.
18968 no_undefined_flag=$lt_no_undefined_flag_RC
18970 # Commands used to finish a libtool library installation in a directory.
18971 finish_cmds=$lt_finish_cmds
18973 # Same as above, but a single script fragment to be evaled but not shown.
18974 finish_eval=$lt_finish_eval
18976 # Take the output of nm and produce a listing of raw symbols and C names.
18977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18979 # Transform the output of nm in a proper C declaration
18980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18982 # Transform the output of nm in a C name address pair
18983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18985 # This is the shared library runtime path variable.
18986 runpath_var=$runpath_var
18988 # This is the shared library path variable.
18989 shlibpath_var=$shlibpath_var
18991 # Is shlibpath searched before the hard-coded library search path?
18992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18994 # How to hardcode a shared library path into an executable.
18995 hardcode_action=$hardcode_action_RC
18997 # Whether we should hardcode library paths into libraries.
18998 hardcode_into_libs=$hardcode_into_libs
19000 # Flag to hardcode \$libdir into a binary during linking.
19001 # This must work even if \$libdir does not exist.
19002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19004 # If ld is used when linking, flag to hardcode \$libdir into
19005 # a binary during linking. This must work even if \$libdir does
19007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19009 # Whether we need a single -rpath flag with a separated argument.
19010 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19013 # resulting binary.
19014 hardcode_direct=$hardcode_direct_RC
19016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19017 # resulting binary.
19018 hardcode_minus_L=$hardcode_minus_L_RC
19020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19021 # the resulting binary.
19022 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19024 # Set to yes if building a shared library automatically hardcodes DIR into the library
19025 # and all subsequent libraries and executables linked against it.
19026 hardcode_automatic=$hardcode_automatic_RC
19028 # Variables whose values should be saved in libtool wrapper scripts and
19029 # restored at relink time.
19030 variables_saved_for_relink="$variables_saved_for_relink"
19032 # Whether libtool must link a program against all its dependency libraries.
19033 link_all_deplibs=$link_all_deplibs_RC
19035 # Compile-time system search path for libraries
19036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19038 # Run-time system search path for libraries
19039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19041 # Fix the shell variable \$srcfile for the compiler.
19042 fix_srcfile_path="$fix_srcfile_path_RC"
19044 # Set to yes if exported symbols are required.
19045 always_export_symbols=$always_export_symbols_RC
19047 # The commands to list exported symbols.
19048 export_symbols_cmds=$lt_export_symbols_cmds_RC
19050 # The commands to extract the exported symbol list from a shared archive.
19051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19053 # Symbols that should not be listed in the preloaded symbols.
19054 exclude_expsyms=$lt_exclude_expsyms_RC
19056 # Symbols that must always be exported.
19057 include_expsyms=$lt_include_expsyms_RC
19059 # ### END LIBTOOL TAG CONFIG: $tagname
19065 # If there is no Makefile yet, we rely on a make rule to execute
19066 # `config.status --recheck' to rerun these tests and create the
19067 # libtool script then.
19068 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19069 if test -f "$ltmain_in"; then
19070 test -f Makefile && make "$ltmain"
19076 ac_cpp='$CPP $CPPFLAGS'
19077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19086 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19087 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19088 { (exit 1); exit 1; }; }
19092 # Append the new tag name to the list of available tags.
19093 if test -n "$tagname" ; then
19094 available_tags="$available_tags $tagname"
19100 # Now substitute the updated list of available tags.
19101 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19102 mv "${ofile}T" "$ofile"
19106 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19107 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19108 { (exit 1); exit 1; }; }
19114 # This can be used to rebuild libtool when needed
19115 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19117 # Always use our own libtool.
19118 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19120 # Prevent multiple expansion
19141 # Before making a release, the LTVERSION string should be modified.
19142 # The string is of the form C:R:A.
19143 # - If interfaces have been changed or added, but binary compatibility has
19144 # been preserved, change to C+1:0:A+1
19145 # - If binary compatibility has been broken (eg removed or changed interfaces)
19146 # change to C+1:0:0
19147 # - If the interface is the same as the previous version, change to C:R+1:A
19152 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
19153 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
19154 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 ac_check_lib_save_LIBS=$LIBS
19158 LIBS="-lcposix $LIBS"
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19166 /* Override any gcc2 internal prototype to avoid an error. */
19170 /* We use char because int might match the return type of a gcc2
19171 builtin and then its argument prototype would still apply. */
19181 rm -f conftest.$ac_objext conftest$ac_exeext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19183 (eval $ac_link) 2>conftest.er1
19185 grep -v '^ *+' conftest.er1 >conftest.err
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
19190 { ac_try='test -z "$ac_c_werror_flag"
19191 || test ! -s conftest.err'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } &&
19197 { ac_try='test -s conftest$ac_exeext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_cv_lib_cposix_strerror=yes
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 ac_cv_lib_cposix_strerror=no
19210 rm -f conftest.err conftest.$ac_objext \
19211 conftest$ac_exeext conftest.$ac_ext
19212 LIBS=$ac_check_lib_save_LIBS
19214 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
19215 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
19216 if test $ac_cv_lib_cposix_strerror = yes; then
19217 LIBS="$LIBS -lcposix"
19222 # Find a good install program. We prefer a C program (faster),
19223 # so one script is as good as another. But avoid the broken or
19224 # incompatible versions:
19225 # SysV /etc/install, /usr/sbin/install
19226 # SunOS /usr/etc/install
19227 # IRIX /sbin/install
19229 # AmigaOS /C/install, which installs bootblocks on floppy discs
19230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19233 # OS/2's system install, which has a completely different semantic
19234 # ./install, which can be erroneously created by make from ./install.sh.
19235 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19236 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19237 if test -z "$INSTALL"; then
19238 if test "${ac_cv_path_install+set}" = set; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19242 for as_dir in $PATH
19245 test -z "$as_dir" && as_dir=.
19246 # Account for people who put trailing slashes in PATH elements.
19248 ./ | .// | /cC/* | \
19249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19250 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19253 # OSF1 and SCO ODT 3.0 have their own names for install.
19254 # Don't use installbsd from OSF since it installs stuff as root
19256 for ac_prog in ginstall scoinst install; do
19257 for ac_exec_ext in '' $ac_executable_extensions; do
19258 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19259 if test $ac_prog = install &&
19260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19261 # AIX install. It has an incompatible calling convention.
19263 elif test $ac_prog = install &&
19264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19265 # program-specific install script used by HP pwplus--don't use.
19268 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19280 if test "${ac_cv_path_install+set}" = set; then
19281 INSTALL=$ac_cv_path_install
19283 # As a last resort, use the slow shell script. We don't cache a
19284 # path for INSTALL within a source directory, because that will
19285 # break other packages using the cache if that directory is
19286 # removed, or if the path is relative.
19287 INSTALL=$ac_install_sh
19290 echo "$as_me:$LINENO: result: $INSTALL" >&5
19291 echo "${ECHO_T}$INSTALL" >&6
19293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19294 # It thinks the first close brace ends the variable substitution.
19295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19301 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19302 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19303 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19304 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 cat >conftest.make <<\_ACEOF
19309 @echo 'ac_maketemp="$(MAKE)"'
19311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19312 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19313 if test -n "$ac_maketemp"; then
19314 eval ac_cv_prog_make_${ac_make}_set=yes
19316 eval ac_cv_prog_make_${ac_make}_set=no
19318 rm -f conftest.make
19320 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19321 echo "$as_me:$LINENO: result: yes" >&5
19322 echo "${ECHO_T}yes" >&6
19325 echo "$as_me:$LINENO: result: no" >&5
19326 echo "${ECHO_T}no" >&6
19327 SET_MAKE="MAKE=${MAKE-make}"
19331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19333 if test "${ac_cv_header_stdc+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 cat >conftest.$ac_ext <<_ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19342 #include <stdlib.h>
19343 #include <stdarg.h>
19344 #include <string.h>
19355 rm -f conftest.$ac_objext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19357 (eval $ac_compile) 2>conftest.er1
19359 grep -v '^ *+' conftest.er1 >conftest.err
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
19364 { ac_try='test -z "$ac_c_werror_flag"
19365 || test ! -s conftest.err'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest.$ac_objext'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 ac_cv_header_stdc=yes
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_cv_header_stdc=no
19384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19386 if test $ac_cv_header_stdc = yes; then
19387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19388 cat >conftest.$ac_ext <<_ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19394 #include <string.h>
19397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19398 $EGREP "memchr" >/dev/null 2>&1; then
19401 ac_cv_header_stdc=no
19407 if test $ac_cv_header_stdc = yes; then
19408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 #include <stdlib.h>
19418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19419 $EGREP "free" >/dev/null 2>&1; then
19422 ac_cv_header_stdc=no
19428 if test $ac_cv_header_stdc = yes; then
19429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19430 if test "$cross_compiling" = yes; then
19433 cat >conftest.$ac_ext <<_ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19440 #if ((' ' & 0x0FF) == 0x020)
19441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19444 # define ISLOWER(c) \
19445 (('a' <= (c) && (c) <= 'i') \
19446 || ('j' <= (c) && (c) <= 'r') \
19447 || ('s' <= (c) && (c) <= 'z'))
19448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19456 for (i = 0; i < 256; i++)
19457 if (XOR (islower (i), ISLOWER (i))
19458 || toupper (i) != TOUPPER (i))
19463 rm -f conftest$ac_exeext
19464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19465 (eval $ac_link) 2>&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19476 echo "$as_me: program exited with status $ac_status" >&5
19477 echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19480 ( exit $ac_status )
19481 ac_cv_header_stdc=no
19483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19489 if test $ac_cv_header_stdc = yes; then
19491 cat >>confdefs.h <<\_ACEOF
19492 @%:@define STDC_HEADERS 1
19502 for ac_header in fcntl.h limits.h sys/file.h sys/stat.h unistd.h
19504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19506 echo "$as_me:$LINENO: checking for $ac_header" >&5
19507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19514 # Is the header compilable?
19515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19517 cat >conftest.$ac_ext <<_ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19523 $ac_includes_default
19524 @%:@include <$ac_header>
19526 rm -f conftest.$ac_objext
19527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19528 (eval $ac_compile) 2>conftest.er1
19530 grep -v '^ *+' conftest.er1 >conftest.err
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } &&
19535 { ac_try='test -z "$ac_c_werror_flag"
19536 || test ! -s conftest.err'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest.$ac_objext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 ac_header_compiler=yes
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ac_header_compiler=no
19555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19557 echo "${ECHO_T}$ac_header_compiler" >&6
19559 # Is the header present?
19560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19562 cat >conftest.$ac_ext <<_ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 @%:@include <$ac_header>
19570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19573 grep -v '^ *+' conftest.er1 >conftest.err
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); } >/dev/null; then
19578 if test -s conftest.err; then
19579 ac_cpp_err=$ac_c_preproc_warn_flag
19580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19587 if test -z "$ac_cpp_err"; then
19588 ac_header_preproc=yes
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 ac_header_preproc=no
19595 rm -f conftest.err conftest.$ac_ext
19596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19597 echo "${ECHO_T}$ac_header_preproc" >&6
19599 # So? What about this header?
19600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19606 ac_header_preproc=yes
19609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19623 @%:@@%:@ ------------------------------------------ @%:@@%:@
19624 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
19625 @%:@@%:@ ------------------------------------------ @%:@@%:@
19628 sed "s/^/$as_me: WARNING: /" >&2
19631 echo "$as_me:$LINENO: checking for $ac_header" >&5
19632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19634 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 eval "$as_ac_Header=\$ac_header_preproc"
19638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19643 cat >>confdefs.h <<_ACEOF
19644 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19654 for ac_header in sys/param.h sys/types.h netinet/in.h
19656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19658 echo "$as_me:$LINENO: checking for $ac_header" >&5
19659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19666 # Is the header compilable?
19667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19669 cat >conftest.$ac_ext <<_ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h. */
19675 $ac_includes_default
19676 @%:@include <$ac_header>
19678 rm -f conftest.$ac_objext
19679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19680 (eval $ac_compile) 2>conftest.er1
19682 grep -v '^ *+' conftest.er1 >conftest.err
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } &&
19687 { ac_try='test -z "$ac_c_werror_flag"
19688 || test ! -s conftest.err'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; } &&
19694 { ac_try='test -s conftest.$ac_objext'
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; }; then
19700 ac_header_compiler=yes
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 ac_header_compiler=no
19707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19709 echo "${ECHO_T}$ac_header_compiler" >&6
19711 # Is the header present?
19712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19714 cat >conftest.$ac_ext <<_ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 @%:@include <$ac_header>
19722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19725 grep -v '^ *+' conftest.er1 >conftest.err
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } >/dev/null; then
19730 if test -s conftest.err; then
19731 ac_cpp_err=$ac_c_preproc_warn_flag
19732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19739 if test -z "$ac_cpp_err"; then
19740 ac_header_preproc=yes
19742 echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19745 ac_header_preproc=no
19747 rm -f conftest.err conftest.$ac_ext
19748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19749 echo "${ECHO_T}$ac_header_preproc" >&6
19751 # So? What about this header?
19752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19758 ac_header_preproc=yes
19761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19775 @%:@@%:@ ------------------------------------------ @%:@@%:@
19776 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
19777 @%:@@%:@ ------------------------------------------ @%:@@%:@
19780 sed "s/^/$as_me: WARNING: /" >&2
19783 echo "$as_me:$LINENO: checking for $ac_header" >&5
19784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 eval "$as_ac_Header=\$ac_header_preproc"
19790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19795 cat >>confdefs.h <<_ACEOF
19796 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19805 for ac_header in io.h windows.h
19807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19809 echo "$as_me:$LINENO: checking for $ac_header" >&5
19810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19817 # Is the header compilable?
19818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19820 cat >conftest.$ac_ext <<_ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19826 $ac_includes_default
19827 @%:@include <$ac_header>
19829 rm -f conftest.$ac_objext
19830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19831 (eval $ac_compile) 2>conftest.er1
19833 grep -v '^ *+' conftest.er1 >conftest.err
19835 cat conftest.err >&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } &&
19838 { ac_try='test -z "$ac_c_werror_flag"
19839 || test ! -s conftest.err'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } &&
19845 { ac_try='test -s conftest.$ac_objext'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; }; then
19851 ac_header_compiler=yes
19853 echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19856 ac_header_compiler=no
19858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19860 echo "${ECHO_T}$ac_header_compiler" >&6
19862 # Is the header present?
19863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19865 cat >conftest.$ac_ext <<_ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 @%:@include <$ac_header>
19873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19876 grep -v '^ *+' conftest.er1 >conftest.err
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } >/dev/null; then
19881 if test -s conftest.err; then
19882 ac_cpp_err=$ac_c_preproc_warn_flag
19883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19890 if test -z "$ac_cpp_err"; then
19891 ac_header_preproc=yes
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 ac_header_preproc=no
19898 rm -f conftest.err conftest.$ac_ext
19899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19900 echo "${ECHO_T}$ac_header_preproc" >&6
19902 # So? What about this header?
19903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19909 ac_header_preproc=yes
19912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19926 @%:@@%:@ ------------------------------------------ @%:@@%:@
19927 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
19928 @%:@@%:@ ------------------------------------------ @%:@@%:@
19931 sed "s/^/$as_me: WARNING: /" >&2
19934 echo "$as_me:$LINENO: checking for $ac_header" >&5
19935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 eval "$as_ac_Header=\$ac_header_preproc"
19941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19946 cat >>confdefs.h <<_ACEOF
19947 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19955 echo "$as_me:$LINENO: checking for darts.h" >&5
19956 echo $ECHO_N "checking for darts.h... $ECHO_C" >&6
19958 # Check whether --with-darts or --without-darts was given.
19959 if test "${with_darts+set}" = set; then
19960 withval="$with_darts"
19961 if test "${with_darts}" = yes; then
19962 vi_darts_path="/usr/local/include"
19964 vi_darts_path=${with_darts}
19966 CXXFLAGS="${CXXFLAGS} -I${vi_darts_path}"
19971 ac_cpp='$CXXCPP $CPPFLAGS'
19972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19977 if test "${cl_cv_header_darts+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19996 rm -f conftest.$ac_objext
19997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998 (eval $ac_compile) 2>conftest.er1
20000 grep -v '^ *+' conftest.er1 >conftest.err
20002 cat conftest.err >&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } &&
20005 { ac_try='test -z "$ac_cxx_werror_flag"
20006 || test ! -s conftest.err'
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; } &&
20012 { ac_try='test -s conftest.$ac_objext'
20013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014 (eval $ac_try) 2>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; }; then
20018 cl_cv_header_darts=yes
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20024 { { 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
20025 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;}
20026 { (exit 1); exit 1; }; }
20028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20031 echo "$as_me:$LINENO: result: $cl_cv_header_darts" >&5
20032 echo "${ECHO_T}$cl_cv_header_darts" >&6
20034 ac_cpp='$CPP $CPPFLAGS'
20035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20041 # Check whether --with-libiconv or --without-libiconv was given.
20042 if test "${with_libiconv+set}" = set; then
20043 withval="$with_libiconv"
20044 if test x"${with_libiconv}" != x ; then
20045 ICONV_CFLAGS="-I${with_libiconv}/include"
20046 LIBS="$LIBS -L${with_libiconv}/lib"
20052 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
20053 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
20054 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 ac_check_lib_save_LIBS=$LIBS
20058 LIBS="-liconv $LIBS"
20059 cat >conftest.$ac_ext <<_ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20066 /* Override any gcc2 internal prototype to avoid an error. */
20070 /* We use char because int might match the return type of a gcc2
20071 builtin and then its argument prototype would still apply. */
20081 rm -f conftest.$ac_objext conftest$ac_exeext
20082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20083 (eval $ac_link) 2>conftest.er1
20085 grep -v '^ *+' conftest.er1 >conftest.err
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
20090 { ac_try='test -z "$ac_c_werror_flag"
20091 || test ! -s conftest.err'
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; } &&
20097 { ac_try='test -s conftest$ac_exeext'
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; }; then
20103 ac_cv_lib_iconv_iconv=yes
20105 echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20108 ac_cv_lib_iconv_iconv=no
20110 rm -f conftest.err conftest.$ac_objext \
20111 conftest$ac_exeext conftest.$ac_ext
20112 LIBS=$ac_check_lib_save_LIBS
20114 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
20115 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
20116 if test $ac_cv_lib_iconv_iconv = yes; then
20117 cat >>confdefs.h <<_ACEOF
20118 @%:@define HAVE_LIBICONV 1
20121 LIBS="-liconv $LIBS"
20125 if test "${ac_cv_header_iconv_h+set}" = set; then
20126 echo "$as_me:$LINENO: checking for iconv.h" >&5
20127 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
20128 if test "${ac_cv_header_iconv_h+set}" = set; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
20132 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
20134 # Is the header compilable?
20135 echo "$as_me:$LINENO: checking iconv.h usability" >&5
20136 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
20137 cat >conftest.$ac_ext <<_ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20143 $ac_includes_default
20144 @%:@include <iconv.h>
20146 rm -f conftest.$ac_objext
20147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20148 (eval $ac_compile) 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_objext'
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_header_compiler=yes
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 ac_header_compiler=no
20175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20177 echo "${ECHO_T}$ac_header_compiler" >&6
20179 # Is the header present?
20180 echo "$as_me:$LINENO: checking iconv.h presence" >&5
20181 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
20182 cat >conftest.$ac_ext <<_ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20188 @%:@include <iconv.h>
20190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20193 grep -v '^ *+' conftest.er1 >conftest.err
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } >/dev/null; then
20198 if test -s conftest.err; then
20199 ac_cpp_err=$ac_c_preproc_warn_flag
20200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20207 if test -z "$ac_cpp_err"; then
20208 ac_header_preproc=yes
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 ac_header_preproc=no
20215 rm -f conftest.err conftest.$ac_ext
20216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20217 echo "${ECHO_T}$ac_header_preproc" >&6
20219 # So? What about this header?
20220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20222 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20223 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20224 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
20225 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
20226 ac_header_preproc=yes
20229 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
20230 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
20232 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
20233 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
20234 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
20236 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
20238 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
20240 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
20243 @%:@@%:@ ------------------------------------------ @%:@@%:@
20244 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
20245 @%:@@%:@ ------------------------------------------ @%:@@%:@
20248 sed "s/^/$as_me: WARNING: /" >&2
20251 echo "$as_me:$LINENO: checking for iconv.h" >&5
20252 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
20253 if test "${ac_cv_header_iconv_h+set}" = set; then
20254 echo $ECHO_N "(cached) $ECHO_C" >&6
20256 ac_cv_header_iconv_h=$ac_header_preproc
20258 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
20259 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
20262 if test $ac_cv_header_iconv_h = yes; then
20265 { { echo "$as_me:$LINENO: error: ChaSen needs iconv" >&5
20266 echo "$as_me: error: ChaSen needs iconv" >&2;}
20267 { (exit 1); exit 1; }; }
20276 echo "$as_me:$LINENO: checking iconv args" >&5
20277 echo $ECHO_N "checking iconv args... $ECHO_C" >&6
20279 for CODE in EUC-JP EUCJP eucJP; do
20280 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20281 vi_iconv_arg_EUCJP=${CODE}; break
20285 if test x"$vi_iconv_arg_EUCJP" = x; then
20286 { { echo "$as_me:$LINENO: error: cannot use EUC-JP with iconv" >&5
20287 echo "$as_me: error: cannot use EUC-JP with iconv" >&2;}
20288 { (exit 1); exit 1; }; }
20290 cat >>confdefs.h <<_ACEOF
20291 @%:@define ICONV_EUCJP "$vi_iconv_arg_EUCJP"
20296 for CODE in SHIFT_JIS SHIFT-JIS SJIS; do
20297 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20298 vi_iconv_arg_SJIS=${CODE}; break
20302 if test x"$vi_iconv_arg_SJIS" = x; then
20303 { { echo "$as_me:$LINENO: error: cannot use Shift_JIS with iconv" >&5
20304 echo "$as_me: error: cannot use Shift_JIS with iconv" >&2;}
20305 { (exit 1); exit 1; }; }
20307 cat >>confdefs.h <<_ACEOF
20308 @%:@define ICONV_SJIS "$vi_iconv_arg_SJIS"
20313 for CODE in ISO-8859-1 ISO_8859-1 8859-1 ISO8859-1; do
20314 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
20315 vi_iconv_arg_88591=${CODE}; break
20319 if test x"$vi_iconv_arg_88591" = x; then
20320 { { echo "$as_me:$LINENO: error: cannot use ISO-8859-1 with iconv" >&5
20321 echo "$as_me: error: cannot use ISO-8859-1 with iconv" >&2;}
20322 { (exit 1); exit 1; }; }
20324 cat >>confdefs.h <<_ACEOF
20325 @%:@define ICONV_88591 "$vi_iconv_arg_88591"
20329 echo "$as_me:$LINENO: result: $vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&5
20330 echo "${ECHO_T}$vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&6
20332 echo "$as_me:$LINENO: checking for off_t" >&5
20333 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20334 if test "${ac_cv_type_off_t+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 cat >conftest.$ac_ext <<_ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 $ac_includes_default
20349 if (sizeof (off_t))
20355 rm -f conftest.$ac_objext
20356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 ac_cv_type_off_t=yes
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 ac_cv_type_off_t=no
20384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20386 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20387 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20388 if test $ac_cv_type_off_t = yes; then
20392 cat >>confdefs.h <<_ACEOF
20393 @%:@define off_t long
20398 echo "$as_me:$LINENO: checking for size_t" >&5
20399 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20400 if test "${ac_cv_type_size_t+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 $ac_includes_default
20415 if (sizeof (size_t))
20421 rm -f conftest.$ac_objext
20422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20423 (eval $ac_compile) 2>conftest.er1
20425 grep -v '^ *+' conftest.er1 >conftest.err
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try='test -z "$ac_c_werror_flag"
20431 || test ! -s conftest.err'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; } &&
20437 { ac_try='test -s conftest.$ac_objext'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 ac_cv_type_size_t=yes
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20448 ac_cv_type_size_t=no
20450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20452 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20453 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20454 if test $ac_cv_type_size_t = yes; then
20458 cat >>confdefs.h <<_ACEOF
20459 @%:@define size_t unsigned
20465 echo "$as_me:$LINENO: checking for working memcmp" >&5
20466 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20467 if test "${ac_cv_func_memcmp_working+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 if test "$cross_compiling" = yes; then
20471 ac_cv_func_memcmp_working=no
20473 cat >conftest.$ac_ext <<_ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 $ac_includes_default
20484 /* Some versions of memcmp are not 8-bit clean. */
20485 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20486 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20489 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20490 or more and with at least one buffer not starting on a 4-byte boundary.
20491 William Lewis provided this test program. */
20496 for (i = 0; i < 4; i++)
20500 strcpy (a, "--------01111111");
20501 strcpy (b, "--------10000000");
20502 if (memcmp (a, b, 16) >= 0)
20512 rm -f conftest$ac_exeext
20513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20514 (eval $ac_link) 2>&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519 (eval $ac_try) 2>&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; }; then
20523 ac_cv_func_memcmp_working=yes
20525 echo "$as_me: program exited with status $ac_status" >&5
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20529 ( exit $ac_status )
20530 ac_cv_func_memcmp_working=no
20532 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20535 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20536 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20537 test $ac_cv_func_memcmp_working = no && case $LIB@&t@OBJS in
20538 "memcmp.$ac_objext" | \
20539 *" memcmp.$ac_objext" | \
20540 "memcmp.$ac_objext "* | \
20541 *" memcmp.$ac_objext "* ) ;;
20542 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext" ;;
20548 for ac_header in stdlib.h unistd.h
20550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20552 echo "$as_me:$LINENO: checking for $ac_header" >&5
20553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20560 # Is the header compilable?
20561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20563 cat >conftest.$ac_ext <<_ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569 $ac_includes_default
20570 @%:@include <$ac_header>
20572 rm -f conftest.$ac_objext
20573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20574 (eval $ac_compile) 2>conftest.er1
20576 grep -v '^ *+' conftest.er1 >conftest.err
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag"
20582 || test ! -s conftest.err'
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); }; } &&
20588 { ac_try='test -s conftest.$ac_objext'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_header_compiler=yes
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 ac_header_compiler=no
20601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20603 echo "${ECHO_T}$ac_header_compiler" >&6
20605 # Is the header present?
20606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20608 cat >conftest.$ac_ext <<_ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 @%:@include <$ac_header>
20616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20619 grep -v '^ *+' conftest.er1 >conftest.err
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } >/dev/null; then
20624 if test -s conftest.err; then
20625 ac_cpp_err=$ac_c_preproc_warn_flag
20626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20633 if test -z "$ac_cpp_err"; then
20634 ac_header_preproc=yes
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639 ac_header_preproc=no
20641 rm -f conftest.err conftest.$ac_ext
20642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20643 echo "${ECHO_T}$ac_header_preproc" >&6
20645 # So? What about this header?
20646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20652 ac_header_preproc=yes
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20669 @%:@@%:@ ------------------------------------------ @%:@@%:@
20670 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
20671 @%:@@%:@ ------------------------------------------ @%:@@%:@
20674 sed "s/^/$as_me: WARNING: /" >&2
20677 echo "$as_me:$LINENO: checking for $ac_header" >&5
20678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 eval "$as_ac_Header=\$ac_header_preproc"
20684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20698 for ac_func in getpagesize
20700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20701 echo "$as_me:$LINENO: checking for $ac_func" >&5
20702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20703 if eval "test \"\${$as_ac_var+set}\" = set"; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 cat >conftest.$ac_ext <<_ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20714 #define $ac_func innocuous_$ac_func
20716 /* System header to define __stub macros and hopefully few prototypes,
20717 which can conflict with char $ac_func (); below.
20718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20719 <limits.h> exists even on freestanding compilers. */
20722 # include <limits.h>
20724 # include <assert.h>
20729 /* Override any gcc2 internal prototype to avoid an error. */
20734 /* We use char because int might match the return type of a gcc2
20735 builtin and then its argument prototype would still apply. */
20737 /* The GNU C library defines this for functions which it implements
20738 to always fail with ENOSYS. Some functions are actually named
20739 something starting with __ and the normal name is an alias. */
20740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20743 char (*f) () = $ac_func;
20752 return f != $ac_func;
20757 rm -f conftest.$ac_objext conftest$ac_exeext
20758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20759 (eval $ac_link) 2>conftest.er1
20761 grep -v '^ *+' conftest.er1 >conftest.err
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } &&
20766 { ac_try='test -z "$ac_c_werror_flag"
20767 || test ! -s conftest.err'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; } &&
20773 { ac_try='test -s conftest$ac_exeext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 eval "$as_ac_var=yes"
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 eval "$as_ac_var=no"
20786 rm -f conftest.err conftest.$ac_objext \
20787 conftest$ac_exeext conftest.$ac_ext
20789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20791 if test `eval echo '${'$as_ac_var'}'` = yes; then
20792 cat >>confdefs.h <<_ACEOF
20793 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20799 echo "$as_me:$LINENO: checking for working mmap" >&5
20800 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20801 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20804 if test "$cross_compiling" = yes; then
20805 ac_cv_func_mmap_fixed_mapped=no
20807 cat >conftest.$ac_ext <<_ACEOF
20810 cat confdefs.h >>conftest.$ac_ext
20811 cat >>conftest.$ac_ext <<_ACEOF
20812 /* end confdefs.h. */
20813 $ac_includes_default
20814 /* malloc might have been renamed as rpl_malloc. */
20817 /* Thanks to Mike Haertel and Jim Avera for this test.
20818 Here is a matrix of mmap possibilities:
20819 mmap private not fixed
20820 mmap private fixed at somewhere currently unmapped
20821 mmap private fixed at somewhere already mapped
20822 mmap shared not fixed
20823 mmap shared fixed at somewhere currently unmapped
20824 mmap shared fixed at somewhere already mapped
20825 For private mappings, we should verify that changes cannot be read()
20826 back from the file, nor mmap's back from the file at a different
20827 address. (There have been systems where private was not correctly
20828 implemented like the infamous i386 svr4.0, and systems where the
20829 VM page cache was not coherent with the file system buffer cache
20830 like early versions of FreeBSD and possibly contemporary NetBSD.)
20831 For shared mappings, we should conversely verify that changes get
20832 propagated back to all the places they're supposed to be.
20834 Grep wants private fixed already mapped.
20835 The main things grep needs to know about mmap are:
20836 * does it exist and is it safe to write into the mmap'd area
20837 * how to use it (BSD variants) */
20840 #include <sys/mman.h>
20842 #if !STDC_HEADERS && !HAVE_STDLIB_H
20846 /* This mess was copied from the GNU getpagesize.h. */
20847 #if !HAVE_GETPAGESIZE
20848 /* Assume that all systems that can run configure have sys/param.h. */
20849 # if !HAVE_SYS_PARAM_H
20850 # define HAVE_SYS_PARAM_H 1
20853 # ifdef _SC_PAGESIZE
20854 # define getpagesize() sysconf(_SC_PAGESIZE)
20855 # else /* no _SC_PAGESIZE */
20856 # if HAVE_SYS_PARAM_H
20857 # include <sys/param.h>
20858 # ifdef EXEC_PAGESIZE
20859 # define getpagesize() EXEC_PAGESIZE
20860 # else /* no EXEC_PAGESIZE */
20862 # define getpagesize() NBPG * CLSIZE
20865 # endif /* no CLSIZE */
20866 # else /* no NBPG */
20868 # define getpagesize() NBPC
20869 # else /* no NBPC */
20871 # define getpagesize() PAGESIZE
20872 # endif /* PAGESIZE */
20873 # endif /* no NBPC */
20874 # endif /* no NBPG */
20875 # endif /* no EXEC_PAGESIZE */
20876 # else /* no HAVE_SYS_PARAM_H */
20877 # define getpagesize() 8192 /* punt totally */
20878 # endif /* no HAVE_SYS_PARAM_H */
20879 # endif /* no _SC_PAGESIZE */
20881 #endif /* no HAVE_GETPAGESIZE */
20886 char *data, *data2, *data3;
20890 pagesize = getpagesize ();
20892 /* First, make a file with some known garbage in it. */
20893 data = (char *) malloc (pagesize);
20896 for (i = 0; i < pagesize; ++i)
20897 *(data + i) = rand ();
20899 fd = creat ("conftest.mmap", 0600);
20902 if (write (fd, data, pagesize) != pagesize)
20906 /* Next, try to mmap the file at a fixed address which already has
20907 something else allocated at it. If we can, also make sure that
20908 we see the same garbage. */
20909 fd = open ("conftest.mmap", O_RDWR);
20912 data2 = (char *) malloc (2 * pagesize);
20915 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20916 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20917 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20919 for (i = 0; i < pagesize; ++i)
20920 if (*(data + i) != *(data2 + i))
20923 /* Finally, make sure that changes to the mapped area do not
20924 percolate back to the file as seen by read(). (This is a bug on
20925 some variants of i386 svr4.0.) */
20926 for (i = 0; i < pagesize; ++i)
20927 *(data2 + i) = *(data2 + i) + 1;
20928 data3 = (char *) malloc (pagesize);
20931 if (read (fd, data3, pagesize) != pagesize)
20933 for (i = 0; i < pagesize; ++i)
20934 if (*(data + i) != *(data3 + i))
20940 rm -f conftest$ac_exeext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942 (eval $ac_link) 2>&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
20951 ac_cv_func_mmap_fixed_mapped=yes
20953 echo "$as_me: program exited with status $ac_status" >&5
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ( exit $ac_status )
20958 ac_cv_func_mmap_fixed_mapped=no
20960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20963 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20964 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20965 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20967 cat >>confdefs.h <<\_ACEOF
20968 @%:@define HAVE_MMAP 1
20972 rm -f conftest.mmap
20977 RCPATH='c:\\\\Program Files\\\\chasen\\\\etc\\\\chasenrc'
20981 RCPATH="$sysconfdir/chasenrc"
20986 if test -n "${GCC}"; then
20987 CFLAGS="${CFLAGS} -Wall"
20990 ac_config_files="$ac_config_files Makefile chasen-config chasen/Makefile mkchadic/Makefile doc/Makefile lib/Makefile tests/Makefile chasen.spec"
20991 ac_config_commands="$ac_config_commands default"
20992 cat >confcache <<\_ACEOF
20993 # This file is a shell script that caches the results of configure
20994 # tests run on this system so they can be shared between configure
20995 # scripts and configure runs, see configure's option --config-cache.
20996 # It is not useful on other systems. If it contains results you don't
20997 # want to keep, you may remove or edit it.
20999 # config.status only pays attention to the cache file if you give it
21000 # the --recheck option to rerun configure.
21002 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21003 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21004 # following values.
21008 # The following way of writing the cache mishandles newlines in values,
21009 # but we know of no workaround that is simple, portable, and efficient.
21010 # So, don't put newlines in cache variables' values.
21011 # Ultrix sh set writes to stderr and can't be redirected directly,
21012 # and sets the high bit in the cache file unless we assign to the vars.
21015 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21017 # `set' does not quote correctly, so add quotes (double-quote
21018 # substitution turns \\\\ into \\, and sed turns \\ into \).
21021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21024 # `set' quotes correctly as required by POSIX, so do not add quotes.
21026 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21033 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21035 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21037 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21038 if test -w $cache_file; then
21039 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21040 cat confcache >$cache_file
21042 echo "not updating unwritable cache $cache_file"
21047 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21048 # Let make expand exec_prefix.
21049 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21051 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21052 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21053 # trailing colons and then remove the whole line if VPATH becomes empty
21054 # (actually we leave an empty line to preserve line numbers).
21055 if test "x$srcdir" = x.; then
21056 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21057 s/:*\$(srcdir):*/:/;
21058 s/:*\${srcdir}:*/:/;
21060 s/^\([^=]*=[ ]*\):*/\1/;
21066 DEFS=-DHAVE_CONFIG_H
21070 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21071 # 1. Remove the extension, and $U if already installed.
21072 ac_i=`echo "$ac_i" |
21073 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21075 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21076 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21078 LIB@&t@OBJS=$ac_libobjs
21080 LTLIBOBJS=$ac_ltlibobjs
21083 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21084 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21085 Usually this means the macro was only invoked conditionally." >&5
21086 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21087 Usually this means the macro was only invoked conditionally." >&2;}
21088 { (exit 1); exit 1; }; }
21090 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21091 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21092 Usually this means the macro was only invoked conditionally." >&5
21093 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21094 Usually this means the macro was only invoked conditionally." >&2;}
21095 { (exit 1); exit 1; }; }
21097 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21098 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21099 Usually this means the macro was only invoked conditionally." >&5
21100 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21101 Usually this means the macro was only invoked conditionally." >&2;}
21102 { (exit 1); exit 1; }; }
21104 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21105 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21106 Usually this means the macro was only invoked conditionally." >&5
21107 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21108 Usually this means the macro was only invoked conditionally." >&2;}
21109 { (exit 1); exit 1; }; }
21112 : ${CONFIG_STATUS=./config.status}
21113 ac_clean_files_save=$ac_clean_files
21114 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21115 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21116 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21117 cat >$CONFIG_STATUS <<_ACEOF
21119 # Generated by $as_me.
21120 # Run this file to recreate the current configuration.
21121 # Compiler output produced by configure, useful for debugging
21122 # configure, is in config.log if it exists.
21125 ac_cs_recheck=false
21127 SHELL=\${CONFIG_SHELL-$SHELL}
21130 cat >>$CONFIG_STATUS <<\_ACEOF
21131 ## --------------------- ##
21132 ## M4sh Initialization. ##
21133 ## --------------------- ##
21135 # Be Bourne compatible
21136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21139 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21140 # is contrary to our usage. Disable this feature.
21141 alias -g '${1+"$@"}'='"$@"'
21142 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21145 DUALCASE=1; export DUALCASE # for MKS sh
21147 # Support unset when possible.
21148 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21155 # Work around bugs in pre-3.0 UWIN ksh.
21156 $as_unset ENV MAIL MAILPATH
21163 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21164 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21165 LC_TELEPHONE LC_TIME
21167 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21168 eval $as_var=C; export $as_var
21174 # Required to use basename.
21175 if expr a : '\(a\)' >/dev/null 2>&1; then
21181 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21182 as_basename=basename
21188 # Name of the executable.
21189 as_me=`$as_basename "$0" ||
21190 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21191 X"$0" : 'X\(//\)$' \| \
21192 X"$0" : 'X\(/\)$' \| \
21193 . : '\(.\)' 2>/dev/null ||
21195 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21196 /^X\/\(\/\/\)$/{ s//\1/; q; }
21197 /^X\/\(\/\).*/{ s//\1/; q; }
21201 # PATH needs CR, and LINENO needs CR and PATH.
21202 # Avoid depending upon Character Ranges.
21203 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21206 as_cr_digits='0123456789'
21207 as_cr_alnum=$as_cr_Letters$as_cr_digits
21209 # The user is always right.
21210 if test "${PATH_SEPARATOR+set}" != set; then
21211 echo "#! /bin/sh" >conf$$.sh
21212 echo "exit 0" >>conf$$.sh
21214 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21223 as_lineno_1=$LINENO
21224 as_lineno_2=$LINENO
21225 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21226 test "x$as_lineno_1" != "x$as_lineno_2" &&
21227 test "x$as_lineno_3" = "x$as_lineno_2" || {
21228 # Find who we are. Look in the path if we contain no path at all
21231 *[\\/]* ) as_myself=$0 ;;
21232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21233 for as_dir in $PATH
21236 test -z "$as_dir" && as_dir=.
21237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21242 # We did not find ourselves, most probably we were run as `sh COMMAND'
21243 # in which case we are not to be found in the path.
21244 if test "x$as_myself" = x; then
21247 if test ! -f "$as_myself"; then
21248 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21249 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21250 { (exit 1); exit 1; }; }
21252 case $CONFIG_SHELL in
21254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21255 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21258 test -z "$as_dir" && as_dir=.
21259 for as_base in sh bash ksh sh5; do
21262 if ("$as_dir/$as_base" -c '
21263 as_lineno_1=$LINENO
21264 as_lineno_2=$LINENO
21265 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21266 test "x$as_lineno_1" != "x$as_lineno_2" &&
21267 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21268 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21269 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21270 CONFIG_SHELL=$as_dir/$as_base
21271 export CONFIG_SHELL
21272 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21280 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21281 # uniformly replaced by the line number. The first 'sed' inserts a
21282 # line-number line before each line; the second 'sed' does the real
21283 # work. The second script uses 'N' to pair each line-number line
21284 # with the numbered line, and appends trailing '-' during
21285 # substitution so that $LINENO is not a special case at line end.
21286 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21287 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21288 sed '=' <$as_myself |
21293 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21296 s,^['$as_cr_digits']*\n,,
21297 ' >$as_me.lineno &&
21298 chmod +x $as_me.lineno ||
21299 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21300 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21301 { (exit 1); exit 1; }; }
21303 # Don't try to exec as it changes $[0], causing all sort of problems
21304 # (the dirname of $[0] is not the place where we might find the
21305 # original and so on. Autoconf is especially sensible to this).
21307 # Exit status is that of the last command.
21312 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21313 *c*,-n*) ECHO_N= ECHO_C='
21315 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21316 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21319 if expr a : '\(a\)' >/dev/null 2>&1; then
21325 rm -f conf$$ conf$$.exe conf$$.file
21327 if ln -s conf$$.file conf$$ 2>/dev/null; then
21328 # We could just check for DJGPP; but this test a) works b) is more generic
21329 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21330 if test -f conf$$.exe; then
21331 # Don't use ln at all; we don't have any links
21336 elif ln conf$$.file conf$$ 2>/dev/null; then
21341 rm -f conf$$ conf$$.exe conf$$.file
21343 if mkdir -p . 2>/dev/null; then
21346 test -d ./-p && rmdir ./-p
21350 as_executable_p="test -f"
21352 # Sed expression to map a string onto a valid CPP name.
21353 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21355 # Sed expression to map a string onto a valid variable name.
21356 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21360 # We need space, tab and new line, in precisely that order.
21370 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21371 # report actual input values of CONFIG_FILES etc. instead of their
21372 # values after options handling. Logging --version etc. is OK.
21376 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21377 @%:@@%:@ Running $as_me. @%:@@%:@
21382 This file was extended by $as_me, which was
21383 generated by GNU Autoconf 2.59. Invocation command line was
21385 CONFIG_FILES = $CONFIG_FILES
21386 CONFIG_HEADERS = $CONFIG_HEADERS
21387 CONFIG_LINKS = $CONFIG_LINKS
21388 CONFIG_COMMANDS = $CONFIG_COMMANDS
21392 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21396 # Files that config.status was made for.
21397 if test -n "$ac_config_files"; then
21398 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21401 if test -n "$ac_config_headers"; then
21402 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21405 if test -n "$ac_config_links"; then
21406 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21409 if test -n "$ac_config_commands"; then
21410 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21413 cat >>$CONFIG_STATUS <<\_ACEOF
21416 \`$as_me' instantiates files from templates according to the
21417 current configuration.
21419 Usage: $0 [OPTIONS] [FILE]...
21421 -h, --help print this help, then exit
21422 -V, --version print version number, then exit
21423 -q, --quiet do not print progress messages
21424 -d, --debug don't remove temporary files
21425 --recheck update $as_me by reconfiguring in the same conditions
21426 --file=FILE[:TEMPLATE]
21427 instantiate the configuration file FILE
21428 --header=FILE[:TEMPLATE]
21429 instantiate the configuration header FILE
21431 Configuration files:
21434 Configuration headers:
21437 Configuration commands:
21440 Report bugs to <bug-autoconf@gnu.org>."
21443 cat >>$CONFIG_STATUS <<_ACEOF
21446 configured by $0, generated by GNU Autoconf 2.59,
21447 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21449 Copyright (C) 2003 Free Software Foundation, Inc.
21450 This config.status script is free software; the Free Software Foundation
21451 gives unlimited permission to copy, distribute and modify it."
21456 cat >>$CONFIG_STATUS <<\_ACEOF
21457 # If no file are specified by the user, then we need to provide default
21458 # value. By we need to know if files were specified by the user.
21464 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21465 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21473 *) # This is not an option, so the user has probably given explicit
21476 ac_need_defaults=false;;
21480 # Handling of the options.
21482 cat >>$CONFIG_STATUS <<\_ACEOF
21483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21485 --version | --vers* | -V )
21486 echo "$ac_cs_version"; exit 0 ;;
21488 # Conflict between --help and --header
21489 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21490 Try \`$0 --help' for more information." >&5
21491 echo "$as_me: error: ambiguous option: $1
21492 Try \`$0 --help' for more information." >&2;}
21493 { (exit 1); exit 1; }; };;
21494 --help | --hel | -h )
21495 echo "$ac_cs_usage"; exit 0 ;;
21496 --debug | --d* | -d )
21498 --file | --fil | --fi | --f )
21500 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21501 ac_need_defaults=false;;
21502 --header | --heade | --head | --hea )
21504 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21505 ac_need_defaults=false;;
21506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21507 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21510 # This is an error.
21511 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21512 Try \`$0 --help' for more information." >&5
21513 echo "$as_me: error: unrecognized option: $1
21514 Try \`$0 --help' for more information." >&2;}
21515 { (exit 1); exit 1; }; } ;;
21517 *) ac_config_targets="$ac_config_targets $1" ;;
21523 ac_configure_extra_args=
21525 if $ac_cs_silent; then
21527 ac_configure_extra_args="$ac_configure_extra_args --silent"
21531 cat >>$CONFIG_STATUS <<_ACEOF
21532 if \$ac_cs_recheck; then
21533 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21534 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21539 cat >>$CONFIG_STATUS <<_ACEOF
21541 # INIT-COMMANDS section.
21544 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21550 cat >>$CONFIG_STATUS <<\_ACEOF
21551 for ac_config_target in $ac_config_targets
21553 case "$ac_config_target" in
21554 # Handling of arguments.
21555 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21556 "chasen-config" ) CONFIG_FILES="$CONFIG_FILES chasen-config" ;;
21557 "chasen/Makefile" ) CONFIG_FILES="$CONFIG_FILES chasen/Makefile" ;;
21558 "mkchadic/Makefile" ) CONFIG_FILES="$CONFIG_FILES mkchadic/Makefile" ;;
21559 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21560 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21561 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21562 "chasen.spec" ) CONFIG_FILES="$CONFIG_FILES chasen.spec" ;;
21563 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21564 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21565 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21566 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21567 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21568 { (exit 1); exit 1; }; };;
21572 # If the user did not use the arguments to specify the items to instantiate,
21573 # then the envvar interface is used. Set only those that are not.
21574 # We use the long form for the default assignment because of an extremely
21575 # bizarre bug on SunOS 4.1.3.
21576 if $ac_need_defaults; then
21577 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21578 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21579 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21582 # Have a temporary directory for convenience. Make it in the build tree
21583 # simply because there is no reason to put it here, and in addition,
21584 # creating and moving files from /tmp can sometimes cause problems.
21585 # Create a temporary directory, and hook for its removal unless debugging.
21588 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21589 trap '{ (exit 1); exit 1; }' 1 2 13 15
21592 # Create a (secure) tmp directory for tmp files.
21595 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21596 test -n "$tmp" && test -d "$tmp"
21599 tmp=./confstat$$-$RANDOM
21600 (umask 077 && mkdir $tmp)
21603 echo "$me: cannot create a temporary directory in ." >&2
21604 { (exit 1); exit 1; }
21609 cat >>$CONFIG_STATUS <<_ACEOF
21612 # CONFIG_FILES section.
21615 # No need to generate the scripts if there are no CONFIG_FILES.
21616 # This happens for instance when ./config.status config.h
21617 if test -n "\$CONFIG_FILES"; then
21618 # Protect against being on the right side of a sed subst in config.status.
21619 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21620 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21621 s,@SHELL@,$SHELL,;t t
21622 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21623 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21624 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21625 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21626 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21627 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21628 s,@exec_prefix@,$exec_prefix,;t t
21629 s,@prefix@,$prefix,;t t
21630 s,@program_transform_name@,$program_transform_name,;t t
21631 s,@bindir@,$bindir,;t t
21632 s,@sbindir@,$sbindir,;t t
21633 s,@libexecdir@,$libexecdir,;t t
21634 s,@datadir@,$datadir,;t t
21635 s,@sysconfdir@,$sysconfdir,;t t
21636 s,@sharedstatedir@,$sharedstatedir,;t t
21637 s,@localstatedir@,$localstatedir,;t t
21638 s,@libdir@,$libdir,;t t
21639 s,@includedir@,$includedir,;t t
21640 s,@oldincludedir@,$oldincludedir,;t t
21641 s,@infodir@,$infodir,;t t
21642 s,@mandir@,$mandir,;t t
21643 s,@build_alias@,$build_alias,;t t
21644 s,@host_alias@,$host_alias,;t t
21645 s,@target_alias@,$target_alias,;t t
21646 s,@DEFS@,$DEFS,;t t
21647 s,@ECHO_C@,$ECHO_C,;t t
21648 s,@ECHO_N@,$ECHO_N,;t t
21649 s,@ECHO_T@,$ECHO_T,;t t
21650 s,@LIBS@,$LIBS,;t t
21651 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21652 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21653 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21654 s,@CYGPATH_W@,$CYGPATH_W,;t t
21655 s,@PACKAGE@,$PACKAGE,;t t
21656 s,@VERSION@,$VERSION,;t t
21657 s,@ACLOCAL@,$ACLOCAL,;t t
21658 s,@AUTOCONF@,$AUTOCONF,;t t
21659 s,@AUTOMAKE@,$AUTOMAKE,;t t
21660 s,@AUTOHEADER@,$AUTOHEADER,;t t
21661 s,@MAKEINFO@,$MAKEINFO,;t t
21662 s,@AMTAR@,$AMTAR,;t t
21663 s,@install_sh@,$install_sh,;t t
21664 s,@STRIP@,$STRIP,;t t
21665 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21666 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21667 s,@mkdir_p@,$mkdir_p,;t t
21669 s,@SET_MAKE@,$SET_MAKE,;t t
21670 s,@am__leading_dot@,$am__leading_dot,;t t
21671 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21672 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21673 s,@MAINT@,$MAINT,;t t
21675 s,@CFLAGS@,$CFLAGS,;t t
21676 s,@LDFLAGS@,$LDFLAGS,;t t
21677 s,@CPPFLAGS@,$CPPFLAGS,;t t
21678 s,@ac_ct_CC@,$ac_ct_CC,;t t
21679 s,@EXEEXT@,$EXEEXT,;t t
21680 s,@OBJEXT@,$OBJEXT,;t t
21681 s,@DEPDIR@,$DEPDIR,;t t
21682 s,@am__include@,$am__include,;t t
21683 s,@am__quote@,$am__quote,;t t
21684 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21685 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21686 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21687 s,@CCDEPMODE@,$CCDEPMODE,;t t
21688 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21689 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21691 s,@CXXFLAGS@,$CXXFLAGS,;t t
21692 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21693 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21694 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21695 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21696 s,@build@,$build,;t t
21697 s,@build_cpu@,$build_cpu,;t t
21698 s,@build_vendor@,$build_vendor,;t t
21699 s,@build_os@,$build_os,;t t
21700 s,@host@,$host,;t t
21701 s,@host_cpu@,$host_cpu,;t t
21702 s,@host_vendor@,$host_vendor,;t t
21703 s,@host_os@,$host_os,;t t
21704 s,@EGREP@,$EGREP,;t t
21705 s,@LN_S@,$LN_S,;t t
21706 s,@ECHO@,$ECHO,;t t
21708 s,@ac_ct_AR@,$ac_ct_AR,;t t
21709 s,@RANLIB@,$RANLIB,;t t
21710 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21712 s,@CXXCPP@,$CXXCPP,;t t
21714 s,@FFLAGS@,$FFLAGS,;t t
21715 s,@ac_ct_F77@,$ac_ct_F77,;t t
21716 s,@LIBTOOL@,$LIBTOOL,;t t
21717 s,@LTVERSION@,$LTVERSION,;t t
21718 s,@ICONV_CFLAGS@,$ICONV_CFLAGS,;t t
21719 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
21720 s,@RCPATH@,$RCPATH,;t t
21721 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21726 cat >>$CONFIG_STATUS <<\_ACEOF
21727 # Split the substitutions into bite-sized pieces for seds with
21728 # small command number limits, like on Digital OSF/1 and HP-UX.
21729 ac_max_sed_lines=48
21730 ac_sed_frag=1 # Number of current file.
21731 ac_beg=1 # First line for current file.
21732 ac_end=$ac_max_sed_lines # Line after last line for current file.
21735 while $ac_more_lines; do
21736 if test $ac_beg -gt 1; then
21737 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21739 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21741 if test ! -s $tmp/subs.frag; then
21742 ac_more_lines=false
21744 # The purpose of the label and of the branching condition is to
21745 # speed up the sed processing (if there are no `@' at all, there
21746 # is no need to browse any of the substitutions).
21747 # These are the two extra sed commands mentioned above.
21749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21750 if test -z "$ac_sed_cmds"; then
21751 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21753 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21755 ac_sed_frag=`expr $ac_sed_frag + 1`
21757 ac_end=`expr $ac_end + $ac_max_sed_lines`
21760 if test -z "$ac_sed_cmds"; then
21763 fi # test -n "$CONFIG_FILES"
21766 cat >>$CONFIG_STATUS <<\_ACEOF
21767 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21770 - | *:- | *:-:* ) # input from stdin
21772 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21774 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21776 * ) ac_file_in=$ac_file.in ;;
21779 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21780 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21782 X"$ac_file" : 'X\(//\)[^/]' \| \
21783 X"$ac_file" : 'X\(//\)$' \| \
21784 X"$ac_file" : 'X\(/\)' \| \
21785 . : '\(.\)' 2>/dev/null ||
21787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21789 /^X\(\/\/\)$/{ s//\1/; q; }
21790 /^X\(\/\).*/{ s//\1/; q; }
21792 { if $as_mkdir_p; then
21797 while test ! -d "$as_dir"; do
21798 as_dirs="$as_dir $as_dirs"
21799 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21801 X"$as_dir" : 'X\(//\)[^/]' \| \
21802 X"$as_dir" : 'X\(//\)$' \| \
21803 X"$as_dir" : 'X\(/\)' \| \
21804 . : '\(.\)' 2>/dev/null ||
21806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21808 /^X\(\/\/\)$/{ s//\1/; q; }
21809 /^X\(\/\).*/{ s//\1/; q; }
21812 test ! -n "$as_dirs" || mkdir $as_dirs
21813 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21815 { (exit 1); exit 1; }; }; }
21819 if test "$ac_dir" != .; then
21820 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21821 # A "../" for each directory in $ac_dir_suffix.
21822 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21824 ac_dir_suffix= ac_top_builddir=
21828 .) # No --srcdir option. We are building in place.
21830 if test -z "$ac_top_builddir"; then
21833 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21835 [\\/]* | ?:[\\/]* ) # Absolute path.
21836 ac_srcdir=$srcdir$ac_dir_suffix;
21837 ac_top_srcdir=$srcdir ;;
21838 *) # Relative path.
21839 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21840 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21843 # Do not use `cd foo && pwd` to compute absolute paths, because
21844 # the directories may not exist.
21846 .) ac_abs_builddir="$ac_dir";;
21849 .) ac_abs_builddir=`pwd`;;
21850 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21851 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21854 case $ac_abs_builddir in
21855 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21857 case ${ac_top_builddir}. in
21858 .) ac_abs_top_builddir=$ac_abs_builddir;;
21859 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21860 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21863 case $ac_abs_builddir in
21864 .) ac_abs_srcdir=$ac_srcdir;;
21867 .) ac_abs_srcdir=$ac_abs_builddir;;
21868 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21869 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21872 case $ac_abs_builddir in
21873 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21875 case $ac_top_srcdir in
21876 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21877 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21878 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21884 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21885 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21888 if test x"$ac_file" != x-; then
21889 { echo "$as_me:$LINENO: creating $ac_file" >&5
21890 echo "$as_me: creating $ac_file" >&6;}
21893 # Let's still pretend it is `configure' which instantiates (i.e., don't
21894 # use $as_me), people would be surprised to read:
21895 # /* config.h. Generated by config.status. */
21896 if test x"$ac_file" = x-; then
21899 configure_input="$ac_file. "
21901 configure_input=$configure_input"Generated from `echo $ac_file_in |
21902 sed 's,.*/,,'` by configure."
21904 # First look for the input files in the build tree, otherwise in the
21906 ac_file_inputs=`IFS=:
21907 for f in $ac_file_in; do
21909 -) echo $tmp/stdin ;;
21911 # Absolute (can't be DOS-style, as IFS=:)
21912 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21913 echo "$as_me: error: cannot find input file: $f" >&2;}
21914 { (exit 1); exit 1; }; }
21917 if test -f "$f"; then
21920 elif test -f "$srcdir/$f"; then
21925 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21926 echo "$as_me: error: cannot find input file: $f" >&2;}
21927 { (exit 1); exit 1; }; }
21930 done` || { (exit 1); exit 1; }
21932 cat >>$CONFIG_STATUS <<_ACEOF
21936 cat >>$CONFIG_STATUS <<\_ACEOF
21938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21939 s,@configure_input@,$configure_input,;t t
21940 s,@srcdir@,$ac_srcdir,;t t
21941 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21942 s,@top_srcdir@,$ac_top_srcdir,;t t
21943 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21944 s,@builddir@,$ac_builddir,;t t
21945 s,@abs_builddir@,$ac_abs_builddir,;t t
21946 s,@top_builddir@,$ac_top_builddir,;t t
21947 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21948 s,@INSTALL@,$ac_INSTALL,;t t
21949 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21951 if test x"$ac_file" != x-; then
21952 mv $tmp/out $ac_file
21960 cat >>$CONFIG_STATUS <<\_ACEOF
21963 # CONFIG_HEADER section.
21966 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21967 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21969 # ac_d sets the value in "#define NAME VALUE" lines.
21970 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21971 ac_dB='[ ].*$,\1#\2'
21974 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21975 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21976 ac_uB='$,\1#\2define\3'
21980 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21981 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21983 - | *:- | *:-:* ) # input from stdin
21985 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21986 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21987 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21989 * ) ac_file_in=$ac_file.in ;;
21992 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21993 echo "$as_me: creating $ac_file" >&6;}
21995 # First look for the input files in the build tree, otherwise in the
21997 ac_file_inputs=`IFS=:
21998 for f in $ac_file_in; do
22000 -) echo $tmp/stdin ;;
22002 # Absolute (can't be DOS-style, as IFS=:)
22003 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22004 echo "$as_me: error: cannot find input file: $f" >&2;}
22005 { (exit 1); exit 1; }; }
22006 # Do quote $f, to prevent DOS paths from being IFS'd.
22009 if test -f "$f"; then
22012 elif test -f "$srcdir/$f"; then
22017 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22018 echo "$as_me: error: cannot find input file: $f" >&2;}
22019 { (exit 1); exit 1; }; }
22022 done` || { (exit 1); exit 1; }
22023 # Remove the trailing spaces.
22024 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22028 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22029 # `conftest.undefs', that substitutes the proper values into
22030 # config.h.in to produce config.h. The first handles `#define'
22031 # templates, and the second `#undef' templates.
22032 # And first: Protect against being on the right side of a sed subst in
22033 # config.status. Protect against being in an unquoted here document
22034 # in config.status.
22035 rm -f conftest.defines conftest.undefs
22036 # Using a here document instead of a string reduces the quoting nightmare.
22037 # Putting comments in sed scripts is not portable.
22039 # `end' is used to avoid that the second main sed command (meant for
22040 # 0-ary CPP macros) applies to n-ary macro definitions.
22041 # See the Autoconf documentation for `clear'.
22042 cat >confdef2sed.sed <<\_ACEOF
22047 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22049 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22052 # If some macros were called several times there might be several times
22053 # the same #defines, which is useless. Nevertheless, we may not want to
22054 # sort them, since we want the *last* AC-DEFINE to be honored.
22055 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22056 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22057 rm -f confdef2sed.sed
22059 # This sed command replaces #undef with comments. This is necessary, for
22060 # example, in the case of _POSIX_SOURCE, which is predefined and required
22061 # on some systems where configure will not decide to define it.
22062 cat >>conftest.undefs <<\_ACEOF
22063 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22066 # Break up conftest.defines because some shells have a limit on the size
22067 # of here documents, and old seds have small limits too (100 cmds).
22068 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22069 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22070 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22071 echo ' :' >>$CONFIG_STATUS
22072 rm -f conftest.tail
22073 while grep . conftest.defines >/dev/null
22075 # Write a limited-size here document to $tmp/defines.sed.
22076 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22077 # Speed up: don't consider the non `#define' lines.
22078 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22079 # Work around the forget-to-reset-the-flag bug.
22080 echo 't clr' >>$CONFIG_STATUS
22081 echo ': clr' >>$CONFIG_STATUS
22082 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22084 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22086 mv $tmp/out $tmp/in
22088 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22089 rm -f conftest.defines
22090 mv conftest.tail conftest.defines
22092 rm -f conftest.defines
22093 echo ' fi # grep' >>$CONFIG_STATUS
22094 echo >>$CONFIG_STATUS
22096 # Break up conftest.undefs because some shells have a limit on the size
22097 # of here documents, and old seds have small limits too (100 cmds).
22098 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22099 rm -f conftest.tail
22100 while grep . conftest.undefs >/dev/null
22102 # Write a limited-size here document to $tmp/undefs.sed.
22103 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22104 # Speed up: don't consider the non `#undef'
22105 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22106 # Work around the forget-to-reset-the-flag bug.
22107 echo 't clr' >>$CONFIG_STATUS
22108 echo ': clr' >>$CONFIG_STATUS
22109 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22111 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22113 mv $tmp/out $tmp/in
22115 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22116 rm -f conftest.undefs
22117 mv conftest.tail conftest.undefs
22119 rm -f conftest.undefs
22121 cat >>$CONFIG_STATUS <<\_ACEOF
22122 # Let's still pretend it is `configure' which instantiates (i.e., don't
22123 # use $as_me), people would be surprised to read:
22124 # /* config.h. Generated by config.status. */
22125 if test x"$ac_file" = x-; then
22126 echo "/* Generated by configure. */" >$tmp/config.h
22128 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22130 cat $tmp/in >>$tmp/config.h
22132 if test x"$ac_file" != x-; then
22133 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22134 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22135 echo "$as_me: $ac_file is unchanged" >&6;}
22137 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22139 X"$ac_file" : 'X\(//\)[^/]' \| \
22140 X"$ac_file" : 'X\(//\)$' \| \
22141 X"$ac_file" : 'X\(/\)' \| \
22142 . : '\(.\)' 2>/dev/null ||
22144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22146 /^X\(\/\/\)$/{ s//\1/; q; }
22147 /^X\(\/\).*/{ s//\1/; q; }
22149 { if $as_mkdir_p; then
22154 while test ! -d "$as_dir"; do
22155 as_dirs="$as_dir $as_dirs"
22156 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22158 X"$as_dir" : 'X\(//\)[^/]' \| \
22159 X"$as_dir" : 'X\(//\)$' \| \
22160 X"$as_dir" : 'X\(/\)' \| \
22161 . : '\(.\)' 2>/dev/null ||
22163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22165 /^X\(\/\/\)$/{ s//\1/; q; }
22166 /^X\(\/\).*/{ s//\1/; q; }
22169 test ! -n "$as_dirs" || mkdir $as_dirs
22170 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22171 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22172 { (exit 1); exit 1; }; }; }
22175 mv $tmp/config.h $ac_file
22179 rm -f $tmp/config.h
22181 # Compute $ac_file's index in $config_headers.
22183 for _am_header in $config_headers :; do
22184 case $_am_header in
22185 $ac_file | $ac_file:* )
22188 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22191 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22192 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22193 X$ac_file : 'X\(//\)[^/]' \| \
22194 X$ac_file : 'X\(//\)$' \| \
22195 X$ac_file : 'X\(/\)' \| \
22196 . : '\(.\)' 2>/dev/null ||
22198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22200 /^X\(\/\/\)$/{ s//\1/; q; }
22201 /^X\(\/\).*/{ s//\1/; q; }
22202 s/.*/./; q'`/stamp-h$_am_stamp_count
22205 cat >>$CONFIG_STATUS <<\_ACEOF
22208 # CONFIG_COMMANDS section.
22210 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22211 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22212 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22213 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22214 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22215 X"$ac_dest" : 'X\(//\)[^/]' \| \
22216 X"$ac_dest" : 'X\(//\)$' \| \
22217 X"$ac_dest" : 'X\(/\)' \| \
22218 . : '\(.\)' 2>/dev/null ||
22220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22222 /^X\(\/\/\)$/{ s//\1/; q; }
22223 /^X\(\/\).*/{ s//\1/; q; }
22225 { if $as_mkdir_p; then
22230 while test ! -d "$as_dir"; do
22231 as_dirs="$as_dir $as_dirs"
22232 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22234 X"$as_dir" : 'X\(//\)[^/]' \| \
22235 X"$as_dir" : 'X\(//\)$' \| \
22236 X"$as_dir" : 'X\(/\)' \| \
22237 . : '\(.\)' 2>/dev/null ||
22239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22241 /^X\(\/\/\)$/{ s//\1/; q; }
22242 /^X\(\/\).*/{ s//\1/; q; }
22245 test ! -n "$as_dirs" || mkdir $as_dirs
22246 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22247 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22248 { (exit 1); exit 1; }; }; }
22252 if test "$ac_dir" != .; then
22253 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22254 # A "../" for each directory in $ac_dir_suffix.
22255 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22257 ac_dir_suffix= ac_top_builddir=
22261 .) # No --srcdir option. We are building in place.
22263 if test -z "$ac_top_builddir"; then
22266 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22268 [\\/]* | ?:[\\/]* ) # Absolute path.
22269 ac_srcdir=$srcdir$ac_dir_suffix;
22270 ac_top_srcdir=$srcdir ;;
22271 *) # Relative path.
22272 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22273 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22276 # Do not use `cd foo && pwd` to compute absolute paths, because
22277 # the directories may not exist.
22279 .) ac_abs_builddir="$ac_dir";;
22282 .) ac_abs_builddir=`pwd`;;
22283 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22284 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22287 case $ac_abs_builddir in
22288 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22290 case ${ac_top_builddir}. in
22291 .) ac_abs_top_builddir=$ac_abs_builddir;;
22292 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22293 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22296 case $ac_abs_builddir in
22297 .) ac_abs_srcdir=$ac_srcdir;;
22300 .) ac_abs_srcdir=$ac_abs_builddir;;
22301 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22302 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22305 case $ac_abs_builddir in
22306 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22308 case $ac_top_srcdir in
22309 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22310 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22311 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22316 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22317 echo "$as_me: executing $ac_dest commands" >&6;}
22319 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22320 # Strip MF so we end up with the name of the file.
22321 mf=`echo "$mf" | sed -e 's/:.*$//'`
22322 # Check whether this is an Automake generated Makefile or not.
22323 # We used to match only the files named `Makefile.in', but
22324 # some people rename them; so instead we look at the file content.
22325 # Grep'ing the first line is not enough: some people post-process
22326 # each Makefile.in and add a new line on top of each file to say so.
22327 # So let's grep whole file.
22328 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22329 dirpart=`(dirname "$mf") 2>/dev/null ||
22330 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22331 X"$mf" : 'X\(//\)[^/]' \| \
22332 X"$mf" : 'X\(//\)$' \| \
22333 X"$mf" : 'X\(/\)' \| \
22334 . : '\(.\)' 2>/dev/null ||
22336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22338 /^X\(\/\/\)$/{ s//\1/; q; }
22339 /^X\(\/\).*/{ s//\1/; q; }
22344 grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
22345 # Extract the definition of DEP_FILES from the Makefile without
22347 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22348 test -z "$DEPDIR" && continue
22349 # When using ansi2knr, U may be empty or an underscore; expand it
22350 U=`sed -n 's/^U = //p' < "$mf"`
22351 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22352 # We invoke sed twice because it is the simplest approach to
22353 # changing $(DEPDIR) to its actual value in the expansion.
22354 for file in `sed -n '
22355 /^DEP_FILES = .*\\\\$/ {
22364 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22365 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22366 # Make sure the directory exists.
22367 test -f "$dirpart/$file" && continue
22368 fdir=`(dirname "$file") 2>/dev/null ||
22369 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22370 X"$file" : 'X\(//\)[^/]' \| \
22371 X"$file" : 'X\(//\)$' \| \
22372 X"$file" : 'X\(/\)' \| \
22373 . : '\(.\)' 2>/dev/null ||
22375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22377 /^X\(\/\/\)$/{ s//\1/; q; }
22378 /^X\(\/\).*/{ s//\1/; q; }
22380 { if $as_mkdir_p; then
22381 mkdir -p $dirpart/$fdir
22383 as_dir=$dirpart/$fdir
22385 while test ! -d "$as_dir"; do
22386 as_dirs="$as_dir $as_dirs"
22387 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22389 X"$as_dir" : 'X\(//\)[^/]' \| \
22390 X"$as_dir" : 'X\(//\)$' \| \
22391 X"$as_dir" : 'X\(/\)' \| \
22392 . : '\(.\)' 2>/dev/null ||
22394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22396 /^X\(\/\/\)$/{ s//\1/; q; }
22397 /^X\(\/\).*/{ s//\1/; q; }
22400 test ! -n "$as_dirs" || mkdir $as_dirs
22401 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22402 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22403 { (exit 1); exit 1; }; }; }
22405 # echo "creating $dirpart/$file"
22406 echo '# dummy' > "$dirpart/$file"
22410 default ) chmod +x chasen-config ;;
22415 cat >>$CONFIG_STATUS <<\_ACEOF
22417 { (exit 0); exit 0; }
22419 chmod +x $CONFIG_STATUS
22420 ac_clean_files=$ac_clean_files_save
22423 # configure is writing to config.log, and then calls config.status.
22424 # config.status does its own redirection, appending to config.log.
22425 # Unfortunately, on DOS this fails, as config.log is still kept open
22426 # by configure, so config.status won't be able to write to it; its
22427 # output is simply discarded. So we exec the FD to /dev/null,
22428 # effectively closing config.log, so it can be properly (re)opened and
22429 # appended to by config.status. When coming back to configure, we
22430 # need to make the FD available again.
22431 if test "$no_create" != yes; then
22433 ac_config_status_args=
22434 test "$silent" = yes &&
22435 ac_config_status_args="$ac_config_status_args --quiet"
22437 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22439 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22440 # would make configure fail if this is the last instruction.
22441 $ac_cs_success || { (exit 1); exit 1; }
22446 # removed the following entry from AC_OUTPUT
22447 # lib/Makefile.mingw32
22450 # mode:shell-script