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="src/aubio.h"
429 ac_default_prefix=/usr
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 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 AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG FFTWLIB_CFLAGS FFTWLIB_LIBS SNDLIB_CFLAGS SNDLIB_LIBS SAMPLERATE_CFLAGS SAMPLERATE_LIBS JACK_CFLAGS JACK_LIBS ALSA_CFLAGS ALSA_LIBS LADCCA_CFLAGS LADCCA_LIBS PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir LIBOBJS LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-debug[=value] compile with debug [default=no]
1028 --enable-warnme[=value] compile with all -W [default=yes]
1029 --disable-dependency-tracking Speeds up one-time builds
1030 --enable-dependency-tracking Do not reject slow dependency extractors
1031 --enable-shared[=PKGS]
1032 build shared libraries [default=yes]
1033 --enable-static[=PKGS]
1034 build static libraries [default=yes]
1035 --enable-fast-install[=PKGS]
1036 optimize for fast installation [default=yes]
1037 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --enable-fftw3f[=value] compile with fftw3f [default=no]
1039 --enable-jack[=value] compile with jack [default=no]
1040 --enable-alsa[=value] compile with alsa [default=no]
1041 --enable-ladcca[=value] compile with ladcca [default=no]
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1052 Some influential environment variables:
1053 CC C compiler command
1054 CFLAGS C compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
1060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
1062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1072 if test "$ac_init_help" = "recursive"; then
1073 # If there are subdirs, report their specific --help.
1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076 test -d $ac_dir || continue
1079 if test "$ac_dir" != .; then
1080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081 # A "../" for each directory in $ac_dir_suffix.
1082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 ac_dir_suffix= ac_top_builddir=
1088 .) # No --srcdir option. We are building in place.
1090 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 [\\/]* | ?:[\\/]* ) # Absolute path.
1096 ac_srcdir=$srcdir$ac_dir_suffix;
1097 ac_top_srcdir=$srcdir ;;
1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 # Do not use `cd foo && pwd` to compute absolute paths, because
1104 # the directories may not exist.
1106 .) ac_abs_builddir="$ac_dir";;
1109 .) ac_abs_builddir=`pwd`;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 case ${ac_top_builddir}. in
1118 .) ac_abs_top_builddir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 case $ac_abs_builddir in
1124 .) ac_abs_srcdir=$ac_srcdir;;
1127 .) ac_abs_srcdir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 case $ac_top_srcdir in
1136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 # Check for guested configure; otherwise get Cygnus style configure.
1144 if test -f $ac_srcdir/configure.gnu; then
1146 $SHELL $ac_srcdir/configure.gnu --help=recursive
1147 elif test -f $ac_srcdir/configure; then
1149 $SHELL $ac_srcdir/configure --help=recursive
1150 elif test -f $ac_srcdir/configure.ac ||
1151 test -f $ac_srcdir/configure.in; then
1153 $ac_configure --help
1155 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1165 Copyright (C) 2003 Free Software Foundation, Inc.
1166 This configure script is free software; the Free Software Foundation
1167 gives unlimited permission to copy, distribute and modify it.
1173 This file contains any messages produced by compilers while
1174 running configure, to aid debugging if configure makes a mistake.
1176 It was created by $as_me, which was
1177 generated by GNU Autoconf 2.59. Invocation command line was
1188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1197 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1198 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1201 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1202 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1203 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211 test -z "$as_dir" && as_dir=.
1212 echo "PATH: $as_dir"
1227 # Keep a trace of the command line.
1228 # Strip out --no-create and --no-recursion so they do not pile up.
1229 # Strip out --silent because we don't want to record it for future runs.
1230 # Also quote any args containing shell meta-characters.
1231 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_must_keep_next=false
1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253 if test $ac_must_keep_next = true; then
1254 ac_must_keep_next=false # Got value, back to normal.
1257 *=* | --config-cache | -C | -disable-* | --disable-* \
1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260 | -with-* | --with-* | -without-* | --without-* | --x)
1261 case "$ac_configure_args0 " in
1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 -* ) ac_must_keep_next=true ;;
1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269 # Get rid of the leading space.
1275 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278 # When interrupted or exit'd, cleanup temporary files, and complete
1279 # config.log. We remove comments because anyway the quotes in there
1280 # would cause problems or look ugly.
1281 # WARNING: Be sure not to use single quotes in there, as some shells,
1282 # such as our DU 5.0 friend, will then `close' the trap.
1283 trap 'exit_status=$?
1284 # Save into config.log some information that might help in debugging.
1289 ## ---------------- ##
1290 ## Cache variables. ##
1291 ## ---------------- ##
1294 # The following way of writing the cache mishandles newlines in values,
1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312 ## ----------------- ##
1313 ## Output variables. ##
1314 ## ----------------- ##
1317 for ac_var in $ac_subst_vars
1319 eval ac_val=$`echo $ac_var`
1320 echo "$ac_var='"'"'$ac_val'"'"'"
1324 if test -n "$ac_subst_files"; then
1331 for ac_var in $ac_subst_files
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1339 if test -s confdefs.h; then
1346 sed "/^$/d" confdefs.h | sort
1349 test "$ac_signal" != 0 &&
1350 echo "$as_me: caught signal $ac_signal"
1351 echo "$as_me: exit $exit_status"
1353 rm -f core *.core &&
1354 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357 for ac_signal in 1 2 13 15; do
1358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1363 rm -rf conftest* confdefs.h
1364 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367 # Predefined preprocessor variables.
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_NAME "$PACKAGE_NAME"
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_STRING "$PACKAGE_STRING"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394 # Let the site file select an alternate cache file if it wants to.
1395 # Prefer explicitly selected file to automatically selected ones.
1396 if test -z "$CONFIG_SITE"; then
1397 if test "x$prefix" != xNONE; then
1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 for ac_site_file in $CONFIG_SITE; do
1404 if test -r "$ac_site_file"; then
1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406 echo "$as_me: loading site script $ac_site_file" >&6;}
1407 sed 's/^/| /' "$ac_site_file" >&5
1412 if test -r "$cache_file"; then
1413 # Some versions of bash will fail to source /dev/null (special
1414 # files actually), so we avoid doing that.
1415 if test -f "$cache_file"; then
1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417 echo "$as_me: loading cache $cache_file" >&6;}
1419 [\\/]* | ?:[\\/]* ) . $cache_file;;
1420 *) . ./$cache_file;;
1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425 echo "$as_me: creating cache $cache_file" >&6;}
1429 # Check that the precious variables saved in the cache have kept the same
1431 ac_cache_corrupted=false
1432 for ac_var in `(set) 2>&1 |
1433 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435 eval ac_new_set=\$ac_env_${ac_var}_set
1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437 eval ac_new_val="\$ac_env_${ac_var}_value"
1438 case $ac_old_set,$ac_new_set in
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442 ac_cache_corrupted=: ;;
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1449 if test "x$ac_old_val" != "x$ac_new_val"; then
1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1453 echo "$as_me: former value: $ac_old_val" >&2;}
1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1455 echo "$as_me: current value: $ac_new_val" >&2;}
1456 ac_cache_corrupted=:
1459 # Pass precious variables to config.status.
1460 if test "$ac_new_set" = set; then
1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464 *) ac_arg=$ac_var=$ac_new_val ;;
1466 case " $ac_configure_args " in
1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 if $ac_cache_corrupted; then
1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477 { (exit 1); exit 1; }; }
1481 ac_cpp='$CPP $CPPFLAGS'
1482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506 AUBIO_VERSION=${AUBIO_MAJOR_VERSION}.${AUBIO_MINOR_VERSION}.${AUBIO_PATCH_VERSION}${AUBIO_VERSION_STATUS}
1507 VERSION=${AUBIO_VERSION}
1510 am__api_version="1.7"
1512 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1513 if test -f $ac_dir/install-sh; then
1515 ac_install_sh="$ac_aux_dir/install-sh -c"
1517 elif test -f $ac_dir/install.sh; then
1519 ac_install_sh="$ac_aux_dir/install.sh -c"
1521 elif test -f $ac_dir/shtool; then
1523 ac_install_sh="$ac_aux_dir/shtool install -c"
1527 if test -z "$ac_aux_dir"; then
1528 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1529 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1530 { (exit 1); exit 1; }; }
1532 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1533 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1534 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1536 # Find a good install program. We prefer a C program (faster),
1537 # so one script is as good as another. But avoid the broken or
1538 # incompatible versions:
1539 # SysV /etc/install, /usr/sbin/install
1540 # SunOS /usr/etc/install
1541 # IRIX /sbin/install
1543 # AmigaOS /C/install, which installs bootblocks on floppy discs
1544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # OS/2's system install, which has a completely different semantic
1548 # ./install, which can be erroneously created by make from ./install.sh.
1549 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1550 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1551 if test -z "$INSTALL"; then
1552 if test "${ac_cv_path_install+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 test -z "$as_dir" && as_dir=.
1560 # Account for people who put trailing slashes in PATH elements.
1562 ./ | .// | /cC/* | \
1563 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1564 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1567 # OSF1 and SCO ODT 3.0 have their own names for install.
1568 # Don't use installbsd from OSF since it installs stuff as root
1570 for ac_prog in ginstall scoinst install; do
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1573 if test $ac_prog = install &&
1574 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1575 # AIX install. It has an incompatible calling convention.
1577 elif test $ac_prog = install &&
1578 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1579 # program-specific install script used by HP pwplus--don't use.
1582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1594 if test "${ac_cv_path_install+set}" = set; then
1595 INSTALL=$ac_cv_path_install
1597 # As a last resort, use the slow shell script. We don't cache a
1598 # path for INSTALL within a source directory, because that will
1599 # break other packages using the cache if that directory is
1600 # removed, or if the path is relative.
1601 INSTALL=$ac_install_sh
1604 echo "$as_me:$LINENO: result: $INSTALL" >&5
1605 echo "${ECHO_T}$INSTALL" >&6
1607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1608 # It thinks the first close brace ends the variable substitution.
1609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1615 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1616 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1619 echo timestamp > conftest.file
1620 # Do `set' in a subshell so we don't clobber the current shell's
1621 # arguments. Must try -L first in case configure is actually a
1622 # symlink; some systems play weird games with the mod time of symlinks
1623 # (eg FreeBSD returns the mod time of the symlink's containing
1626 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1627 if test "$*" = "X"; then
1629 set X `ls -t $srcdir/configure conftest.file`
1632 if test "$*" != "X $srcdir/configure conftest.file" \
1633 && test "$*" != "X conftest.file $srcdir/configure"; then
1635 # If neither matched, then we have a broken ls. This can happen
1636 # if, for instance, CONFIG_SHELL is bash and it inherits a
1637 # broken ls alias from the environment. This has actually
1638 # happened. Such a system could not be considered "sane".
1639 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1640 alias in your environment" >&5
1641 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1642 alias in your environment" >&2;}
1643 { (exit 1); exit 1; }; }
1646 test "$2" = conftest.file
1652 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1653 Check your system clock" >&5
1654 echo "$as_me: error: newly created file is older than distributed files!
1655 Check your system clock" >&2;}
1656 { (exit 1); exit 1; }; }
1658 echo "$as_me:$LINENO: result: yes" >&5
1659 echo "${ECHO_T}yes" >&6
1660 test "$program_prefix" != NONE &&
1661 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1662 # Use a double $ so make ignores it.
1663 test "$program_suffix" != NONE &&
1664 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1665 # Double any \ or $. echo might interpret backslashes.
1666 # By default was `s,x,x', remove it if useless.
1667 cat <<\_ACEOF >conftest.sed
1668 s/[\\$]/&&/g;s/;s,x,x,$//
1670 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1674 # expand $ac_aux_dir to an absolute path
1675 am_aux_dir=`cd $ac_aux_dir && pwd`
1677 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1678 # Use eval to expand $SHELL
1679 if eval "$MISSING --run true"; then
1680 am_missing_run="$MISSING --run "
1683 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1684 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1687 for ac_prog in gawk mawk nawk awk
1689 # Extract the first word of "$ac_prog", so it can be a program name with args.
1690 set dummy $ac_prog; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_AWK+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 if test -n "$AWK"; then
1697 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_AWK="$ac_prog"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 if test -n "$AWK"; then
1717 echo "$as_me:$LINENO: result: $AWK" >&5
1718 echo "${ECHO_T}$AWK" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1724 test -n "$AWK" && break
1727 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1728 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1729 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1730 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 cat >conftest.make <<\_ACEOF
1735 @echo 'ac_maketemp="$(MAKE)"'
1737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1738 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1739 if test -n "$ac_maketemp"; then
1740 eval ac_cv_prog_make_${ac_make}_set=yes
1742 eval ac_cv_prog_make_${ac_make}_set=no
1746 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1747 echo "$as_me:$LINENO: result: yes" >&5
1748 echo "${ECHO_T}yes" >&6
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1753 SET_MAKE="MAKE=${MAKE-make}"
1756 rm -rf .tst 2>/dev/null
1757 mkdir .tst 2>/dev/null
1758 if test -d .tst; then
1763 rmdir .tst 2>/dev/null
1765 # test to see if srcdir already configured
1766 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1767 test -f $srcdir/config.status; then
1768 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1769 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1770 { (exit 1); exit 1; }; }
1773 # test whether we have cygpath
1774 if test -z "$CYGPATH_W"; then
1775 if (cygpath --version) >/dev/null 2>/dev/null; then
1776 CYGPATH_W='cygpath -w'
1783 # Define the identity of the package.
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE "$PACKAGE"
1793 cat >>confdefs.h <<_ACEOF
1794 #define VERSION "$VERSION"
1797 # Some tools Automake needs.
1799 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1802 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1805 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1808 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1811 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1814 AMTAR=${AMTAR-"${am_missing_run}tar"}
1816 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1818 # Installed binaries are usually stripped using `strip' when the user
1819 # run `make install-strip'. However `strip' might not be the right
1820 # tool to use in cross-compilation environments, therefore Automake
1821 # will honor the `STRIP' environment variable to overrule this program.
1822 if test "$cross_compiling" != no; then
1823 if test -n "$ac_tool_prefix"; then
1824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1825 set dummy ${ac_tool_prefix}strip; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_STRIP+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 if test -n "$STRIP"; then
1832 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 STRIP=$ac_cv_prog_STRIP
1851 if test -n "$STRIP"; then
1852 echo "$as_me:$LINENO: result: $STRIP" >&5
1853 echo "${ECHO_T}$STRIP" >&6
1855 echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1860 if test -z "$ac_cv_prog_STRIP"; then
1862 # Extract the first word of "strip", so it can be a program name with args.
1863 set dummy strip; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 if test -n "$ac_ct_STRIP"; then
1870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_ac_ct_STRIP="strip"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1890 if test -n "$ac_ct_STRIP"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1892 echo "${ECHO_T}$ac_ct_STRIP" >&6
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1900 STRIP="$ac_cv_prog_STRIP"
1904 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1906 # We need awk for the "check" target. The system "awk" is bad on
1914 CFLAGS="$CFLAGS -O2"
1916 # Check whether --enable-debug or --disable-debug was given.
1917 if test "${enable_debug+set}" = set; then
1918 enableval="$enable_debug"
1923 if test "$with_debug" = "yes"
1926 cat >>confdefs.h <<\_ACEOF
1933 # Check whether --enable-warnme or --disable-warnme was given.
1934 if test "${enable_warnme+set}" = set; then
1935 enableval="$enable_warnme"
1940 if test "$with_warnme" = "yes"
1942 ALL_CWARNINGS="-Wall -Werror -Wmissing-prototypes -Wmissing-declarations -Wno-char-subscripts -Wno-unknown-pragmas"
1943 CFLAGS="$CFLAGS $ALL_CWARNINGS"
1947 # Make sure we can run config.sub.
1948 $ac_config_sub sun4 >/dev/null 2>&1 ||
1949 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1950 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1951 { (exit 1); exit 1; }; }
1953 echo "$as_me:$LINENO: checking build system type" >&5
1954 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1955 if test "${ac_cv_build+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 ac_cv_build_alias=$build_alias
1959 test -z "$ac_cv_build_alias" &&
1960 ac_cv_build_alias=`$ac_config_guess`
1961 test -z "$ac_cv_build_alias" &&
1962 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1963 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1964 { (exit 1); exit 1; }; }
1965 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1966 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1967 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1968 { (exit 1); exit 1; }; }
1971 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1972 echo "${ECHO_T}$ac_cv_build" >&6
1974 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1975 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1976 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1979 echo "$as_me:$LINENO: checking host system type" >&5
1980 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1981 if test "${ac_cv_host+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 ac_cv_host_alias=$host_alias
1985 test -z "$ac_cv_host_alias" &&
1986 ac_cv_host_alias=$ac_cv_build_alias
1987 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1988 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1989 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1990 { (exit 1); exit 1; }; }
1993 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1994 echo "${ECHO_T}$ac_cv_host" >&6
1996 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1997 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1998 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 if test -n "$CC"; then
2036 echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2044 if test -z "$ac_cv_prog_CC"; then
2046 # Extract the first word of "gcc", so it can be a program name with args.
2047 set dummy gcc; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_CC="gcc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2086 if test -z "$CC"; then
2087 if test -n "$ac_tool_prefix"; then
2088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2089 set dummy ${ac_tool_prefix}cc; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 if test -n "$CC"; then
2096 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_CC="${ac_tool_prefix}cc"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 if test -n "$CC"; then
2116 echo "$as_me:$LINENO: result: $CC" >&5
2117 echo "${ECHO_T}$CC" >&6
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2124 if test -z "$ac_cv_prog_CC"; then
2126 # Extract the first word of "cc", so it can be a program name with args.
2127 set dummy cc; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 if test -n "$ac_ct_CC"; then
2134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 ac_cv_prog_ac_ct_CC="cc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2153 if test -n "$ac_ct_CC"; then
2154 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2155 echo "${ECHO_T}$ac_ct_CC" >&6
2157 echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2167 if test -z "$CC"; then
2168 # Extract the first word of "cc", so it can be a program name with args.
2169 set dummy cc; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2187 ac_prog_rejected=yes
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 if test $ac_prog_rejected = yes; then
2198 # We found a bogon in the path, so make sure we never use it.
2199 set dummy $ac_cv_prog_CC
2201 if test $# != 0; then
2202 # We chose a different compiler from the bogus one.
2203 # However, it has the same basename, so the bogon will be chosen
2204 # first if we set CC to just the basename; use the full file name.
2206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212 if test -n "$CC"; then
2213 echo "$as_me:$LINENO: result: $CC" >&5
2214 echo "${ECHO_T}$CC" >&6
2216 echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2221 if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2227 echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 if test -n "$CC"; then
2253 echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6
2256 echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2260 test -n "$CC" && break
2263 if test -z "$CC"; then
2267 # Extract the first word of "$ac_prog", so it can be a program name with args.
2268 set dummy $ac_prog; ac_word=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$ac_ct_CC"; then
2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_ac_ct_CC="$ac_prog"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2294 if test -n "$ac_ct_CC"; then
2295 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2296 echo "${ECHO_T}$ac_ct_CC" >&6
2298 echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2302 test -n "$ac_ct_CC" && break
2311 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&5
2313 echo "$as_me: error: no acceptable C compiler found in \$PATH
2314 See \`config.log' for more details." >&2;}
2315 { (exit 1); exit 1; }; }
2317 # Provide some information about the compiler.
2318 echo "$as_me:$LINENO:" \
2319 "checking for C compiler version" >&5
2320 ac_compiler=`set X $ac_compile; echo $2`
2321 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2322 (eval $ac_compiler --version </dev/null >&5) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2326 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2327 (eval $ac_compiler -v </dev/null >&5) 2>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2332 (eval $ac_compiler -V </dev/null >&5) 2>&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2337 cat >conftest.$ac_ext <<_ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2352 ac_clean_files_save=$ac_clean_files
2353 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2354 # Try to create an executable without -o first, disregard a.out.
2355 # It will help us diagnose broken compilers, and finding out an intuition
2357 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2358 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2359 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2360 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2361 (eval $ac_link_default) 2>&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; then
2365 # Find the output, starting from the most likely. This scheme is
2366 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2369 # Be careful to initialize this variable, since it used to be cached.
2370 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2372 # b.out is created by i960 compilers.
2373 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2375 test -f "$ac_file" || continue
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2380 # This is the source file.
2383 # We found the default executable, but exeext='' is most
2387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2388 # FIXME: I believe we export ac_cv_exeext for Libtool,
2389 # but it would be cool to find out if it's true. Does anybody
2390 # maintain Libtool? --akim.
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2401 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2402 See \`config.log' for more details." >&5
2403 echo "$as_me: error: C compiler cannot create executables
2404 See \`config.log' for more details." >&2;}
2405 { (exit 77); exit 77; }; }
2408 ac_exeext=$ac_cv_exeext
2409 echo "$as_me:$LINENO: result: $ac_file" >&5
2410 echo "${ECHO_T}$ac_file" >&6
2412 # Check the compiler produces executables we can run. If not, either
2413 # the compiler is broken, or we cross compile.
2414 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2415 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2416 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2417 # If not cross compiling, check that we can run a simple program.
2418 if test "$cross_compiling" != yes; then
2419 if { ac_try='./$ac_file'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2427 if test "$cross_compiling" = maybe; then
2430 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2431 If you meant to cross compile, use \`--host'.
2432 See \`config.log' for more details." >&5
2433 echo "$as_me: error: cannot run C compiled programs.
2434 If you meant to cross compile, use \`--host'.
2435 See \`config.log' for more details." >&2;}
2436 { (exit 1); exit 1; }; }
2440 echo "$as_me:$LINENO: result: yes" >&5
2441 echo "${ECHO_T}yes" >&6
2443 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2444 ac_clean_files=$ac_clean_files_save
2445 # Check the compiler produces executables we can run. If not, either
2446 # the compiler is broken, or we cross compile.
2447 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2448 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2449 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2450 echo "${ECHO_T}$cross_compiling" >&6
2452 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2453 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2455 (eval $ac_link) 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2460 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2461 # work properly (i.e., refer to `conftest.exe'), while it won't with
2463 for ac_file in conftest.exe conftest conftest.*; do
2464 test -f "$ac_file" || continue
2466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2477 See \`config.log' for more details." >&2;}
2478 { (exit 1); exit 1; }; }
2481 rm -f conftest$ac_cv_exeext
2482 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2483 echo "${ECHO_T}$ac_cv_exeext" >&6
2485 rm -f conftest.$ac_ext
2486 EXEEXT=$ac_cv_exeext
2488 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2489 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2490 if test "${ac_cv_objext+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 cat >conftest.$ac_ext <<_ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2508 rm -f conftest.o conftest.obj
2509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510 (eval $ac_compile) 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; then
2514 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6
2536 OBJEXT=$ac_cv_objext
2538 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2565 grep -v '^ *+' conftest.er1 >conftest.err
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2593 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2594 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2595 GCC=`test $ac_compiler_gnu = yes && echo yes`
2596 ac_test_CFLAGS=${CFLAGS+set}
2597 ac_save_CFLAGS=$CFLAGS
2599 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2600 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2601 if test "${ac_cv_prog_cc_g+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 cat >conftest.$ac_ext <<_ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2623 grep -v '^ *+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2650 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2651 if test "$ac_test_CFLAGS" = set; then
2652 CFLAGS=$ac_save_CFLAGS
2653 elif test $ac_cv_prog_cc_g = yes; then
2654 if test "$GCC" = yes; then
2660 if test "$GCC" = yes; then
2666 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2667 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2668 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 ac_cv_prog_cc_stdc=no
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2681 #include <sys/types.h>
2682 #include <sys/stat.h>
2683 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2684 struct buf { int x; };
2685 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2686 static char *e (p, i)
2692 static char *f (char * (*g) (char **, int), char **p, ...)
2697 s = g (p, va_arg (v,int));
2702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2703 function prototypes and stuff, but not '\xHH' hex character constants.
2704 These don't provoke an error unfortunately, instead are silently treated
2705 as 'x'. The following induces an error, until -std1 is added to get
2706 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2707 array size at least. It's necessary to write '\x00'==0 to get something
2708 that's true only with -std1. */
2709 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2711 int test (int i, double x);
2712 struct s1 {int (*f) (int a);};
2713 struct s2 {int (*f) (double a);};
2714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2725 # Don't try gcc -ansi; that turns off useful extensions and
2726 # breaks some systems' header files.
2727 # AIX -qlanglvl=ansi
2728 # Ultrix and OSF/1 -std1
2729 # HP-UX 10.20 and later -Ae
2730 # HP-UX older versions -Aa -D_HPUX_SOURCE
2731 # SVR4 -Xc -D__EXTENSIONS__
2732 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2734 CC="$ac_save_CC $ac_arg"
2735 rm -f conftest.$ac_objext
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>conftest.er1
2739 grep -v '^ *+' conftest.er1 >conftest.err
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 ac_cv_prog_cc_stdc=$ac_arg
2759 echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2763 rm -f conftest.err conftest.$ac_objext
2765 rm -f conftest.$ac_ext conftest.$ac_objext
2770 case "x$ac_cv_prog_cc_stdc" in
2772 echo "$as_me:$LINENO: result: none needed" >&5
2773 echo "${ECHO_T}none needed" >&6 ;;
2775 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2776 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2777 CC="$CC $ac_cv_prog_cc_stdc" ;;
2780 # Some people use a C++ compiler to compile C. Since we use `exit',
2781 # in C++ we need to declare it. In case someone uses the same compiler
2782 # for both compiling C and C++ we need to have the C++ compiler decide
2783 # the declaration of exit, since it's the most demanding environment.
2784 cat >conftest.$ac_ext <<_ACEOF
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2793 grep -v '^ *+' conftest.er1 >conftest.err
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 for ac_declaration in \
2812 'extern "C" void std::exit (int) throw (); using std::exit;' \
2813 'extern "C" void std::exit (int); using std::exit;' \
2814 'extern "C" void exit (int) throw ();' \
2815 'extern "C" void exit (int);' \
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2834 rm -f conftest.$ac_objext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836 (eval $ac_compile) 2>conftest.er1
2838 grep -v '^ *+' conftest.er1 >conftest.err
2840 cat conftest.err >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2863 cat >conftest.$ac_ext <<_ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2882 grep -v '^ *+' conftest.er1 >conftest.err
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908 if test -n "$ac_declaration"; then
2909 echo '#ifdef __cplusplus' >>confdefs.h
2910 echo $ac_declaration >>confdefs.h
2911 echo '#endif' >>confdefs.h
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 DEPDIR="${am__leading_dot}deps"
2927 ac_config_commands="$ac_config_commands depfiles"
2930 am_make=${MAKE-make}
2931 cat > confinc << 'END'
2936 # If we don't find an include directive, just comment out the code.
2937 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2938 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2942 # First try GNU make style include.
2943 echo "include confinc" > confmf
2944 # We grep out `Entering directory' and `Leaving directory'
2945 # messages which can occur if `w' ends up in MAKEFLAGS.
2946 # In particular we don't look at `^make:' because GNU make might
2947 # be invoked under some other name (usually "gmake"), in which
2948 # case it prints its new name instead of `make'.
2949 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2954 # Now try BSD make style include.
2955 if test "$am__include" = "#"; then
2956 echo '.include "confinc"' > confmf
2957 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2958 am__include=.include
2965 echo "$as_me:$LINENO: result: $_am_result" >&5
2966 echo "${ECHO_T}$_am_result" >&6
2967 rm -f confinc confmf
2969 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2970 if test "${enable_dependency_tracking+set}" = set; then
2971 enableval="$enable_dependency_tracking"
2974 if test "x$enable_dependency_tracking" != xno; then
2975 am_depcomp="$ac_aux_dir/depcomp"
2980 if test "x$enable_dependency_tracking" != xno; then
2991 depcc="$CC" am_compiler_list=
2993 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2994 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2995 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2999 # We make a subdir and do the tests there. Otherwise we can end up
3000 # making bogus files that we don't know about and never remove. For
3001 # instance it was reported that on HP-UX the gcc test will end up
3002 # making a dummy file named `D' -- because `-MD' means `put the output
3005 # Copy depcomp to subdir because otherwise we won't find it if we're
3006 # using a relative directory.
3007 cp "$am_depcomp" conftest.dir
3009 # We will build objects and dependencies in a subdirectory because
3010 # it helps to detect inapplicable dependency modes. For instance
3011 # both Tru64's cc and ICC support -MD to output dependencies as a
3012 # side effect of compilation, but ICC will put the dependencies in
3013 # the current directory while Tru64 will put them in the object
3017 am_cv_CC_dependencies_compiler_type=none
3018 if test "$am_compiler_list" = ""; then
3019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3021 for depmode in $am_compiler_list; do
3022 # Setup a source with many dependencies, because some compilers
3023 # like to wrap large dependency lists on column 80 (with \), and
3024 # we should not choose a depcomp mode which is confused by this.
3026 # We need to recreate these files for each test, as the compiler may
3027 # overwrite some of them when testing with obscure command lines.
3028 # This happens at least with the AIX C compiler.
3030 for i in 1 2 3 4 5 6; do
3031 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3034 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3038 # after this tag, mechanisms are not by side-effect, so they'll
3039 # only be used when explicitly requested
3040 if test "x$enable_dependency_tracking" = xyes; then
3048 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3049 # mode. It turns out that the SunPro C++ compiler does not properly
3050 # handle `-M -o', and we need to detect this.
3051 if depmode=$depmode \
3052 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3053 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3054 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3055 >/dev/null 2>conftest.err &&
3056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3057 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3059 # icc doesn't choke on unknown options, it will just issue warnings
3060 # (even with -Werror). So we grep stderr for any message
3061 # that says an option was ignored.
3062 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3063 am_cv_CC_dependencies_compiler_type=$depmode
3072 am_cv_CC_dependencies_compiler_type=none
3076 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3077 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3078 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3083 test "x$enable_dependency_tracking" != xno \
3084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3086 am__fastdepCC_FALSE='#'
3088 am__fastdepCC_TRUE='#'
3089 am__fastdepCC_FALSE=
3093 if test "$ac_cv_prog_cc" = "no" ; then
3094 { { echo "$as_me:$LINENO: error: *** No C compiler found !" >&5
3095 echo "$as_me: error: *** No C compiler found !" >&2;}
3096 { (exit 1); exit 1; }; }
3098 # Find a good install program. We prefer a C program (faster),
3099 # so one script is as good as another. But avoid the broken or
3100 # incompatible versions:
3101 # SysV /etc/install, /usr/sbin/install
3102 # SunOS /usr/etc/install
3103 # IRIX /sbin/install
3105 # AmigaOS /C/install, which installs bootblocks on floppy discs
3106 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3107 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3108 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3109 # OS/2's system install, which has a completely different semantic
3110 # ./install, which can be erroneously created by make from ./install.sh.
3111 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3112 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3113 if test -z "$INSTALL"; then
3114 if test "${ac_cv_path_install+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 test -z "$as_dir" && as_dir=.
3122 # Account for people who put trailing slashes in PATH elements.
3124 ./ | .// | /cC/* | \
3125 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3126 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3129 # OSF1 and SCO ODT 3.0 have their own names for install.
3130 # Don't use installbsd from OSF since it installs stuff as root
3132 for ac_prog in ginstall scoinst install; do
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3135 if test $ac_prog = install &&
3136 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3137 # AIX install. It has an incompatible calling convention.
3139 elif test $ac_prog = install &&
3140 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3141 # program-specific install script used by HP pwplus--don't use.
3144 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3156 if test "${ac_cv_path_install+set}" = set; then
3157 INSTALL=$ac_cv_path_install
3159 # As a last resort, use the slow shell script. We don't cache a
3160 # path for INSTALL within a source directory, because that will
3161 # break other packages using the cache if that directory is
3162 # removed, or if the path is relative.
3163 INSTALL=$ac_install_sh
3166 echo "$as_me:$LINENO: result: $INSTALL" >&5
3167 echo "${ECHO_T}$INSTALL" >&6
3169 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3170 # It thinks the first close brace ends the variable substitution.
3171 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3173 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3175 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3180 # Check whether --enable-shared or --disable-shared was given.
3181 if test "${enable_shared+set}" = set; then
3182 enableval="$enable_shared"
3183 p=${PACKAGE-default}
3185 yes) enable_shared=yes ;;
3186 no) enable_shared=no ;;
3189 # Look at the argument we got. We use all the common list separators.
3190 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3191 for pkg in $enableval; do
3193 if test "X$pkg" = "X$p"; then
3204 # Check whether --enable-static or --disable-static was given.
3205 if test "${enable_static+set}" = set; then
3206 enableval="$enable_static"
3207 p=${PACKAGE-default}
3209 yes) enable_static=yes ;;
3210 no) enable_static=no ;;
3213 # Look at the argument we got. We use all the common list separators.
3214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3215 for pkg in $enableval; do
3217 if test "X$pkg" = "X$p"; then
3228 # Check whether --enable-fast-install or --disable-fast-install was given.
3229 if test "${enable_fast_install+set}" = set; then
3230 enableval="$enable_fast_install"
3231 p=${PACKAGE-default}
3233 yes) enable_fast_install=yes ;;
3234 no) enable_fast_install=no ;;
3236 enable_fast_install=no
3237 # Look at the argument we got. We use all the common list separators.
3238 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3239 for pkg in $enableval; do
3241 if test "X$pkg" = "X$p"; then
3242 enable_fast_install=yes
3249 enable_fast_install=yes
3252 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3253 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3254 if test "${lt_cv_path_SED+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 # Loop through the user's path and test for sed and gsed.
3258 # Then use that list of sed's as ones to test for truncation.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for lt_ac_prog in sed gsed; do
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3267 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3274 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3275 # along with /bin/sed that truncates output.
3276 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3277 test ! -f $lt_ac_sed && break
3278 cat /dev/null > conftest.in
3280 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3281 # Check for GNU sed and select it if it is found.
3282 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3283 lt_cv_path_SED=$lt_ac_sed
3287 cat conftest.in conftest.in >conftest.tmp
3288 mv conftest.tmp conftest.in
3289 cp conftest.in conftest.nl
3291 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3292 cmp -s conftest.out conftest.nl || break
3293 # 10000 chars as input seems more than enough
3294 test $lt_ac_count -gt 10 && break
3295 lt_ac_count=`expr $lt_ac_count + 1`
3296 if test $lt_ac_count -gt $lt_ac_max; then
3297 lt_ac_max=$lt_ac_count
3298 lt_cv_path_SED=$lt_ac_sed
3306 echo "$as_me:$LINENO: result: $SED" >&5
3307 echo "${ECHO_T}$SED" >&6
3309 echo "$as_me:$LINENO: checking for egrep" >&5
3310 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3311 if test "${ac_cv_prog_egrep+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3315 then ac_cv_prog_egrep='grep -E'
3316 else ac_cv_prog_egrep='egrep'
3319 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3320 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3321 EGREP=$ac_cv_prog_egrep
3325 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3326 if test "${with_gnu_ld+set}" = set; then
3327 withval="$with_gnu_ld"
3328 test "$withval" = no || with_gnu_ld=yes
3333 if test "$GCC" = yes; then
3334 # Check if gcc -print-prog-name=ld gives a path.
3335 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3336 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3339 # gcc leaves a trailing carriage return which upsets mingw
3340 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3342 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3345 # Accept absolute paths.
3347 re_direlt='/[^/][^/]*/\.\./'
3348 # Canonicalize the pathname of ld
3349 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3350 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3351 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3353 test -z "$LD" && LD="$ac_prog"
3356 # If it fails, then pretend we aren't using GCC.
3360 # If it is relative, then search for the first ld in PATH.
3364 elif test "$with_gnu_ld" = yes; then
3365 echo "$as_me:$LINENO: checking for GNU ld" >&5
3366 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3368 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3369 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3371 if test "${lt_cv_path_LD+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 if test -z "$LD"; then
3375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3376 for ac_dir in $PATH; do
3378 test -z "$ac_dir" && ac_dir=.
3379 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3380 lt_cv_path_LD="$ac_dir/$ac_prog"
3381 # Check to see if the program is GNU ld. I'd rather use --version,
3382 # but apparently some GNU ld's only accept -v.
3383 # Break only if it was the GNU/non-GNU ld that we prefer.
3384 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3385 *GNU* | *'with BFD'*)
3386 test "$with_gnu_ld" != no && break
3389 test "$with_gnu_ld" != yes && break
3396 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3401 if test -n "$LD"; then
3402 echo "$as_me:$LINENO: result: $LD" >&5
3403 echo "${ECHO_T}$LD" >&6
3405 echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3408 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3409 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3410 { (exit 1); exit 1; }; }
3411 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3412 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3413 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3417 case `$LD -v 2>&1 </dev/null` in
3418 *GNU* | *'with BFD'*)
3419 lt_cv_prog_gnu_ld=yes
3422 lt_cv_prog_gnu_ld=no
3426 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3427 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3428 with_gnu_ld=$lt_cv_prog_gnu_ld
3431 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3432 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3433 if test "${lt_cv_ld_reload_flag+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 lt_cv_ld_reload_flag='-r'
3438 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3439 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3440 reload_flag=$lt_cv_ld_reload_flag
3441 case $reload_flag in
3443 *) reload_flag=" $reload_flag" ;;
3445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3447 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3448 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3449 if test "${lt_cv_path_NM+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 if test -n "$NM"; then
3453 # Let the user override the test.
3456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3457 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3459 test -z "$ac_dir" && ac_dir=.
3460 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3461 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3462 # Check to see if the nm accepts a BSD-compat flag.
3463 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3464 # nm: unknown option "B" ignored
3465 # Tru64's nm complains that /dev/null is an invalid object file
3466 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3467 */dev/null* | *'Invalid file or object type'*)
3468 lt_cv_path_NM="$tmp_nm -B"
3472 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3474 lt_cv_path_NM="$tmp_nm -p"
3478 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3479 continue # so that we can try to find one that supports BSD flags
3486 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3489 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3490 echo "${ECHO_T}$lt_cv_path_NM" >&6
3493 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3494 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3496 if test "$LN_S" = "ln -s"; then
3497 echo "$as_me:$LINENO: result: yes" >&5
3498 echo "${ECHO_T}yes" >&6
3500 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3501 echo "${ECHO_T}no, using $LN_S" >&6
3504 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3505 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3506 if test "${lt_cv_deplibs_check_method+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 lt_cv_file_magic_cmd='$MAGIC_CMD'
3510 lt_cv_file_magic_test_file=
3511 lt_cv_deplibs_check_method='unknown'
3512 # Need to set the preceding variable on all platforms that support
3513 # interlibrary dependencies.
3514 # 'none' -- dependencies not supported.
3515 # `unknown' -- same as none, but documents that we really don't know.
3516 # 'pass_all' -- all dependencies passed with no checks.
3517 # 'test_compile' -- check by making test program.
3518 # 'file_magic [[regex]]' -- check by looking for files in library path
3519 # which responds to the $file_magic_cmd with a given extended regex.
3520 # If you have `file' or equivalent on your system and you're not sure
3521 # whether `pass_all' will *always* work, you probably want this one.
3525 lt_cv_deplibs_check_method=pass_all
3529 lt_cv_deplibs_check_method=pass_all
3533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3534 lt_cv_file_magic_cmd='/usr/bin/file -L'
3535 lt_cv_file_magic_test_file=/shlib/libc.so
3539 # func_win32_libid is a shell function defined in ltmain.sh
3540 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3541 lt_cv_file_magic_cmd='func_win32_libid'
3545 # Base MSYS/MinGW do not provide the 'file' command needed by
3546 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3547 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3548 lt_cv_file_magic_cmd='$OBJDUMP -f'
3551 darwin* | rhapsody*)
3552 lt_cv_deplibs_check_method=pass_all
3555 freebsd* | kfreebsd*-gnu)
3556 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3559 # Not sure whether the presence of OpenBSD here was a mistake.
3560 # Let's accept both of them until this is cleared up.
3561 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3562 lt_cv_file_magic_cmd=/usr/bin/file
3563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3567 lt_cv_deplibs_check_method=pass_all
3572 lt_cv_deplibs_check_method=pass_all
3575 hpux10.20* | hpux11*)
3576 lt_cv_file_magic_cmd=/usr/bin/file
3579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3580 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3583 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]'
3584 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3588 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3593 irix5* | irix6* | nonstopux*)
3595 *-32|*"-32 ") libmagic=32-bit;;
3596 *-n32|*"-n32 ") libmagic=N32;;
3597 *-64|*"-64 ") libmagic=64-bit;;
3598 *) libmagic=never-match;;
3600 lt_cv_deplibs_check_method=pass_all
3603 # This must be Linux ELF.
3605 lt_cv_deplibs_check_method=pass_all
3608 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3609 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3618 lt_cv_file_magic_cmd=/usr/bin/file
3619 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3623 lt_cv_deplibs_check_method=unknown
3627 lt_cv_file_magic_cmd=/usr/bin/file
3628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3632 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3636 osf3* | osf4* | osf5*)
3637 lt_cv_deplibs_check_method=pass_all
3641 lt_cv_deplibs_check_method=pass_all
3645 lt_cv_deplibs_check_method=pass_all
3648 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3649 case $host_vendor in
3651 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]'
3652 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3655 lt_cv_deplibs_check_method=pass_all
3658 lt_cv_file_magic_cmd='/bin/file'
3659 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3662 lt_cv_file_magic_cmd='/bin/file'
3663 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3664 lt_cv_file_magic_test_file=/lib/libc.so
3667 lt_cv_deplibs_check_method=pass_all
3672 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3673 lt_cv_deplibs_check_method=pass_all
3678 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3679 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3680 file_magic_cmd=$lt_cv_file_magic_cmd
3681 deplibs_check_method=$lt_cv_deplibs_check_method
3682 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3687 # If no C compiler was specified, use CC.
3690 # Allow CC to be a program name with arguments.
3694 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3695 if test "${enable_libtool_lock+set}" = set; then
3696 enableval="$enable_libtool_lock"
3699 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3701 # Some flags need to be propagated to the compiler or linker for good
3705 # Find out which ABI we are using.
3706 echo 'int i;' > conftest.$ac_ext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708 (eval $ac_compile) 2>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; then
3712 case `/usr/bin/file conftest.$ac_objext` in
3724 # Find out which ABI we are using.
3725 echo '#line 3725 "configure"' > conftest.$ac_ext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3727 (eval $ac_compile) 2>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; then
3731 if test "$lt_cv_prog_gnu_ld" = yes; then
3732 case `/usr/bin/file conftest.$ac_objext` in
3734 LD="${LD-ld} -melf32bsmip"
3737 LD="${LD-ld} -melf32bmipn32"
3740 LD="${LD-ld} -melf64bmip"
3744 case `/usr/bin/file conftest.$ac_objext` in
3760 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3761 # Find out which ABI we are using.
3762 echo 'int i;' > conftest.$ac_ext
3763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); }; then
3768 case "`/usr/bin/file conftest.o`" in
3772 LD="${LD-ld} -m elf_i386"
3774 ppc64-*linux*|powerpc64-*linux*)
3775 LD="${LD-ld} -m elf32ppclinux"
3778 LD="${LD-ld} -m elf_s390"
3781 LD="${LD-ld} -m elf32_sparc"
3788 LD="${LD-ld} -m elf_x86_64"
3790 ppc*-*linux*|powerpc*-*linux*)
3791 LD="${LD-ld} -m elf64ppc"
3794 LD="${LD-ld} -m elf64_s390"
3797 LD="${LD-ld} -m elf64_sparc"
3807 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3808 SAVE_CFLAGS="$CFLAGS"
3809 CFLAGS="$CFLAGS -belf"
3810 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3811 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3812 if test "${lt_cv_cc_needs_belf+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821 cat >conftest.$ac_ext <<_ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3836 rm -f conftest.$ac_objext conftest$ac_exeext
3837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3838 (eval $ac_link) 2>conftest.er1
3840 grep -v '^ *+' conftest.er1 >conftest.err
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest$ac_exeext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 lt_cv_cc_needs_belf=yes
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 lt_cv_cc_needs_belf=no
3864 rm -f conftest.err conftest.$ac_objext \
3865 conftest$ac_exeext conftest.$ac_ext
3867 ac_cpp='$CPP $CPPFLAGS'
3868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3874 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3875 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3876 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3877 CFLAGS="$SAVE_CFLAGS"
3883 need_locks="$enable_libtool_lock"
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3892 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3893 # On Suns, sometimes $CPP names a directory.
3894 if test -n "$CPP" && test -d "$CPP"; then
3897 if test -z "$CPP"; then
3898 if test "${ac_cv_prog_CPP+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 # Double quotes because CPP needs to be expanded
3902 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3905 for ac_c_preproc_warn_flag in '' yes
3907 # Use a header file that comes with gcc, so configuring glibc
3908 # with a fresh cross-compiler works.
3909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3910 # <limits.h> exists even on freestanding compilers.
3911 # On the NeXT, cc -E runs the code through the compiler's parser,
3912 # not just through cpp. "Syntax error" is here to catch this case.
3913 cat >conftest.$ac_ext <<_ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3920 # include <limits.h>
3922 # include <assert.h>
3926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3929 grep -v '^ *+' conftest.er1 >conftest.err
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } >/dev/null; then
3934 if test -s conftest.err; then
3935 ac_cpp_err=$ac_c_preproc_warn_flag
3936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3943 if test -z "$ac_cpp_err"; then
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 # Broken: fails on valid input.
3952 rm -f conftest.err conftest.$ac_ext
3954 # OK, works on sane cases. Now check whether non-existent headers
3955 # can be detected and how.
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3962 #include <ac_nonexistent.h>
3964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } >/dev/null; then
3972 if test -s conftest.err; then
3973 ac_cpp_err=$ac_c_preproc_warn_flag
3974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3981 if test -z "$ac_cpp_err"; then
3982 # Broken: success on invalid input.
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 # Passes both tests.
3992 rm -f conftest.err conftest.$ac_ext
3995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3996 rm -f conftest.err conftest.$ac_ext
3997 if $ac_preproc_ok; then
4009 echo "$as_me:$LINENO: result: $CPP" >&5
4010 echo "${ECHO_T}$CPP" >&6
4012 for ac_c_preproc_warn_flag in '' yes
4014 # Use a header file that comes with gcc, so configuring glibc
4015 # with a fresh cross-compiler works.
4016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4017 # <limits.h> exists even on freestanding compilers.
4018 # On the NeXT, cc -E runs the code through the compiler's parser,
4019 # not just through cpp. "Syntax error" is here to catch this case.
4020 cat >conftest.$ac_ext <<_ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4027 # include <limits.h>
4029 # include <assert.h>
4033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } >/dev/null; then
4041 if test -s conftest.err; then
4042 ac_cpp_err=$ac_c_preproc_warn_flag
4043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4050 if test -z "$ac_cpp_err"; then
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 # Broken: fails on valid input.
4059 rm -f conftest.err conftest.$ac_ext
4061 # OK, works on sane cases. Now check whether non-existent headers
4062 # can be detected and how.
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #include <ac_nonexistent.h>
4071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4074 grep -v '^ *+' conftest.er1 >conftest.err
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } >/dev/null; then
4079 if test -s conftest.err; then
4080 ac_cpp_err=$ac_c_preproc_warn_flag
4081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4088 if test -z "$ac_cpp_err"; then
4089 # Broken: success on invalid input.
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 # Passes both tests.
4099 rm -f conftest.err conftest.$ac_ext
4102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4103 rm -f conftest.err conftest.$ac_ext
4104 if $ac_preproc_ok; then
4107 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4108 See \`config.log' for more details." >&5
4109 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4110 See \`config.log' for more details." >&2;}
4111 { (exit 1); exit 1; }; }
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4122 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4123 if test "${ac_cv_header_stdc+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 ac_cv_header_stdc=yes
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_cv_header_stdc=no
4173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4175 if test $ac_cv_header_stdc = yes; then
4176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4177 cat >conftest.$ac_ext <<_ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187 $EGREP "memchr" >/dev/null 2>&1; then
4190 ac_cv_header_stdc=no
4196 if test $ac_cv_header_stdc = yes; then
4197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4208 $EGREP "free" >/dev/null 2>&1; then
4211 ac_cv_header_stdc=no
4217 if test $ac_cv_header_stdc = yes; then
4218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4219 if test "$cross_compiling" = yes; then
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4229 #if ((' ' & 0x0FF) == 0x020)
4230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4233 # define ISLOWER(c) \
4234 (('a' <= (c) && (c) <= 'i') \
4235 || ('j' <= (c) && (c) <= 'r') \
4236 || ('s' <= (c) && (c) <= 'z'))
4237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4245 for (i = 0; i < 256; i++)
4246 if (XOR (islower (i), ISLOWER (i))
4247 || toupper (i) != TOUPPER (i))
4252 rm -f conftest$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4265 echo "$as_me: program exited with status $ac_status" >&5
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4270 ac_cv_header_stdc=no
4272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4276 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4277 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4278 if test $ac_cv_header_stdc = yes; then
4280 cat >>confdefs.h <<\_ACEOF
4281 #define STDC_HEADERS 1
4286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4296 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4297 inttypes.h stdint.h unistd.h
4299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4300 echo "$as_me:$LINENO: checking for $ac_header" >&5
4301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 cat >conftest.$ac_ext <<_ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4313 #include <$ac_header>
4315 rm -f conftest.$ac_objext
4316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317 (eval $ac_compile) 2>conftest.er1
4319 grep -v '^ *+' conftest.er1 >conftest.err
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; } &&
4330 { ac_try='test -s conftest.$ac_objext'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 eval "$as_ac_Header=yes"
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 eval "$as_ac_Header=no"
4343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4348 cat >>confdefs.h <<_ACEOF
4349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4358 for ac_header in dlfcn.h
4360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4362 echo "$as_me:$LINENO: checking for $ac_header" >&5
4363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4370 # Is the header compilable?
4371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 $ac_includes_default
4380 #include <$ac_header>
4382 rm -f conftest.$ac_objext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384 (eval $ac_compile) 2>conftest.er1
4386 grep -v '^ *+' conftest.er1 >conftest.err
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 ac_header_compiler=yes
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 ac_header_compiler=no
4410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4412 echo "${ECHO_T}$ac_header_compiler" >&6
4414 # Is the header present?
4415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4417 cat >conftest.$ac_ext <<_ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #include <$ac_header>
4425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4428 grep -v '^ *+' conftest.er1 >conftest.err
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } >/dev/null; then
4433 if test -s conftest.err; then
4434 ac_cpp_err=$ac_c_preproc_warn_flag
4435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4442 if test -z "$ac_cpp_err"; then
4443 ac_header_preproc=yes
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 ac_header_preproc=no
4450 rm -f conftest.err conftest.$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4452 echo "${ECHO_T}$ac_header_preproc" >&6
4454 # So? What about this header?
4455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4461 ac_header_preproc=yes
4464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4478 ## ------------------------------------------ ##
4479 ## Report this to the AC_PACKAGE_NAME lists. ##
4480 ## ------------------------------------------ ##
4483 sed "s/^/$as_me: WARNING: /" >&2
4486 echo "$as_me:$LINENO: checking for $ac_header" >&5
4487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 eval "$as_ac_Header=\$ac_header_preproc"
4493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4498 cat >>confdefs.h <<_ACEOF
4499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4507 ac_cpp='$CXXCPP $CPPFLAGS'
4508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511 if test -n "$ac_tool_prefix"; then
4512 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4516 echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4518 if test "${ac_cv_prog_CXX+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 if test -n "$CXX"; then
4522 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 if test -n "$CXX"; then
4542 echo "$as_me:$LINENO: result: $CXX" >&5
4543 echo "${ECHO_T}$CXX" >&6
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 test -n "$CXX" && break
4552 if test -z "$CXX"; then
4554 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4556 # Extract the first word of "$ac_prog", so it can be a program name with args.
4557 set dummy $ac_prog; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 if test -n "$ac_ct_CXX"; then
4564 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_ac_ct_CXX="$ac_prog"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4583 if test -n "$ac_ct_CXX"; then
4584 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4585 echo "${ECHO_T}$ac_ct_CXX" >&6
4587 echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4591 test -n "$ac_ct_CXX" && break
4593 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4599 # Provide some information about the compiler.
4600 echo "$as_me:$LINENO:" \
4601 "checking for C++ compiler version" >&5
4602 ac_compiler=`set X $ac_compile; echo $2`
4603 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4604 (eval $ac_compiler --version </dev/null >&5) 2>&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }
4608 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4609 (eval $ac_compiler -v </dev/null >&5) 2>&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }
4613 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4614 (eval $ac_compiler -V </dev/null >&5) 2>&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }
4619 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4620 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4621 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 cat >conftest.$ac_ext <<_ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4642 rm -f conftest.$ac_objext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4644 (eval $ac_compile) 2>conftest.er1
4646 grep -v '^ *+' conftest.er1 >conftest.err
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } &&
4651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4671 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4674 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4675 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4676 GXX=`test $ac_compiler_gnu = yes && echo yes`
4677 ac_test_CXXFLAGS=${CXXFLAGS+set}
4678 ac_save_CXXFLAGS=$CXXFLAGS
4680 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4681 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4682 if test "${ac_cv_prog_cxx_g+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 cat >conftest.$ac_ext <<_ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4700 rm -f conftest.$ac_objext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>conftest.er1
4704 grep -v '^ *+' conftest.er1 >conftest.err
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try='test -s conftest.$ac_objext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_prog_cxx_g=yes
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4730 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4731 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4732 if test "$ac_test_CXXFLAGS" = set; then
4733 CXXFLAGS=$ac_save_CXXFLAGS
4734 elif test $ac_cv_prog_cxx_g = yes; then
4735 if test "$GXX" = yes; then
4741 if test "$GXX" = yes; then
4747 for ac_declaration in \
4749 'extern "C" void std::exit (int) throw (); using std::exit;' \
4750 'extern "C" void std::exit (int); using std::exit;' \
4751 'extern "C" void exit (int) throw ();' \
4752 'extern "C" void exit (int);' \
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773 (eval $ac_compile) 2>conftest.er1
4775 grep -v '^ *+' conftest.er1 >conftest.err
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; } &&
4786 { ac_try='test -s conftest.$ac_objext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4800 cat >conftest.$ac_ext <<_ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4815 rm -f conftest.$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>conftest.er1
4819 grep -v '^ *+' conftest.er1 >conftest.err
4821 cat conftest.err >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; } &&
4830 { ac_try='test -s conftest.$ac_objext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 if test -n "$ac_declaration"; then
4846 echo '#ifdef __cplusplus' >>confdefs.h
4847 echo $ac_declaration >>confdefs.h
4848 echo '#endif' >>confdefs.h
4852 ac_cpp='$CXXCPP $CPPFLAGS'
4853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4857 depcc="$CXX" am_compiler_list=
4859 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4860 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4861 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4865 # We make a subdir and do the tests there. Otherwise we can end up
4866 # making bogus files that we don't know about and never remove. For
4867 # instance it was reported that on HP-UX the gcc test will end up
4868 # making a dummy file named `D' -- because `-MD' means `put the output
4871 # Copy depcomp to subdir because otherwise we won't find it if we're
4872 # using a relative directory.
4873 cp "$am_depcomp" conftest.dir
4875 # We will build objects and dependencies in a subdirectory because
4876 # it helps to detect inapplicable dependency modes. For instance
4877 # both Tru64's cc and ICC support -MD to output dependencies as a
4878 # side effect of compilation, but ICC will put the dependencies in
4879 # the current directory while Tru64 will put them in the object
4883 am_cv_CXX_dependencies_compiler_type=none
4884 if test "$am_compiler_list" = ""; then
4885 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4887 for depmode in $am_compiler_list; do
4888 # Setup a source with many dependencies, because some compilers
4889 # like to wrap large dependency lists on column 80 (with \), and
4890 # we should not choose a depcomp mode which is confused by this.
4892 # We need to recreate these files for each test, as the compiler may
4893 # overwrite some of them when testing with obscure command lines.
4894 # This happens at least with the AIX C compiler.
4896 for i in 1 2 3 4 5 6; do
4897 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4900 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4904 # after this tag, mechanisms are not by side-effect, so they'll
4905 # only be used when explicitly requested
4906 if test "x$enable_dependency_tracking" = xyes; then
4914 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4915 # mode. It turns out that the SunPro C++ compiler does not properly
4916 # handle `-M -o', and we need to detect this.
4917 if depmode=$depmode \
4918 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4921 >/dev/null 2>conftest.err &&
4922 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4923 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4924 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4925 # icc doesn't choke on unknown options, it will just issue warnings
4926 # (even with -Werror). So we grep stderr for any message
4927 # that says an option was ignored.
4928 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4929 am_cv_CXX_dependencies_compiler_type=$depmode
4938 am_cv_CXX_dependencies_compiler_type=none
4942 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4943 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4944 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4949 test "x$enable_dependency_tracking" != xno \
4950 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4951 am__fastdepCXX_TRUE=
4952 am__fastdepCXX_FALSE='#'
4954 am__fastdepCXX_TRUE='#'
4955 am__fastdepCXX_FALSE=
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4964 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4965 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4966 if test -z "$CXXCPP"; then
4967 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 # Double quotes because CXXCPP needs to be expanded
4971 for CXXCPP in "$CXX -E" "/lib/cpp"
4974 for ac_cxx_preproc_warn_flag in '' yes
4976 # Use a header file that comes with gcc, so configuring glibc
4977 # with a fresh cross-compiler works.
4978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4979 # <limits.h> exists even on freestanding compilers.
4980 # On the NeXT, cc -E runs the code through the compiler's parser,
4981 # not just through cpp. "Syntax error" is here to catch this case.
4982 cat >conftest.$ac_ext <<_ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4989 # include <limits.h>
4991 # include <assert.h>
4995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4998 grep -v '^ *+' conftest.er1 >conftest.err
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } >/dev/null; then
5003 if test -s conftest.err; then
5004 ac_cpp_err=$ac_cxx_preproc_warn_flag
5005 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5012 if test -z "$ac_cpp_err"; then
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5018 # Broken: fails on valid input.
5021 rm -f conftest.err conftest.$ac_ext
5023 # OK, works on sane cases. Now check whether non-existent headers
5024 # can be detected and how.
5025 cat >conftest.$ac_ext <<_ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5031 #include <ac_nonexistent.h>
5033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5036 grep -v '^ *+' conftest.er1 >conftest.err
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } >/dev/null; then
5041 if test -s conftest.err; then
5042 ac_cpp_err=$ac_cxx_preproc_warn_flag
5043 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5050 if test -z "$ac_cpp_err"; then
5051 # Broken: success on invalid input.
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 # Passes both tests.
5061 rm -f conftest.err conftest.$ac_ext
5064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5065 rm -f conftest.err conftest.$ac_ext
5066 if $ac_preproc_ok; then
5071 ac_cv_prog_CXXCPP=$CXXCPP
5074 CXXCPP=$ac_cv_prog_CXXCPP
5076 ac_cv_prog_CXXCPP=$CXXCPP
5078 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5079 echo "${ECHO_T}$CXXCPP" >&6
5081 for ac_cxx_preproc_warn_flag in '' yes
5083 # Use a header file that comes with gcc, so configuring glibc
5084 # with a fresh cross-compiler works.
5085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5086 # <limits.h> exists even on freestanding compilers.
5087 # On the NeXT, cc -E runs the code through the compiler's parser,
5088 # not just through cpp. "Syntax error" is here to catch this case.
5089 cat >conftest.$ac_ext <<_ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5096 # include <limits.h>
5098 # include <assert.h>
5102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5105 grep -v '^ *+' conftest.er1 >conftest.err
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } >/dev/null; then
5110 if test -s conftest.err; then
5111 ac_cpp_err=$ac_cxx_preproc_warn_flag
5112 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5119 if test -z "$ac_cpp_err"; then
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5125 # Broken: fails on valid input.
5128 rm -f conftest.err conftest.$ac_ext
5130 # OK, works on sane cases. Now check whether non-existent headers
5131 # can be detected and how.
5132 cat >conftest.$ac_ext <<_ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 #include <ac_nonexistent.h>
5140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5143 grep -v '^ *+' conftest.er1 >conftest.err
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } >/dev/null; then
5148 if test -s conftest.err; then
5149 ac_cpp_err=$ac_cxx_preproc_warn_flag
5150 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5157 if test -z "$ac_cpp_err"; then
5158 # Broken: success on invalid input.
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 # Passes both tests.
5168 rm -f conftest.err conftest.$ac_ext
5171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5172 rm -f conftest.err conftest.$ac_ext
5173 if $ac_preproc_ok; then
5176 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5177 See \`config.log' for more details." >&5
5178 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5179 See \`config.log' for more details." >&2;}
5180 { (exit 1); exit 1; }; }
5184 ac_cpp='$CXXCPP $CPPFLAGS'
5185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5191 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5192 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5194 if test -n "$ac_tool_prefix"; then
5195 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5199 echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201 if test "${ac_cv_prog_F77+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 if test -n "$F77"; then
5205 ac_cv_prog_F77="$F77" # Let the user override the test.
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 if test -n "$F77"; then
5225 echo "$as_me:$LINENO: result: $F77" >&5
5226 echo "${ECHO_T}$F77" >&6
5228 echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5232 test -n "$F77" && break
5235 if test -z "$F77"; then
5237 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5239 # Extract the first word of "$ac_prog", so it can be a program name with args.
5240 set dummy $ac_prog; ac_word=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 if test -n "$ac_ct_F77"; then
5247 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_ac_ct_F77="$ac_prog"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5266 if test -n "$ac_ct_F77"; then
5267 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5268 echo "${ECHO_T}$ac_ct_F77" >&6
5270 echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6
5274 test -n "$ac_ct_F77" && break
5281 # Provide some information about the compiler.
5282 echo "$as_me:5282:" \
5283 "checking for Fortran 77 compiler version" >&5
5284 ac_compiler=`set X $ac_compile; echo $2`
5285 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5286 (eval $ac_compiler --version </dev/null >&5) 2>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }
5290 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5291 (eval $ac_compiler -v </dev/null >&5) 2>&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }
5295 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5296 (eval $ac_compiler -V </dev/null >&5) 2>&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }
5302 # If we don't use `.F' as extension, the preprocessor is not run on the
5303 # input file. (Note that this only needs to work for GNU compilers.)
5306 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5307 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5308 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 cat >conftest.$ac_ext <<_ACEOF
5319 rm -f conftest.$ac_objext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5321 (eval $ac_compile) 2>conftest.er1
5323 grep -v '^ *+' conftest.er1 >conftest.err
5325 cat conftest.err >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } &&
5328 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; } &&
5334 { ac_try='test -s conftest.$ac_objext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5351 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5352 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5354 ac_test_FFLAGS=${FFLAGS+set}
5355 ac_save_FFLAGS=$FFLAGS
5357 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5358 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5359 if test "${ac_cv_prog_f77_g+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5368 rm -f conftest.$ac_objext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370 (eval $ac_compile) 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; } &&
5383 { ac_try='test -s conftest.$ac_objext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_prog_f77_g=yes
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5400 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5401 if test "$ac_test_FFLAGS" = set; then
5402 FFLAGS=$ac_save_FFLAGS
5403 elif test $ac_cv_prog_f77_g = yes; then
5404 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5410 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5417 G77=`test $ac_compiler_gnu = yes && echo yes`
5419 ac_cpp='$CPP $CPPFLAGS'
5420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5428 # find the maximum length of command line arguments
5429 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5430 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5431 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 # On DJGPP, this test can blow up pretty badly due to problems in libc
5440 # (any single argument exceeding 2000 bytes causes a buffer overrun
5441 # during glob expansion). Even if it were fixed, the result of this
5442 # check would be larger than it should be.
5443 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5447 # Under GNU Hurd, this test is not required because there is
5448 # no limit to the length of command line arguments.
5449 # Libtool will interpret -1 as no limit whatsoever
5450 lt_cv_sys_max_cmd_len=-1;
5454 # On Win9x/ME, this test blows up -- it succeeds, but takes
5455 # about 5 minutes as the teststring grows exponentially.
5456 # Worse, since 9x/ME are not pre-emptively multitasking,
5457 # you end up with a "frozen" computer, even though with patience
5458 # the test eventually succeeds (with a max line length of 256k).
5459 # Instead, let's just punt: use the minimum linelength reported by
5460 # all of the supported platforms: 8192 (on NT/2K/XP).
5461 lt_cv_sys_max_cmd_len=8192;
5465 # On AmigaOS with pdksh, this test takes hours, literally.
5466 # So we just punt and use a minimum line length of 8192.
5467 lt_cv_sys_max_cmd_len=8192;
5471 # If test is not a shell built-in, we'll probably end up computing a
5472 # maximum length that is only half of the actual maximum length, but
5474 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5475 = "XX$teststring") >/dev/null 2>&1 &&
5476 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5477 lt_cv_sys_max_cmd_len=$new_result &&
5478 test $i != 17 # 1/2 MB should be enough
5481 teststring=$teststring$teststring
5484 # Add a significant safety factor because C++ compilers can tack on massive
5485 # amounts of additional arguments before passing them to the linker.
5486 # It appears as though 1/2 is a usable value.
5487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5493 if test -n $lt_cv_sys_max_cmd_len ; then
5494 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5495 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5497 echo "$as_me:$LINENO: result: none" >&5
5498 echo "${ECHO_T}none" >&6
5504 # Check for command to grab the raw symbol name followed by C symbol from nm.
5505 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5506 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5507 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 # These are sane defaults that work on at least a few old systems.
5512 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5514 # Character class describing NM global symbol codes.
5515 symcode='[BCDEGRST]'
5517 # Regexp to match symbols that can be accessed directly from C.
5518 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5520 # Transform the above into a raw symbol and a C symbol.
5521 symxfrm='\1 \2\3 \3'
5523 # Transform an extracted symbol line into a proper C declaration
5524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5526 # Transform an extracted symbol line into symbol name and symbol address
5527 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'"
5529 # Define system-specific variables.
5534 cygwin* | mingw* | pw32*)
5535 symcode='[ABCDGISTW]'
5537 hpux*) # Its linker distinguishes data from code symbols
5538 if test "$host_cpu" = ia64; then
5539 symcode='[ABCDEGRST]'
5541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5542 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'"
5545 symcode='[BCDEGRST]'
5548 symcode='[BCDEGQRST]'
5558 # Handle CRLF in mingw tool chain
5562 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5566 # If we're using GNU nm, then use its standard symbol codes.
5567 case `$NM -V 2>&1` in
5568 *GNU* | *'with BFD'*)
5569 symcode='[ABCDGIRSTW]' ;;
5572 # Try without a prefix undercore, then with it.
5573 for ac_symprfx in "" "_"; do
5575 # Write the raw and C identifiers.
5576 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5578 # Check to see that the pipe works correctly.
5582 cat > conftest.$ac_ext <<EOF
5587 void nm_test_func(){}
5591 int main(){nm_test_var='a';nm_test_func();return(0);}
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; then
5599 # Now try to grab the symbols.
5601 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5602 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && test -s "$nlist"; then
5606 # Try sorting and uniquifying the output.
5607 if sort "$nlist" | uniq > "$nlist"T; then
5608 mv -f "$nlist"T "$nlist"
5613 # Make sure that we snagged all the symbols we need.
5614 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5615 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5616 cat <<EOF > conftest.$ac_ext
5622 # Now generate the symbol file.
5623 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5625 cat <<EOF >> conftest.$ac_ext
5626 #if defined (__STDC__) && __STDC__
5627 # define lt_ptr_t void *
5629 # define lt_ptr_t char *
5633 /* The mapping between symbol names and symbols. */
5638 lt_preloaded_symbols[] =
5641 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5642 cat <<\EOF >> conftest.$ac_ext
5650 # Now try linking the two files.
5651 mv conftest.$ac_objext conftstm.$ac_objext
5652 lt_save_LIBS="$LIBS"
5653 lt_save_CFLAGS="$CFLAGS"
5654 LIBS="conftstm.$ac_objext"
5655 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5663 LIBS="$lt_save_LIBS"
5664 CFLAGS="$lt_save_CFLAGS"
5666 echo "cannot find nm_test_func in $nlist" >&5
5669 echo "cannot find nm_test_var in $nlist" >&5
5672 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5675 echo "$progname: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5678 rm -f conftest* conftst*
5680 # Do not use the global_symbol_pipe unless it works.
5681 if test "$pipe_works" = yes; then
5684 lt_cv_sys_global_symbol_pipe=
5690 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5691 lt_cv_sys_global_symbol_to_cdecl=
5693 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5694 echo "$as_me:$LINENO: result: failed" >&5
5695 echo "${ECHO_T}failed" >&6
5697 echo "$as_me:$LINENO: result: ok" >&5
5698 echo "${ECHO_T}ok" >&6
5701 echo "$as_me:$LINENO: checking for objdir" >&5
5702 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5703 if test "${lt_cv_objdir+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 rm -f .libs 2>/dev/null
5707 mkdir .libs 2>/dev/null
5708 if test -d .libs; then
5711 # MS-DOS does not allow filenames that begin with a dot.
5714 rmdir .libs 2>/dev/null
5716 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5717 echo "${ECHO_T}$lt_cv_objdir" >&6
5718 objdir=$lt_cv_objdir
5726 # AIX sometimes has problems with the GCC collect2 program. For some
5727 # reason, if we set the COLLECT_NAMES environment variable, the problems
5728 # vanish in a puff of smoke.
5729 if test "X${COLLECT_NAMES+set}" != Xset; then
5731 export COLLECT_NAMES
5736 # Sed substitution that helps us do robust quoting. It backslashifies
5737 # metacharacters that are still active within double-quoted strings.
5738 Xsed='sed -e s/^X//'
5739 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5741 # Same as above, but do not quote variable references.
5742 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5744 # Sed substitution to delay expansion of an escaped shell variable in a
5745 # double_quote_subst'ed string.
5746 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5748 # Sed substitution to avoid accidental globbing in evaled expressions
5749 no_glob_subst='s/\*/\\\*/g'
5755 default_ofile=libtool
5756 can_build_shared=yes
5758 # All known linkers require a `.a' archive for static linking (except M$VC,
5759 # which needs '.lib').
5761 ltmain="$ac_aux_dir/ltmain.sh"
5762 ofile="$default_ofile"
5763 with_gnu_ld="$lt_cv_prog_gnu_ld"
5765 if test -n "$ac_tool_prefix"; then
5766 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5767 set dummy ${ac_tool_prefix}ar; ac_word=$2
5768 echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770 if test "${ac_cv_prog_AR+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 if test -n "$AR"; then
5774 ac_cv_prog_AR="$AR" # Let the user override the test.
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783 ac_cv_prog_AR="${ac_tool_prefix}ar"
5784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 if test -n "$AR"; then
5794 echo "$as_me:$LINENO: result: $AR" >&5
5795 echo "${ECHO_T}$AR" >&6
5797 echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5802 if test -z "$ac_cv_prog_AR"; then
5804 # Extract the first word of "ar", so it can be a program name with args.
5805 set dummy ar; ac_word=$2
5806 echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 if test -n "$ac_ct_AR"; then
5812 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_ac_ct_AR="ar"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5831 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5832 if test -n "$ac_ct_AR"; then
5833 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5834 echo "${ECHO_T}$ac_ct_AR" >&6
5836 echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5845 if test -n "$ac_tool_prefix"; then
5846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_RANLIB+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 if test -n "$RANLIB"; then
5854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 RANLIB=$ac_cv_prog_RANLIB
5873 if test -n "$RANLIB"; then
5874 echo "$as_me:$LINENO: result: $RANLIB" >&5
5875 echo "${ECHO_T}$RANLIB" >&6
5877 echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6
5882 if test -z "$ac_cv_prog_RANLIB"; then
5883 ac_ct_RANLIB=$RANLIB
5884 # Extract the first word of "ranlib", so it can be a program name with args.
5885 set dummy ranlib; ac_word=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 if test -n "$ac_ct_RANLIB"; then
5892 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_ac_ct_RANLIB="ranlib"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5911 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5912 if test -n "$ac_ct_RANLIB"; then
5913 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5914 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5916 echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6
5920 RANLIB=$ac_ct_RANLIB
5922 RANLIB="$ac_cv_prog_RANLIB"
5925 if test -n "$ac_tool_prefix"; then
5926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5927 set dummy ${ac_tool_prefix}strip; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_STRIP+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 if test -n "$STRIP"; then
5934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 STRIP=$ac_cv_prog_STRIP
5953 if test -n "$STRIP"; then
5954 echo "$as_me:$LINENO: result: $STRIP" >&5
5955 echo "${ECHO_T}$STRIP" >&6
5957 echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5962 if test -z "$ac_cv_prog_STRIP"; then
5964 # Extract the first word of "strip", so it can be a program name with args.
5965 set dummy strip; ac_word=$2
5966 echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5968 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 if test -n "$ac_ct_STRIP"; then
5972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981 ac_cv_prog_ac_ct_STRIP="strip"
5982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5991 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5992 if test -n "$ac_ct_STRIP"; then
5993 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5994 echo "${ECHO_T}$ac_ct_STRIP" >&6
5996 echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6
6002 STRIP="$ac_cv_prog_STRIP"
6007 old_CFLAGS="$CFLAGS"
6009 # Set sane defaults for various variables
6010 test -z "$AR" && AR=ar
6011 test -z "$AR_FLAGS" && AR_FLAGS=cru
6012 test -z "$AS" && AS=as
6013 test -z "$CC" && CC=cc
6014 test -z "$LTCC" && LTCC=$CC
6015 test -z "$DLLTOOL" && DLLTOOL=dlltool
6016 test -z "$LD" && LD=ld
6017 test -z "$LN_S" && LN_S="ln -s"
6018 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6019 test -z "$NM" && NM=nm
6020 test -z "$SED" && SED=sed
6021 test -z "$OBJDUMP" && OBJDUMP=objdump
6022 test -z "$RANLIB" && RANLIB=:
6023 test -z "$STRIP" && STRIP=:
6024 test -z "$ac_objext" && ac_objext=o
6026 # Determine commands to create old-style static archives.
6027 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6028 old_postinstall_cmds='chmod 644 $oldlib'
6029 old_postuninstall_cmds=
6031 if test -n "$RANLIB"; then
6034 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6037 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6040 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6043 # Only perform the check for file, if the check method requires it
6044 case $deplibs_check_method in
6046 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6047 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6048 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6049 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6057 lt_save_MAGIC_CMD="$MAGIC_CMD"
6058 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6059 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6060 for ac_dir in $ac_dummy; do
6062 test -z "$ac_dir" && ac_dir=.
6063 if test -f $ac_dir/${ac_tool_prefix}file; then
6064 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6065 if test -n "$file_magic_test_file"; then
6066 case $deplibs_check_method in
6068 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6070 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6071 $EGREP "$file_magic_regex" > /dev/null; then
6076 *** Warning: the command libtool uses to detect shared libraries,
6077 *** $file_magic_cmd, produces output that libtool cannot recognize.
6078 *** The result is that libtool may fail to recognize shared libraries
6079 *** as such. This will affect the creation of libtool libraries that
6080 *** depend on shared libraries, but programs linked with such libtool
6081 *** libraries will work regardless of this problem. Nevertheless, you
6082 *** may want to report the problem to your system manager and/or to
6083 *** bug-libtool@gnu.org
6093 MAGIC_CMD="$lt_save_MAGIC_CMD"
6098 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6099 if test -n "$MAGIC_CMD"; then
6100 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6101 echo "${ECHO_T}$MAGIC_CMD" >&6
6103 echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6
6107 if test -z "$lt_cv_path_MAGIC_CMD"; then
6108 if test -n "$ac_tool_prefix"; then
6109 echo "$as_me:$LINENO: checking for file" >&5
6110 echo $ECHO_N "checking for file... $ECHO_C" >&6
6111 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6119 lt_save_MAGIC_CMD="$MAGIC_CMD"
6120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6121 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6122 for ac_dir in $ac_dummy; do
6124 test -z "$ac_dir" && ac_dir=.
6125 if test -f $ac_dir/file; then
6126 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6127 if test -n "$file_magic_test_file"; then
6128 case $deplibs_check_method in
6130 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6132 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6133 $EGREP "$file_magic_regex" > /dev/null; then
6138 *** Warning: the command libtool uses to detect shared libraries,
6139 *** $file_magic_cmd, produces output that libtool cannot recognize.
6140 *** The result is that libtool may fail to recognize shared libraries
6141 *** as such. This will affect the creation of libtool libraries that
6142 *** depend on shared libraries, but programs linked with such libtool
6143 *** libraries will work regardless of this problem. Nevertheless, you
6144 *** may want to report the problem to your system manager and/or to
6145 *** bug-libtool@gnu.org
6155 MAGIC_CMD="$lt_save_MAGIC_CMD"
6160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6161 if test -n "$MAGIC_CMD"; then
6162 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6163 echo "${ECHO_T}$MAGIC_CMD" >&6
6165 echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6181 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6182 if test "${enable_libtool_lock+set}" = set; then
6183 enableval="$enable_libtool_lock"
6186 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6189 # Check whether --with-pic or --without-pic was given.
6190 if test "${with_pic+set}" = set; then
6196 test -z "$pic_mode" && pic_mode=default
6198 # Use C for the default configuration in the libtool script
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208 # Source file extension for C test sources.
6211 # Object file extension for compiled C test sources.
6215 # Code to be used in simple compile tests
6216 lt_simple_compile_test_code="int some_variable = 0;\n"
6218 # Code to be used in simple link tests
6219 lt_simple_link_test_code='int main(){return(0);}\n'
6222 # If no C compiler was specified, use CC.
6225 # Allow CC to be a program name with arguments.
6230 # Check for any special shared library compilation flags.
6233 if test "$GCC" = no; then
6236 lt_prog_cc_shlib='-belf'
6240 if test -n "$lt_prog_cc_shlib"; then
6241 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6242 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6243 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6245 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6246 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6247 lt_cv_prog_cc_can_build_shared=no
6253 # Check to make sure the static flag actually works.
6255 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6256 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6257 if test "${lt_prog_compiler_static_works+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 lt_prog_compiler_static_works=no
6261 save_LDFLAGS="$LDFLAGS"
6262 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6263 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6265 # The compiler can only warn and ignore the option if not recognized
6266 # So say no if there are warnings
6267 if test -s conftest.err; then
6268 # Append any errors to the config.log.
6269 cat conftest.err 1>&5
6271 lt_prog_compiler_static_works=yes
6275 LDFLAGS="$save_LDFLAGS"
6278 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6279 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6281 if test x"$lt_prog_compiler_static_works" = xyes; then
6284 lt_prog_compiler_static=
6290 lt_prog_compiler_no_builtin_flag=
6292 if test "$GCC" = yes; then
6293 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6296 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6297 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6298 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 lt_cv_prog_compiler_rtti_exceptions=no
6302 ac_outfile=conftest.$ac_objext
6303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6304 lt_compiler_flag="-fno-rtti -fno-exceptions"
6305 # Insert the option either (1) after the last *FLAGS variable, or
6306 # (2) before a word containing "conftest.", or (3) at the end.
6307 # Note that $ac_compile itself does not contain backslashes and begins
6308 # with a dollar sign (not a hyphen), so the echo should work correctly.
6309 # The option is referenced via a variable to avoid confusing sed.
6310 lt_compile=`echo "$ac_compile" | $SED \
6311 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6313 -e 's:$: $lt_compiler_flag:'`
6314 (eval echo "\"\$as_me:6314: $lt_compile\"" >&5)
6315 (eval "$lt_compile" 2>conftest.err)
6317 cat conftest.err >&5
6318 echo "$as_me:6318: \$? = $ac_status" >&5
6319 if (exit $ac_status) && test -s "$ac_outfile"; then
6320 # The compiler can only warn and ignore the option if not recognized
6321 # So say no if there are warnings
6322 if test ! -s conftest.err; then
6323 lt_cv_prog_compiler_rtti_exceptions=yes
6329 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6330 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6332 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6333 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6340 lt_prog_compiler_wl=
6341 lt_prog_compiler_pic=
6342 lt_prog_compiler_static=
6344 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6345 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6347 if test "$GCC" = yes; then
6348 lt_prog_compiler_wl='-Wl,'
6349 lt_prog_compiler_static='-static'
6353 # All AIX code is PIC.
6354 if test "$host_cpu" = ia64; then
6355 # AIX 5 now supports IA64 processor
6356 lt_prog_compiler_static='-Bstatic'
6361 # FIXME: we need at least 68020 code to build shared libraries, but
6362 # adding the `-m68020' flag to GCC prevents building anything better,
6364 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6367 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6368 # PIC is the default for these OSes.
6371 mingw* | pw32* | os2*)
6372 # This hack is so that the source file can tell whether it is being
6373 # built for inclusion in a dll (and should export symbols for example).
6374 lt_prog_compiler_pic='-DDLL_EXPORT'
6377 darwin* | rhapsody*)
6378 # PIC is the default on this platform
6379 # Common symbols not allowed in MH_DYLIB files
6380 lt_prog_compiler_pic='-fno-common'
6384 # Just because we use GCC doesn't mean we suddenly get shared libraries
6385 # on systems that don't support them.
6386 lt_prog_compiler_can_build_shared=no
6391 if test -d /usr/nec; then
6392 lt_prog_compiler_pic=-Kconform_pic
6397 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6404 lt_prog_compiler_pic='-fPIC'
6410 lt_prog_compiler_pic='-fPIC'
6414 # PORTME Check for flag to pass linker flags through the system compiler.
6417 lt_prog_compiler_wl='-Wl,'
6418 if test "$host_cpu" = ia64; then
6419 # AIX 5 now supports IA64 processor
6420 lt_prog_compiler_static='-Bstatic'
6422 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6426 mingw* | pw32* | os2*)
6427 # This hack is so that the source file can tell whether it is being
6428 # built for inclusion in a dll (and should export symbols for example).
6429 lt_prog_compiler_pic='-DDLL_EXPORT'
6432 hpux9* | hpux10* | hpux11*)
6433 lt_prog_compiler_wl='-Wl,'
6434 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6441 lt_prog_compiler_pic='+Z'
6444 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6445 lt_prog_compiler_static='${wl}-a ${wl}archive'
6448 irix5* | irix6* | nonstopux*)
6449 lt_prog_compiler_wl='-Wl,'
6450 # PIC (with -KPIC) is the default.
6451 lt_prog_compiler_static='-non_shared'
6455 lt_prog_compiler_pic='-KPIC'
6456 lt_prog_compiler_static='-Bstatic'
6462 lt_prog_compiler_wl='-Wl,'
6463 lt_prog_compiler_pic='-KPIC'
6464 lt_prog_compiler_static='-static'
6467 lt_prog_compiler_wl='-Wl,'
6468 # All Alpha code is PIC.
6469 lt_prog_compiler_static='-non_shared'
6474 osf3* | osf4* | osf5*)
6475 lt_prog_compiler_wl='-Wl,'
6476 # All OSF/1 code is PIC.
6477 lt_prog_compiler_static='-non_shared'
6481 lt_prog_compiler_pic='-Kpic'
6482 lt_prog_compiler_static='-dn'
6486 lt_prog_compiler_wl='-Wl,'
6487 lt_prog_compiler_pic='-KPIC'
6488 lt_prog_compiler_static='-Bstatic'
6492 lt_prog_compiler_wl='-Qoption ld '
6493 lt_prog_compiler_pic='-PIC'
6494 lt_prog_compiler_static='-Bstatic'
6497 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6498 lt_prog_compiler_wl='-Wl,'
6499 lt_prog_compiler_pic='-KPIC'
6500 lt_prog_compiler_static='-Bstatic'
6504 if test -d /usr/nec ;then
6505 lt_prog_compiler_pic='-Kconform_pic'
6506 lt_prog_compiler_static='-Bstatic'
6511 lt_prog_compiler_pic='-pic'
6512 lt_prog_compiler_static='-Bstatic'
6516 lt_prog_compiler_can_build_shared=no
6521 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6522 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6525 # Check to make sure the PIC flag actually works.
6527 if test -n "$lt_prog_compiler_pic"; then
6529 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6530 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6531 if test "${lt_prog_compiler_pic_works+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 lt_prog_compiler_pic_works=no
6535 ac_outfile=conftest.$ac_objext
6536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6537 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6538 # Insert the option either (1) after the last *FLAGS variable, or
6539 # (2) before a word containing "conftest.", or (3) at the end.
6540 # Note that $ac_compile itself does not contain backslashes and begins
6541 # with a dollar sign (not a hyphen), so the echo should work correctly.
6542 # The option is referenced via a variable to avoid confusing sed.
6543 lt_compile=`echo "$ac_compile" | $SED \
6544 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6546 -e 's:$: $lt_compiler_flag:'`
6547 (eval echo "\"\$as_me:6547: $lt_compile\"" >&5)
6548 (eval "$lt_compile" 2>conftest.err)
6550 cat conftest.err >&5
6551 echo "$as_me:6551: \$? = $ac_status" >&5
6552 if (exit $ac_status) && test -s "$ac_outfile"; then
6553 # The compiler can only warn and ignore the option if not recognized
6554 # So say no if there are warnings
6555 if test ! -s conftest.err; then
6556 lt_prog_compiler_pic_works=yes
6562 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6563 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6565 if test x"$lt_prog_compiler_pic_works" = xyes; then
6566 case $lt_prog_compiler_pic in
6568 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6571 lt_prog_compiler_pic=
6572 lt_prog_compiler_can_build_shared=no
6577 # For platforms which do not support PIC, -DPIC is meaningless:
6579 lt_prog_compiler_pic=
6582 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6586 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6588 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 lt_cv_prog_compiler_c_o=no
6592 $rm -r conftest 2>/dev/null
6596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6598 lt_compiler_flag="-o out/conftest2.$ac_objext"
6599 # Insert the option either (1) after the last *FLAGS variable, or
6600 # (2) before a word containing "conftest.", or (3) at the end.
6601 # Note that $ac_compile itself does not contain backslashes and begins
6602 # with a dollar sign (not a hyphen), so the echo should work correctly.
6603 lt_compile=`echo "$ac_compile" | $SED \
6604 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6606 -e 's:$: $lt_compiler_flag:'`
6607 (eval echo "\"\$as_me:6607: $lt_compile\"" >&5)
6608 (eval "$lt_compile" 2>out/conftest.err)
6610 cat out/conftest.err >&5
6611 echo "$as_me:6611: \$? = $ac_status" >&5
6612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6614 # The compiler can only warn and ignore the option if not recognized
6615 # So say no if there are warnings
6616 if test ! -s out/conftest.err; then
6617 lt_cv_prog_compiler_c_o=yes
6622 # SGI C++ compiler will create directory out/ii_files/ for
6623 # template instantiation
6624 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6625 $rm out/* && rmdir out
6631 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6635 hard_links="nottested"
6636 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6637 # do not overwrite the value of need_locks provided by the user
6638 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6644 ln conftest.a conftest.b 2>&5 || hard_links=no
6645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6646 echo "$as_me:$LINENO: result: $hard_links" >&5
6647 echo "${ECHO_T}$hard_links" >&6
6648 if test "$hard_links" = no; then
6649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6661 allow_undefined_flag=
6662 enable_shared_with_static_runtimes=no
6664 archive_expsym_cmds=
6665 old_archive_From_new_cmds=
6666 old_archive_from_expsyms_cmds=
6667 export_dynamic_flag_spec=
6668 whole_archive_flag_spec=
6669 thread_safe_flag_spec=
6670 hardcode_libdir_flag_spec=
6671 hardcode_libdir_flag_spec_ld=
6672 hardcode_libdir_separator=
6675 hardcode_shlibpath_var=unsupported
6676 link_all_deplibs=unknown
6677 hardcode_automatic=no
6680 always_export_symbols=no
6681 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6682 # include_expsyms should be a list of space-separated symbols to be *always*
6683 # included in the symbol list
6685 # exclude_expsyms can be an extended regexp of symbols to exclude
6686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6688 # as well as any symbol that contains `d'.
6689 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6691 # platforms (ab)use it in PIC code, but their linkers get confused if
6692 # the symbol is explicitly referenced. Since portable code cannot
6693 # rely on this symbol name, it's probably fine to never include it in
6694 # preloaded symbol tables.
6695 extract_expsyms_cmds=
6698 cygwin* | mingw* | pw32*)
6699 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6700 # When not using gcc, we currently assume that we are using
6701 # Microsoft Visual C++.
6702 if test "$GCC" != yes; then
6712 if test "$with_gnu_ld" = yes; then
6713 # If archive_cmds runs LD, not CC, wlarc should be empty
6716 # See if GNU ld supports shared libraries.
6718 aix3* | aix4* | aix5*)
6719 # On AIX/PPC, the GNU linker is very broken
6720 if test "$host_cpu" != ia64; then
6724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6725 *** to be unable to reliably create shared libraries on AIX.
6726 *** Therefore, libtool is disabling shared libraries support. If you
6727 *** really care for shared libraries, you may want to modify your PATH
6728 *** so that a non-GNU linker is found, and then restart.
6735 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)'
6736 hardcode_libdir_flag_spec='-L$libdir'
6737 hardcode_minus_L=yes
6739 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6740 # that the semantics of dynamic libraries on AmigaOS, at least up
6741 # to version 4, is to share data among multiple programs linked
6742 # with the same dynamic library. Since this doesn't match the
6743 # behavior of shared libraries on other platforms, we can't use
6749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6750 allow_undefined_flag=unsupported
6751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6752 # support --undefined. This deserves some investigation. FIXME
6753 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6759 cygwin* | mingw* | pw32*)
6760 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6761 # as there is no search path for DLLs.
6762 hardcode_libdir_flag_spec='-L$libdir'
6763 allow_undefined_flag=unsupported
6764 always_export_symbols=no
6765 enable_shared_with_static_runtimes=yes
6766 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6768 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6770 # If the export-symbols file already is a .def file (1st line
6771 # is EXPORTS), use it as is; otherwise, prepend...
6772 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6773 cp $export_symbols $output_objdir/$soname.def;
6775 echo EXPORTS > $output_objdir/$soname.def;
6776 cat $export_symbols >> $output_objdir/$soname.def;
6778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6784 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6786 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6795 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6799 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6800 *** create shared libraries on Solaris systems. Therefore, libtool
6801 *** is disabling shared libraries support. We urge you to upgrade GNU
6802 *** binutils to release 2.9.1 or newer. Another option is to modify
6803 *** your PATH or compiler configuration so that the native linker is
6804 *** used, and then restart.
6807 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6816 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6819 hardcode_shlibpath_var=no
6823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6824 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6825 archive_cmds="$tmp_archive_cmds"
6826 supports_anon_versioning=no
6827 case `$LD -v 2>/dev/null` in
6828 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6829 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6830 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6831 *\ 2.11.*) ;; # other 2.11 versions
6832 *) supports_anon_versioning=yes ;;
6834 if test $supports_anon_versioning = yes; then
6835 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6836 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6837 $echo "local: *; };" >> $output_objdir/$libname.ver~
6838 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6840 archive_expsym_cmds="$tmp_archive_cmds"
6849 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6858 if test "$ld_shlibs" = yes; then
6859 runpath_var=LD_RUN_PATH
6860 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6861 export_dynamic_flag_spec='${wl}--export-dynamic'
6862 # ancient GNU ld didn't support --whole-archive et. al.
6863 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6864 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6866 whole_archive_flag_spec=
6870 # PORTME fill in a description of your system's linker (not GNU ld)
6873 allow_undefined_flag=unsupported
6874 always_export_symbols=yes
6875 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'
6876 # Note: this linker hardcodes the directories in LIBPATH if there
6877 # are no directories specified by -L.
6878 hardcode_minus_L=yes
6879 if test "$GCC" = yes && test -z "$link_static_flag"; then
6880 # Neither direct hardcoding nor static linking is supported with a
6882 hardcode_direct=unsupported
6887 if test "$host_cpu" = ia64; then
6888 # On IA64, the linker does run time linking by default, so we don't
6889 # have to do anything special.
6890 aix_use_runtimelinking=no
6891 exp_sym_flag='-Bexport'
6894 # If we're using GNU nm, then we don't want the "-C" option.
6895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6896 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6897 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'
6899 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'
6901 aix_use_runtimelinking=no
6903 # Test if we are trying to use run time linking or normal
6904 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6905 # need to do runtime linking.
6906 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6907 for ld_flag in $LDFLAGS; do
6908 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6909 aix_use_runtimelinking=yes
6915 exp_sym_flag='-bexport'
6916 no_entry_flag='-bnoentry'
6919 # When large executables or shared objects are built, AIX ld can
6920 # have problems creating the table of contents. If linking a library
6921 # or program results in "error TOC overflow" add -mminimal-toc to
6922 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6923 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6927 hardcode_libdir_separator=':'
6928 link_all_deplibs=yes
6930 if test "$GCC" = yes; then
6931 case $host_os in aix4.012|aix4.012.*)
6932 # We only want to do this on AIX 4.2 and lower, the check
6933 # below for broken collect2 doesn't work under 4.3+
6934 collect2name=`${CC} -print-prog-name=collect2`
6935 if test -f "$collect2name" && \
6936 strings "$collect2name" | grep resolve_lib_name >/dev/null
6938 # We have reworked collect2
6941 # We have old collect2
6942 hardcode_direct=unsupported
6943 # It fails to find uninstalled libraries when the uninstalled
6944 # path is not listed in the libpath. Setting hardcode_minus_L
6945 # to unsupported forces relinking
6946 hardcode_minus_L=yes
6947 hardcode_libdir_flag_spec='-L$libdir'
6948 hardcode_libdir_separator=
6951 shared_flag='-shared'
6954 if test "$host_cpu" = ia64; then
6955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6956 # chokes on -Wl,-G. The following line is correct:
6959 if test "$aix_use_runtimelinking" = yes; then
6960 shared_flag='${wl}-G'
6962 shared_flag='${wl}-bM:SRE'
6967 # It seems that -bexpall does not export symbols beginning with
6968 # underscore (_), so it is better to generate a list of symbols to export.
6969 always_export_symbols=yes
6970 if test "$aix_use_runtimelinking" = yes; then
6971 # Warning - without using the other runtime loading flags (-brtl),
6972 # -berok will link without error, but may produce a broken library.
6973 allow_undefined_flag='-berok'
6974 # Determine the default libpath from the value encoded in an empty executable.
6975 cat >conftest.$ac_ext <<_ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6990 rm -f conftest.$ac_objext conftest$ac_exeext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6992 (eval $ac_link) 2>conftest.er1
6994 grep -v '^ *+' conftest.er1 >conftest.err
6996 cat conftest.err >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } &&
6999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try='test -s conftest$ac_exeext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7012 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7014 # Check for a 64-bit object if we didn't find anything.
7015 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; }
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7022 rm -f conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
7024 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7026 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7027 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"
7029 if test "$host_cpu" = ia64; then
7030 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7031 allow_undefined_flag="-z nodefs"
7032 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"
7034 # Determine the default libpath from the value encoded in an empty executable.
7035 cat >conftest.$ac_ext <<_ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7050 rm -f conftest.$ac_objext conftest$ac_exeext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7052 (eval $ac_link) 2>conftest.er1
7054 grep -v '^ *+' conftest.er1 >conftest.err
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; } &&
7065 { ac_try='test -s conftest$ac_exeext'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7074 # Check for a 64-bit object if we didn't find anything.
7075 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; }
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7082 rm -f conftest.err conftest.$ac_objext \
7083 conftest$ac_exeext conftest.$ac_ext
7084 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7086 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7087 # Warning - without using the other run time loading flags,
7088 # -berok will link without error, but may produce a broken library.
7089 no_undefined_flag=' ${wl}-bernotok'
7090 allow_undefined_flag=' ${wl}-berok'
7091 # -bexpall does not export symbols beginning with underscore (_)
7092 always_export_symbols=yes
7093 # Exported symbols can be pulled into shared objects from archives
7094 whole_archive_flag_spec=' '
7095 archive_cmds_need_lc=yes
7096 # This is similar to how AIX traditionally builds it's shared libraries.
7097 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'
7103 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)'
7104 hardcode_libdir_flag_spec='-L$libdir'
7105 hardcode_minus_L=yes
7106 # see comment about different semantics on the GNU ld section
7111 export_dynamic_flag_spec=-rdynamic
7114 cygwin* | mingw* | pw32*)
7115 # When not using gcc, we currently assume that we are using
7116 # Microsoft Visual C++.
7117 # hardcode_libdir_flag_spec is actually meaningless, as there is
7118 # no search path for DLLs.
7119 hardcode_libdir_flag_spec=' '
7120 allow_undefined_flag=unsupported
7121 # Tell ltmain to make .lib files, not .a files.
7123 # Tell ltmain to make .dll files, not .so files.
7125 # FIXME: Setting linknames here is a bad hack.
7126 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7127 # The linker will automatically build a .lib file if we build a DLL.
7128 old_archive_From_new_cmds='true'
7129 # FIXME: Should let the user specify the lib program.
7130 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7131 fix_srcfile_path='`cygpath -w "$srcfile"`'
7132 enable_shared_with_static_runtimes=yes
7135 darwin* | rhapsody*)
7136 if test "$GXX" = yes ; then
7137 archive_cmds_need_lc=no
7139 rhapsody* | darwin1.[012])
7140 allow_undefined_flag='-undefined suppress'
7143 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7144 allow_undefined_flag='-flat_namespace -undefined suppress'
7146 case ${MACOSX_DEPLOYMENT_TARGET} in
7148 allow_undefined_flag='-flat_namespace -undefined suppress'
7151 allow_undefined_flag='-undefined dynamic_lookup'
7157 lt_int_apple_cc_single_mod=no
7158 output_verbose_link_cmd='echo'
7159 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7160 lt_int_apple_cc_single_mod=yes
7162 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7163 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7165 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'
7167 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7168 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7169 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7170 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}'
7172 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}'
7174 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}'
7176 hardcode_automatic=yes
7177 hardcode_shlibpath_var=unsupported
7178 whole_archive_flag_spec='-all_load $convenience'
7179 link_all_deplibs=yes
7186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7187 hardcode_libdir_flag_spec='-L$libdir'
7188 hardcode_shlibpath_var=no
7195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7196 # support. Future versions do this automatically, but an explicit c++rt0.o
7197 # does not break anything, and helps significantly (at the cost of a little
7200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7201 hardcode_libdir_flag_spec='-R$libdir'
7203 hardcode_shlibpath_var=no
7206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7210 hardcode_minus_L=yes
7211 hardcode_shlibpath_var=no
7214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7215 freebsd* | kfreebsd*-gnu)
7216 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7217 hardcode_libdir_flag_spec='-R$libdir'
7219 hardcode_shlibpath_var=no
7223 if test "$GCC" = yes; then
7224 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'
7226 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'
7228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7229 hardcode_libdir_separator=:
7232 # hardcode_minus_L: Not really in the search PATH,
7233 # but as the default location of the library.
7234 hardcode_minus_L=yes
7235 export_dynamic_flag_spec='${wl}-E'
7239 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7242 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7245 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7251 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7254 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7258 if test "$with_gnu_ld" = no; then
7261 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7262 hardcode_libdir_flag_spec_ld='+b $libdir'
7263 hardcode_libdir_separator=:
7265 hardcode_shlibpath_var=no
7268 hardcode_libdir_flag_spec='-L$libdir'
7270 hardcode_shlibpath_var=no
7272 # hardcode_minus_L: Not really in the search PATH,
7273 # but as the default location of the library.
7274 hardcode_minus_L=yes
7277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7278 hardcode_libdir_separator=:
7280 export_dynamic_flag_spec='${wl}-E'
7282 # hardcode_minus_L: Not really in the search PATH,
7283 # but as the default location of the library.
7284 hardcode_minus_L=yes
7290 irix5* | irix6* | nonstopux*)
7291 if test "$GCC" = yes; then
7292 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'
7294 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'
7295 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7298 hardcode_libdir_separator=:
7299 link_all_deplibs=yes
7302 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7306 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7308 hardcode_libdir_flag_spec='-R$libdir'
7310 hardcode_shlibpath_var=no
7314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7317 hardcode_libdir_separator=:
7318 hardcode_shlibpath_var=no
7323 hardcode_shlibpath_var=no
7324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7326 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7327 export_dynamic_flag_spec='${wl}-E'
7330 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7332 hardcode_libdir_flag_spec='-R$libdir'
7335 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7343 hardcode_libdir_flag_spec='-L$libdir'
7344 hardcode_minus_L=yes
7345 allow_undefined_flag=unsupported
7346 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'
7347 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7351 if test "$GCC" = yes; then
7352 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7353 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'
7355 allow_undefined_flag=' -expect_unresolved \*'
7356 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'
7358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7359 hardcode_libdir_separator=:
7362 osf4* | osf5*) # as osf3* with the addition of -msym flag
7363 if test "$GCC" = yes; then
7364 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7365 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'
7366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7368 allow_undefined_flag=' -expect_unresolved \*'
7369 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'
7370 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7371 $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'
7373 # Both c and cxx compiler support -rpath directly
7374 hardcode_libdir_flag_spec='-rpath $libdir'
7376 hardcode_libdir_separator=:
7380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7381 hardcode_shlibpath_var=no
7382 export_dynamic_flag_spec='${wl}-Bexport'
7383 runpath_var=LD_RUN_PATH
7384 hardcode_runpath_var=yes
7388 no_undefined_flag=' -z text'
7389 if test "$GCC" = yes; then
7390 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7391 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7392 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7398 hardcode_libdir_flag_spec='-R$libdir'
7399 hardcode_shlibpath_var=no
7401 solaris2.[0-5] | solaris2.[0-5].*) ;;
7402 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7403 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7405 link_all_deplibs=yes
7409 if test "x$host_vendor" = xsequent; then
7410 # Use $CC to link under sequent, because it throws in some extra .o
7411 # files that make .init and .fini sections work.
7412 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7414 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7416 hardcode_libdir_flag_spec='-L$libdir'
7418 hardcode_minus_L=yes
7419 hardcode_shlibpath_var=no
7423 case $host_vendor in
7425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7426 hardcode_direct=yes # is this really true???
7429 ## LD is ld it makes a PLAMLIB
7430 ## CC just makes a GrossModule.
7431 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7432 reload_cmds='$CC -r -o $output$reload_objs'
7436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7437 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7440 runpath_var='LD_RUN_PATH'
7441 hardcode_shlibpath_var=no
7445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7446 hardcode_shlibpath_var=no
7447 export_dynamic_flag_spec='-Bexport'
7451 if test -d /usr/nec; then
7452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7453 hardcode_shlibpath_var=no
7454 runpath_var=LD_RUN_PATH
7455 hardcode_runpath_var=yes
7461 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7464 hardcode_shlibpath_var=no
7465 hardcode_runpath_var=yes
7466 runpath_var=LD_RUN_PATH
7469 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7470 no_undefined_flag='${wl}-z ${wl}text'
7471 if test "$GCC" = yes; then
7472 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7474 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7476 runpath_var='LD_RUN_PATH'
7477 hardcode_shlibpath_var=no
7481 no_undefined_flag=' -z text'
7482 # $CC -shared without GNU ld will not create a library from C++
7483 # object files and a static libstdc++, better avoid it by now
7484 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7485 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7486 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7487 hardcode_libdir_flag_spec=
7488 hardcode_shlibpath_var=no
7489 runpath_var='LD_RUN_PATH'
7493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7494 hardcode_libdir_flag_spec='-L$libdir'
7495 hardcode_shlibpath_var=no
7504 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7505 echo "${ECHO_T}$ld_shlibs" >&6
7506 test "$ld_shlibs" = no && can_build_shared=no
7508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7509 if test "$GCC" = yes; then
7510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7514 # Do we need to explicitly link libc?
7516 case "x$archive_cmds_need_lc" in
7518 # Assume -lc should be added
7519 archive_cmds_need_lc=yes
7521 if test "$enable_shared" = yes && test "$GCC" = yes; then
7522 case $archive_cmds in
7524 # FIXME: we may have to deal with multi-command sequences.
7527 # Test whether the compiler implicitly links with -lc since on some
7528 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7529 # to ld, don't add -lc before -lgcc.
7530 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7531 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } 2>conftest.err; then
7542 libobjs=conftest.$ac_objext
7544 wl=$lt_prog_compiler_wl
7550 lt_save_allow_undefined_flag=$allow_undefined_flag
7551 allow_undefined_flag=
7552 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7553 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }
7558 archive_cmds_need_lc=no
7560 archive_cmds_need_lc=yes
7562 allow_undefined_flag=$lt_save_allow_undefined_flag
7564 cat conftest.err 1>&5
7567 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7568 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7575 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7576 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7578 libname_spec='lib$name'
7586 shlibpath_overrides_runpath=unknown
7588 dynamic_linker="$host_os ld.so"
7589 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7590 if test "$GCC" = yes; then
7591 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7592 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7593 # if the path contains ";" then we assume it to be the separator
7594 # otherwise default to the standard path separator (i.e. ":") - it is
7595 # assumed that no part of a normal pathname contains ";" but that should
7596 # okay in the real world where ";" in dirpaths is itself problematic.
7597 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7599 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7602 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7604 need_lib_prefix=unknown
7605 hardcode_into_libs=no
7607 # when you set need_version to no, make sure it does not cause -set_version
7608 # flags to be left without arguments
7609 need_version=unknown
7614 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7615 shlibpath_var=LIBPATH
7617 # AIX 3 has no versioning support, so we append a major version to the name.
7618 soname_spec='${libname}${release}${shared_ext}$major'
7625 hardcode_into_libs=yes
7626 if test "$host_cpu" = ia64; then
7627 # AIX 5 supports IA64
7628 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7629 shlibpath_var=LD_LIBRARY_PATH
7631 # With GCC up to 2.95.x, collect2 would create an import file
7632 # for dependence libraries. The import file would start with
7633 # the line `#! .'. This would cause the generated library to
7634 # depend on `.', always an invalid library. This was fixed in
7635 # development snapshots of GCC prior to 3.0.
7637 aix4 | aix4.[01] | aix4.[01].*)
7638 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7640 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7647 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7648 # soname into executable. Probably we can add versioning support to
7649 # collect2, so additional links can be useful in future.
7650 if test "$aix_use_runtimelinking" = yes; then
7651 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7652 # instead of lib<name>.a to let people know that these are not
7653 # typical AIX shared libraries.
7654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7656 # We preserve .a as extension for shared libraries through AIX4.2
7657 # and later when we are not doing run time linking.
7658 library_names_spec='${libname}${release}.a $libname.a'
7659 soname_spec='${libname}${release}${shared_ext}$major'
7661 shlibpath_var=LIBPATH
7666 library_names_spec='$libname.ixlibrary $libname.a'
7667 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7668 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'
7672 library_names_spec='${libname}${shared_ext}'
7673 dynamic_linker="$host_os ld.so"
7674 shlibpath_var=LIBRARY_PATH
7680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7681 soname_spec='${libname}${release}${shared_ext}$major'
7682 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7683 shlibpath_var=LD_LIBRARY_PATH
7684 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7685 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7686 # the default ld.so.conf also contains /usr/contrib/lib and
7687 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7688 # libtool to hard-code these into programs
7691 cygwin* | mingw* | pw32*)
7692 version_type=windows
7697 case $GCC,$host_os in
7698 yes,cygwin* | yes,mingw* | yes,pw32*)
7699 library_names_spec='$libname.dll.a'
7700 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7701 postinstall_cmds='base_file=`basename \${file}`~
7702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7703 dldir=$destdir/`dirname \$dlpath`~
7704 test -d \$dldir || mkdir -p \$dldir~
7705 $install_prog $dir/$dlname \$dldir/$dlname'
7706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7707 dlpath=$dir/\$dldll~
7709 shlibpath_overrides_runpath=yes
7713 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7714 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7715 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7718 # MinGW DLLs use traditional 'lib' prefix
7719 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7720 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7721 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7722 # It is most probably a Windows format PATH printed by
7723 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7724 # path with ; separators, and with drive letters. We can handle the
7725 # drive letters (cygwin fileutils understands them), so leave them,
7726 # especially as we might pass files found there to a mingw objdump,
7727 # which wouldn't understand a cygwinified path. Ahh.
7728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7734 # pw32 DLLs use 'pw' prefix rather than 'lib'
7735 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7741 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7744 dynamic_linker='Win32 ld.exe'
7745 # FIXME: first we should search . and the directory the executable is in
7749 darwin* | rhapsody*)
7750 dynamic_linker="$host_os dyld"
7754 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7755 soname_spec='${libname}${release}${major}$shared_ext'
7756 shlibpath_overrides_runpath=yes
7757 shlibpath_var=DYLD_LIBRARY_PATH
7758 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7759 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7760 if test "$GCC" = yes; then
7761 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"`
7763 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7765 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7773 soname_spec='${libname}${release}${shared_ext}$major'
7774 shlibpath_var=LD_LIBRARY_PATH
7785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7786 soname_spec='${libname}${release}${shared_ext}$major'
7787 shlibpath_var=LD_LIBRARY_PATH
7788 shlibpath_overrides_runpath=no
7789 hardcode_into_libs=yes
7790 dynamic_linker='GNU ld.so'
7794 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7795 version_type=freebsd-$objformat
7796 case $version_type in
7798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7807 shlibpath_var=LD_LIBRARY_PATH
7810 shlibpath_overrides_runpath=yes
7812 freebsd3.01* | freebsdelf3.01*)
7813 shlibpath_overrides_runpath=yes
7814 hardcode_into_libs=yes
7817 shlibpath_overrides_runpath=no
7818 hardcode_into_libs=yes
7827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7828 soname_spec='${libname}${release}${shared_ext}$major'
7829 shlibpath_var=LD_LIBRARY_PATH
7830 hardcode_into_libs=yes
7833 hpux9* | hpux10* | hpux11*)
7834 # Give a soname corresponding to the major version so that dld.sl refuses to
7835 # link against other versions.
7842 hardcode_into_libs=yes
7843 dynamic_linker="$host_os dld.so"
7844 shlibpath_var=LD_LIBRARY_PATH
7845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7847 soname_spec='${libname}${release}${shared_ext}$major'
7848 if test "X$HPUX_IA64_MODE" = X32; then
7849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7857 hardcode_into_libs=yes
7858 dynamic_linker="$host_os dld.sl"
7859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862 soname_spec='${libname}${release}${shared_ext}$major'
7863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7868 dynamic_linker="$host_os dld.sl"
7869 shlibpath_var=SHLIB_PATH
7870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7872 soname_spec='${libname}${release}${shared_ext}$major'
7875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7876 postinstall_cmds='chmod 555 $lib'
7879 irix5* | irix6* | nonstopux*)
7881 nonstopux*) version_type=nonstopux ;;
7883 if test "$lt_cv_prog_gnu_ld" = yes; then
7891 soname_spec='${libname}${release}${shared_ext}$major'
7892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7894 irix5* | nonstopux*)
7898 case $LD in # libtool.m4 will add one of these switches to LD
7899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7900 libsuff= shlibsuff= libmagic=32-bit;;
7901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7902 libsuff=32 shlibsuff=N32 libmagic=N32;;
7903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7904 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7905 *) libsuff= shlibsuff= libmagic=never-match;;
7909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7910 shlibpath_overrides_runpath=no
7911 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7912 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7913 hardcode_into_libs=yes
7916 # No shared lib support for Linux oldld, aout, or coff.
7917 linux*oldld* | linux*aout* | linux*coff*)
7921 # This must be Linux ELF.
7926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7927 soname_spec='${libname}${release}${shared_ext}$major'
7928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7929 shlibpath_var=LD_LIBRARY_PATH
7930 shlibpath_overrides_runpath=no
7931 # This implies no fast_install, which is unacceptable.
7932 # Some rework will be needed to allow for fast_install
7933 # before this can be enabled.
7934 hardcode_into_libs=yes
7936 # Append ld.so.conf contents to the search path
7937 if test -f /etc/ld.so.conf; then
7938 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7939 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7942 # We used to test for /lib/ld.so.1 and disable shared libraries on
7943 # powerpc, because MkLinux only supported shared libraries with the
7944 # GNU dynamic linker. Since this was broken with cross compilers,
7945 # most powerpc-linux boxes support dynamic linking these days and
7946 # people can always --disable-shared, the test was removed, and we
7947 # assume the GNU/Linux dynamic linker is in use.
7948 dynamic_linker='GNU/Linux ld.so'
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 shlibpath_overrides_runpath=no
7959 hardcode_into_libs=yes
7960 dynamic_linker='NetBSD ld.elf_so'
7967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7968 soname_spec='${libname}${release}${shared_ext}$major'
7969 shlibpath_var=LD_LIBRARY_PATH
7970 shlibpath_overrides_runpath=no
7971 hardcode_into_libs=yes
7972 dynamic_linker='GNU ld.so'
7979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7982 dynamic_linker='NetBSD (a.out) ld.so'
7984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7985 soname_spec='${libname}${release}${shared_ext}$major'
7986 dynamic_linker='NetBSD ld.elf_so'
7988 shlibpath_var=LD_LIBRARY_PATH
7989 shlibpath_overrides_runpath=yes
7990 hardcode_into_libs=yes
7995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7996 shlibpath_var=LD_LIBRARY_PATH
7997 shlibpath_overrides_runpath=yes
8004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8005 soname_spec='${libname}${release}${shared_ext}$major'
8006 shlibpath_var=LD_LIBRARY_PATH
8007 shlibpath_overrides_runpath=yes
8014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8016 shlibpath_var=LD_LIBRARY_PATH
8017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8019 openbsd2.[89] | openbsd2.[89].*)
8020 shlibpath_overrides_runpath=no
8023 shlibpath_overrides_runpath=yes
8027 shlibpath_overrides_runpath=yes
8032 libname_spec='$name'
8035 library_names_spec='$libname${shared_ext} $libname.a'
8036 dynamic_linker='OS/2 ld.exe'
8037 shlibpath_var=LIBPATH
8040 osf3* | osf4* | osf5*)
8044 soname_spec='${libname}${release}${shared_ext}$major'
8045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8046 shlibpath_var=LD_LIBRARY_PATH
8047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8048 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8053 soname_spec='${libname}${release}${shared_ext}$major'
8054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8055 shlibpath_var=LD_LIBRARY_PATH
8062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8063 soname_spec='${libname}${release}${shared_ext}$major'
8064 shlibpath_var=LD_LIBRARY_PATH
8065 shlibpath_overrides_runpath=yes
8066 hardcode_into_libs=yes
8067 # ldd complains unless libraries are executable
8068 postinstall_cmds='chmod +x $lib'
8073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8075 shlibpath_var=LD_LIBRARY_PATH
8076 shlibpath_overrides_runpath=yes
8077 if test "$with_gnu_ld" = yes; then
8083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8086 soname_spec='${libname}${release}${shared_ext}$major'
8087 shlibpath_var=LD_LIBRARY_PATH
8088 case $host_vendor in
8090 shlibpath_overrides_runpath=no
8092 export_dynamic_flag_spec='${wl}-Blargedynsym'
8093 runpath_var=LD_RUN_PATH
8101 shlibpath_overrides_runpath=no
8102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8108 if test -d /usr/nec ;then
8110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8111 soname_spec='$libname${shared_ext}.$major'
8112 shlibpath_var=LD_LIBRARY_PATH
8118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8119 soname_spec='${libname}${release}${shared_ext}$major'
8120 shlibpath_var=LD_LIBRARY_PATH
8127 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8128 echo "${ECHO_T}$dynamic_linker" >&6
8129 test "$dynamic_linker" = no && can_build_shared=no
8131 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8132 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8134 if test -n "$hardcode_libdir_flag_spec" || \
8135 test -n "$runpath_var " || \
8136 test "X$hardcode_automatic"="Xyes" ; then
8138 # We can hardcode non-existant directories.
8139 if test "$hardcode_direct" != no &&
8140 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8141 # have to relink, otherwise we might link with an installed library
8142 # when we should be linking with a yet-to-be-installed one
8143 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8144 test "$hardcode_minus_L" != no; then
8145 # Linking always hardcodes the temporary library directory.
8146 hardcode_action=relink
8148 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8149 hardcode_action=immediate
8152 # We cannot hardcode anything, or else we can only hardcode existing
8154 hardcode_action=unsupported
8156 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8157 echo "${ECHO_T}$hardcode_action" >&6
8159 if test "$hardcode_action" = relink; then
8160 # Fast installation is not supported
8161 enable_fast_install=no
8162 elif test "$shlibpath_overrides_runpath" = yes ||
8163 test "$enable_shared" = no; then
8164 # Fast installation is not necessary
8165 enable_fast_install=needless
8170 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8171 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8172 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8173 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8174 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8175 echo "$as_me:$LINENO: result: yes" >&5
8176 echo "${ECHO_T}yes" >&6
8178 # FIXME - insert some real tests, host_os isn't really good enough
8181 if test -n "$STRIP" ; then
8182 striplib="$STRIP -x"
8183 echo "$as_me:$LINENO: result: yes" >&5
8184 echo "${ECHO_T}yes" >&6
8186 echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6
8191 echo "$as_me:$LINENO: result: no" >&5
8192 echo "${ECHO_T}no" >&6
8197 if test "x$enable_dlopen" != xyes; then
8198 enable_dlopen=unknown
8199 enable_dlopen_self=unknown
8200 enable_dlopen_self_static=unknown
8207 lt_cv_dlopen="load_add_on"
8209 lt_cv_dlopen_self=yes
8213 lt_cv_dlopen="LoadLibrary"
8218 lt_cv_dlopen="dlopen"
8223 # if libdl is installed we need to link against it
8224 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 ac_check_lib_save_LIBS=$LIBS
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8238 /* Override any gcc2 internal prototype to avoid an error. */
8242 /* We use char because int might match the return type of a gcc2
8243 builtin and then its argument prototype would still apply. */
8253 rm -f conftest.$ac_objext conftest$ac_exeext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255 (eval $ac_link) 2>conftest.er1
8257 grep -v '^ *+' conftest.er1 >conftest.err
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; } &&
8268 { ac_try='test -s conftest$ac_exeext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 ac_cv_lib_dl_dlopen=yes
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 ac_cv_lib_dl_dlopen=no
8281 rm -f conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283 LIBS=$ac_check_lib_save_LIBS
8285 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8286 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8287 if test $ac_cv_lib_dl_dlopen = yes; then
8288 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8293 lt_cv_dlopen_self=yes
8300 echo "$as_me:$LINENO: checking for shl_load" >&5
8301 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8302 if test "${ac_cv_func_shl_load+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 cat >conftest.$ac_ext <<_ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8313 #define shl_load innocuous_shl_load
8315 /* System header to define __stub macros and hopefully few prototypes,
8316 which can conflict with char shl_load (); below.
8317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318 <limits.h> exists even on freestanding compilers. */
8321 # include <limits.h>
8323 # include <assert.h>
8328 /* Override any gcc2 internal prototype to avoid an error. */
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8336 /* The GNU C library defines this for functions which it implements
8337 to always fail with ENOSYS. Some functions are actually named
8338 something starting with __ and the normal name is an alias. */
8339 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8342 char (*f) () = shl_load;
8351 return f != shl_load;
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>conftest.er1
8360 grep -v '^ *+' conftest.er1 >conftest.err
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_func_shl_load=yes
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_func_shl_load=no
8384 rm -f conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8387 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8388 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8389 if test $ac_cv_func_shl_load = yes; then
8390 lt_cv_dlopen="shl_load"
8392 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8393 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8394 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 ac_check_lib_save_LIBS=$LIBS
8399 cat >conftest.$ac_ext <<_ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8406 /* Override any gcc2 internal prototype to avoid an error. */
8410 /* We use char because int might match the return type of a gcc2
8411 builtin and then its argument prototype would still apply. */
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>conftest.er1
8425 grep -v '^ *+' conftest.er1 >conftest.err
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; } &&
8436 { ac_try='test -s conftest$ac_exeext'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_cv_lib_dld_shl_load=yes
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8447 ac_cv_lib_dld_shl_load=no
8449 rm -f conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8453 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8454 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8455 if test $ac_cv_lib_dld_shl_load = yes; then
8456 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8458 echo "$as_me:$LINENO: checking for dlopen" >&5
8459 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8460 if test "${ac_cv_func_dlopen+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8471 #define dlopen innocuous_dlopen
8473 /* System header to define __stub macros and hopefully few prototypes,
8474 which can conflict with char dlopen (); below.
8475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8476 <limits.h> exists even on freestanding compilers. */
8479 # include <limits.h>
8481 # include <assert.h>
8486 /* Override any gcc2 internal prototype to avoid an error. */
8491 /* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */
8494 /* The GNU C library defines this for functions which it implements
8495 to always fail with ENOSYS. Some functions are actually named
8496 something starting with __ and the normal name is an alias. */
8497 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8500 char (*f) () = dlopen;
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest$ac_exeext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_func_dlopen=yes
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 ac_cv_func_dlopen=no
8542 rm -f conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8545 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8546 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8547 if test $ac_cv_func_dlopen = yes; then
8548 lt_cv_dlopen="dlopen"
8550 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8551 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8552 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 ac_check_lib_save_LIBS=$LIBS
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8564 /* Override any gcc2 internal prototype to avoid an error. */
8568 /* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581 (eval $ac_link) 2>conftest.er1
8583 grep -v '^ *+' conftest.er1 >conftest.err
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest$ac_exeext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_cv_lib_dl_dlopen=yes
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8605 ac_cv_lib_dl_dlopen=no
8607 rm -f conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
8609 LIBS=$ac_check_lib_save_LIBS
8611 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8612 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8613 if test $ac_cv_lib_dl_dlopen = yes; then
8614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8616 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8617 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8618 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 ac_check_lib_save_LIBS=$LIBS
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8630 /* Override any gcc2 internal prototype to avoid an error. */
8634 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */
8645 rm -f conftest.$ac_objext conftest$ac_exeext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8647 (eval $ac_link) 2>conftest.er1
8649 grep -v '^ *+' conftest.er1 >conftest.err
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
8654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest$ac_exeext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_lib_svld_dlopen=yes
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8671 ac_cv_lib_svld_dlopen=no
8673 rm -f conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 LIBS=$ac_check_lib_save_LIBS
8677 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8678 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8679 if test $ac_cv_lib_svld_dlopen = yes; then
8680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8682 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8683 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8684 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 ac_check_lib_save_LIBS=$LIBS
8689 cat >conftest.$ac_ext <<_ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8696 /* Override any gcc2 internal prototype to avoid an error. */
8700 /* We use char because int might match the return type of a gcc2
8701 builtin and then its argument prototype would still apply. */
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 ac_cv_lib_dld_dld_link=yes
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ac_cv_lib_dld_dld_link=no
8739 rm -f conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8741 LIBS=$ac_check_lib_save_LIBS
8743 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8744 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8745 if test $ac_cv_lib_dld_dld_link = yes; then
8746 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8767 if test "x$lt_cv_dlopen" != xno; then
8773 case $lt_cv_dlopen in
8775 save_CPPFLAGS="$CPPFLAGS"
8776 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8778 save_LDFLAGS="$LDFLAGS"
8779 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8782 LIBS="$lt_cv_dlopen_libs $LIBS"
8784 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8785 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8786 if test "${lt_cv_dlopen_self+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 if test "$cross_compiling" = yes; then :
8790 lt_cv_dlopen_self=cross
8792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8793 lt_status=$lt_dlunknown
8794 cat > conftest.$ac_ext <<EOF
8795 #line 8795 "configure"
8796 #include "confdefs.h"
8805 # define LT_DLGLOBAL RTLD_GLOBAL
8808 # define LT_DLGLOBAL DL_GLOBAL
8810 # define LT_DLGLOBAL 0
8814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8815 find out it does not work in some platform. */
8816 #ifndef LT_DLLAZY_OR_NOW
8818 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8821 # define LT_DLLAZY_OR_NOW DL_LAZY
8824 # define LT_DLLAZY_OR_NOW RTLD_NOW
8827 # define LT_DLLAZY_OR_NOW DL_NOW
8829 # define LT_DLLAZY_OR_NOW 0
8837 extern "C" void exit (int);
8840 void fnord() { int i=42;}
8843 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8844 int status = $lt_dlunknown;
8848 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8849 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8850 /* dlclose (self); */
8856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8857 (eval $ac_link) 2>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8861 (./conftest; exit; ) 2>/dev/null
8864 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8865 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8866 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8869 # compilation failed
8870 lt_cv_dlopen_self=no
8877 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8878 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8880 if test "x$lt_cv_dlopen_self" = xyes; then
8881 LDFLAGS="$LDFLAGS $link_static_flag"
8882 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8883 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8884 if test "${lt_cv_dlopen_self_static+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 if test "$cross_compiling" = yes; then :
8888 lt_cv_dlopen_self_static=cross
8890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8891 lt_status=$lt_dlunknown
8892 cat > conftest.$ac_ext <<EOF
8893 #line 8893 "configure"
8894 #include "confdefs.h"
8903 # define LT_DLGLOBAL RTLD_GLOBAL
8906 # define LT_DLGLOBAL DL_GLOBAL
8908 # define LT_DLGLOBAL 0
8912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8913 find out it does not work in some platform. */
8914 #ifndef LT_DLLAZY_OR_NOW
8916 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8919 # define LT_DLLAZY_OR_NOW DL_LAZY
8922 # define LT_DLLAZY_OR_NOW RTLD_NOW
8925 # define LT_DLLAZY_OR_NOW DL_NOW
8927 # define LT_DLLAZY_OR_NOW 0
8935 extern "C" void exit (int);
8938 void fnord() { int i=42;}
8941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8942 int status = $lt_dlunknown;
8946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8947 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8948 /* dlclose (self); */
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8959 (./conftest; exit; ) 2>/dev/null
8962 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8963 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8964 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8967 # compilation failed
8968 lt_cv_dlopen_self_static=no
8975 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8976 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8979 CPPFLAGS="$save_CPPFLAGS"
8980 LDFLAGS="$save_LDFLAGS"
8985 case $lt_cv_dlopen_self in
8986 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8987 *) enable_dlopen_self=unknown ;;
8990 case $lt_cv_dlopen_self_static in
8991 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8992 *) enable_dlopen_self_static=unknown ;;
8997 # Report which librarie types wil actually be built
8998 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8999 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9000 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9001 echo "${ECHO_T}$can_build_shared" >&6
9003 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9004 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9005 test "$can_build_shared" = "no" && enable_shared=no
9007 # On AIX, shared libraries and static libraries use the same namespace, and
9008 # are all built from PIC.
9011 test "$enable_shared" = yes && enable_static=no
9012 if test -n "$RANLIB"; then
9013 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9014 postinstall_cmds='$RANLIB $lib'
9019 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9020 test "$enable_shared" = yes && enable_static=no
9023 darwin* | rhapsody*)
9024 if test "$GCC" = yes; then
9025 archive_cmds_need_lc=no
9027 rhapsody* | darwin1.[012])
9028 allow_undefined_flag='-undefined suppress'
9031 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9032 allow_undefined_flag='-flat_namespace -undefined suppress'
9034 case ${MACOSX_DEPLOYMENT_TARGET} in
9036 allow_undefined_flag='-flat_namespace -undefined suppress'
9039 allow_undefined_flag='-undefined dynamic_lookup'
9045 output_verbose_link_cmd='echo'
9046 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9047 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9048 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9049 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}'
9050 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}'
9052 hardcode_automatic=yes
9053 hardcode_shlibpath_var=unsupported
9054 whole_archive_flag_spec='-all_load $convenience'
9055 link_all_deplibs=yes
9061 echo "$as_me:$LINENO: result: $enable_shared" >&5
9062 echo "${ECHO_T}$enable_shared" >&6
9064 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9065 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9066 # Make sure either enable_shared or enable_static is yes.
9067 test "$enable_shared" = yes || enable_static=yes
9068 echo "$as_me:$LINENO: result: $enable_static" >&5
9069 echo "${ECHO_T}$enable_static" >&6
9071 # The else clause should only fire when bootstrapping the
9072 # libtool distribution, otherwise you forgot to ship ltmain.sh
9073 # with your package, and you will get complaints that there are
9074 # no rules to generate ltmain.sh.
9075 if test -f "$ltmain"; then
9076 # See if we are running on zsh, and set the options which allow our commands through
9077 # without removal of \ escapes.
9078 if test -n "${ZSH_VERSION+set}" ; then
9079 setopt NO_GLOB_SUBST
9081 # Now quote all the things that may contain metacharacters while being
9082 # careful not to overquote the AC_SUBSTed values. We take copies of the
9083 # variables and quote the copies for generation of the libtool script.
9084 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9086 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9087 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9088 deplibs_check_method reload_flag reload_cmds need_locks \
9089 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9090 lt_cv_sys_global_symbol_to_c_name_address \
9091 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9092 old_postinstall_cmds old_postuninstall_cmds \
9096 lt_prog_compiler_wl \
9097 lt_prog_compiler_pic \
9098 lt_prog_compiler_static \
9099 lt_prog_compiler_no_builtin_flag \
9100 export_dynamic_flag_spec \
9101 thread_safe_flag_spec \
9102 whole_archive_flag_spec \
9103 enable_shared_with_static_runtimes \
9105 old_archive_from_new_cmds \
9110 compiler_lib_search_path \
9112 archive_expsym_cmds \
9114 postuninstall_cmds \
9115 old_archive_from_expsyms_cmds \
9116 allow_undefined_flag \
9118 export_symbols_cmds \
9119 hardcode_libdir_flag_spec \
9120 hardcode_libdir_flag_spec_ld \
9121 hardcode_libdir_separator \
9122 hardcode_automatic \
9124 module_expsym_cmds \
9125 lt_cv_prog_compiler_c_o \
9130 old_archive_cmds | \
9131 old_archive_from_new_cmds | \
9133 archive_expsym_cmds | \
9135 module_expsym_cmds | \
9136 old_archive_from_expsyms_cmds | \
9137 export_symbols_cmds | \
9138 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9139 postinstall_cmds | postuninstall_cmds | \
9140 old_postinstall_cmds | old_postuninstall_cmds | \
9141 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9142 # Double-quote double-evaled strings.
9143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9146 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9152 *'\$0 --fallback-echo"')
9153 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9158 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9160 { echo "$as_me:$LINENO: creating $ofile" >&5
9161 echo "$as_me: creating $ofile" >&6;}
9163 cat <<__EOF__ >> "$cfgfile"
9166 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9167 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9168 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9170 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9171 # Free Software Foundation, Inc.
9173 # This file is part of GNU Libtool:
9174 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9176 # This program is free software; you can redistribute it and/or modify
9177 # it under the terms of the GNU General Public License as published by
9178 # the Free Software Foundation; either version 2 of the License, or
9179 # (at your option) any later version.
9181 # This program is distributed in the hope that it will be useful, but
9182 # WITHOUT ANY WARRANTY; without even the implied warranty of
9183 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9184 # General Public License for more details.
9186 # You should have received a copy of the GNU General Public License
9187 # along with this program; if not, write to the Free Software
9188 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9190 # As a special exception to the GNU General Public License, if you
9191 # distribute this file as part of a program that contains a
9192 # configuration script generated by Autoconf, you may include it under
9193 # the same distribution terms that you use for the rest of that program.
9195 # A sed program that does not truncate output.
9198 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9199 Xsed="$SED -e s/^X//"
9201 # The HP-UX ksh and POSIX shell print the target directory to stdout
9203 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9205 # The names of the tagged configurations supported by this script.
9208 # ### BEGIN LIBTOOL CONFIG
9210 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9212 # Shell to use when invoking shell scripts.
9215 # Whether or not to build shared libraries.
9216 build_libtool_libs=$enable_shared
9218 # Whether or not to build static libraries.
9219 build_old_libs=$enable_static
9221 # Whether or not to add -lc for building shared libraries.
9222 build_libtool_need_lc=$archive_cmds_need_lc
9224 # Whether or not to disallow shared libs when runtime libs are static
9225 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9227 # Whether or not to optimize for fast installation.
9228 fast_install=$enable_fast_install
9231 host_alias=$host_alias
9234 # An echo program that does not interpret backslashes.
9239 AR_FLAGS=$lt_AR_FLAGS
9244 # A language-specific compiler.
9247 # Is the compiler the GNU C compiler?
9253 # The linker used to build libraries.
9256 # Whether we need hard or soft links.
9259 # A BSD-compatible nm program.
9262 # A symbol stripping program
9265 # Used to examine libraries when file_magic_cmd begins "file"
9266 MAGIC_CMD=$MAGIC_CMD
9268 # Used on cygwin: DLL creation program.
9271 # Used on cygwin: object dumper.
9274 # Used on cygwin: assembler.
9277 # The name of the directory that contains temporary libtool files.
9280 # How to create reloadable object files.
9281 reload_flag=$lt_reload_flag
9282 reload_cmds=$lt_reload_cmds
9284 # How to pass a linker flag through the compiler.
9285 wl=$lt_lt_prog_compiler_wl
9287 # Object file suffix (normally "o").
9290 # Old archive suffix (normally "a").
9293 # Shared library suffix (normally ".so").
9294 shrext_cmds='$shrext_cmds'
9296 # Executable file suffix (normally "").
9299 # Additional compiler flags for building library objects.
9300 pic_flag=$lt_lt_prog_compiler_pic
9303 # What is the maximum length of a command?
9304 max_cmd_len=$lt_cv_sys_max_cmd_len
9306 # Does compiler simultaneously support -c and -o options?
9307 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9309 # Must we lock files when doing compilation ?
9310 need_locks=$lt_need_locks
9312 # Do we need the lib prefix for modules?
9313 need_lib_prefix=$need_lib_prefix
9315 # Do we need a version for libraries?
9316 need_version=$need_version
9318 # Whether dlopen is supported.
9319 dlopen_support=$enable_dlopen
9321 # Whether dlopen of programs is supported.
9322 dlopen_self=$enable_dlopen_self
9324 # Whether dlopen of statically linked programs is supported.
9325 dlopen_self_static=$enable_dlopen_self_static
9327 # Compiler flag to prevent dynamic linking.
9328 link_static_flag=$lt_lt_prog_compiler_static
9330 # Compiler flag to turn off builtin functions.
9331 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9333 # Compiler flag to allow reflexive dlopens.
9334 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9336 # Compiler flag to generate shared objects directly from archives.
9337 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9339 # Compiler flag to generate thread-safe objects.
9340 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9342 # Library versioning type.
9343 version_type=$version_type
9345 # Format of library name prefix.
9346 libname_spec=$lt_libname_spec
9348 # List of archive names. First name is the real one, the rest are links.
9349 # The last name is the one that the linker finds with -lNAME.
9350 library_names_spec=$lt_library_names_spec
9352 # The coded name of the library, if different from the real name.
9353 soname_spec=$lt_soname_spec
9355 # Commands used to build and install an old-style archive.
9357 old_archive_cmds=$lt_old_archive_cmds
9358 old_postinstall_cmds=$lt_old_postinstall_cmds
9359 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9361 # Create an old-style archive from a shared archive.
9362 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9364 # Create a temporary old-style archive to link instead of a shared archive.
9365 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9367 # Commands used to build and install a shared archive.
9368 archive_cmds=$lt_archive_cmds
9369 archive_expsym_cmds=$lt_archive_expsym_cmds
9370 postinstall_cmds=$lt_postinstall_cmds
9371 postuninstall_cmds=$lt_postuninstall_cmds
9373 # Commands used to build a loadable module (assumed same as above if empty)
9374 module_cmds=$lt_module_cmds
9375 module_expsym_cmds=$lt_module_expsym_cmds
9377 # Commands to strip libraries.
9378 old_striplib=$lt_old_striplib
9379 striplib=$lt_striplib
9381 # Dependencies to place before the objects being linked to create a
9383 predep_objects=$lt_predep_objects
9385 # Dependencies to place after the objects being linked to create a
9387 postdep_objects=$lt_postdep_objects
9389 # Dependencies to place before the objects being linked to create a
9393 # Dependencies to place after the objects being linked to create a
9395 postdeps=$lt_postdeps
9397 # The library search path used internally by the compiler when linking
9399 compiler_lib_search_path=$lt_compiler_lib_search_path
9401 # Method to check whether dependent libraries are shared objects.
9402 deplibs_check_method=$lt_deplibs_check_method
9404 # Command to use when deplibs_check_method == file_magic.
9405 file_magic_cmd=$lt_file_magic_cmd
9407 # Flag that allows shared libraries with undefined symbols to be built.
9408 allow_undefined_flag=$lt_allow_undefined_flag
9410 # Flag that forces no undefined symbols.
9411 no_undefined_flag=$lt_no_undefined_flag
9413 # Commands used to finish a libtool library installation in a directory.
9414 finish_cmds=$lt_finish_cmds
9416 # Same as above, but a single script fragment to be evaled but not shown.
9417 finish_eval=$lt_finish_eval
9419 # Take the output of nm and produce a listing of raw symbols and C names.
9420 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9422 # Transform the output of nm in a proper C declaration
9423 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9425 # Transform the output of nm in a C name address pair
9426 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9428 # This is the shared library runtime path variable.
9429 runpath_var=$runpath_var
9431 # This is the shared library path variable.
9432 shlibpath_var=$shlibpath_var
9434 # Is shlibpath searched before the hard-coded library search path?
9435 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9437 # How to hardcode a shared library path into an executable.
9438 hardcode_action=$hardcode_action
9440 # Whether we should hardcode library paths into libraries.
9441 hardcode_into_libs=$hardcode_into_libs
9443 # Flag to hardcode \$libdir into a binary during linking.
9444 # This must work even if \$libdir does not exist.
9445 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9447 # If ld is used when linking, flag to hardcode \$libdir into
9448 # a binary during linking. This must work even if \$libdir does
9450 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9452 # Whether we need a single -rpath flag with a separated argument.
9453 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9455 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9457 hardcode_direct=$hardcode_direct
9459 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9461 hardcode_minus_L=$hardcode_minus_L
9463 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9464 # the resulting binary.
9465 hardcode_shlibpath_var=$hardcode_shlibpath_var
9467 # Set to yes if building a shared library automatically hardcodes DIR into the library
9468 # and all subsequent libraries and executables linked against it.
9469 hardcode_automatic=$hardcode_automatic
9471 # Variables whose values should be saved in libtool wrapper scripts and
9472 # restored at relink time.
9473 variables_saved_for_relink="$variables_saved_for_relink"
9475 # Whether libtool must link a program against all its dependency libraries.
9476 link_all_deplibs=$link_all_deplibs
9478 # Compile-time system search path for libraries
9479 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9481 # Run-time system search path for libraries
9482 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9484 # Fix the shell variable \$srcfile for the compiler.
9485 fix_srcfile_path="$fix_srcfile_path"
9487 # Set to yes if exported symbols are required.
9488 always_export_symbols=$always_export_symbols
9490 # The commands to list exported symbols.
9491 export_symbols_cmds=$lt_export_symbols_cmds
9493 # The commands to extract the exported symbol list from a shared archive.
9494 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9496 # Symbols that should not be listed in the preloaded symbols.
9497 exclude_expsyms=$lt_exclude_expsyms
9499 # Symbols that must always be exported.
9500 include_expsyms=$lt_include_expsyms
9502 # ### END LIBTOOL CONFIG
9509 cat <<\EOF >> "$cfgfile"
9511 # AIX sometimes has problems with the GCC collect2 program. For some
9512 # reason, if we set the COLLECT_NAMES environment variable, the problems
9513 # vanish in a puff of smoke.
9514 if test "X${COLLECT_NAMES+set}" != Xset; then
9516 export COLLECT_NAMES
9522 # We use sed instead of cat because bash on DJGPP gets confused if
9523 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9524 # text mode, it properly converts lines to CR/LF. This bash problem
9525 # is reportedly fixed, but why not run on old versions too?
9526 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9528 mv -f "$cfgfile" "$ofile" || \
9529 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9533 # If there is no Makefile yet, we rely on a make rule to execute
9534 # `config.status --recheck' to rerun these tests and create the
9535 # libtool script then.
9536 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9537 if test -f "$ltmain_in"; then
9538 test -f Makefile && make "$ltmain"
9544 ac_cpp='$CPP $CPPFLAGS'
9545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9552 # Check whether --with-tags or --without-tags was given.
9553 if test "${with_tags+set}" = set; then
9554 withval="$with_tags"
9558 if test -f "$ltmain" && test -n "$tagnames"; then
9559 if test ! -f "${ofile}"; then
9560 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9561 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9564 if test -z "$LTCC"; then
9565 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9566 if test -z "$LTCC"; then
9567 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9568 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9571 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9575 # Extract list of available tagged configurations in $ofile.
9576 # Note that this assumes the entire list is on one line.
9577 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9580 for tagname in $tagnames; do
9582 # Check whether tagname contains only valid characters
9583 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9585 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9586 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9587 { (exit 1); exit 1; }; }
9591 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9593 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9594 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9595 { (exit 1); exit 1; }; }
9598 # Update the list of available tags.
9599 if test -n "$tagname"; then
9600 echo appending configuration tag \"$tagname\" to $ofile
9604 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9606 ac_cpp='$CXXCPP $CPPFLAGS'
9607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9614 archive_cmds_need_lc_CXX=no
9615 allow_undefined_flag_CXX=
9616 always_export_symbols_CXX=no
9617 archive_expsym_cmds_CXX=
9618 export_dynamic_flag_spec_CXX=
9619 hardcode_direct_CXX=no
9620 hardcode_libdir_flag_spec_CXX=
9621 hardcode_libdir_flag_spec_ld_CXX=
9622 hardcode_libdir_separator_CXX=
9623 hardcode_minus_L_CXX=no
9624 hardcode_automatic_CXX=no
9626 module_expsym_cmds_CXX=
9627 link_all_deplibs_CXX=unknown
9628 old_archive_cmds_CXX=$old_archive_cmds
9629 no_undefined_flag_CXX=
9630 whole_archive_flag_spec_CXX=
9631 enable_shared_with_static_runtimes_CXX=no
9633 # Dependencies to place before and after the object being linked:
9635 postdep_objects_CXX=
9638 compiler_lib_search_path_CXX=
9640 # Source file extension for C++ test sources.
9643 # Object file extension for compiled C++ test sources.
9647 # Code to be used in simple compile tests
9648 lt_simple_compile_test_code="int some_variable = 0;\n"
9650 # Code to be used in simple link tests
9651 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9653 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9655 # If no C compiler was specified, use CC.
9658 # Allow CC to be a program name with arguments.
9662 # Allow CC to be a program name with arguments.
9667 lt_save_with_gnu_ld=$with_gnu_ld
9668 lt_save_path_LD=$lt_cv_path_LD
9669 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9670 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9672 unset lt_cv_prog_gnu_ld
9674 if test -n "${lt_cv_path_LDCXX+set}"; then
9675 lt_cv_path_LD=$lt_cv_path_LDCXX
9679 test -z "${LDCXX+set}" || LD=$LDCXX
9683 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9685 # We don't want -fno-exception wen compiling C++ code, so set the
9686 # no_builtin_flag separately
9687 if test "$GXX" = yes; then
9688 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9690 lt_prog_compiler_no_builtin_flag_CXX=
9693 if test "$GXX" = yes; then
9694 # Set up default GNU C++ configuration
9697 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9698 if test "${with_gnu_ld+set}" = set; then
9699 withval="$with_gnu_ld"
9700 test "$withval" = no || with_gnu_ld=yes
9705 if test "$GCC" = yes; then
9706 # Check if gcc -print-prog-name=ld gives a path.
9707 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9708 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9711 # gcc leaves a trailing carriage return which upsets mingw
9712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9717 # Accept absolute paths.
9719 re_direlt='/[^/][^/]*/\.\./'
9720 # Canonicalize the pathname of ld
9721 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9722 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9723 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9725 test -z "$LD" && LD="$ac_prog"
9728 # If it fails, then pretend we aren't using GCC.
9732 # If it is relative, then search for the first ld in PATH.
9736 elif test "$with_gnu_ld" = yes; then
9737 echo "$as_me:$LINENO: checking for GNU ld" >&5
9738 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9740 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9741 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9743 if test "${lt_cv_path_LD+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 if test -z "$LD"; then
9747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9748 for ac_dir in $PATH; do
9750 test -z "$ac_dir" && ac_dir=.
9751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9752 lt_cv_path_LD="$ac_dir/$ac_prog"
9753 # Check to see if the program is GNU ld. I'd rather use --version,
9754 # but apparently some GNU ld's only accept -v.
9755 # Break only if it was the GNU/non-GNU ld that we prefer.
9756 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9757 *GNU* | *'with BFD'*)
9758 test "$with_gnu_ld" != no && break
9761 test "$with_gnu_ld" != yes && break
9768 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9773 if test -n "$LD"; then
9774 echo "$as_me:$LINENO: result: $LD" >&5
9775 echo "${ECHO_T}$LD" >&6
9777 echo "$as_me:$LINENO: result: no" >&5
9778 echo "${ECHO_T}no" >&6
9780 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9781 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9782 { (exit 1); exit 1; }; }
9783 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9784 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9785 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9789 case `$LD -v 2>&1 </dev/null` in
9790 *GNU* | *'with BFD'*)
9791 lt_cv_prog_gnu_ld=yes
9794 lt_cv_prog_gnu_ld=no
9798 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9799 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9800 with_gnu_ld=$lt_cv_prog_gnu_ld
9804 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9805 # archiving commands below assume that GNU ld is being used.
9806 if test "$with_gnu_ld" = yes; then
9807 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9808 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'
9810 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9811 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9813 # If archive_cmds runs LD, not CC, wlarc should be empty
9814 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9815 # investigate it a little bit more. (MM)
9818 # ancient GNU ld didn't support --whole-archive et. al.
9819 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9820 grep 'no-whole-archive' > /dev/null; then
9821 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9823 whole_archive_flag_spec_CXX=
9829 # A generic and very simple default shared library creation
9830 # command for GNU C++ for the case where it uses the native
9831 # linker, instead of GNU ld. If possible, this setting should
9832 # overridden to take advantage of the native linker features on
9833 # the platform it is being used on.
9834 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9837 # Commands to make compiler produce verbose output that lists
9838 # what "hidden" libraries, object files and flags are used when
9839 # linking a shared library.
9840 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9848 # PORTME: fill in a description of your system's C++ link characteristics
9849 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9854 # FIXME: insert proper C++ library support
9858 if test "$host_cpu" = ia64; then
9859 # On IA64, the linker does run time linking by default, so we don't
9860 # have to do anything special.
9861 aix_use_runtimelinking=no
9862 exp_sym_flag='-Bexport'
9865 aix_use_runtimelinking=no
9867 # Test if we are trying to use run time linking or normal
9868 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9869 # need to do runtime linking.
9870 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9871 for ld_flag in $LDFLAGS; do
9874 aix_use_runtimelinking=yes
9881 exp_sym_flag='-bexport'
9882 no_entry_flag='-bnoentry'
9885 # When large executables or shared objects are built, AIX ld can
9886 # have problems creating the table of contents. If linking a library
9887 # or program results in "error TOC overflow" add -mminimal-toc to
9888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9892 hardcode_direct_CXX=yes
9893 hardcode_libdir_separator_CXX=':'
9894 link_all_deplibs_CXX=yes
9896 if test "$GXX" = yes; then
9897 case $host_os in aix4.012|aix4.012.*)
9898 # We only want to do this on AIX 4.2 and lower, the check
9899 # below for broken collect2 doesn't work under 4.3+
9900 collect2name=`${CC} -print-prog-name=collect2`
9901 if test -f "$collect2name" && \
9902 strings "$collect2name" | grep resolve_lib_name >/dev/null
9904 # We have reworked collect2
9905 hardcode_direct_CXX=yes
9907 # We have old collect2
9908 hardcode_direct_CXX=unsupported
9909 # It fails to find uninstalled libraries when the uninstalled
9910 # path is not listed in the libpath. Setting hardcode_minus_L
9911 # to unsupported forces relinking
9912 hardcode_minus_L_CXX=yes
9913 hardcode_libdir_flag_spec_CXX='-L$libdir'
9914 hardcode_libdir_separator_CXX=
9917 shared_flag='-shared'
9920 if test "$host_cpu" = ia64; then
9921 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9922 # chokes on -Wl,-G. The following line is correct:
9925 if test "$aix_use_runtimelinking" = yes; then
9926 shared_flag='${wl}-G'
9928 shared_flag='${wl}-bM:SRE'
9933 # It seems that -bexpall does not export symbols beginning with
9934 # underscore (_), so it is better to generate a list of symbols to export.
9935 always_export_symbols_CXX=yes
9936 if test "$aix_use_runtimelinking" = yes; then
9937 # Warning - without using the other runtime loading flags (-brtl),
9938 # -berok will link without error, but may produce a broken library.
9939 allow_undefined_flag_CXX='-berok'
9940 # Determine the default libpath from the value encoded in an empty executable.
9941 cat >conftest.$ac_ext <<_ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958 (eval $ac_link) 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
9978 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9980 # Check for a 64-bit object if we didn't find anything.
9981 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; }
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9988 rm -f conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9992 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9994 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"
9996 if test "$host_cpu" = ia64; then
9997 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9998 allow_undefined_flag_CXX="-z nodefs"
9999 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"
10001 # Determine the default libpath from the value encoded in an empty executable.
10002 cat >conftest.$ac_ext <<_ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10039 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10041 # Check for a 64-bit object if we didn't find anything.
10042 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; }
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10049 rm -f conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10053 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10054 # Warning - without using the other run time loading flags,
10055 # -berok will link without error, but may produce a broken library.
10056 no_undefined_flag_CXX=' ${wl}-bernotok'
10057 allow_undefined_flag_CXX=' ${wl}-berok'
10058 # -bexpall does not export symbols beginning with underscore (_)
10059 always_export_symbols_CXX=yes
10060 # Exported symbols can be pulled into shared objects from archives
10061 whole_archive_flag_spec_CXX=' '
10062 archive_cmds_need_lc_CXX=yes
10063 # This is similar to how AIX traditionally builds it's shared libraries.
10064 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'
10069 case $cc_basename in
10071 # FIXME: insert proper C++ library support
10077 cygwin* | mingw* | pw32*)
10078 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10079 # as there is no search path for DLLs.
10080 hardcode_libdir_flag_spec_CXX='-L$libdir'
10081 allow_undefined_flag_CXX=unsupported
10082 always_export_symbols_CXX=no
10083 enable_shared_with_static_runtimes_CXX=yes
10085 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10086 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'
10087 # If the export-symbols file already is a .def file (1st line
10088 # is EXPORTS), use it as is; otherwise, prepend...
10089 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10090 cp $export_symbols $output_objdir/$soname.def;
10092 echo EXPORTS > $output_objdir/$soname.def;
10093 cat $export_symbols >> $output_objdir/$soname.def;
10095 $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'
10101 darwin* | rhapsody*)
10102 if test "$GXX" = yes; then
10103 archive_cmds_need_lc_CXX=no
10105 rhapsody* | darwin1.[012])
10106 allow_undefined_flag_CXX='-undefined suppress'
10109 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10110 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10112 case ${MACOSX_DEPLOYMENT_TARGET} in
10114 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10117 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10123 lt_int_apple_cc_single_mod=no
10124 output_verbose_link_cmd='echo'
10125 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10126 lt_int_apple_cc_single_mod=yes
10128 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10129 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10131 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'
10133 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10136 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10137 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}'
10139 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}'
10141 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}'
10142 hardcode_direct_CXX=no
10143 hardcode_automatic_CXX=yes
10144 hardcode_shlibpath_var_CXX=unsupported
10145 whole_archive_flag_spec_CXX='-all_load $convenience'
10146 link_all_deplibs_CXX=yes
10153 case $cc_basename in
10155 # FIXME: insert proper C++ library support
10159 # Green Hills C++ Compiler
10160 # FIXME: insert proper C++ library support
10164 # FIXME: insert proper C++ library support
10170 # C++ shared libraries reported to be fairly broken before switch to ELF
10174 archive_cmds_need_lc_CXX=no
10176 freebsd* | kfreebsd*-gnu)
10177 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10184 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10185 hardcode_libdir_separator_CXX=:
10186 export_dynamic_flag_spec_CXX='${wl}-E'
10187 hardcode_direct_CXX=yes
10188 hardcode_minus_L_CXX=yes # Not in the search PATH,
10189 # but as the default
10190 # location of the library.
10192 case $cc_basename in
10194 # FIXME: insert proper C++ library support
10198 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'
10199 # Commands to make compiler produce verbose output that lists
10200 # what "hidden" libraries, object files and flags are used when
10201 # linking a shared library.
10203 # There doesn't appear to be a way to prevent this compiler from
10204 # explicitly linking system object files so we need to strip them
10205 # from the output so that they don't get included in the library
10207 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'
10210 if test "$GXX" = yes; then
10211 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'
10213 # FIXME: insert proper C++ library support
10220 if test $with_gnu_ld = no; then
10221 case "$host_cpu" in
10223 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10224 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10225 hardcode_libdir_separator_CXX=:
10228 hardcode_libdir_flag_spec_CXX='-L$libdir'
10231 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10232 hardcode_libdir_separator_CXX=:
10233 export_dynamic_flag_spec_CXX='${wl}-E'
10237 case "$host_cpu" in
10239 hardcode_direct_CXX=no
10240 hardcode_shlibpath_var_CXX=no
10243 hardcode_direct_CXX=no
10244 hardcode_shlibpath_var_CXX=no
10245 hardcode_minus_L_CXX=yes # Not in the search PATH,
10246 # but as the default
10247 # location of the library.
10250 hardcode_direct_CXX=yes
10251 hardcode_minus_L_CXX=yes # Not in the search PATH,
10252 # but as the default
10253 # location of the library.
10257 case $cc_basename in
10259 # FIXME: insert proper C++ library support
10263 case "$host_cpu" in
10265 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10268 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10271 # Commands to make compiler produce verbose output that lists
10272 # what "hidden" libraries, object files and flags are used when
10273 # linking a shared library.
10275 # There doesn't appear to be a way to prevent this compiler from
10276 # explicitly linking system object files so we need to strip them
10277 # from the output so that they don't get included in the library
10279 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'
10282 if test "$GXX" = yes; then
10283 if test $with_gnu_ld = no; then
10284 case "$host_cpu" in
10286 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10289 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'
10294 # FIXME: insert proper C++ library support
10301 case $cc_basename in
10304 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'
10306 # Archives containing C++ object files must be created using
10307 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10308 # necessary to make sure instantiated templates are included
10310 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10313 if test "$GXX" = yes; then
10314 if test "$with_gnu_ld" = no; then
10315 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'
10317 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'
10320 link_all_deplibs_CXX=yes
10323 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10324 hardcode_libdir_separator_CXX=:
10327 case $cc_basename in
10329 # Kuck and Associates, Inc. (KAI) C++ Compiler
10331 # KCC will only create a shared library if the output file
10332 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10333 # to its proper name (with version) after linking.
10334 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'
10335 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'
10336 # Commands to make compiler produce verbose output that lists
10337 # what "hidden" libraries, object files and flags are used when
10338 # linking a shared library.
10340 # There doesn't appear to be a way to prevent this compiler from
10341 # explicitly linking system object files so we need to strip them
10342 # from the output so that they don't get included in the library
10344 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'
10346 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10347 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10349 # Archives containing C++ object files must be created using
10350 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10351 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10356 archive_cmds_need_lc_CXX=no
10357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10358 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'
10359 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10361 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10365 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10366 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'
10368 runpath_var=LD_RUN_PATH
10369 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10370 hardcode_libdir_separator_CXX=:
10372 # Commands to make compiler produce verbose output that lists
10373 # what "hidden" libraries, object files and flags are used when
10374 # linking a shared library.
10376 # There doesn't appear to be a way to prevent this compiler from
10377 # explicitly linking system object files so we need to strip them
10378 # from the output so that they don't get included in the library
10380 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'
10385 # FIXME: insert proper C++ library support
10389 # FIXME: insert proper C++ library support
10393 case $cc_basename in
10395 # FIXME: insert proper C++ library support
10399 # FIXME: insert proper C++ library support
10404 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10406 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10408 hardcode_libdir_flag_spec_CXX='-R$libdir'
10409 hardcode_direct_CXX=yes
10410 hardcode_shlibpath_var_CXX=no
10412 # Workaround some broken pre-1.5 toolchains
10413 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10416 case $cc_basename in
10418 # Kuck and Associates, Inc. (KAI) C++ Compiler
10420 # KCC will only create a shared library if the output file
10421 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10422 # to its proper name (with version) after linking.
10423 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'
10425 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10426 hardcode_libdir_separator_CXX=:
10428 # Archives containing C++ object files must be created using
10429 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10430 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10434 # Rational C++ 2.4.1
10435 # FIXME: insert proper C++ library support
10439 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10440 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'
10442 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10443 hardcode_libdir_separator_CXX=:
10445 # Commands to make compiler produce verbose output that lists
10446 # what "hidden" libraries, object files and flags are used when
10447 # linking a shared library.
10449 # There doesn't appear to be a way to prevent this compiler from
10450 # explicitly linking system object files so we need to strip them
10451 # from the output so that they don't get included in the library
10453 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'
10456 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10457 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10458 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'
10460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10461 hardcode_libdir_separator_CXX=:
10463 # Commands to make compiler produce verbose output that lists
10464 # what "hidden" libraries, object files and flags are used when
10465 # linking a shared library.
10466 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10469 # FIXME: insert proper C++ library support
10476 case $cc_basename in
10478 # Kuck and Associates, Inc. (KAI) C++ Compiler
10480 # KCC will only create a shared library if the output file
10481 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10482 # to its proper name (with version) after linking.
10483 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'
10485 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10486 hardcode_libdir_separator_CXX=:
10488 # Archives containing C++ object files must be created using
10489 # the KAI C++ compiler.
10490 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10493 # Rational C++ 2.4.1
10494 # FIXME: insert proper C++ library support
10498 allow_undefined_flag_CXX=' -expect_unresolved \*'
10499 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'
10500 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10501 echo "-hidden">> $lib.exp~
10502 $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~
10505 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10506 hardcode_libdir_separator_CXX=:
10508 # Commands to make compiler produce verbose output that lists
10509 # what "hidden" libraries, object files and flags are used when
10510 # linking a shared library.
10512 # There doesn't appear to be a way to prevent this compiler from
10513 # explicitly linking system object files so we need to strip them
10514 # from the output so that they don't get included in the library
10516 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'
10519 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10520 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10521 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'
10523 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10524 hardcode_libdir_separator_CXX=:
10526 # Commands to make compiler produce verbose output that lists
10527 # what "hidden" libraries, object files and flags are used when
10528 # linking a shared library.
10529 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10532 # FIXME: insert proper C++ library support
10539 # FIXME: insert proper C++ library support
10543 archive_cmds_need_lc_CXX=no
10544 case $cc_basename in
10546 # FIXME: insert proper C++ library support
10550 # FIXME: insert proper C++ library support
10556 case $cc_basename in
10559 # FIXME: insert proper C++ library support
10564 # FIXME: insert proper C++ library support
10568 # FIXME: insert proper C++ library support
10574 case $cc_basename in
10576 # Sun C++ 4.2, 5.x and Centerline C++
10577 no_undefined_flag_CXX=' -zdefs'
10578 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10579 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10580 $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'
10582 hardcode_libdir_flag_spec_CXX='-R$libdir'
10583 hardcode_shlibpath_var_CXX=no
10585 solaris2.0-5 | solaris2.0-5.*) ;;
10587 # The C++ compiler is used as linker so we must use $wl
10588 # flag to pass the commands to the underlying system
10590 # Supported since Solaris 2.6 (maybe 2.5.1?)
10591 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10594 link_all_deplibs_CXX=yes
10596 # Commands to make compiler produce verbose output that lists
10597 # what "hidden" libraries, object files and flags are used when
10598 # linking a shared library.
10600 # There doesn't appear to be a way to prevent this compiler from
10601 # explicitly linking system object files so we need to strip them
10602 # from the output so that they don't get included in the library
10604 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'
10606 # Archives containing C++ object files must be created using
10607 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10608 # necessary to make sure instantiated templates are included
10610 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10613 # Green Hills C++ Compiler
10614 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10616 # The C++ compiler must be used to create the archive.
10617 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10620 # GNU C++ compiler with Solaris linker
10621 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10622 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10623 if $CC --version | grep -v '^2\.7' > /dev/null; then
10624 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10625 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10626 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10628 # Commands to make compiler produce verbose output that lists
10629 # what "hidden" libraries, object files and flags are used when
10630 # linking a shared library.
10631 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10633 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10635 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10636 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10637 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10639 # Commands to make compiler produce verbose output that lists
10640 # what "hidden" libraries, object files and flags are used when
10641 # linking a shared library.
10642 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10645 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10650 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10651 archive_cmds_need_lc_CXX=no
10654 case $cc_basename in
10656 # NonStop-UX NCC 3.20
10657 # FIXME: insert proper C++ library support
10661 # FIXME: insert proper C++ library support
10667 # FIXME: insert proper C++ library support
10671 # FIXME: insert proper C++ library support
10675 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10676 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10677 test "$ld_shlibs_CXX" = no && can_build_shared=no
10683 cat > conftest.$ac_ext <<EOF
10687 Foo (void) { a = 0; }
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694 (eval $ac_compile) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; then
10698 # Parse the compiler output and extract the necessary
10699 # objects, libraries and library flags.
10701 # Sentinel used to keep track of whether or not we are before
10702 # the conftest object file.
10703 pre_test_object_deps_done=no
10705 # The `*' in the case matches for architectures that use `case' in
10706 # $output_verbose_cmd can trigger glob expansion during the loop
10707 # eval without this substitution.
10708 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10710 for p in `eval $output_verbose_link_cmd`; do
10714 # Some compilers place space between "-{L,R}" and the path.
10715 # Remove the space.
10716 if test $p = "-L" \
10717 || test $p = "-R"; then
10724 if test "$pre_test_object_deps_done" = no; then
10727 # Internal compiler library paths should come after those
10728 # provided the user. The postdeps already come after the
10729 # user supplied libs so there is no need to process them.
10730 if test -z "$compiler_lib_search_path_CXX"; then
10731 compiler_lib_search_path_CXX="${prev}${p}"
10733 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10736 # The "-l" case would never come before the object being
10737 # linked, so don't bother handling this case.
10740 if test -z "$postdeps_CXX"; then
10741 postdeps_CXX="${prev}${p}"
10743 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10749 # This assumes that the test object file only shows up
10750 # once in the compiler output.
10751 if test "$p" = "conftest.$objext"; then
10752 pre_test_object_deps_done=yes
10756 if test "$pre_test_object_deps_done" = no; then
10757 if test -z "$predep_objects_CXX"; then
10758 predep_objects_CXX="$p"
10760 predep_objects_CXX="$predep_objects_CXX $p"
10763 if test -z "$postdep_objects_CXX"; then
10764 postdep_objects_CXX="$p"
10766 postdep_objects_CXX="$postdep_objects_CXX $p"
10771 *) ;; # Ignore the rest.
10779 echo "libtool.m4: error: problem compiling CXX test program"
10782 $rm -f confest.$objext
10784 case " $postdeps_CXX " in
10785 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10788 lt_prog_compiler_wl_CXX=
10789 lt_prog_compiler_pic_CXX=
10790 lt_prog_compiler_static_CXX=
10792 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10793 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10795 # C++ specific cases for pic, static, wl, etc.
10796 if test "$GXX" = yes; then
10797 lt_prog_compiler_wl_CXX='-Wl,'
10798 lt_prog_compiler_static_CXX='-static'
10802 # All AIX code is PIC.
10803 if test "$host_cpu" = ia64; then
10804 # AIX 5 now supports IA64 processor
10805 lt_prog_compiler_static_CXX='-Bstatic'
10809 # FIXME: we need at least 68020 code to build shared libraries, but
10810 # adding the `-m68020' flag to GCC prevents building anything better,
10812 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10814 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10815 # PIC is the default for these OSes.
10817 mingw* | os2* | pw32*)
10818 # This hack is so that the source file can tell whether it is being
10819 # built for inclusion in a dll (and should export symbols for example).
10820 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10822 darwin* | rhapsody*)
10823 # PIC is the default on this platform
10824 # Common symbols not allowed in MH_DYLIB files
10825 lt_prog_compiler_pic_CXX='-fno-common'
10828 # DJGPP does not support shared libraries at all
10829 lt_prog_compiler_pic_CXX=
10832 if test -d /usr/nec; then
10833 lt_prog_compiler_pic_CXX=-Kconform_pic
10837 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10838 # not for PA HP-UX.
10839 case "$host_cpu" in
10843 lt_prog_compiler_pic_CXX='-fPIC'
10848 lt_prog_compiler_pic_CXX='-fPIC'
10854 # All AIX code is PIC.
10855 if test "$host_cpu" = ia64; then
10856 # AIX 5 now supports IA64 processor
10857 lt_prog_compiler_static_CXX='-Bstatic'
10859 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10863 case $cc_basename in
10865 # Green Hills C++ Compiler
10866 # _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"
10871 case $cc_basename in
10873 lt_prog_compiler_pic_CXX='-KPIC'
10876 # Green Hills C++ Compiler
10877 lt_prog_compiler_pic_CXX='-pic'
10883 freebsd* | kfreebsd*-gnu)
10884 # FreeBSD uses GNU C++
10886 hpux9* | hpux10* | hpux11*)
10887 case $cc_basename in
10889 lt_prog_compiler_wl_CXX='-Wl,'
10890 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10891 if test "$host_cpu" != ia64; then
10892 lt_prog_compiler_pic_CXX='+Z'
10896 lt_prog_compiler_wl_CXX='-Wl,'
10897 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10898 case "$host_cpu" in
10903 lt_prog_compiler_pic_CXX='+Z'
10911 irix5* | irix6* | nonstopux*)
10912 case $cc_basename in
10914 lt_prog_compiler_wl_CXX='-Wl,'
10915 lt_prog_compiler_static_CXX='-non_shared'
10916 # CC pic flag -KPIC is the default.
10923 case $cc_basename in
10926 lt_prog_compiler_wl_CXX='--backend -Wl,'
10927 lt_prog_compiler_pic_CXX='-fPIC'
10931 lt_prog_compiler_wl_CXX='-Wl,'
10932 lt_prog_compiler_pic_CXX='-KPIC'
10933 lt_prog_compiler_static_CXX='-static'
10937 # Make sure the PIC flag is empty. It appears that all Alpha
10938 # Linux and Compaq Tru64 Unix objects are PIC.
10939 lt_prog_compiler_pic_CXX=
10940 lt_prog_compiler_static_CXX='-non_shared'
10951 case $cc_basename in
10953 lt_prog_compiler_pic_CXX='-W c,exportall'
10959 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10961 osf3* | osf4* | osf5*)
10962 case $cc_basename in
10964 lt_prog_compiler_wl_CXX='--backend -Wl,'
10967 # Rational C++ 2.4.1
10968 lt_prog_compiler_pic_CXX='-pic'
10971 # Digital/Compaq C++
10972 lt_prog_compiler_wl_CXX='-Wl,'
10973 # Make sure the PIC flag is empty. It appears that all Alpha
10974 # Linux and Compaq Tru64 Unix objects are PIC.
10975 lt_prog_compiler_pic_CXX=
10976 lt_prog_compiler_static_CXX='-non_shared'
10985 case $cc_basename in
10987 lt_prog_compiler_pic_CXX='-fPIC'
10994 case $cc_basename in
10996 # Sun C++ 4.2, 5.x and Centerline C++
10997 lt_prog_compiler_pic_CXX='-KPIC'
10998 lt_prog_compiler_static_CXX='-Bstatic'
10999 lt_prog_compiler_wl_CXX='-Qoption ld '
11002 # Green Hills C++ Compiler
11003 lt_prog_compiler_pic_CXX='-PIC'
11010 case $cc_basename in
11013 lt_prog_compiler_pic_CXX='-pic'
11014 lt_prog_compiler_static_CXX='-Bstatic'
11018 lt_prog_compiler_pic_CXX='-pic'
11025 case $cc_basename in
11027 # NonStop-UX NCC 3.20
11028 lt_prog_compiler_pic_CXX='-KPIC'
11039 lt_prog_compiler_can_build_shared_CXX=no
11044 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11045 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11048 # Check to make sure the PIC flag actually works.
11050 if test -n "$lt_prog_compiler_pic_CXX"; then
11052 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11054 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 lt_prog_compiler_pic_works_CXX=no
11058 ac_outfile=conftest.$ac_objext
11059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11060 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11061 # Insert the option either (1) after the last *FLAGS variable, or
11062 # (2) before a word containing "conftest.", or (3) at the end.
11063 # Note that $ac_compile itself does not contain backslashes and begins
11064 # with a dollar sign (not a hyphen), so the echo should work correctly.
11065 # The option is referenced via a variable to avoid confusing sed.
11066 lt_compile=`echo "$ac_compile" | $SED \
11067 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11069 -e 's:$: $lt_compiler_flag:'`
11070 (eval echo "\"\$as_me:11070: $lt_compile\"" >&5)
11071 (eval "$lt_compile" 2>conftest.err)
11073 cat conftest.err >&5
11074 echo "$as_me:11074: \$? = $ac_status" >&5
11075 if (exit $ac_status) && test -s "$ac_outfile"; then
11076 # The compiler can only warn and ignore the option if not recognized
11077 # So say no if there are warnings
11078 if test ! -s conftest.err; then
11079 lt_prog_compiler_pic_works_CXX=yes
11085 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11086 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11088 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11089 case $lt_prog_compiler_pic_CXX in
11091 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11094 lt_prog_compiler_pic_CXX=
11095 lt_prog_compiler_can_build_shared_CXX=no
11100 # For platforms which do not support PIC, -DPIC is meaningless:
11102 lt_prog_compiler_pic_CXX=
11105 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11109 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11110 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11111 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 lt_cv_prog_compiler_c_o_CXX=no
11115 $rm -r conftest 2>/dev/null
11119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11121 lt_compiler_flag="-o out/conftest2.$ac_objext"
11122 # Insert the option either (1) after the last *FLAGS variable, or
11123 # (2) before a word containing "conftest.", or (3) at the end.
11124 # Note that $ac_compile itself does not contain backslashes and begins
11125 # with a dollar sign (not a hyphen), so the echo should work correctly.
11126 lt_compile=`echo "$ac_compile" | $SED \
11127 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11129 -e 's:$: $lt_compiler_flag:'`
11130 (eval echo "\"\$as_me:11130: $lt_compile\"" >&5)
11131 (eval "$lt_compile" 2>out/conftest.err)
11133 cat out/conftest.err >&5
11134 echo "$as_me:11134: \$? = $ac_status" >&5
11135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11137 # The compiler can only warn and ignore the option if not recognized
11138 # So say no if there are warnings
11139 if test ! -s out/conftest.err; then
11140 lt_cv_prog_compiler_c_o_CXX=yes
11145 # SGI C++ compiler will create directory out/ii_files/ for
11146 # template instantiation
11147 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11148 $rm out/* && rmdir out
11154 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11155 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11158 hard_links="nottested"
11159 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11160 # do not overwrite the value of need_locks provided by the user
11161 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11162 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11165 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11167 ln conftest.a conftest.b 2>&5 || hard_links=no
11168 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11169 echo "$as_me:$LINENO: result: $hard_links" >&5
11170 echo "${ECHO_T}$hard_links" >&6
11171 if test "$hard_links" = no; then
11172 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11173 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11180 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11181 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11183 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11186 # If we're using GNU nm, then we don't want the "-C" option.
11187 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11188 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11189 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'
11191 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'
11195 export_symbols_cmds_CXX="$ltdll_cmds"
11198 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11201 link_all_deplibs_CXX=no
11204 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11208 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11209 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11210 test "$ld_shlibs_CXX" = no && can_build_shared=no
11212 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11213 if test "$GCC" = yes; then
11214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11218 # Do we need to explicitly link libc?
11220 case "x$archive_cmds_need_lc_CXX" in
11222 # Assume -lc should be added
11223 archive_cmds_need_lc_CXX=yes
11225 if test "$enable_shared" = yes && test "$GCC" = yes; then
11226 case $archive_cmds_CXX in
11228 # FIXME: we may have to deal with multi-command sequences.
11231 # Test whether the compiler implicitly links with -lc since on some
11232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11233 # to ld, don't add -lc before -lgcc.
11234 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11235 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11240 (eval $ac_compile) 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } 2>conftest.err; then
11246 libobjs=conftest.$ac_objext
11248 wl=$lt_prog_compiler_wl_CXX
11254 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11255 allow_undefined_flag_CXX=
11256 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11257 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }
11262 archive_cmds_need_lc_CXX=no
11264 archive_cmds_need_lc_CXX=yes
11266 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11268 cat conftest.err 1>&5
11271 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11272 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11279 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11280 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11281 library_names_spec=
11282 libname_spec='lib$name'
11286 postuninstall_cmds=
11290 shlibpath_overrides_runpath=unknown
11292 dynamic_linker="$host_os ld.so"
11293 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11294 if test "$GCC" = yes; then
11295 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11296 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11297 # if the path contains ";" then we assume it to be the separator
11298 # otherwise default to the standard path separator (i.e. ":") - it is
11299 # assumed that no part of a normal pathname contains ";" but that should
11300 # okay in the real world where ";" in dirpaths is itself problematic.
11301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11306 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11308 need_lib_prefix=unknown
11309 hardcode_into_libs=no
11311 # when you set need_version to no, make sure it does not cause -set_version
11312 # flags to be left without arguments
11313 need_version=unknown
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11319 shlibpath_var=LIBPATH
11321 # AIX 3 has no versioning support, so we append a major version to the name.
11322 soname_spec='${libname}${release}${shared_ext}$major'
11329 hardcode_into_libs=yes
11330 if test "$host_cpu" = ia64; then
11331 # AIX 5 supports IA64
11332 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11333 shlibpath_var=LD_LIBRARY_PATH
11335 # With GCC up to 2.95.x, collect2 would create an import file
11336 # for dependence libraries. The import file would start with
11337 # the line `#! .'. This would cause the generated library to
11338 # depend on `.', always an invalid library. This was fixed in
11339 # development snapshots of GCC prior to 3.0.
11341 aix4 | aix4.[01] | aix4.[01].*)
11342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11344 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11347 can_build_shared=no
11351 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11352 # soname into executable. Probably we can add versioning support to
11353 # collect2, so additional links can be useful in future.
11354 if test "$aix_use_runtimelinking" = yes; then
11355 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11356 # instead of lib<name>.a to let people know that these are not
11357 # typical AIX shared libraries.
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 # We preserve .a as extension for shared libraries through AIX4.2
11361 # and later when we are not doing run time linking.
11362 library_names_spec='${libname}${release}.a $libname.a'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11365 shlibpath_var=LIBPATH
11370 library_names_spec='$libname.ixlibrary $libname.a'
11371 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11372 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'
11376 library_names_spec='${libname}${shared_ext}'
11377 dynamic_linker="$host_os ld.so"
11378 shlibpath_var=LIBRARY_PATH
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11385 soname_spec='${libname}${release}${shared_ext}$major'
11386 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11387 shlibpath_var=LD_LIBRARY_PATH
11388 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11389 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11390 # the default ld.so.conf also contains /usr/contrib/lib and
11391 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11392 # libtool to hard-code these into programs
11395 cygwin* | mingw* | pw32*)
11396 version_type=windows
11401 case $GCC,$host_os in
11402 yes,cygwin* | yes,mingw* | yes,pw32*)
11403 library_names_spec='$libname.dll.a'
11404 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11405 postinstall_cmds='base_file=`basename \${file}`~
11406 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11407 dldir=$destdir/`dirname \$dlpath`~
11408 test -d \$dldir || mkdir -p \$dldir~
11409 $install_prog $dir/$dlname \$dldir/$dlname'
11410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11411 dlpath=$dir/\$dldll~
11413 shlibpath_overrides_runpath=yes
11417 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11418 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11419 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11422 # MinGW DLLs use traditional 'lib' prefix
11423 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11425 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11426 # It is most probably a Windows format PATH printed by
11427 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11428 # path with ; separators, and with drive letters. We can handle the
11429 # drive letters (cygwin fileutils understands them), so leave them,
11430 # especially as we might pass files found there to a mingw objdump,
11431 # which wouldn't understand a cygwinified path. Ahh.
11432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11438 # pw32 DLLs use 'pw' prefix rather than 'lib'
11439 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11445 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11448 dynamic_linker='Win32 ld.exe'
11449 # FIXME: first we should search . and the directory the executable is in
11453 darwin* | rhapsody*)
11454 dynamic_linker="$host_os dyld"
11455 version_type=darwin
11458 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11459 soname_spec='${libname}${release}${major}$shared_ext'
11460 shlibpath_overrides_runpath=yes
11461 shlibpath_var=DYLD_LIBRARY_PATH
11462 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11463 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11464 if test "$GCC" = yes; then
11465 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"`
11467 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 shlibpath_var=LD_LIBRARY_PATH
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 shlibpath_overrides_runpath=no
11493 hardcode_into_libs=yes
11494 dynamic_linker='GNU ld.so'
11498 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11499 version_type=freebsd-$objformat
11500 case $version_type in
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11511 shlibpath_var=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath=yes
11516 freebsd3.01* | freebsdelf3.01*)
11517 shlibpath_overrides_runpath=yes
11518 hardcode_into_libs=yes
11521 shlibpath_overrides_runpath=no
11522 hardcode_into_libs=yes
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 hardcode_into_libs=yes
11537 hpux9* | hpux10* | hpux11*)
11538 # Give a soname corresponding to the major version so that dld.sl refuses to
11539 # link against other versions.
11543 case "$host_cpu" in
11546 hardcode_into_libs=yes
11547 dynamic_linker="$host_os dld.so"
11548 shlibpath_var=LD_LIBRARY_PATH
11549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 if test "X$HPUX_IA64_MODE" = X32; then
11553 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11555 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11561 hardcode_into_libs=yes
11562 dynamic_linker="$host_os dld.sl"
11563 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11572 dynamic_linker="$host_os dld.sl"
11573 shlibpath_var=SHLIB_PATH
11574 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576 soname_spec='${libname}${release}${shared_ext}$major'
11579 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11580 postinstall_cmds='chmod 555 $lib'
11583 irix5* | irix6* | nonstopux*)
11585 nonstopux*) version_type=nonstopux ;;
11587 if test "$lt_cv_prog_gnu_ld" = yes; then
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11598 irix5* | nonstopux*)
11599 libsuff= shlibsuff=
11602 case $LD in # libtool.m4 will add one of these switches to LD
11603 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11604 libsuff= shlibsuff= libmagic=32-bit;;
11605 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11606 libsuff=32 shlibsuff=N32 libmagic=N32;;
11607 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11608 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11609 *) libsuff= shlibsuff= libmagic=never-match;;
11613 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11614 shlibpath_overrides_runpath=no
11615 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11616 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11617 hardcode_into_libs=yes
11620 # No shared lib support for Linux oldld, aout, or coff.
11621 linux*oldld* | linux*aout* | linux*coff*)
11625 # This must be Linux ELF.
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11633 shlibpath_var=LD_LIBRARY_PATH
11634 shlibpath_overrides_runpath=no
11635 # This implies no fast_install, which is unacceptable.
11636 # Some rework will be needed to allow for fast_install
11637 # before this can be enabled.
11638 hardcode_into_libs=yes
11640 # Append ld.so.conf contents to the search path
11641 if test -f /etc/ld.so.conf; then
11642 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11643 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11646 # We used to test for /lib/ld.so.1 and disable shared libraries on
11647 # powerpc, because MkLinux only supported shared libraries with the
11648 # GNU dynamic linker. Since this was broken with cross compilers,
11649 # most powerpc-linux boxes support dynamic linking these days and
11650 # people can always --disable-shared, the test was removed, and we
11651 # assume the GNU/Linux dynamic linker is in use.
11652 dynamic_linker='GNU/Linux ld.so'
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11660 soname_spec='${libname}${release}${shared_ext}$major'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=no
11663 hardcode_into_libs=yes
11664 dynamic_linker='NetBSD ld.elf_so'
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=no
11675 hardcode_into_libs=yes
11676 dynamic_linker='GNU ld.so'
11683 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11686 dynamic_linker='NetBSD (a.out) ld.so'
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11689 soname_spec='${libname}${release}${shared_ext}$major'
11690 dynamic_linker='NetBSD ld.elf_so'
11692 shlibpath_var=LD_LIBRARY_PATH
11693 shlibpath_overrides_runpath=yes
11694 hardcode_into_libs=yes
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 shlibpath_var=LD_LIBRARY_PATH
11701 shlibpath_overrides_runpath=yes
11708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709 soname_spec='${libname}${release}${shared_ext}$major'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 shlibpath_overrides_runpath=yes
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11723 openbsd2.[89] | openbsd2.[89].*)
11724 shlibpath_overrides_runpath=no
11727 shlibpath_overrides_runpath=yes
11731 shlibpath_overrides_runpath=yes
11736 libname_spec='$name'
11739 library_names_spec='$libname${shared_ext} $libname.a'
11740 dynamic_linker='OS/2 ld.exe'
11741 shlibpath_var=LIBPATH
11744 osf3* | osf4* | osf5*)
11748 soname_spec='${libname}${release}${shared_ext}$major'
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11752 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11757 soname_spec='${libname}${release}${shared_ext}$major'
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759 shlibpath_var=LD_LIBRARY_PATH
11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11767 soname_spec='${libname}${release}${shared_ext}$major'
11768 shlibpath_var=LD_LIBRARY_PATH
11769 shlibpath_overrides_runpath=yes
11770 hardcode_into_libs=yes
11771 # ldd complains unless libraries are executable
11772 postinstall_cmds='chmod +x $lib'
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11778 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 shlibpath_overrides_runpath=yes
11781 if test "$with_gnu_ld" = yes; then
11787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 soname_spec='${libname}${release}${shared_ext}$major'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 case $host_vendor in
11794 shlibpath_overrides_runpath=no
11796 export_dynamic_flag_spec='${wl}-Blargedynsym'
11797 runpath_var=LD_RUN_PATH
11805 shlibpath_overrides_runpath=no
11806 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11812 if test -d /usr/nec ;then
11814 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11815 soname_spec='$libname${shared_ext}.$major'
11816 shlibpath_var=LD_LIBRARY_PATH
11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823 soname_spec='${libname}${release}${shared_ext}$major'
11824 shlibpath_var=LD_LIBRARY_PATH
11831 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11832 echo "${ECHO_T}$dynamic_linker" >&6
11833 test "$dynamic_linker" = no && can_build_shared=no
11835 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11836 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11837 hardcode_action_CXX=
11838 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11839 test -n "$runpath_var CXX" || \
11840 test "X$hardcode_automatic_CXX"="Xyes" ; then
11842 # We can hardcode non-existant directories.
11843 if test "$hardcode_direct_CXX" != no &&
11844 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11845 # have to relink, otherwise we might link with an installed library
11846 # when we should be linking with a yet-to-be-installed one
11847 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11848 test "$hardcode_minus_L_CXX" != no; then
11849 # Linking always hardcodes the temporary library directory.
11850 hardcode_action_CXX=relink
11852 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11853 hardcode_action_CXX=immediate
11856 # We cannot hardcode anything, or else we can only hardcode existing
11858 hardcode_action_CXX=unsupported
11860 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11861 echo "${ECHO_T}$hardcode_action_CXX" >&6
11863 if test "$hardcode_action_CXX" = relink; then
11864 # Fast installation is not supported
11865 enable_fast_install=no
11866 elif test "$shlibpath_overrides_runpath" = yes ||
11867 test "$enable_shared" = no; then
11868 # Fast installation is not necessary
11869 enable_fast_install=needless
11874 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11875 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11876 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11877 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11878 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11879 echo "$as_me:$LINENO: result: yes" >&5
11880 echo "${ECHO_T}yes" >&6
11882 # FIXME - insert some real tests, host_os isn't really good enough
11885 if test -n "$STRIP" ; then
11886 striplib="$STRIP -x"
11887 echo "$as_me:$LINENO: result: yes" >&5
11888 echo "${ECHO_T}yes" >&6
11890 echo "$as_me:$LINENO: result: no" >&5
11891 echo "${ECHO_T}no" >&6
11895 echo "$as_me:$LINENO: result: no" >&5
11896 echo "${ECHO_T}no" >&6
11901 if test "x$enable_dlopen" != xyes; then
11902 enable_dlopen=unknown
11903 enable_dlopen_self=unknown
11904 enable_dlopen_self_static=unknown
11911 lt_cv_dlopen="load_add_on"
11913 lt_cv_dlopen_self=yes
11917 lt_cv_dlopen="LoadLibrary"
11922 lt_cv_dlopen="dlopen"
11927 # if libdl is installed we need to link against it
11928 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11929 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11930 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 ac_check_lib_save_LIBS=$LIBS
11935 cat >conftest.$ac_ext <<_ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11942 /* Override any gcc2 internal prototype to avoid an error. */
11946 /* We use char because int might match the return type of a gcc2
11947 builtin and then its argument prototype would still apply. */
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>conftest.er1
11961 grep -v '^ *+' conftest.er1 >conftest.err
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_cv_lib_dl_dlopen=yes
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 ac_cv_lib_dl_dlopen=no
11985 rm -f conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11989 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11990 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11991 if test $ac_cv_lib_dl_dlopen = yes; then
11992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11995 lt_cv_dlopen="dyld"
11997 lt_cv_dlopen_self=yes
12004 echo "$as_me:$LINENO: checking for shl_load" >&5
12005 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12006 if test "${ac_cv_func_shl_load+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 cat >conftest.$ac_ext <<_ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12017 #define shl_load innocuous_shl_load
12019 /* System header to define __stub macros and hopefully few prototypes,
12020 which can conflict with char shl_load (); below.
12021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12022 <limits.h> exists even on freestanding compilers. */
12025 # include <limits.h>
12027 # include <assert.h>
12032 /* Override any gcc2 internal prototype to avoid an error. */
12037 /* We use char because int might match the return type of a gcc2
12038 builtin and then its argument prototype would still apply. */
12040 /* The GNU C library defines this for functions which it implements
12041 to always fail with ENOSYS. Some functions are actually named
12042 something starting with __ and the normal name is an alias. */
12043 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12046 char (*f) () = shl_load;
12055 return f != shl_load;
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062 (eval $ac_link) 2>conftest.er1
12064 grep -v '^ *+' conftest.er1 >conftest.err
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_func_shl_load=yes
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 ac_cv_func_shl_load=no
12088 rm -f conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12091 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12092 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12093 if test $ac_cv_func_shl_load = yes; then
12094 lt_cv_dlopen="shl_load"
12096 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12097 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12098 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 ac_check_lib_save_LIBS=$LIBS
12103 cat >conftest.$ac_ext <<_ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12110 /* Override any gcc2 internal prototype to avoid an error. */
12114 /* We use char because int might match the return type of a gcc2
12115 builtin and then its argument prototype would still apply. */
12125 rm -f conftest.$ac_objext conftest$ac_exeext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12127 (eval $ac_link) 2>conftest.er1
12129 grep -v '^ *+' conftest.er1 >conftest.err
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
12134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try='test -s conftest$ac_exeext'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_cv_lib_dld_shl_load=yes
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 ac_cv_lib_dld_shl_load=no
12153 rm -f conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12157 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12158 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12159 if test $ac_cv_lib_dld_shl_load = yes; then
12160 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12162 echo "$as_me:$LINENO: checking for dlopen" >&5
12163 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12164 if test "${ac_cv_func_dlopen+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 cat >conftest.$ac_ext <<_ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12175 #define dlopen innocuous_dlopen
12177 /* System header to define __stub macros and hopefully few prototypes,
12178 which can conflict with char dlopen (); below.
12179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12180 <limits.h> exists even on freestanding compilers. */
12183 # include <limits.h>
12185 # include <assert.h>
12190 /* Override any gcc2 internal prototype to avoid an error. */
12195 /* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12198 /* The GNU C library defines this for functions which it implements
12199 to always fail with ENOSYS. Some functions are actually named
12200 something starting with __ and the normal name is an alias. */
12201 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12204 char (*f) () = dlopen;
12213 return f != dlopen;
12218 rm -f conftest.$ac_objext conftest$ac_exeext
12219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12220 (eval $ac_link) 2>conftest.er1
12222 grep -v '^ *+' conftest.er1 >conftest.err
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } &&
12227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest$ac_exeext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_cv_func_dlopen=yes
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 ac_cv_func_dlopen=no
12246 rm -f conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12249 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12250 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12251 if test $ac_cv_func_dlopen = yes; then
12252 lt_cv_dlopen="dlopen"
12254 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12255 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12256 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 ac_check_lib_save_LIBS=$LIBS
12261 cat >conftest.$ac_ext <<_ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12268 /* Override any gcc2 internal prototype to avoid an error. */
12272 /* We use char because int might match the return type of a gcc2
12273 builtin and then its argument prototype would still apply. */
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12285 (eval $ac_link) 2>conftest.er1
12287 grep -v '^ *+' conftest.er1 >conftest.err
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } &&
12292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_cv_lib_dl_dlopen=yes
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_cv_lib_dl_dlopen=no
12311 rm -f conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_lib_save_LIBS
12315 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12316 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12317 if test $ac_cv_lib_dl_dlopen = yes; then
12318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12320 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12321 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12322 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lsvld $LIBS"
12327 cat >conftest.$ac_ext <<_ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12334 /* Override any gcc2 internal prototype to avoid an error. */
12338 /* We use char because int might match the return type of a gcc2
12339 builtin and then its argument prototype would still apply. */
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest$ac_exeext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_cv_lib_svld_dlopen=yes
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ac_cv_lib_svld_dlopen=no
12377 rm -f conftest.err conftest.$ac_objext \
12378 conftest$ac_exeext conftest.$ac_ext
12379 LIBS=$ac_check_lib_save_LIBS
12381 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12382 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12383 if test $ac_cv_lib_svld_dlopen = yes; then
12384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12386 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12387 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12388 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 ac_check_lib_save_LIBS=$LIBS
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12400 /* Override any gcc2 internal prototype to avoid an error. */
12404 /* We use char because int might match the return type of a gcc2
12405 builtin and then its argument prototype would still apply. */
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>conftest.er1
12419 grep -v '^ *+' conftest.er1 >conftest.err
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try='test -s conftest$ac_exeext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_cv_lib_dld_dld_link=yes
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_cv_lib_dld_dld_link=no
12443 rm -f conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12447 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12448 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12449 if test $ac_cv_lib_dld_dld_link = yes; then
12450 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12471 if test "x$lt_cv_dlopen" != xno; then
12477 case $lt_cv_dlopen in
12479 save_CPPFLAGS="$CPPFLAGS"
12480 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12482 save_LDFLAGS="$LDFLAGS"
12483 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12486 LIBS="$lt_cv_dlopen_libs $LIBS"
12488 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12489 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12490 if test "${lt_cv_dlopen_self+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 if test "$cross_compiling" = yes; then :
12494 lt_cv_dlopen_self=cross
12496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12497 lt_status=$lt_dlunknown
12498 cat > conftest.$ac_ext <<EOF
12499 #line 12499 "configure"
12500 #include "confdefs.h"
12509 # define LT_DLGLOBAL RTLD_GLOBAL
12512 # define LT_DLGLOBAL DL_GLOBAL
12514 # define LT_DLGLOBAL 0
12518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12519 find out it does not work in some platform. */
12520 #ifndef LT_DLLAZY_OR_NOW
12522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12525 # define LT_DLLAZY_OR_NOW DL_LAZY
12528 # define LT_DLLAZY_OR_NOW RTLD_NOW
12531 # define LT_DLLAZY_OR_NOW DL_NOW
12533 # define LT_DLLAZY_OR_NOW 0
12541 extern "C" void exit (int);
12544 void fnord() { int i=42;}
12547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12548 int status = $lt_dlunknown;
12552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12553 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12554 /* dlclose (self); */
12560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12561 (eval $ac_link) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12565 (./conftest; exit; ) 2>/dev/null
12567 case x$lt_status in
12568 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12569 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12570 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12573 # compilation failed
12574 lt_cv_dlopen_self=no
12581 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12582 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12584 if test "x$lt_cv_dlopen_self" = xyes; then
12585 LDFLAGS="$LDFLAGS $link_static_flag"
12586 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12587 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12588 if test "${lt_cv_dlopen_self_static+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 if test "$cross_compiling" = yes; then :
12592 lt_cv_dlopen_self_static=cross
12594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12595 lt_status=$lt_dlunknown
12596 cat > conftest.$ac_ext <<EOF
12597 #line 12597 "configure"
12598 #include "confdefs.h"
12607 # define LT_DLGLOBAL RTLD_GLOBAL
12610 # define LT_DLGLOBAL DL_GLOBAL
12612 # define LT_DLGLOBAL 0
12616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12617 find out it does not work in some platform. */
12618 #ifndef LT_DLLAZY_OR_NOW
12620 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12623 # define LT_DLLAZY_OR_NOW DL_LAZY
12626 # define LT_DLLAZY_OR_NOW RTLD_NOW
12629 # define LT_DLLAZY_OR_NOW DL_NOW
12631 # define LT_DLLAZY_OR_NOW 0
12639 extern "C" void exit (int);
12642 void fnord() { int i=42;}
12645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12646 int status = $lt_dlunknown;
12650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12652 /* dlclose (self); */
12658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12659 (eval $ac_link) 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12663 (./conftest; exit; ) 2>/dev/null
12665 case x$lt_status in
12666 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12667 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12668 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12671 # compilation failed
12672 lt_cv_dlopen_self_static=no
12679 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12680 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12683 CPPFLAGS="$save_CPPFLAGS"
12684 LDFLAGS="$save_LDFLAGS"
12689 case $lt_cv_dlopen_self in
12690 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12691 *) enable_dlopen_self=unknown ;;
12694 case $lt_cv_dlopen_self_static in
12695 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12696 *) enable_dlopen_self_static=unknown ;;
12701 # The else clause should only fire when bootstrapping the
12702 # libtool distribution, otherwise you forgot to ship ltmain.sh
12703 # with your package, and you will get complaints that there are
12704 # no rules to generate ltmain.sh.
12705 if test -f "$ltmain"; then
12706 # See if we are running on zsh, and set the options which allow our commands through
12707 # without removal of \ escapes.
12708 if test -n "${ZSH_VERSION+set}" ; then
12709 setopt NO_GLOB_SUBST
12711 # Now quote all the things that may contain metacharacters while being
12712 # careful not to overquote the AC_SUBSTed values. We take copies of the
12713 # variables and quote the copies for generation of the libtool script.
12714 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12716 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12717 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12718 deplibs_check_method reload_flag reload_cmds need_locks \
12719 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12720 lt_cv_sys_global_symbol_to_c_name_address \
12721 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12722 old_postinstall_cmds old_postuninstall_cmds \
12726 lt_prog_compiler_wl_CXX \
12727 lt_prog_compiler_pic_CXX \
12728 lt_prog_compiler_static_CXX \
12729 lt_prog_compiler_no_builtin_flag_CXX \
12730 export_dynamic_flag_spec_CXX \
12731 thread_safe_flag_spec_CXX \
12732 whole_archive_flag_spec_CXX \
12733 enable_shared_with_static_runtimes_CXX \
12734 old_archive_cmds_CXX \
12735 old_archive_from_new_cmds_CXX \
12736 predep_objects_CXX \
12737 postdep_objects_CXX \
12740 compiler_lib_search_path_CXX \
12742 archive_expsym_cmds_CXX \
12743 postinstall_cmds_CXX \
12744 postuninstall_cmds_CXX \
12745 old_archive_from_expsyms_cmds_CXX \
12746 allow_undefined_flag_CXX \
12747 no_undefined_flag_CXX \
12748 export_symbols_cmds_CXX \
12749 hardcode_libdir_flag_spec_CXX \
12750 hardcode_libdir_flag_spec_ld_CXX \
12751 hardcode_libdir_separator_CXX \
12752 hardcode_automatic_CXX \
12754 module_expsym_cmds_CXX \
12755 lt_cv_prog_compiler_c_o_CXX \
12756 exclude_expsyms_CXX \
12757 include_expsyms_CXX; do
12760 old_archive_cmds_CXX | \
12761 old_archive_from_new_cmds_CXX | \
12762 archive_cmds_CXX | \
12763 archive_expsym_cmds_CXX | \
12764 module_cmds_CXX | \
12765 module_expsym_cmds_CXX | \
12766 old_archive_from_expsyms_cmds_CXX | \
12767 export_symbols_cmds_CXX | \
12768 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12769 postinstall_cmds | postuninstall_cmds | \
12770 old_postinstall_cmds | old_postuninstall_cmds | \
12771 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12772 # Double-quote double-evaled strings.
12773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12782 *'\$0 --fallback-echo"')
12783 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12789 cat <<__EOF__ >> "$cfgfile"
12790 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12794 # Shell to use when invoking shell scripts.
12797 # Whether or not to build shared libraries.
12798 build_libtool_libs=$enable_shared
12800 # Whether or not to build static libraries.
12801 build_old_libs=$enable_static
12803 # Whether or not to add -lc for building shared libraries.
12804 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12806 # Whether or not to disallow shared libs when runtime libs are static
12807 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12809 # Whether or not to optimize for fast installation.
12810 fast_install=$enable_fast_install
12813 host_alias=$host_alias
12816 # An echo program that does not interpret backslashes.
12821 AR_FLAGS=$lt_AR_FLAGS
12826 # A language-specific compiler.
12827 CC=$lt_compiler_CXX
12829 # Is the compiler the GNU C compiler?
12835 # The linker used to build libraries.
12838 # Whether we need hard or soft links.
12841 # A BSD-compatible nm program.
12844 # A symbol stripping program
12847 # Used to examine libraries when file_magic_cmd begins "file"
12848 MAGIC_CMD=$MAGIC_CMD
12850 # Used on cygwin: DLL creation program.
12853 # Used on cygwin: object dumper.
12856 # Used on cygwin: assembler.
12859 # The name of the directory that contains temporary libtool files.
12862 # How to create reloadable object files.
12863 reload_flag=$lt_reload_flag
12864 reload_cmds=$lt_reload_cmds
12866 # How to pass a linker flag through the compiler.
12867 wl=$lt_lt_prog_compiler_wl_CXX
12869 # Object file suffix (normally "o").
12870 objext="$ac_objext"
12872 # Old archive suffix (normally "a").
12875 # Shared library suffix (normally ".so").
12876 shrext_cmds='$shrext_cmds'
12878 # Executable file suffix (normally "").
12881 # Additional compiler flags for building library objects.
12882 pic_flag=$lt_lt_prog_compiler_pic_CXX
12885 # What is the maximum length of a command?
12886 max_cmd_len=$lt_cv_sys_max_cmd_len
12888 # Does compiler simultaneously support -c and -o options?
12889 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12891 # Must we lock files when doing compilation ?
12892 need_locks=$lt_need_locks
12894 # Do we need the lib prefix for modules?
12895 need_lib_prefix=$need_lib_prefix
12897 # Do we need a version for libraries?
12898 need_version=$need_version
12900 # Whether dlopen is supported.
12901 dlopen_support=$enable_dlopen
12903 # Whether dlopen of programs is supported.
12904 dlopen_self=$enable_dlopen_self
12906 # Whether dlopen of statically linked programs is supported.
12907 dlopen_self_static=$enable_dlopen_self_static
12909 # Compiler flag to prevent dynamic linking.
12910 link_static_flag=$lt_lt_prog_compiler_static_CXX
12912 # Compiler flag to turn off builtin functions.
12913 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12915 # Compiler flag to allow reflexive dlopens.
12916 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12918 # Compiler flag to generate shared objects directly from archives.
12919 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12921 # Compiler flag to generate thread-safe objects.
12922 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12924 # Library versioning type.
12925 version_type=$version_type
12927 # Format of library name prefix.
12928 libname_spec=$lt_libname_spec
12930 # List of archive names. First name is the real one, the rest are links.
12931 # The last name is the one that the linker finds with -lNAME.
12932 library_names_spec=$lt_library_names_spec
12934 # The coded name of the library, if different from the real name.
12935 soname_spec=$lt_soname_spec
12937 # Commands used to build and install an old-style archive.
12939 old_archive_cmds=$lt_old_archive_cmds_CXX
12940 old_postinstall_cmds=$lt_old_postinstall_cmds
12941 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12943 # Create an old-style archive from a shared archive.
12944 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12946 # Create a temporary old-style archive to link instead of a shared archive.
12947 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12949 # Commands used to build and install a shared archive.
12950 archive_cmds=$lt_archive_cmds_CXX
12951 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12952 postinstall_cmds=$lt_postinstall_cmds
12953 postuninstall_cmds=$lt_postuninstall_cmds
12955 # Commands used to build a loadable module (assumed same as above if empty)
12956 module_cmds=$lt_module_cmds_CXX
12957 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12959 # Commands to strip libraries.
12960 old_striplib=$lt_old_striplib
12961 striplib=$lt_striplib
12963 # Dependencies to place before the objects being linked to create a
12965 predep_objects=$lt_predep_objects_CXX
12967 # Dependencies to place after the objects being linked to create a
12969 postdep_objects=$lt_postdep_objects_CXX
12971 # Dependencies to place before the objects being linked to create a
12973 predeps=$lt_predeps_CXX
12975 # Dependencies to place after the objects being linked to create a
12977 postdeps=$lt_postdeps_CXX
12979 # The library search path used internally by the compiler when linking
12980 # a shared library.
12981 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12983 # Method to check whether dependent libraries are shared objects.
12984 deplibs_check_method=$lt_deplibs_check_method
12986 # Command to use when deplibs_check_method == file_magic.
12987 file_magic_cmd=$lt_file_magic_cmd
12989 # Flag that allows shared libraries with undefined symbols to be built.
12990 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12992 # Flag that forces no undefined symbols.
12993 no_undefined_flag=$lt_no_undefined_flag_CXX
12995 # Commands used to finish a libtool library installation in a directory.
12996 finish_cmds=$lt_finish_cmds
12998 # Same as above, but a single script fragment to be evaled but not shown.
12999 finish_eval=$lt_finish_eval
13001 # Take the output of nm and produce a listing of raw symbols and C names.
13002 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13004 # Transform the output of nm in a proper C declaration
13005 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13007 # Transform the output of nm in a C name address pair
13008 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13010 # This is the shared library runtime path variable.
13011 runpath_var=$runpath_var
13013 # This is the shared library path variable.
13014 shlibpath_var=$shlibpath_var
13016 # Is shlibpath searched before the hard-coded library search path?
13017 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13019 # How to hardcode a shared library path into an executable.
13020 hardcode_action=$hardcode_action_CXX
13022 # Whether we should hardcode library paths into libraries.
13023 hardcode_into_libs=$hardcode_into_libs
13025 # Flag to hardcode \$libdir into a binary during linking.
13026 # This must work even if \$libdir does not exist.
13027 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13029 # If ld is used when linking, flag to hardcode \$libdir into
13030 # a binary during linking. This must work even if \$libdir does
13032 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13034 # Whether we need a single -rpath flag with a separated argument.
13035 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13037 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13038 # resulting binary.
13039 hardcode_direct=$hardcode_direct_CXX
13041 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13042 # resulting binary.
13043 hardcode_minus_L=$hardcode_minus_L_CXX
13045 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13046 # the resulting binary.
13047 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13049 # Set to yes if building a shared library automatically hardcodes DIR into the library
13050 # and all subsequent libraries and executables linked against it.
13051 hardcode_automatic=$hardcode_automatic_CXX
13053 # Variables whose values should be saved in libtool wrapper scripts and
13054 # restored at relink time.
13055 variables_saved_for_relink="$variables_saved_for_relink"
13057 # Whether libtool must link a program against all its dependency libraries.
13058 link_all_deplibs=$link_all_deplibs_CXX
13060 # Compile-time system search path for libraries
13061 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13063 # Run-time system search path for libraries
13064 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13066 # Fix the shell variable \$srcfile for the compiler.
13067 fix_srcfile_path="$fix_srcfile_path_CXX"
13069 # Set to yes if exported symbols are required.
13070 always_export_symbols=$always_export_symbols_CXX
13072 # The commands to list exported symbols.
13073 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13075 # The commands to extract the exported symbol list from a shared archive.
13076 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13078 # Symbols that should not be listed in the preloaded symbols.
13079 exclude_expsyms=$lt_exclude_expsyms_CXX
13081 # Symbols that must always be exported.
13082 include_expsyms=$lt_include_expsyms_CXX
13084 # ### END LIBTOOL TAG CONFIG: $tagname
13090 # If there is no Makefile yet, we rely on a make rule to execute
13091 # `config.status --recheck' to rerun these tests and create the
13092 # libtool script then.
13093 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13094 if test -f "$ltmain_in"; then
13095 test -f Makefile && make "$ltmain"
13101 ac_cpp='$CPP $CPPFLAGS'
13102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13110 with_gnu_ldcxx=$with_gnu_ld
13111 with_gnu_ld=$lt_save_with_gnu_ld
13112 lt_cv_path_LDCXX=$lt_cv_path_LD
13113 lt_cv_path_LD=$lt_save_path_LD
13114 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13115 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13123 if test -n "$F77" && test "X$F77" != "Xno"; then
13126 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13127 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13131 archive_cmds_need_lc_F77=no
13132 allow_undefined_flag_F77=
13133 always_export_symbols_F77=no
13134 archive_expsym_cmds_F77=
13135 export_dynamic_flag_spec_F77=
13136 hardcode_direct_F77=no
13137 hardcode_libdir_flag_spec_F77=
13138 hardcode_libdir_flag_spec_ld_F77=
13139 hardcode_libdir_separator_F77=
13140 hardcode_minus_L_F77=no
13141 hardcode_automatic_F77=no
13143 module_expsym_cmds_F77=
13144 link_all_deplibs_F77=unknown
13145 old_archive_cmds_F77=$old_archive_cmds
13146 no_undefined_flag_F77=
13147 whole_archive_flag_spec_F77=
13148 enable_shared_with_static_runtimes_F77=no
13150 # Source file extension for f77 test sources.
13153 # Object file extension for compiled f77 test sources.
13157 # Code to be used in simple compile tests
13158 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13160 # Code to be used in simple link tests
13161 lt_simple_link_test_code=" program t\n end\n"
13163 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13165 # If no C compiler was specified, use CC.
13168 # Allow CC to be a program name with arguments.
13172 # Allow CC to be a program name with arguments.
13177 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13179 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13180 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13181 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13182 echo "${ECHO_T}$can_build_shared" >&6
13184 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13185 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13186 test "$can_build_shared" = "no" && enable_shared=no
13188 # On AIX, shared libraries and static libraries use the same namespace, and
13189 # are all built from PIC.
13192 test "$enable_shared" = yes && enable_static=no
13193 if test -n "$RANLIB"; then
13194 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13195 postinstall_cmds='$RANLIB $lib'
13199 test "$enable_shared" = yes && enable_static=no
13202 echo "$as_me:$LINENO: result: $enable_shared" >&5
13203 echo "${ECHO_T}$enable_shared" >&6
13205 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13206 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13207 # Make sure either enable_shared or enable_static is yes.
13208 test "$enable_shared" = yes || enable_static=yes
13209 echo "$as_me:$LINENO: result: $enable_static" >&5
13210 echo "${ECHO_T}$enable_static" >&6
13212 test "$ld_shlibs_F77" = no && can_build_shared=no
13217 lt_prog_compiler_wl_F77=
13218 lt_prog_compiler_pic_F77=
13219 lt_prog_compiler_static_F77=
13221 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13222 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13224 if test "$GCC" = yes; then
13225 lt_prog_compiler_wl_F77='-Wl,'
13226 lt_prog_compiler_static_F77='-static'
13230 # All AIX code is PIC.
13231 if test "$host_cpu" = ia64; then
13232 # AIX 5 now supports IA64 processor
13233 lt_prog_compiler_static_F77='-Bstatic'
13238 # FIXME: we need at least 68020 code to build shared libraries, but
13239 # adding the `-m68020' flag to GCC prevents building anything better,
13241 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13244 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13245 # PIC is the default for these OSes.
13248 mingw* | pw32* | os2*)
13249 # This hack is so that the source file can tell whether it is being
13250 # built for inclusion in a dll (and should export symbols for example).
13251 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13254 darwin* | rhapsody*)
13255 # PIC is the default on this platform
13256 # Common symbols not allowed in MH_DYLIB files
13257 lt_prog_compiler_pic_F77='-fno-common'
13261 # Just because we use GCC doesn't mean we suddenly get shared libraries
13262 # on systems that don't support them.
13263 lt_prog_compiler_can_build_shared_F77=no
13268 if test -d /usr/nec; then
13269 lt_prog_compiler_pic_F77=-Kconform_pic
13274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13275 # not for PA HP-UX.
13276 case "$host_cpu" in
13281 lt_prog_compiler_pic_F77='-fPIC'
13287 lt_prog_compiler_pic_F77='-fPIC'
13291 # PORTME Check for flag to pass linker flags through the system compiler.
13294 lt_prog_compiler_wl_F77='-Wl,'
13295 if test "$host_cpu" = ia64; then
13296 # AIX 5 now supports IA64 processor
13297 lt_prog_compiler_static_F77='-Bstatic'
13299 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13303 mingw* | pw32* | os2*)
13304 # This hack is so that the source file can tell whether it is being
13305 # built for inclusion in a dll (and should export symbols for example).
13306 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13309 hpux9* | hpux10* | hpux11*)
13310 lt_prog_compiler_wl_F77='-Wl,'
13311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13312 # not for PA HP-UX.
13313 case "$host_cpu" in
13318 lt_prog_compiler_pic_F77='+Z'
13321 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13322 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13325 irix5* | irix6* | nonstopux*)
13326 lt_prog_compiler_wl_F77='-Wl,'
13327 # PIC (with -KPIC) is the default.
13328 lt_prog_compiler_static_F77='-non_shared'
13332 lt_prog_compiler_pic_F77='-KPIC'
13333 lt_prog_compiler_static_F77='-Bstatic'
13339 lt_prog_compiler_wl_F77='-Wl,'
13340 lt_prog_compiler_pic_F77='-KPIC'
13341 lt_prog_compiler_static_F77='-static'
13344 lt_prog_compiler_wl_F77='-Wl,'
13345 # All Alpha code is PIC.
13346 lt_prog_compiler_static_F77='-non_shared'
13351 osf3* | osf4* | osf5*)
13352 lt_prog_compiler_wl_F77='-Wl,'
13353 # All OSF/1 code is PIC.
13354 lt_prog_compiler_static_F77='-non_shared'
13358 lt_prog_compiler_pic_F77='-Kpic'
13359 lt_prog_compiler_static_F77='-dn'
13363 lt_prog_compiler_wl_F77='-Wl,'
13364 lt_prog_compiler_pic_F77='-KPIC'
13365 lt_prog_compiler_static_F77='-Bstatic'
13369 lt_prog_compiler_wl_F77='-Qoption ld '
13370 lt_prog_compiler_pic_F77='-PIC'
13371 lt_prog_compiler_static_F77='-Bstatic'
13374 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13375 lt_prog_compiler_wl_F77='-Wl,'
13376 lt_prog_compiler_pic_F77='-KPIC'
13377 lt_prog_compiler_static_F77='-Bstatic'
13381 if test -d /usr/nec ;then
13382 lt_prog_compiler_pic_F77='-Kconform_pic'
13383 lt_prog_compiler_static_F77='-Bstatic'
13388 lt_prog_compiler_pic_F77='-pic'
13389 lt_prog_compiler_static_F77='-Bstatic'
13393 lt_prog_compiler_can_build_shared_F77=no
13398 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13399 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13402 # Check to make sure the PIC flag actually works.
13404 if test -n "$lt_prog_compiler_pic_F77"; then
13406 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13407 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13408 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 lt_prog_compiler_pic_works_F77=no
13412 ac_outfile=conftest.$ac_objext
13413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13414 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13415 # Insert the option either (1) after the last *FLAGS variable, or
13416 # (2) before a word containing "conftest.", or (3) at the end.
13417 # Note that $ac_compile itself does not contain backslashes and begins
13418 # with a dollar sign (not a hyphen), so the echo should work correctly.
13419 # The option is referenced via a variable to avoid confusing sed.
13420 lt_compile=`echo "$ac_compile" | $SED \
13421 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13423 -e 's:$: $lt_compiler_flag:'`
13424 (eval echo "\"\$as_me:13424: $lt_compile\"" >&5)
13425 (eval "$lt_compile" 2>conftest.err)
13427 cat conftest.err >&5
13428 echo "$as_me:13428: \$? = $ac_status" >&5
13429 if (exit $ac_status) && test -s "$ac_outfile"; then
13430 # The compiler can only warn and ignore the option if not recognized
13431 # So say no if there are warnings
13432 if test ! -s conftest.err; then
13433 lt_prog_compiler_pic_works_F77=yes
13439 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13440 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13442 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13443 case $lt_prog_compiler_pic_F77 in
13445 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13448 lt_prog_compiler_pic_F77=
13449 lt_prog_compiler_can_build_shared_F77=no
13454 # For platforms which do not support PIC, -DPIC is meaningless:
13456 lt_prog_compiler_pic_F77=
13459 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13463 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13464 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13465 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 lt_cv_prog_compiler_c_o_F77=no
13469 $rm -r conftest 2>/dev/null
13473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13475 lt_compiler_flag="-o out/conftest2.$ac_objext"
13476 # Insert the option either (1) after the last *FLAGS variable, or
13477 # (2) before a word containing "conftest.", or (3) at the end.
13478 # Note that $ac_compile itself does not contain backslashes and begins
13479 # with a dollar sign (not a hyphen), so the echo should work correctly.
13480 lt_compile=`echo "$ac_compile" | $SED \
13481 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13483 -e 's:$: $lt_compiler_flag:'`
13484 (eval echo "\"\$as_me:13484: $lt_compile\"" >&5)
13485 (eval "$lt_compile" 2>out/conftest.err)
13487 cat out/conftest.err >&5
13488 echo "$as_me:13488: \$? = $ac_status" >&5
13489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13491 # The compiler can only warn and ignore the option if not recognized
13492 # So say no if there are warnings
13493 if test ! -s out/conftest.err; then
13494 lt_cv_prog_compiler_c_o_F77=yes
13499 # SGI C++ compiler will create directory out/ii_files/ for
13500 # template instantiation
13501 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13502 $rm out/* && rmdir out
13508 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13509 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13512 hard_links="nottested"
13513 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13514 # do not overwrite the value of need_locks provided by the user
13515 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13516 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13521 ln conftest.a conftest.b 2>&5 || hard_links=no
13522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13523 echo "$as_me:$LINENO: result: $hard_links" >&5
13524 echo "${ECHO_T}$hard_links" >&6
13525 if test "$hard_links" = no; then
13526 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13527 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13534 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13535 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13538 allow_undefined_flag_F77=
13539 enable_shared_with_static_runtimes_F77=no
13541 archive_expsym_cmds_F77=
13542 old_archive_From_new_cmds_F77=
13543 old_archive_from_expsyms_cmds_F77=
13544 export_dynamic_flag_spec_F77=
13545 whole_archive_flag_spec_F77=
13546 thread_safe_flag_spec_F77=
13547 hardcode_libdir_flag_spec_F77=
13548 hardcode_libdir_flag_spec_ld_F77=
13549 hardcode_libdir_separator_F77=
13550 hardcode_direct_F77=no
13551 hardcode_minus_L_F77=no
13552 hardcode_shlibpath_var_F77=unsupported
13553 link_all_deplibs_F77=unknown
13554 hardcode_automatic_F77=no
13556 module_expsym_cmds_F77=
13557 always_export_symbols_F77=no
13558 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13559 # include_expsyms should be a list of space-separated symbols to be *always*
13560 # included in the symbol list
13561 include_expsyms_F77=
13562 # exclude_expsyms can be an extended regexp of symbols to exclude
13563 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13564 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13565 # as well as any symbol that contains `d'.
13566 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13567 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13568 # platforms (ab)use it in PIC code, but their linkers get confused if
13569 # the symbol is explicitly referenced. Since portable code cannot
13570 # rely on this symbol name, it's probably fine to never include it in
13571 # preloaded symbol tables.
13572 extract_expsyms_cmds=
13575 cygwin* | mingw* | pw32*)
13576 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13577 # When not using gcc, we currently assume that we are using
13578 # Microsoft Visual C++.
13579 if test "$GCC" != yes; then
13589 if test "$with_gnu_ld" = yes; then
13590 # If archive_cmds runs LD, not CC, wlarc should be empty
13593 # See if GNU ld supports shared libraries.
13595 aix3* | aix4* | aix5*)
13596 # On AIX/PPC, the GNU linker is very broken
13597 if test "$host_cpu" != ia64; then
13601 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13602 *** to be unable to reliably create shared libraries on AIX.
13603 *** Therefore, libtool is disabling shared libraries support. If you
13604 *** really care for shared libraries, you may want to modify your PATH
13605 *** so that a non-GNU linker is found, and then restart.
13612 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)'
13613 hardcode_libdir_flag_spec_F77='-L$libdir'
13614 hardcode_minus_L_F77=yes
13616 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13617 # that the semantics of dynamic libraries on AmigaOS, at least up
13618 # to version 4, is to share data among multiple programs linked
13619 # with the same dynamic library. Since this doesn't match the
13620 # behavior of shared libraries on other platforms, we can't use
13626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13627 allow_undefined_flag_F77=unsupported
13628 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13629 # support --undefined. This deserves some investigation. FIXME
13630 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636 cygwin* | mingw* | pw32*)
13637 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13638 # as there is no search path for DLLs.
13639 hardcode_libdir_flag_spec_F77='-L$libdir'
13640 allow_undefined_flag_F77=unsupported
13641 always_export_symbols_F77=no
13642 enable_shared_with_static_runtimes_F77=yes
13643 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13645 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13646 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13647 # If the export-symbols file already is a .def file (1st line
13648 # is EXPORTS), use it as is; otherwise, prepend...
13649 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13650 cp $export_symbols $output_objdir/$soname.def;
13652 echo EXPORTS > $output_objdir/$soname.def;
13653 cat $export_symbols >> $output_objdir/$soname.def;
13655 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13661 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13662 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13663 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13666 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13667 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13672 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13676 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13677 *** create shared libraries on Solaris systems. Therefore, libtool
13678 *** is disabling shared libraries support. We urge you to upgrade GNU
13679 *** binutils to release 2.9.1 or newer. Another option is to modify
13680 *** your PATH or compiler configuration so that the native linker is
13681 *** used, and then restart.
13684 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13685 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13686 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13693 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13695 hardcode_direct_F77=yes
13696 hardcode_shlibpath_var_F77=no
13700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13701 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13702 archive_cmds_F77="$tmp_archive_cmds"
13703 supports_anon_versioning=no
13704 case `$LD -v 2>/dev/null` in
13705 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13708 *\ 2.11.*) ;; # other 2.11 versions
13709 *) supports_anon_versioning=yes ;;
13711 if test $supports_anon_versioning = yes; then
13712 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13713 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13714 $echo "local: *; };" >> $output_objdir/$libname.ver~
13715 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13717 archive_expsym_cmds_F77="$tmp_archive_cmds"
13719 link_all_deplibs_F77=no
13726 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13727 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13728 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13735 if test "$ld_shlibs_F77" = yes; then
13736 runpath_var=LD_RUN_PATH
13737 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13738 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13739 # ancient GNU ld didn't support --whole-archive et. al.
13740 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13741 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13743 whole_archive_flag_spec_F77=
13747 # PORTME fill in a description of your system's linker (not GNU ld)
13750 allow_undefined_flag_F77=unsupported
13751 always_export_symbols_F77=yes
13752 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'
13753 # Note: this linker hardcodes the directories in LIBPATH if there
13754 # are no directories specified by -L.
13755 hardcode_minus_L_F77=yes
13756 if test "$GCC" = yes && test -z "$link_static_flag"; then
13757 # Neither direct hardcoding nor static linking is supported with a
13759 hardcode_direct_F77=unsupported
13764 if test "$host_cpu" = ia64; then
13765 # On IA64, the linker does run time linking by default, so we don't
13766 # have to do anything special.
13767 aix_use_runtimelinking=no
13768 exp_sym_flag='-Bexport'
13771 # If we're using GNU nm, then we don't want the "-C" option.
13772 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13773 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13774 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'
13776 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'
13778 aix_use_runtimelinking=no
13780 # Test if we are trying to use run time linking or normal
13781 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13782 # need to do runtime linking.
13783 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13784 for ld_flag in $LDFLAGS; do
13785 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13786 aix_use_runtimelinking=yes
13792 exp_sym_flag='-bexport'
13793 no_entry_flag='-bnoentry'
13796 # When large executables or shared objects are built, AIX ld can
13797 # have problems creating the table of contents. If linking a library
13798 # or program results in "error TOC overflow" add -mminimal-toc to
13799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13802 archive_cmds_F77=''
13803 hardcode_direct_F77=yes
13804 hardcode_libdir_separator_F77=':'
13805 link_all_deplibs_F77=yes
13807 if test "$GCC" = yes; then
13808 case $host_os in aix4.012|aix4.012.*)
13809 # We only want to do this on AIX 4.2 and lower, the check
13810 # below for broken collect2 doesn't work under 4.3+
13811 collect2name=`${CC} -print-prog-name=collect2`
13812 if test -f "$collect2name" && \
13813 strings "$collect2name" | grep resolve_lib_name >/dev/null
13815 # We have reworked collect2
13816 hardcode_direct_F77=yes
13818 # We have old collect2
13819 hardcode_direct_F77=unsupported
13820 # It fails to find uninstalled libraries when the uninstalled
13821 # path is not listed in the libpath. Setting hardcode_minus_L
13822 # to unsupported forces relinking
13823 hardcode_minus_L_F77=yes
13824 hardcode_libdir_flag_spec_F77='-L$libdir'
13825 hardcode_libdir_separator_F77=
13828 shared_flag='-shared'
13831 if test "$host_cpu" = ia64; then
13832 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13833 # chokes on -Wl,-G. The following line is correct:
13836 if test "$aix_use_runtimelinking" = yes; then
13837 shared_flag='${wl}-G'
13839 shared_flag='${wl}-bM:SRE'
13844 # It seems that -bexpall does not export symbols beginning with
13845 # underscore (_), so it is better to generate a list of symbols to export.
13846 always_export_symbols_F77=yes
13847 if test "$aix_use_runtimelinking" = yes; then
13848 # Warning - without using the other runtime loading flags (-brtl),
13849 # -berok will link without error, but may produce a broken library.
13850 allow_undefined_flag_F77='-berok'
13851 # Determine the default libpath from the value encoded in an empty executable.
13852 cat >conftest.$ac_ext <<_ACEOF
13857 rm -f conftest.$ac_objext conftest$ac_exeext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13859 (eval $ac_link) 2>conftest.er1
13861 grep -v '^ *+' conftest.er1 >conftest.err
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest$ac_exeext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13881 # Check for a 64-bit object if we didn't find anything.
13882 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; }
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13889 rm -f conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
13891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13893 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13894 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"
13896 if test "$host_cpu" = ia64; then
13897 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13898 allow_undefined_flag_F77="-z nodefs"
13899 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"
13901 # Determine the default libpath from the value encoded in an empty executable.
13902 cat >conftest.$ac_ext <<_ACEOF
13907 rm -f conftest.$ac_objext conftest$ac_exeext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13909 (eval $ac_link) 2>conftest.er1
13911 grep -v '^ *+' conftest.er1 >conftest.err
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; } &&
13922 { ac_try='test -s conftest$ac_exeext'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13931 # Check for a 64-bit object if we didn't find anything.
13932 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; }
13935 echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13939 rm -f conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13943 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13944 # Warning - without using the other run time loading flags,
13945 # -berok will link without error, but may produce a broken library.
13946 no_undefined_flag_F77=' ${wl}-bernotok'
13947 allow_undefined_flag_F77=' ${wl}-berok'
13948 # -bexpall does not export symbols beginning with underscore (_)
13949 always_export_symbols_F77=yes
13950 # Exported symbols can be pulled into shared objects from archives
13951 whole_archive_flag_spec_F77=' '
13952 archive_cmds_need_lc_F77=yes
13953 # This is similar to how AIX traditionally builds it's shared libraries.
13954 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'
13960 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)'
13961 hardcode_libdir_flag_spec_F77='-L$libdir'
13962 hardcode_minus_L_F77=yes
13963 # see comment about different semantics on the GNU ld section
13968 export_dynamic_flag_spec_F77=-rdynamic
13971 cygwin* | mingw* | pw32*)
13972 # When not using gcc, we currently assume that we are using
13973 # Microsoft Visual C++.
13974 # hardcode_libdir_flag_spec is actually meaningless, as there is
13975 # no search path for DLLs.
13976 hardcode_libdir_flag_spec_F77=' '
13977 allow_undefined_flag_F77=unsupported
13978 # Tell ltmain to make .lib files, not .a files.
13980 # Tell ltmain to make .dll files, not .so files.
13982 # FIXME: Setting linknames here is a bad hack.
13983 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13984 # The linker will automatically build a .lib file if we build a DLL.
13985 old_archive_From_new_cmds_F77='true'
13986 # FIXME: Should let the user specify the lib program.
13987 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13988 fix_srcfile_path='`cygpath -w "$srcfile"`'
13989 enable_shared_with_static_runtimes_F77=yes
13992 darwin* | rhapsody*)
13993 if test "$GXX" = yes ; then
13994 archive_cmds_need_lc_F77=no
13996 rhapsody* | darwin1.[012])
13997 allow_undefined_flag_F77='-undefined suppress'
14000 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14001 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14003 case ${MACOSX_DEPLOYMENT_TARGET} in
14005 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14008 allow_undefined_flag_F77='-undefined dynamic_lookup'
14014 lt_int_apple_cc_single_mod=no
14015 output_verbose_link_cmd='echo'
14016 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14017 lt_int_apple_cc_single_mod=yes
14019 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14020 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14022 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'
14024 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14025 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14026 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14027 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}'
14029 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}'
14031 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}'
14032 hardcode_direct_F77=no
14033 hardcode_automatic_F77=yes
14034 hardcode_shlibpath_var_F77=unsupported
14035 whole_archive_flag_spec_F77='-all_load $convenience'
14036 link_all_deplibs_F77=yes
14043 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14044 hardcode_libdir_flag_spec_F77='-L$libdir'
14045 hardcode_shlibpath_var_F77=no
14052 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14053 # support. Future versions do this automatically, but an explicit c++rt0.o
14054 # does not break anything, and helps significantly (at the cost of a little
14057 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14058 hardcode_libdir_flag_spec_F77='-R$libdir'
14059 hardcode_direct_F77=yes
14060 hardcode_shlibpath_var_F77=no
14063 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14065 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14066 hardcode_direct_F77=yes
14067 hardcode_minus_L_F77=yes
14068 hardcode_shlibpath_var_F77=no
14071 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14072 freebsd* | kfreebsd*-gnu)
14073 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14074 hardcode_libdir_flag_spec_F77='-R$libdir'
14075 hardcode_direct_F77=yes
14076 hardcode_shlibpath_var_F77=no
14080 if test "$GCC" = yes; then
14081 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'
14083 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'
14085 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14086 hardcode_libdir_separator_F77=:
14087 hardcode_direct_F77=yes
14089 # hardcode_minus_L: Not really in the search PATH,
14090 # but as the default location of the library.
14091 hardcode_minus_L_F77=yes
14092 export_dynamic_flag_spec_F77='${wl}-E'
14096 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14097 case "$host_cpu" in
14099 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14102 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14106 case "$host_cpu" in
14108 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14111 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14115 if test "$with_gnu_ld" = no; then
14116 case "$host_cpu" in
14118 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14119 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14120 hardcode_libdir_separator_F77=:
14121 hardcode_direct_F77=no
14122 hardcode_shlibpath_var_F77=no
14125 hardcode_libdir_flag_spec_F77='-L$libdir'
14126 hardcode_direct_F77=no
14127 hardcode_shlibpath_var_F77=no
14129 # hardcode_minus_L: Not really in the search PATH,
14130 # but as the default location of the library.
14131 hardcode_minus_L_F77=yes
14134 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14135 hardcode_libdir_separator_F77=:
14136 hardcode_direct_F77=yes
14137 export_dynamic_flag_spec_F77='${wl}-E'
14139 # hardcode_minus_L: Not really in the search PATH,
14140 # but as the default location of the library.
14141 hardcode_minus_L_F77=yes
14147 irix5* | irix6* | nonstopux*)
14148 if test "$GCC" = yes; then
14149 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'
14151 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'
14152 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14154 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14155 hardcode_libdir_separator_F77=:
14156 link_all_deplibs_F77=yes
14159 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14161 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14163 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14165 hardcode_libdir_flag_spec_F77='-R$libdir'
14166 hardcode_direct_F77=yes
14167 hardcode_shlibpath_var_F77=no
14171 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14172 hardcode_direct_F77=yes
14173 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14174 hardcode_libdir_separator_F77=:
14175 hardcode_shlibpath_var_F77=no
14179 hardcode_direct_F77=yes
14180 hardcode_shlibpath_var_F77=no
14181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14182 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14183 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14184 export_dynamic_flag_spec_F77='${wl}-E'
14187 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14188 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14189 hardcode_libdir_flag_spec_F77='-R$libdir'
14192 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14193 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14200 hardcode_libdir_flag_spec_F77='-L$libdir'
14201 hardcode_minus_L_F77=yes
14202 allow_undefined_flag_F77=unsupported
14203 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'
14204 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14208 if test "$GCC" = yes; then
14209 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14210 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'
14212 allow_undefined_flag_F77=' -expect_unresolved \*'
14213 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'
14215 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14216 hardcode_libdir_separator_F77=:
14219 osf4* | osf5*) # as osf3* with the addition of -msym flag
14220 if test "$GCC" = yes; then
14221 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14222 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'
14223 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14225 allow_undefined_flag_F77=' -expect_unresolved \*'
14226 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'
14227 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~
14228 $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'
14230 # Both c and cxx compiler support -rpath directly
14231 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14233 hardcode_libdir_separator_F77=:
14237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14238 hardcode_shlibpath_var_F77=no
14239 export_dynamic_flag_spec_F77='${wl}-Bexport'
14240 runpath_var=LD_RUN_PATH
14241 hardcode_runpath_var=yes
14245 no_undefined_flag_F77=' -z text'
14246 if test "$GCC" = yes; then
14247 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14248 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14249 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14251 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14252 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14253 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14255 hardcode_libdir_flag_spec_F77='-R$libdir'
14256 hardcode_shlibpath_var_F77=no
14258 solaris2.[0-5] | solaris2.[0-5].*) ;;
14259 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14260 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14262 link_all_deplibs_F77=yes
14266 if test "x$host_vendor" = xsequent; then
14267 # Use $CC to link under sequent, because it throws in some extra .o
14268 # files that make .init and .fini sections work.
14269 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14271 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14273 hardcode_libdir_flag_spec_F77='-L$libdir'
14274 hardcode_direct_F77=yes
14275 hardcode_minus_L_F77=yes
14276 hardcode_shlibpath_var_F77=no
14280 case $host_vendor in
14282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283 hardcode_direct_F77=yes # is this really true???
14286 ## LD is ld it makes a PLAMLIB
14287 ## CC just makes a GrossModule.
14288 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14289 reload_cmds_F77='$CC -r -o $output$reload_objs'
14290 hardcode_direct_F77=no
14293 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14294 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14297 runpath_var='LD_RUN_PATH'
14298 hardcode_shlibpath_var_F77=no
14302 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14303 hardcode_shlibpath_var_F77=no
14304 export_dynamic_flag_spec_F77='-Bexport'
14308 if test -d /usr/nec; then
14309 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14310 hardcode_shlibpath_var_F77=no
14311 runpath_var=LD_RUN_PATH
14312 hardcode_runpath_var=yes
14318 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14319 hardcode_direct_F77=yes
14320 hardcode_minus_L_F77=no
14321 hardcode_shlibpath_var_F77=no
14322 hardcode_runpath_var=yes
14323 runpath_var=LD_RUN_PATH
14326 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14327 no_undefined_flag_F77='${wl}-z ${wl}text'
14328 if test "$GCC" = yes; then
14329 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14331 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14333 runpath_var='LD_RUN_PATH'
14334 hardcode_shlibpath_var_F77=no
14338 no_undefined_flag_F77=' -z text'
14339 # $CC -shared without GNU ld will not create a library from C++
14340 # object files and a static libstdc++, better avoid it by now
14341 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14342 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14344 hardcode_libdir_flag_spec_F77=
14345 hardcode_shlibpath_var_F77=no
14346 runpath_var='LD_RUN_PATH'
14350 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14351 hardcode_libdir_flag_spec_F77='-L$libdir'
14352 hardcode_shlibpath_var_F77=no
14361 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14362 echo "${ECHO_T}$ld_shlibs_F77" >&6
14363 test "$ld_shlibs_F77" = no && can_build_shared=no
14365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14366 if test "$GCC" = yes; then
14367 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14371 # Do we need to explicitly link libc?
14373 case "x$archive_cmds_need_lc_F77" in
14375 # Assume -lc should be added
14376 archive_cmds_need_lc_F77=yes
14378 if test "$enable_shared" = yes && test "$GCC" = yes; then
14379 case $archive_cmds_F77 in
14381 # FIXME: we may have to deal with multi-command sequences.
14384 # Test whether the compiler implicitly links with -lc since on some
14385 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14386 # to ld, don't add -lc before -lgcc.
14387 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14388 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14393 (eval $ac_compile) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } 2>conftest.err; then
14399 libobjs=conftest.$ac_objext
14401 wl=$lt_prog_compiler_wl_F77
14407 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14408 allow_undefined_flag_F77=
14409 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14410 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }
14415 archive_cmds_need_lc_F77=no
14417 archive_cmds_need_lc_F77=yes
14419 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14421 cat conftest.err 1>&5
14424 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14425 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14432 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14433 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14434 library_names_spec=
14435 libname_spec='lib$name'
14439 postuninstall_cmds=
14443 shlibpath_overrides_runpath=unknown
14445 dynamic_linker="$host_os ld.so"
14446 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14447 if test "$GCC" = yes; then
14448 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14449 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14450 # if the path contains ";" then we assume it to be the separator
14451 # otherwise default to the standard path separator (i.e. ":") - it is
14452 # assumed that no part of a normal pathname contains ";" but that should
14453 # okay in the real world where ";" in dirpaths is itself problematic.
14454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14461 need_lib_prefix=unknown
14462 hardcode_into_libs=no
14464 # when you set need_version to no, make sure it does not cause -set_version
14465 # flags to be left without arguments
14466 need_version=unknown
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14472 shlibpath_var=LIBPATH
14474 # AIX 3 has no versioning support, so we append a major version to the name.
14475 soname_spec='${libname}${release}${shared_ext}$major'
14482 hardcode_into_libs=yes
14483 if test "$host_cpu" = ia64; then
14484 # AIX 5 supports IA64
14485 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14486 shlibpath_var=LD_LIBRARY_PATH
14488 # With GCC up to 2.95.x, collect2 would create an import file
14489 # for dependence libraries. The import file would start with
14490 # the line `#! .'. This would cause the generated library to
14491 # depend on `.', always an invalid library. This was fixed in
14492 # development snapshots of GCC prior to 3.0.
14494 aix4 | aix4.[01] | aix4.[01].*)
14495 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14497 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14500 can_build_shared=no
14504 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14505 # soname into executable. Probably we can add versioning support to
14506 # collect2, so additional links can be useful in future.
14507 if test "$aix_use_runtimelinking" = yes; then
14508 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14509 # instead of lib<name>.a to let people know that these are not
14510 # typical AIX shared libraries.
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513 # We preserve .a as extension for shared libraries through AIX4.2
14514 # and later when we are not doing run time linking.
14515 library_names_spec='${libname}${release}.a $libname.a'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14518 shlibpath_var=LIBPATH
14523 library_names_spec='$libname.ixlibrary $libname.a'
14524 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14525 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'
14529 library_names_spec='${libname}${shared_ext}'
14530 dynamic_linker="$host_os ld.so"
14531 shlibpath_var=LIBRARY_PATH
14537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538 soname_spec='${libname}${release}${shared_ext}$major'
14539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14543 # the default ld.so.conf also contains /usr/contrib/lib and
14544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14545 # libtool to hard-code these into programs
14548 cygwin* | mingw* | pw32*)
14549 version_type=windows
14554 case $GCC,$host_os in
14555 yes,cygwin* | yes,mingw* | yes,pw32*)
14556 library_names_spec='$libname.dll.a'
14557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14558 postinstall_cmds='base_file=`basename \${file}`~
14559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14560 dldir=$destdir/`dirname \$dlpath`~
14561 test -d \$dldir || mkdir -p \$dldir~
14562 $install_prog $dir/$dlname \$dldir/$dlname'
14563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14564 dlpath=$dir/\$dldll~
14566 shlibpath_overrides_runpath=yes
14570 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14571 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14572 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14575 # MinGW DLLs use traditional 'lib' prefix
14576 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14577 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14578 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14579 # It is most probably a Windows format PATH printed by
14580 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14581 # path with ; separators, and with drive letters. We can handle the
14582 # drive letters (cygwin fileutils understands them), so leave them,
14583 # especially as we might pass files found there to a mingw objdump,
14584 # which wouldn't understand a cygwinified path. Ahh.
14585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14591 # pw32 DLLs use 'pw' prefix rather than 'lib'
14592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14601 dynamic_linker='Win32 ld.exe'
14602 # FIXME: first we should search . and the directory the executable is in
14606 darwin* | rhapsody*)
14607 dynamic_linker="$host_os dyld"
14608 version_type=darwin
14611 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14612 soname_spec='${libname}${release}${major}$shared_ext'
14613 shlibpath_overrides_runpath=yes
14614 shlibpath_var=DYLD_LIBRARY_PATH
14615 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14616 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14617 if test "$GCC" = yes; then
14618 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"`
14620 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14622 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 shlibpath_var=LD_LIBRARY_PATH
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14643 soname_spec='${libname}${release}${shared_ext}$major'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=no
14646 hardcode_into_libs=yes
14647 dynamic_linker='GNU ld.so'
14651 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14652 version_type=freebsd-$objformat
14653 case $version_type in
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14664 shlibpath_var=LD_LIBRARY_PATH
14667 shlibpath_overrides_runpath=yes
14669 freebsd3.01* | freebsdelf3.01*)
14670 shlibpath_overrides_runpath=yes
14671 hardcode_into_libs=yes
14674 shlibpath_overrides_runpath=no
14675 hardcode_into_libs=yes
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 hardcode_into_libs=yes
14690 hpux9* | hpux10* | hpux11*)
14691 # Give a soname corresponding to the major version so that dld.sl refuses to
14692 # link against other versions.
14696 case "$host_cpu" in
14699 hardcode_into_libs=yes
14700 dynamic_linker="$host_os dld.so"
14701 shlibpath_var=LD_LIBRARY_PATH
14702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14704 soname_spec='${libname}${release}${shared_ext}$major'
14705 if test "X$HPUX_IA64_MODE" = X32; then
14706 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14714 hardcode_into_libs=yes
14715 dynamic_linker="$host_os dld.sl"
14716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14725 dynamic_linker="$host_os dld.sl"
14726 shlibpath_var=SHLIB_PATH
14727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729 soname_spec='${libname}${release}${shared_ext}$major'
14732 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14733 postinstall_cmds='chmod 555 $lib'
14736 irix5* | irix6* | nonstopux*)
14738 nonstopux*) version_type=nonstopux ;;
14740 if test "$lt_cv_prog_gnu_ld" = yes; then
14748 soname_spec='${libname}${release}${shared_ext}$major'
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14751 irix5* | nonstopux*)
14752 libsuff= shlibsuff=
14755 case $LD in # libtool.m4 will add one of these switches to LD
14756 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14757 libsuff= shlibsuff= libmagic=32-bit;;
14758 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14759 libsuff=32 shlibsuff=N32 libmagic=N32;;
14760 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14761 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14762 *) libsuff= shlibsuff= libmagic=never-match;;
14766 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14767 shlibpath_overrides_runpath=no
14768 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14769 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14770 hardcode_into_libs=yes
14773 # No shared lib support for Linux oldld, aout, or coff.
14774 linux*oldld* | linux*aout* | linux*coff*)
14778 # This must be Linux ELF.
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=no
14788 # This implies no fast_install, which is unacceptable.
14789 # Some rework will be needed to allow for fast_install
14790 # before this can be enabled.
14791 hardcode_into_libs=yes
14793 # Append ld.so.conf contents to the search path
14794 if test -f /etc/ld.so.conf; then
14795 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14799 # We used to test for /lib/ld.so.1 and disable shared libraries on
14800 # powerpc, because MkLinux only supported shared libraries with the
14801 # GNU dynamic linker. Since this was broken with cross compilers,
14802 # most powerpc-linux boxes support dynamic linking these days and
14803 # people can always --disable-shared, the test was removed, and we
14804 # assume the GNU/Linux dynamic linker is in use.
14805 dynamic_linker='GNU/Linux ld.so'
14812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14813 soname_spec='${libname}${release}${shared_ext}$major'
14814 shlibpath_var=LD_LIBRARY_PATH
14815 shlibpath_overrides_runpath=no
14816 hardcode_into_libs=yes
14817 dynamic_linker='NetBSD ld.elf_so'
14824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14825 soname_spec='${libname}${release}${shared_ext}$major'
14826 shlibpath_var=LD_LIBRARY_PATH
14827 shlibpath_overrides_runpath=no
14828 hardcode_into_libs=yes
14829 dynamic_linker='GNU ld.so'
14836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14839 dynamic_linker='NetBSD (a.out) ld.so'
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14842 soname_spec='${libname}${release}${shared_ext}$major'
14843 dynamic_linker='NetBSD ld.elf_so'
14845 shlibpath_var=LD_LIBRARY_PATH
14846 shlibpath_overrides_runpath=yes
14847 hardcode_into_libs=yes
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 shlibpath_overrides_runpath=yes
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 shlibpath_var=LD_LIBRARY_PATH
14864 shlibpath_overrides_runpath=yes
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14876 openbsd2.[89] | openbsd2.[89].*)
14877 shlibpath_overrides_runpath=no
14880 shlibpath_overrides_runpath=yes
14884 shlibpath_overrides_runpath=yes
14889 libname_spec='$name'
14892 library_names_spec='$libname${shared_ext} $libname.a'
14893 dynamic_linker='OS/2 ld.exe'
14894 shlibpath_var=LIBPATH
14897 osf3* | osf4* | osf5*)
14901 soname_spec='${libname}${release}${shared_ext}$major'
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903 shlibpath_var=LD_LIBRARY_PATH
14904 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14905 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14910 soname_spec='${libname}${release}${shared_ext}$major'
14911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14912 shlibpath_var=LD_LIBRARY_PATH
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath=yes
14923 hardcode_into_libs=yes
14924 # ldd complains unless libraries are executable
14925 postinstall_cmds='chmod +x $lib'
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14932 shlibpath_var=LD_LIBRARY_PATH
14933 shlibpath_overrides_runpath=yes
14934 if test "$with_gnu_ld" = yes; then
14940 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 case $host_vendor in
14947 shlibpath_overrides_runpath=no
14949 export_dynamic_flag_spec='${wl}-Blargedynsym'
14950 runpath_var=LD_RUN_PATH
14958 shlibpath_overrides_runpath=no
14959 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14965 if test -d /usr/nec ;then
14967 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14968 soname_spec='$libname${shared_ext}.$major'
14969 shlibpath_var=LD_LIBRARY_PATH
14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14976 soname_spec='${libname}${release}${shared_ext}$major'
14977 shlibpath_var=LD_LIBRARY_PATH
14984 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14985 echo "${ECHO_T}$dynamic_linker" >&6
14986 test "$dynamic_linker" = no && can_build_shared=no
14988 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14989 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14990 hardcode_action_F77=
14991 if test -n "$hardcode_libdir_flag_spec_F77" || \
14992 test -n "$runpath_var F77" || \
14993 test "X$hardcode_automatic_F77"="Xyes" ; then
14995 # We can hardcode non-existant directories.
14996 if test "$hardcode_direct_F77" != no &&
14997 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14998 # have to relink, otherwise we might link with an installed library
14999 # when we should be linking with a yet-to-be-installed one
15000 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15001 test "$hardcode_minus_L_F77" != no; then
15002 # Linking always hardcodes the temporary library directory.
15003 hardcode_action_F77=relink
15005 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15006 hardcode_action_F77=immediate
15009 # We cannot hardcode anything, or else we can only hardcode existing
15011 hardcode_action_F77=unsupported
15013 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15014 echo "${ECHO_T}$hardcode_action_F77" >&6
15016 if test "$hardcode_action_F77" = relink; then
15017 # Fast installation is not supported
15018 enable_fast_install=no
15019 elif test "$shlibpath_overrides_runpath" = yes ||
15020 test "$enable_shared" = no; then
15021 # Fast installation is not necessary
15022 enable_fast_install=needless
15027 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15028 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15029 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15030 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15031 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15032 echo "$as_me:$LINENO: result: yes" >&5
15033 echo "${ECHO_T}yes" >&6
15035 # FIXME - insert some real tests, host_os isn't really good enough
15038 if test -n "$STRIP" ; then
15039 striplib="$STRIP -x"
15040 echo "$as_me:$LINENO: result: yes" >&5
15041 echo "${ECHO_T}yes" >&6
15043 echo "$as_me:$LINENO: result: no" >&5
15044 echo "${ECHO_T}no" >&6
15048 echo "$as_me:$LINENO: result: no" >&5
15049 echo "${ECHO_T}no" >&6
15056 # The else clause should only fire when bootstrapping the
15057 # libtool distribution, otherwise you forgot to ship ltmain.sh
15058 # with your package, and you will get complaints that there are
15059 # no rules to generate ltmain.sh.
15060 if test -f "$ltmain"; then
15061 # See if we are running on zsh, and set the options which allow our commands through
15062 # without removal of \ escapes.
15063 if test -n "${ZSH_VERSION+set}" ; then
15064 setopt NO_GLOB_SUBST
15066 # Now quote all the things that may contain metacharacters while being
15067 # careful not to overquote the AC_SUBSTed values. We take copies of the
15068 # variables and quote the copies for generation of the libtool script.
15069 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15071 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15072 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15073 deplibs_check_method reload_flag reload_cmds need_locks \
15074 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15075 lt_cv_sys_global_symbol_to_c_name_address \
15076 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15077 old_postinstall_cmds old_postuninstall_cmds \
15081 lt_prog_compiler_wl_F77 \
15082 lt_prog_compiler_pic_F77 \
15083 lt_prog_compiler_static_F77 \
15084 lt_prog_compiler_no_builtin_flag_F77 \
15085 export_dynamic_flag_spec_F77 \
15086 thread_safe_flag_spec_F77 \
15087 whole_archive_flag_spec_F77 \
15088 enable_shared_with_static_runtimes_F77 \
15089 old_archive_cmds_F77 \
15090 old_archive_from_new_cmds_F77 \
15091 predep_objects_F77 \
15092 postdep_objects_F77 \
15095 compiler_lib_search_path_F77 \
15097 archive_expsym_cmds_F77 \
15098 postinstall_cmds_F77 \
15099 postuninstall_cmds_F77 \
15100 old_archive_from_expsyms_cmds_F77 \
15101 allow_undefined_flag_F77 \
15102 no_undefined_flag_F77 \
15103 export_symbols_cmds_F77 \
15104 hardcode_libdir_flag_spec_F77 \
15105 hardcode_libdir_flag_spec_ld_F77 \
15106 hardcode_libdir_separator_F77 \
15107 hardcode_automatic_F77 \
15109 module_expsym_cmds_F77 \
15110 lt_cv_prog_compiler_c_o_F77 \
15111 exclude_expsyms_F77 \
15112 include_expsyms_F77; do
15115 old_archive_cmds_F77 | \
15116 old_archive_from_new_cmds_F77 | \
15117 archive_cmds_F77 | \
15118 archive_expsym_cmds_F77 | \
15119 module_cmds_F77 | \
15120 module_expsym_cmds_F77 | \
15121 old_archive_from_expsyms_cmds_F77 | \
15122 export_symbols_cmds_F77 | \
15123 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15124 postinstall_cmds | postuninstall_cmds | \
15125 old_postinstall_cmds | old_postuninstall_cmds | \
15126 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15127 # Double-quote double-evaled strings.
15128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15137 *'\$0 --fallback-echo"')
15138 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15144 cat <<__EOF__ >> "$cfgfile"
15145 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15149 # Shell to use when invoking shell scripts.
15152 # Whether or not to build shared libraries.
15153 build_libtool_libs=$enable_shared
15155 # Whether or not to build static libraries.
15156 build_old_libs=$enable_static
15158 # Whether or not to add -lc for building shared libraries.
15159 build_libtool_need_lc=$archive_cmds_need_lc_F77
15161 # Whether or not to disallow shared libs when runtime libs are static
15162 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15164 # Whether or not to optimize for fast installation.
15165 fast_install=$enable_fast_install
15168 host_alias=$host_alias
15171 # An echo program that does not interpret backslashes.
15176 AR_FLAGS=$lt_AR_FLAGS
15181 # A language-specific compiler.
15182 CC=$lt_compiler_F77
15184 # Is the compiler the GNU C compiler?
15190 # The linker used to build libraries.
15193 # Whether we need hard or soft links.
15196 # A BSD-compatible nm program.
15199 # A symbol stripping program
15202 # Used to examine libraries when file_magic_cmd begins "file"
15203 MAGIC_CMD=$MAGIC_CMD
15205 # Used on cygwin: DLL creation program.
15208 # Used on cygwin: object dumper.
15211 # Used on cygwin: assembler.
15214 # The name of the directory that contains temporary libtool files.
15217 # How to create reloadable object files.
15218 reload_flag=$lt_reload_flag
15219 reload_cmds=$lt_reload_cmds
15221 # How to pass a linker flag through the compiler.
15222 wl=$lt_lt_prog_compiler_wl_F77
15224 # Object file suffix (normally "o").
15225 objext="$ac_objext"
15227 # Old archive suffix (normally "a").
15230 # Shared library suffix (normally ".so").
15231 shrext_cmds='$shrext_cmds'
15233 # Executable file suffix (normally "").
15236 # Additional compiler flags for building library objects.
15237 pic_flag=$lt_lt_prog_compiler_pic_F77
15240 # What is the maximum length of a command?
15241 max_cmd_len=$lt_cv_sys_max_cmd_len
15243 # Does compiler simultaneously support -c and -o options?
15244 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15246 # Must we lock files when doing compilation ?
15247 need_locks=$lt_need_locks
15249 # Do we need the lib prefix for modules?
15250 need_lib_prefix=$need_lib_prefix
15252 # Do we need a version for libraries?
15253 need_version=$need_version
15255 # Whether dlopen is supported.
15256 dlopen_support=$enable_dlopen
15258 # Whether dlopen of programs is supported.
15259 dlopen_self=$enable_dlopen_self
15261 # Whether dlopen of statically linked programs is supported.
15262 dlopen_self_static=$enable_dlopen_self_static
15264 # Compiler flag to prevent dynamic linking.
15265 link_static_flag=$lt_lt_prog_compiler_static_F77
15267 # Compiler flag to turn off builtin functions.
15268 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15270 # Compiler flag to allow reflexive dlopens.
15271 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15273 # Compiler flag to generate shared objects directly from archives.
15274 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15276 # Compiler flag to generate thread-safe objects.
15277 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15279 # Library versioning type.
15280 version_type=$version_type
15282 # Format of library name prefix.
15283 libname_spec=$lt_libname_spec
15285 # List of archive names. First name is the real one, the rest are links.
15286 # The last name is the one that the linker finds with -lNAME.
15287 library_names_spec=$lt_library_names_spec
15289 # The coded name of the library, if different from the real name.
15290 soname_spec=$lt_soname_spec
15292 # Commands used to build and install an old-style archive.
15294 old_archive_cmds=$lt_old_archive_cmds_F77
15295 old_postinstall_cmds=$lt_old_postinstall_cmds
15296 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15298 # Create an old-style archive from a shared archive.
15299 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15301 # Create a temporary old-style archive to link instead of a shared archive.
15302 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15304 # Commands used to build and install a shared archive.
15305 archive_cmds=$lt_archive_cmds_F77
15306 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15307 postinstall_cmds=$lt_postinstall_cmds
15308 postuninstall_cmds=$lt_postuninstall_cmds
15310 # Commands used to build a loadable module (assumed same as above if empty)
15311 module_cmds=$lt_module_cmds_F77
15312 module_expsym_cmds=$lt_module_expsym_cmds_F77
15314 # Commands to strip libraries.
15315 old_striplib=$lt_old_striplib
15316 striplib=$lt_striplib
15318 # Dependencies to place before the objects being linked to create a
15320 predep_objects=$lt_predep_objects_F77
15322 # Dependencies to place after the objects being linked to create a
15324 postdep_objects=$lt_postdep_objects_F77
15326 # Dependencies to place before the objects being linked to create a
15328 predeps=$lt_predeps_F77
15330 # Dependencies to place after the objects being linked to create a
15332 postdeps=$lt_postdeps_F77
15334 # The library search path used internally by the compiler when linking
15335 # a shared library.
15336 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15338 # Method to check whether dependent libraries are shared objects.
15339 deplibs_check_method=$lt_deplibs_check_method
15341 # Command to use when deplibs_check_method == file_magic.
15342 file_magic_cmd=$lt_file_magic_cmd
15344 # Flag that allows shared libraries with undefined symbols to be built.
15345 allow_undefined_flag=$lt_allow_undefined_flag_F77
15347 # Flag that forces no undefined symbols.
15348 no_undefined_flag=$lt_no_undefined_flag_F77
15350 # Commands used to finish a libtool library installation in a directory.
15351 finish_cmds=$lt_finish_cmds
15353 # Same as above, but a single script fragment to be evaled but not shown.
15354 finish_eval=$lt_finish_eval
15356 # Take the output of nm and produce a listing of raw symbols and C names.
15357 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15359 # Transform the output of nm in a proper C declaration
15360 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15362 # Transform the output of nm in a C name address pair
15363 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15365 # This is the shared library runtime path variable.
15366 runpath_var=$runpath_var
15368 # This is the shared library path variable.
15369 shlibpath_var=$shlibpath_var
15371 # Is shlibpath searched before the hard-coded library search path?
15372 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15374 # How to hardcode a shared library path into an executable.
15375 hardcode_action=$hardcode_action_F77
15377 # Whether we should hardcode library paths into libraries.
15378 hardcode_into_libs=$hardcode_into_libs
15380 # Flag to hardcode \$libdir into a binary during linking.
15381 # This must work even if \$libdir does not exist.
15382 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15384 # If ld is used when linking, flag to hardcode \$libdir into
15385 # a binary during linking. This must work even if \$libdir does
15387 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15389 # Whether we need a single -rpath flag with a separated argument.
15390 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15392 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15393 # resulting binary.
15394 hardcode_direct=$hardcode_direct_F77
15396 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15397 # resulting binary.
15398 hardcode_minus_L=$hardcode_minus_L_F77
15400 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15401 # the resulting binary.
15402 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15404 # Set to yes if building a shared library automatically hardcodes DIR into the library
15405 # and all subsequent libraries and executables linked against it.
15406 hardcode_automatic=$hardcode_automatic_F77
15408 # Variables whose values should be saved in libtool wrapper scripts and
15409 # restored at relink time.
15410 variables_saved_for_relink="$variables_saved_for_relink"
15412 # Whether libtool must link a program against all its dependency libraries.
15413 link_all_deplibs=$link_all_deplibs_F77
15415 # Compile-time system search path for libraries
15416 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15418 # Run-time system search path for libraries
15419 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15421 # Fix the shell variable \$srcfile for the compiler.
15422 fix_srcfile_path="$fix_srcfile_path_F77"
15424 # Set to yes if exported symbols are required.
15425 always_export_symbols=$always_export_symbols_F77
15427 # The commands to list exported symbols.
15428 export_symbols_cmds=$lt_export_symbols_cmds_F77
15430 # The commands to extract the exported symbol list from a shared archive.
15431 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15433 # Symbols that should not be listed in the preloaded symbols.
15434 exclude_expsyms=$lt_exclude_expsyms_F77
15436 # Symbols that must always be exported.
15437 include_expsyms=$lt_include_expsyms_F77
15439 # ### END LIBTOOL TAG CONFIG: $tagname
15445 # If there is no Makefile yet, we rely on a make rule to execute
15446 # `config.status --recheck' to rerun these tests and create the
15447 # libtool script then.
15448 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15449 if test -f "$ltmain_in"; then
15450 test -f Makefile && make "$ltmain"
15456 ac_cpp='$CPP $CPPFLAGS'
15457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15469 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15473 # Source file extension for Java test sources.
15476 # Object file extension for compiled Java test sources.
15480 # Code to be used in simple compile tests
15481 lt_simple_compile_test_code="class foo {}\n"
15483 # Code to be used in simple link tests
15484 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15486 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15488 # If no C compiler was specified, use CC.
15491 # Allow CC to be a program name with arguments.
15495 # Allow CC to be a program name with arguments.
15501 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15502 archive_cmds_need_lc_GCJ=no
15505 lt_prog_compiler_no_builtin_flag_GCJ=
15507 if test "$GCC" = yes; then
15508 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15511 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15512 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15513 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 lt_cv_prog_compiler_rtti_exceptions=no
15517 ac_outfile=conftest.$ac_objext
15518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15519 lt_compiler_flag="-fno-rtti -fno-exceptions"
15520 # Insert the option either (1) after the last *FLAGS variable, or
15521 # (2) before a word containing "conftest.", or (3) at the end.
15522 # Note that $ac_compile itself does not contain backslashes and begins
15523 # with a dollar sign (not a hyphen), so the echo should work correctly.
15524 # The option is referenced via a variable to avoid confusing sed.
15525 lt_compile=`echo "$ac_compile" | $SED \
15526 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15528 -e 's:$: $lt_compiler_flag:'`
15529 (eval echo "\"\$as_me:15529: $lt_compile\"" >&5)
15530 (eval "$lt_compile" 2>conftest.err)
15532 cat conftest.err >&5
15533 echo "$as_me:15533: \$? = $ac_status" >&5
15534 if (exit $ac_status) && test -s "$ac_outfile"; then
15535 # The compiler can only warn and ignore the option if not recognized
15536 # So say no if there are warnings
15537 if test ! -s conftest.err; then
15538 lt_cv_prog_compiler_rtti_exceptions=yes
15544 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15545 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15547 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15548 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15555 lt_prog_compiler_wl_GCJ=
15556 lt_prog_compiler_pic_GCJ=
15557 lt_prog_compiler_static_GCJ=
15559 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15560 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15562 if test "$GCC" = yes; then
15563 lt_prog_compiler_wl_GCJ='-Wl,'
15564 lt_prog_compiler_static_GCJ='-static'
15568 # All AIX code is PIC.
15569 if test "$host_cpu" = ia64; then
15570 # AIX 5 now supports IA64 processor
15571 lt_prog_compiler_static_GCJ='-Bstatic'
15576 # FIXME: we need at least 68020 code to build shared libraries, but
15577 # adding the `-m68020' flag to GCC prevents building anything better,
15579 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15582 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15583 # PIC is the default for these OSes.
15586 mingw* | pw32* | os2*)
15587 # This hack is so that the source file can tell whether it is being
15588 # built for inclusion in a dll (and should export symbols for example).
15589 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15592 darwin* | rhapsody*)
15593 # PIC is the default on this platform
15594 # Common symbols not allowed in MH_DYLIB files
15595 lt_prog_compiler_pic_GCJ='-fno-common'
15599 # Just because we use GCC doesn't mean we suddenly get shared libraries
15600 # on systems that don't support them.
15601 lt_prog_compiler_can_build_shared_GCJ=no
15606 if test -d /usr/nec; then
15607 lt_prog_compiler_pic_GCJ=-Kconform_pic
15612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15613 # not for PA HP-UX.
15614 case "$host_cpu" in
15619 lt_prog_compiler_pic_GCJ='-fPIC'
15625 lt_prog_compiler_pic_GCJ='-fPIC'
15629 # PORTME Check for flag to pass linker flags through the system compiler.
15632 lt_prog_compiler_wl_GCJ='-Wl,'
15633 if test "$host_cpu" = ia64; then
15634 # AIX 5 now supports IA64 processor
15635 lt_prog_compiler_static_GCJ='-Bstatic'
15637 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15641 mingw* | pw32* | os2*)
15642 # This hack is so that the source file can tell whether it is being
15643 # built for inclusion in a dll (and should export symbols for example).
15644 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15647 hpux9* | hpux10* | hpux11*)
15648 lt_prog_compiler_wl_GCJ='-Wl,'
15649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15650 # not for PA HP-UX.
15651 case "$host_cpu" in
15656 lt_prog_compiler_pic_GCJ='+Z'
15659 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15660 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15663 irix5* | irix6* | nonstopux*)
15664 lt_prog_compiler_wl_GCJ='-Wl,'
15665 # PIC (with -KPIC) is the default.
15666 lt_prog_compiler_static_GCJ='-non_shared'
15670 lt_prog_compiler_pic_GCJ='-KPIC'
15671 lt_prog_compiler_static_GCJ='-Bstatic'
15677 lt_prog_compiler_wl_GCJ='-Wl,'
15678 lt_prog_compiler_pic_GCJ='-KPIC'
15679 lt_prog_compiler_static_GCJ='-static'
15682 lt_prog_compiler_wl_GCJ='-Wl,'
15683 # All Alpha code is PIC.
15684 lt_prog_compiler_static_GCJ='-non_shared'
15689 osf3* | osf4* | osf5*)
15690 lt_prog_compiler_wl_GCJ='-Wl,'
15691 # All OSF/1 code is PIC.
15692 lt_prog_compiler_static_GCJ='-non_shared'
15696 lt_prog_compiler_pic_GCJ='-Kpic'
15697 lt_prog_compiler_static_GCJ='-dn'
15701 lt_prog_compiler_wl_GCJ='-Wl,'
15702 lt_prog_compiler_pic_GCJ='-KPIC'
15703 lt_prog_compiler_static_GCJ='-Bstatic'
15707 lt_prog_compiler_wl_GCJ='-Qoption ld '
15708 lt_prog_compiler_pic_GCJ='-PIC'
15709 lt_prog_compiler_static_GCJ='-Bstatic'
15712 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15713 lt_prog_compiler_wl_GCJ='-Wl,'
15714 lt_prog_compiler_pic_GCJ='-KPIC'
15715 lt_prog_compiler_static_GCJ='-Bstatic'
15719 if test -d /usr/nec ;then
15720 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15721 lt_prog_compiler_static_GCJ='-Bstatic'
15726 lt_prog_compiler_pic_GCJ='-pic'
15727 lt_prog_compiler_static_GCJ='-Bstatic'
15731 lt_prog_compiler_can_build_shared_GCJ=no
15736 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15737 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15740 # Check to make sure the PIC flag actually works.
15742 if test -n "$lt_prog_compiler_pic_GCJ"; then
15744 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15745 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15746 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 lt_prog_compiler_pic_works_GCJ=no
15750 ac_outfile=conftest.$ac_objext
15751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15752 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15753 # Insert the option either (1) after the last *FLAGS variable, or
15754 # (2) before a word containing "conftest.", or (3) at the end.
15755 # Note that $ac_compile itself does not contain backslashes and begins
15756 # with a dollar sign (not a hyphen), so the echo should work correctly.
15757 # The option is referenced via a variable to avoid confusing sed.
15758 lt_compile=`echo "$ac_compile" | $SED \
15759 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15761 -e 's:$: $lt_compiler_flag:'`
15762 (eval echo "\"\$as_me:15762: $lt_compile\"" >&5)
15763 (eval "$lt_compile" 2>conftest.err)
15765 cat conftest.err >&5
15766 echo "$as_me:15766: \$? = $ac_status" >&5
15767 if (exit $ac_status) && test -s "$ac_outfile"; then
15768 # The compiler can only warn and ignore the option if not recognized
15769 # So say no if there are warnings
15770 if test ! -s conftest.err; then
15771 lt_prog_compiler_pic_works_GCJ=yes
15777 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15778 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15780 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15781 case $lt_prog_compiler_pic_GCJ in
15783 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15786 lt_prog_compiler_pic_GCJ=
15787 lt_prog_compiler_can_build_shared_GCJ=no
15792 # For platforms which do not support PIC, -DPIC is meaningless:
15794 lt_prog_compiler_pic_GCJ=
15797 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15801 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15802 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15803 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15806 lt_cv_prog_compiler_c_o_GCJ=no
15807 $rm -r conftest 2>/dev/null
15811 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15813 lt_compiler_flag="-o out/conftest2.$ac_objext"
15814 # Insert the option either (1) after the last *FLAGS variable, or
15815 # (2) before a word containing "conftest.", or (3) at the end.
15816 # Note that $ac_compile itself does not contain backslashes and begins
15817 # with a dollar sign (not a hyphen), so the echo should work correctly.
15818 lt_compile=`echo "$ac_compile" | $SED \
15819 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15821 -e 's:$: $lt_compiler_flag:'`
15822 (eval echo "\"\$as_me:15822: $lt_compile\"" >&5)
15823 (eval "$lt_compile" 2>out/conftest.err)
15825 cat out/conftest.err >&5
15826 echo "$as_me:15826: \$? = $ac_status" >&5
15827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15829 # The compiler can only warn and ignore the option if not recognized
15830 # So say no if there are warnings
15831 if test ! -s out/conftest.err; then
15832 lt_cv_prog_compiler_c_o_GCJ=yes
15837 # SGI C++ compiler will create directory out/ii_files/ for
15838 # template instantiation
15839 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15840 $rm out/* && rmdir out
15846 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15850 hard_links="nottested"
15851 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15852 # do not overwrite the value of need_locks provided by the user
15853 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15854 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15859 ln conftest.a conftest.b 2>&5 || hard_links=no
15860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15861 echo "$as_me:$LINENO: result: $hard_links" >&5
15862 echo "${ECHO_T}$hard_links" >&6
15863 if test "$hard_links" = no; then
15864 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15865 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15872 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15873 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15876 allow_undefined_flag_GCJ=
15877 enable_shared_with_static_runtimes_GCJ=no
15879 archive_expsym_cmds_GCJ=
15880 old_archive_From_new_cmds_GCJ=
15881 old_archive_from_expsyms_cmds_GCJ=
15882 export_dynamic_flag_spec_GCJ=
15883 whole_archive_flag_spec_GCJ=
15884 thread_safe_flag_spec_GCJ=
15885 hardcode_libdir_flag_spec_GCJ=
15886 hardcode_libdir_flag_spec_ld_GCJ=
15887 hardcode_libdir_separator_GCJ=
15888 hardcode_direct_GCJ=no
15889 hardcode_minus_L_GCJ=no
15890 hardcode_shlibpath_var_GCJ=unsupported
15891 link_all_deplibs_GCJ=unknown
15892 hardcode_automatic_GCJ=no
15894 module_expsym_cmds_GCJ=
15895 always_export_symbols_GCJ=no
15896 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15897 # include_expsyms should be a list of space-separated symbols to be *always*
15898 # included in the symbol list
15899 include_expsyms_GCJ=
15900 # exclude_expsyms can be an extended regexp of symbols to exclude
15901 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15902 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15903 # as well as any symbol that contains `d'.
15904 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15905 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15906 # platforms (ab)use it in PIC code, but their linkers get confused if
15907 # the symbol is explicitly referenced. Since portable code cannot
15908 # rely on this symbol name, it's probably fine to never include it in
15909 # preloaded symbol tables.
15910 extract_expsyms_cmds=
15913 cygwin* | mingw* | pw32*)
15914 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15915 # When not using gcc, we currently assume that we are using
15916 # Microsoft Visual C++.
15917 if test "$GCC" != yes; then
15927 if test "$with_gnu_ld" = yes; then
15928 # If archive_cmds runs LD, not CC, wlarc should be empty
15931 # See if GNU ld supports shared libraries.
15933 aix3* | aix4* | aix5*)
15934 # On AIX/PPC, the GNU linker is very broken
15935 if test "$host_cpu" != ia64; then
15939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15940 *** to be unable to reliably create shared libraries on AIX.
15941 *** Therefore, libtool is disabling shared libraries support. If you
15942 *** really care for shared libraries, you may want to modify your PATH
15943 *** so that a non-GNU linker is found, and then restart.
15950 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)'
15951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15952 hardcode_minus_L_GCJ=yes
15954 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15955 # that the semantics of dynamic libraries on AmigaOS, at least up
15956 # to version 4, is to share data among multiple programs linked
15957 # with the same dynamic library. Since this doesn't match the
15958 # behavior of shared libraries on other platforms, we can't use
15964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15965 allow_undefined_flag_GCJ=unsupported
15966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15967 # support --undefined. This deserves some investigation. FIXME
15968 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15974 cygwin* | mingw* | pw32*)
15975 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15976 # as there is no search path for DLLs.
15977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15978 allow_undefined_flag_GCJ=unsupported
15979 always_export_symbols_GCJ=no
15980 enable_shared_with_static_runtimes_GCJ=yes
15981 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15983 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15984 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15985 # If the export-symbols file already is a .def file (1st line
15986 # is EXPORTS), use it as is; otherwise, prepend...
15987 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15988 cp $export_symbols $output_objdir/$soname.def;
15990 echo EXPORTS > $output_objdir/$soname.def;
15991 cat $export_symbols >> $output_objdir/$soname.def;
15993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15999 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16000 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16001 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16004 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16005 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16010 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16014 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16015 *** create shared libraries on Solaris systems. Therefore, libtool
16016 *** is disabling shared libraries support. We urge you to upgrade GNU
16017 *** binutils to release 2.9.1 or newer. Another option is to modify
16018 *** your PATH or compiler configuration so that the native linker is
16019 *** used, and then restart.
16022 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16023 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16024 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16031 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16033 hardcode_direct_GCJ=yes
16034 hardcode_shlibpath_var_GCJ=no
16038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16039 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16040 archive_cmds_GCJ="$tmp_archive_cmds"
16041 supports_anon_versioning=no
16042 case `$LD -v 2>/dev/null` in
16043 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16044 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16045 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16046 *\ 2.11.*) ;; # other 2.11 versions
16047 *) supports_anon_versioning=yes ;;
16049 if test $supports_anon_versioning = yes; then
16050 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16052 $echo "local: *; };" >> $output_objdir/$libname.ver~
16053 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16055 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16057 link_all_deplibs_GCJ=no
16064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16065 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16066 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16073 if test "$ld_shlibs_GCJ" = yes; then
16074 runpath_var=LD_RUN_PATH
16075 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16076 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16077 # ancient GNU ld didn't support --whole-archive et. al.
16078 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16079 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16081 whole_archive_flag_spec_GCJ=
16085 # PORTME fill in a description of your system's linker (not GNU ld)
16088 allow_undefined_flag_GCJ=unsupported
16089 always_export_symbols_GCJ=yes
16090 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'
16091 # Note: this linker hardcodes the directories in LIBPATH if there
16092 # are no directories specified by -L.
16093 hardcode_minus_L_GCJ=yes
16094 if test "$GCC" = yes && test -z "$link_static_flag"; then
16095 # Neither direct hardcoding nor static linking is supported with a
16097 hardcode_direct_GCJ=unsupported
16102 if test "$host_cpu" = ia64; then
16103 # On IA64, the linker does run time linking by default, so we don't
16104 # have to do anything special.
16105 aix_use_runtimelinking=no
16106 exp_sym_flag='-Bexport'
16109 # If we're using GNU nm, then we don't want the "-C" option.
16110 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16111 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16112 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'
16114 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'
16116 aix_use_runtimelinking=no
16118 # Test if we are trying to use run time linking or normal
16119 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16120 # need to do runtime linking.
16121 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16122 for ld_flag in $LDFLAGS; do
16123 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16124 aix_use_runtimelinking=yes
16130 exp_sym_flag='-bexport'
16131 no_entry_flag='-bnoentry'
16134 # When large executables or shared objects are built, AIX ld can
16135 # have problems creating the table of contents. If linking a library
16136 # or program results in "error TOC overflow" add -mminimal-toc to
16137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16140 archive_cmds_GCJ=''
16141 hardcode_direct_GCJ=yes
16142 hardcode_libdir_separator_GCJ=':'
16143 link_all_deplibs_GCJ=yes
16145 if test "$GCC" = yes; then
16146 case $host_os in aix4.012|aix4.012.*)
16147 # We only want to do this on AIX 4.2 and lower, the check
16148 # below for broken collect2 doesn't work under 4.3+
16149 collect2name=`${CC} -print-prog-name=collect2`
16150 if test -f "$collect2name" && \
16151 strings "$collect2name" | grep resolve_lib_name >/dev/null
16153 # We have reworked collect2
16154 hardcode_direct_GCJ=yes
16156 # We have old collect2
16157 hardcode_direct_GCJ=unsupported
16158 # It fails to find uninstalled libraries when the uninstalled
16159 # path is not listed in the libpath. Setting hardcode_minus_L
16160 # to unsupported forces relinking
16161 hardcode_minus_L_GCJ=yes
16162 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16163 hardcode_libdir_separator_GCJ=
16166 shared_flag='-shared'
16169 if test "$host_cpu" = ia64; then
16170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16171 # chokes on -Wl,-G. The following line is correct:
16174 if test "$aix_use_runtimelinking" = yes; then
16175 shared_flag='${wl}-G'
16177 shared_flag='${wl}-bM:SRE'
16182 # It seems that -bexpall does not export symbols beginning with
16183 # underscore (_), so it is better to generate a list of symbols to export.
16184 always_export_symbols_GCJ=yes
16185 if test "$aix_use_runtimelinking" = yes; then
16186 # Warning - without using the other runtime loading flags (-brtl),
16187 # -berok will link without error, but may produce a broken library.
16188 allow_undefined_flag_GCJ='-berok'
16189 # Determine the default libpath from the value encoded in an empty executable.
16190 cat >conftest.$ac_ext <<_ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16205 rm -f conftest.$ac_objext conftest$ac_exeext
16206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16207 (eval $ac_link) 2>conftest.er1
16209 grep -v '^ *+' conftest.er1 >conftest.err
16211 cat conftest.err >&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
16214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } &&
16220 { ac_try='test -s conftest$ac_exeext'
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16227 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16229 # Check for a 64-bit object if we didn't find anything.
16230 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; }
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16237 rm -f conftest.err conftest.$ac_objext \
16238 conftest$ac_exeext conftest.$ac_ext
16239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16241 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16242 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"
16244 if test "$host_cpu" = ia64; then
16245 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16246 allow_undefined_flag_GCJ="-z nodefs"
16247 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"
16249 # Determine the default libpath from the value encoded in an empty executable.
16250 cat >conftest.$ac_ext <<_ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16267 (eval $ac_link) 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest$ac_exeext'
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16287 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16289 # Check for a 64-bit object if we didn't find anything.
16290 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; }
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16297 rm -f conftest.err conftest.$ac_objext \
16298 conftest$ac_exeext conftest.$ac_ext
16299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16301 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16302 # Warning - without using the other run time loading flags,
16303 # -berok will link without error, but may produce a broken library.
16304 no_undefined_flag_GCJ=' ${wl}-bernotok'
16305 allow_undefined_flag_GCJ=' ${wl}-berok'
16306 # -bexpall does not export symbols beginning with underscore (_)
16307 always_export_symbols_GCJ=yes
16308 # Exported symbols can be pulled into shared objects from archives
16309 whole_archive_flag_spec_GCJ=' '
16310 archive_cmds_need_lc_GCJ=yes
16311 # This is similar to how AIX traditionally builds it's shared libraries.
16312 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'
16318 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)'
16319 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16320 hardcode_minus_L_GCJ=yes
16321 # see comment about different semantics on the GNU ld section
16326 export_dynamic_flag_spec_GCJ=-rdynamic
16329 cygwin* | mingw* | pw32*)
16330 # When not using gcc, we currently assume that we are using
16331 # Microsoft Visual C++.
16332 # hardcode_libdir_flag_spec is actually meaningless, as there is
16333 # no search path for DLLs.
16334 hardcode_libdir_flag_spec_GCJ=' '
16335 allow_undefined_flag_GCJ=unsupported
16336 # Tell ltmain to make .lib files, not .a files.
16338 # Tell ltmain to make .dll files, not .so files.
16340 # FIXME: Setting linknames here is a bad hack.
16341 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16342 # The linker will automatically build a .lib file if we build a DLL.
16343 old_archive_From_new_cmds_GCJ='true'
16344 # FIXME: Should let the user specify the lib program.
16345 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16346 fix_srcfile_path='`cygpath -w "$srcfile"`'
16347 enable_shared_with_static_runtimes_GCJ=yes
16350 darwin* | rhapsody*)
16351 if test "$GXX" = yes ; then
16352 archive_cmds_need_lc_GCJ=no
16354 rhapsody* | darwin1.[012])
16355 allow_undefined_flag_GCJ='-undefined suppress'
16358 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16359 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16361 case ${MACOSX_DEPLOYMENT_TARGET} in
16363 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16366 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16372 lt_int_apple_cc_single_mod=no
16373 output_verbose_link_cmd='echo'
16374 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16375 lt_int_apple_cc_single_mod=yes
16377 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16378 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16380 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'
16382 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16384 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16385 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}'
16387 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}'
16389 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}'
16390 hardcode_direct_GCJ=no
16391 hardcode_automatic_GCJ=yes
16392 hardcode_shlibpath_var_GCJ=unsupported
16393 whole_archive_flag_spec_GCJ='-all_load $convenience'
16394 link_all_deplibs_GCJ=yes
16401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16403 hardcode_shlibpath_var_GCJ=no
16410 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16411 # support. Future versions do this automatically, but an explicit c++rt0.o
16412 # does not break anything, and helps significantly (at the cost of a little
16415 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16416 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16417 hardcode_direct_GCJ=yes
16418 hardcode_shlibpath_var_GCJ=no
16421 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16423 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16424 hardcode_direct_GCJ=yes
16425 hardcode_minus_L_GCJ=yes
16426 hardcode_shlibpath_var_GCJ=no
16429 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16430 freebsd* | kfreebsd*-gnu)
16431 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16432 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16433 hardcode_direct_GCJ=yes
16434 hardcode_shlibpath_var_GCJ=no
16438 if test "$GCC" = yes; then
16439 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'
16441 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'
16443 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16444 hardcode_libdir_separator_GCJ=:
16445 hardcode_direct_GCJ=yes
16447 # hardcode_minus_L: Not really in the search PATH,
16448 # but as the default location of the library.
16449 hardcode_minus_L_GCJ=yes
16450 export_dynamic_flag_spec_GCJ='${wl}-E'
16454 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16455 case "$host_cpu" in
16457 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16460 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16464 case "$host_cpu" in
16466 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16469 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16473 if test "$with_gnu_ld" = no; then
16474 case "$host_cpu" in
16476 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16477 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16478 hardcode_libdir_separator_GCJ=:
16479 hardcode_direct_GCJ=no
16480 hardcode_shlibpath_var_GCJ=no
16483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16484 hardcode_direct_GCJ=no
16485 hardcode_shlibpath_var_GCJ=no
16487 # hardcode_minus_L: Not really in the search PATH,
16488 # but as the default location of the library.
16489 hardcode_minus_L_GCJ=yes
16492 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16493 hardcode_libdir_separator_GCJ=:
16494 hardcode_direct_GCJ=yes
16495 export_dynamic_flag_spec_GCJ='${wl}-E'
16497 # hardcode_minus_L: Not really in the search PATH,
16498 # but as the default location of the library.
16499 hardcode_minus_L_GCJ=yes
16505 irix5* | irix6* | nonstopux*)
16506 if test "$GCC" = yes; then
16507 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'
16509 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'
16510 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16512 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16513 hardcode_libdir_separator_GCJ=:
16514 link_all_deplibs_GCJ=yes
16517 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16519 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16521 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16523 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16524 hardcode_direct_GCJ=yes
16525 hardcode_shlibpath_var_GCJ=no
16529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530 hardcode_direct_GCJ=yes
16531 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16532 hardcode_libdir_separator_GCJ=:
16533 hardcode_shlibpath_var_GCJ=no
16537 hardcode_direct_GCJ=yes
16538 hardcode_shlibpath_var_GCJ=no
16539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16540 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16542 export_dynamic_flag_spec_GCJ='${wl}-E'
16545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16546 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16547 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16550 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16551 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16558 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16559 hardcode_minus_L_GCJ=yes
16560 allow_undefined_flag_GCJ=unsupported
16561 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'
16562 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16566 if test "$GCC" = yes; then
16567 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16568 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'
16570 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16571 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'
16573 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16574 hardcode_libdir_separator_GCJ=:
16577 osf4* | osf5*) # as osf3* with the addition of -msym flag
16578 if test "$GCC" = yes; then
16579 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16580 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'
16581 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16583 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16584 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'
16585 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~
16586 $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'
16588 # Both c and cxx compiler support -rpath directly
16589 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16591 hardcode_libdir_separator_GCJ=:
16595 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16596 hardcode_shlibpath_var_GCJ=no
16597 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16598 runpath_var=LD_RUN_PATH
16599 hardcode_runpath_var=yes
16603 no_undefined_flag_GCJ=' -z text'
16604 if test "$GCC" = yes; then
16605 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16606 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16607 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16609 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16610 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16611 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16613 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16614 hardcode_shlibpath_var_GCJ=no
16616 solaris2.[0-5] | solaris2.[0-5].*) ;;
16617 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16618 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16620 link_all_deplibs_GCJ=yes
16624 if test "x$host_vendor" = xsequent; then
16625 # Use $CC to link under sequent, because it throws in some extra .o
16626 # files that make .init and .fini sections work.
16627 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16629 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16631 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16632 hardcode_direct_GCJ=yes
16633 hardcode_minus_L_GCJ=yes
16634 hardcode_shlibpath_var_GCJ=no
16638 case $host_vendor in
16640 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16641 hardcode_direct_GCJ=yes # is this really true???
16644 ## LD is ld it makes a PLAMLIB
16645 ## CC just makes a GrossModule.
16646 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16647 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16648 hardcode_direct_GCJ=no
16651 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16655 runpath_var='LD_RUN_PATH'
16656 hardcode_shlibpath_var_GCJ=no
16660 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16661 hardcode_shlibpath_var_GCJ=no
16662 export_dynamic_flag_spec_GCJ='-Bexport'
16666 if test -d /usr/nec; then
16667 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668 hardcode_shlibpath_var_GCJ=no
16669 runpath_var=LD_RUN_PATH
16670 hardcode_runpath_var=yes
16676 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16677 hardcode_direct_GCJ=yes
16678 hardcode_minus_L_GCJ=no
16679 hardcode_shlibpath_var_GCJ=no
16680 hardcode_runpath_var=yes
16681 runpath_var=LD_RUN_PATH
16684 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16685 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16686 if test "$GCC" = yes; then
16687 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16689 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16691 runpath_var='LD_RUN_PATH'
16692 hardcode_shlibpath_var_GCJ=no
16696 no_undefined_flag_GCJ=' -z text'
16697 # $CC -shared without GNU ld will not create a library from C++
16698 # object files and a static libstdc++, better avoid it by now
16699 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16700 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16701 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16702 hardcode_libdir_flag_spec_GCJ=
16703 hardcode_shlibpath_var_GCJ=no
16704 runpath_var='LD_RUN_PATH'
16708 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16710 hardcode_shlibpath_var_GCJ=no
16719 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16720 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16721 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16724 if test "$GCC" = yes; then
16725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16729 # Do we need to explicitly link libc?
16731 case "x$archive_cmds_need_lc_GCJ" in
16733 # Assume -lc should be added
16734 archive_cmds_need_lc_GCJ=yes
16736 if test "$enable_shared" = yes && test "$GCC" = yes; then
16737 case $archive_cmds_GCJ in
16739 # FIXME: we may have to deal with multi-command sequences.
16742 # Test whether the compiler implicitly links with -lc since on some
16743 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16744 # to ld, don't add -lc before -lgcc.
16745 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16746 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16748 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16751 (eval $ac_compile) 2>&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } 2>conftest.err; then
16757 libobjs=conftest.$ac_objext
16759 wl=$lt_prog_compiler_wl_GCJ
16765 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16766 allow_undefined_flag_GCJ=
16767 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16768 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }
16773 archive_cmds_need_lc_GCJ=no
16775 archive_cmds_need_lc_GCJ=yes
16777 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16779 cat conftest.err 1>&5
16782 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16783 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16790 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16791 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16792 library_names_spec=
16793 libname_spec='lib$name'
16797 postuninstall_cmds=
16801 shlibpath_overrides_runpath=unknown
16803 dynamic_linker="$host_os ld.so"
16804 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16805 if test "$GCC" = yes; then
16806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16807 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16808 # if the path contains ";" then we assume it to be the separator
16809 # otherwise default to the standard path separator (i.e. ":") - it is
16810 # assumed that no part of a normal pathname contains ";" but that should
16811 # okay in the real world where ";" in dirpaths is itself problematic.
16812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16817 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16819 need_lib_prefix=unknown
16820 hardcode_into_libs=no
16822 # when you set need_version to no, make sure it does not cause -set_version
16823 # flags to be left without arguments
16824 need_version=unknown
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16830 shlibpath_var=LIBPATH
16832 # AIX 3 has no versioning support, so we append a major version to the name.
16833 soname_spec='${libname}${release}${shared_ext}$major'
16840 hardcode_into_libs=yes
16841 if test "$host_cpu" = ia64; then
16842 # AIX 5 supports IA64
16843 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16844 shlibpath_var=LD_LIBRARY_PATH
16846 # With GCC up to 2.95.x, collect2 would create an import file
16847 # for dependence libraries. The import file would start with
16848 # the line `#! .'. This would cause the generated library to
16849 # depend on `.', always an invalid library. This was fixed in
16850 # development snapshots of GCC prior to 3.0.
16852 aix4 | aix4.[01] | aix4.[01].*)
16853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16855 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16858 can_build_shared=no
16862 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16863 # soname into executable. Probably we can add versioning support to
16864 # collect2, so additional links can be useful in future.
16865 if test "$aix_use_runtimelinking" = yes; then
16866 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16867 # instead of lib<name>.a to let people know that these are not
16868 # typical AIX shared libraries.
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871 # We preserve .a as extension for shared libraries through AIX4.2
16872 # and later when we are not doing run time linking.
16873 library_names_spec='${libname}${release}.a $libname.a'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16876 shlibpath_var=LIBPATH
16881 library_names_spec='$libname.ixlibrary $libname.a'
16882 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16883 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'
16887 library_names_spec='${libname}${shared_ext}'
16888 dynamic_linker="$host_os ld.so"
16889 shlibpath_var=LIBRARY_PATH
16895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896 soname_spec='${libname}${release}${shared_ext}$major'
16897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16898 shlibpath_var=LD_LIBRARY_PATH
16899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16901 # the default ld.so.conf also contains /usr/contrib/lib and
16902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16903 # libtool to hard-code these into programs
16906 cygwin* | mingw* | pw32*)
16907 version_type=windows
16912 case $GCC,$host_os in
16913 yes,cygwin* | yes,mingw* | yes,pw32*)
16914 library_names_spec='$libname.dll.a'
16915 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16916 postinstall_cmds='base_file=`basename \${file}`~
16917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16918 dldir=$destdir/`dirname \$dlpath`~
16919 test -d \$dldir || mkdir -p \$dldir~
16920 $install_prog $dir/$dlname \$dldir/$dlname'
16921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16922 dlpath=$dir/\$dldll~
16924 shlibpath_overrides_runpath=yes
16928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16929 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16930 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16933 # MinGW DLLs use traditional 'lib' prefix
16934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16936 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16937 # It is most probably a Windows format PATH printed by
16938 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16939 # path with ; separators, and with drive letters. We can handle the
16940 # drive letters (cygwin fileutils understands them), so leave them,
16941 # especially as we might pass files found there to a mingw objdump,
16942 # which wouldn't understand a cygwinified path. Ahh.
16943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16949 # pw32 DLLs use 'pw' prefix rather than 'lib'
16950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16959 dynamic_linker='Win32 ld.exe'
16960 # FIXME: first we should search . and the directory the executable is in
16964 darwin* | rhapsody*)
16965 dynamic_linker="$host_os dyld"
16966 version_type=darwin
16969 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16970 soname_spec='${libname}${release}${major}$shared_ext'
16971 shlibpath_overrides_runpath=yes
16972 shlibpath_var=DYLD_LIBRARY_PATH
16973 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16974 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16975 if test "$GCC" = yes; then
16976 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"`
16978 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16980 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16988 soname_spec='${libname}${release}${shared_ext}$major'
16989 shlibpath_var=LD_LIBRARY_PATH
17000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17001 soname_spec='${libname}${release}${shared_ext}$major'
17002 shlibpath_var=LD_LIBRARY_PATH
17003 shlibpath_overrides_runpath=no
17004 hardcode_into_libs=yes
17005 dynamic_linker='GNU ld.so'
17009 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17010 version_type=freebsd-$objformat
17011 case $version_type in
17013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17022 shlibpath_var=LD_LIBRARY_PATH
17025 shlibpath_overrides_runpath=yes
17027 freebsd3.01* | freebsdelf3.01*)
17028 shlibpath_overrides_runpath=yes
17029 hardcode_into_libs=yes
17032 shlibpath_overrides_runpath=no
17033 hardcode_into_libs=yes
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17043 soname_spec='${libname}${release}${shared_ext}$major'
17044 shlibpath_var=LD_LIBRARY_PATH
17045 hardcode_into_libs=yes
17048 hpux9* | hpux10* | hpux11*)
17049 # Give a soname corresponding to the major version so that dld.sl refuses to
17050 # link against other versions.
17054 case "$host_cpu" in
17057 hardcode_into_libs=yes
17058 dynamic_linker="$host_os dld.so"
17059 shlibpath_var=LD_LIBRARY_PATH
17060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 if test "X$HPUX_IA64_MODE" = X32; then
17064 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17066 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17072 hardcode_into_libs=yes
17073 dynamic_linker="$host_os dld.sl"
17074 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17077 soname_spec='${libname}${release}${shared_ext}$major'
17078 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17083 dynamic_linker="$host_os dld.sl"
17084 shlibpath_var=SHLIB_PATH
17085 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17090 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17091 postinstall_cmds='chmod 555 $lib'
17094 irix5* | irix6* | nonstopux*)
17096 nonstopux*) version_type=nonstopux ;;
17098 if test "$lt_cv_prog_gnu_ld" = yes; then
17106 soname_spec='${libname}${release}${shared_ext}$major'
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17109 irix5* | nonstopux*)
17110 libsuff= shlibsuff=
17113 case $LD in # libtool.m4 will add one of these switches to LD
17114 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17115 libsuff= shlibsuff= libmagic=32-bit;;
17116 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17117 libsuff=32 shlibsuff=N32 libmagic=N32;;
17118 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17119 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17120 *) libsuff= shlibsuff= libmagic=never-match;;
17124 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17125 shlibpath_overrides_runpath=no
17126 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17127 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17128 hardcode_into_libs=yes
17131 # No shared lib support for Linux oldld, aout, or coff.
17132 linux*oldld* | linux*aout* | linux*coff*)
17136 # This must be Linux ELF.
17141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142 soname_spec='${libname}${release}${shared_ext}$major'
17143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17144 shlibpath_var=LD_LIBRARY_PATH
17145 shlibpath_overrides_runpath=no
17146 # This implies no fast_install, which is unacceptable.
17147 # Some rework will be needed to allow for fast_install
17148 # before this can be enabled.
17149 hardcode_into_libs=yes
17151 # Append ld.so.conf contents to the search path
17152 if test -f /etc/ld.so.conf; then
17153 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17154 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17157 # We used to test for /lib/ld.so.1 and disable shared libraries on
17158 # powerpc, because MkLinux only supported shared libraries with the
17159 # GNU dynamic linker. Since this was broken with cross compilers,
17160 # most powerpc-linux boxes support dynamic linking these days and
17161 # people can always --disable-shared, the test was removed, and we
17162 # assume the GNU/Linux dynamic linker is in use.
17163 dynamic_linker='GNU/Linux ld.so'
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 shlibpath_overrides_runpath=no
17174 hardcode_into_libs=yes
17175 dynamic_linker='NetBSD ld.elf_so'
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 shlibpath_overrides_runpath=no
17186 hardcode_into_libs=yes
17187 dynamic_linker='GNU ld.so'
17194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197 dynamic_linker='NetBSD (a.out) ld.so'
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 dynamic_linker='NetBSD ld.elf_so'
17203 shlibpath_var=LD_LIBRARY_PATH
17204 shlibpath_overrides_runpath=yes
17205 hardcode_into_libs=yes
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=yes
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=yes
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17231 shlibpath_var=LD_LIBRARY_PATH
17232 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17234 openbsd2.[89] | openbsd2.[89].*)
17235 shlibpath_overrides_runpath=no
17238 shlibpath_overrides_runpath=yes
17242 shlibpath_overrides_runpath=yes
17247 libname_spec='$name'
17250 library_names_spec='$libname${shared_ext} $libname.a'
17251 dynamic_linker='OS/2 ld.exe'
17252 shlibpath_var=LIBPATH
17255 osf3* | osf4* | osf5*)
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261 shlibpath_var=LD_LIBRARY_PATH
17262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 shlibpath_var=LD_LIBRARY_PATH
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 shlibpath_overrides_runpath=yes
17281 hardcode_into_libs=yes
17282 # ldd complains unless libraries are executable
17283 postinstall_cmds='chmod +x $lib'
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17289 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=yes
17292 if test "$with_gnu_ld" = yes; then
17298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 case $host_vendor in
17305 shlibpath_overrides_runpath=no
17307 export_dynamic_flag_spec='${wl}-Blargedynsym'
17308 runpath_var=LD_RUN_PATH
17316 shlibpath_overrides_runpath=no
17317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17323 if test -d /usr/nec ;then
17325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17326 soname_spec='$libname${shared_ext}.$major'
17327 shlibpath_var=LD_LIBRARY_PATH
17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334 soname_spec='${libname}${release}${shared_ext}$major'
17335 shlibpath_var=LD_LIBRARY_PATH
17342 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17343 echo "${ECHO_T}$dynamic_linker" >&6
17344 test "$dynamic_linker" = no && can_build_shared=no
17346 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17347 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17348 hardcode_action_GCJ=
17349 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17350 test -n "$runpath_var GCJ" || \
17351 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17353 # We can hardcode non-existant directories.
17354 if test "$hardcode_direct_GCJ" != no &&
17355 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17356 # have to relink, otherwise we might link with an installed library
17357 # when we should be linking with a yet-to-be-installed one
17358 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17359 test "$hardcode_minus_L_GCJ" != no; then
17360 # Linking always hardcodes the temporary library directory.
17361 hardcode_action_GCJ=relink
17363 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17364 hardcode_action_GCJ=immediate
17367 # We cannot hardcode anything, or else we can only hardcode existing
17369 hardcode_action_GCJ=unsupported
17371 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17372 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17374 if test "$hardcode_action_GCJ" = relink; then
17375 # Fast installation is not supported
17376 enable_fast_install=no
17377 elif test "$shlibpath_overrides_runpath" = yes ||
17378 test "$enable_shared" = no; then
17379 # Fast installation is not necessary
17380 enable_fast_install=needless
17385 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17386 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17387 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17390 echo "$as_me:$LINENO: result: yes" >&5
17391 echo "${ECHO_T}yes" >&6
17393 # FIXME - insert some real tests, host_os isn't really good enough
17396 if test -n "$STRIP" ; then
17397 striplib="$STRIP -x"
17398 echo "$as_me:$LINENO: result: yes" >&5
17399 echo "${ECHO_T}yes" >&6
17401 echo "$as_me:$LINENO: result: no" >&5
17402 echo "${ECHO_T}no" >&6
17406 echo "$as_me:$LINENO: result: no" >&5
17407 echo "${ECHO_T}no" >&6
17412 if test "x$enable_dlopen" != xyes; then
17413 enable_dlopen=unknown
17414 enable_dlopen_self=unknown
17415 enable_dlopen_self_static=unknown
17422 lt_cv_dlopen="load_add_on"
17424 lt_cv_dlopen_self=yes
17428 lt_cv_dlopen="LoadLibrary"
17433 lt_cv_dlopen="dlopen"
17438 # if libdl is installed we need to link against it
17439 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17440 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17441 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17444 ac_check_lib_save_LIBS=$LIBS
17446 cat >conftest.$ac_ext <<_ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17453 /* Override any gcc2 internal prototype to avoid an error. */
17457 /* We use char because int might match the return type of a gcc2
17458 builtin and then its argument prototype would still apply. */
17468 rm -f conftest.$ac_objext conftest$ac_exeext
17469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470 (eval $ac_link) 2>conftest.er1
17472 grep -v '^ *+' conftest.er1 >conftest.err
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest$ac_exeext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 ac_cv_lib_dl_dlopen=yes
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17494 ac_cv_lib_dl_dlopen=no
17496 rm -f conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17498 LIBS=$ac_check_lib_save_LIBS
17500 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17501 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17502 if test $ac_cv_lib_dl_dlopen = yes; then
17503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17506 lt_cv_dlopen="dyld"
17508 lt_cv_dlopen_self=yes
17515 echo "$as_me:$LINENO: checking for shl_load" >&5
17516 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17517 if test "${ac_cv_func_shl_load+set}" = set; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 cat >conftest.$ac_ext <<_ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17526 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17528 #define shl_load innocuous_shl_load
17530 /* System header to define __stub macros and hopefully few prototypes,
17531 which can conflict with char shl_load (); below.
17532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17533 <limits.h> exists even on freestanding compilers. */
17536 # include <limits.h>
17538 # include <assert.h>
17543 /* Override any gcc2 internal prototype to avoid an error. */
17548 /* We use char because int might match the return type of a gcc2
17549 builtin and then its argument prototype would still apply. */
17551 /* The GNU C library defines this for functions which it implements
17552 to always fail with ENOSYS. Some functions are actually named
17553 something starting with __ and the normal name is an alias. */
17554 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17557 char (*f) () = shl_load;
17566 return f != shl_load;
17571 rm -f conftest.$ac_objext conftest$ac_exeext
17572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17573 (eval $ac_link) 2>conftest.er1
17575 grep -v '^ *+' conftest.er1 >conftest.err
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } &&
17580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try='test -s conftest$ac_exeext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_func_shl_load=yes
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17597 ac_cv_func_shl_load=no
17599 rm -f conftest.err conftest.$ac_objext \
17600 conftest$ac_exeext conftest.$ac_ext
17602 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17603 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17604 if test $ac_cv_func_shl_load = yes; then
17605 lt_cv_dlopen="shl_load"
17607 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17608 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17609 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 ac_check_lib_save_LIBS=$LIBS
17614 cat >conftest.$ac_ext <<_ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17621 /* Override any gcc2 internal prototype to avoid an error. */
17625 /* We use char because int might match the return type of a gcc2
17626 builtin and then its argument prototype would still apply. */
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17638 (eval $ac_link) 2>conftest.er1
17640 grep -v '^ *+' conftest.er1 >conftest.err
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try='test -s conftest$ac_exeext'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 ac_cv_lib_dld_shl_load=yes
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 ac_cv_lib_dld_shl_load=no
17664 rm -f conftest.err conftest.$ac_objext \
17665 conftest$ac_exeext conftest.$ac_ext
17666 LIBS=$ac_check_lib_save_LIBS
17668 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17669 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17670 if test $ac_cv_lib_dld_shl_load = yes; then
17671 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17673 echo "$as_me:$LINENO: checking for dlopen" >&5
17674 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17675 if test "${ac_cv_func_dlopen+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17678 cat >conftest.$ac_ext <<_ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17686 #define dlopen innocuous_dlopen
17688 /* System header to define __stub macros and hopefully few prototypes,
17689 which can conflict with char dlopen (); below.
17690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17691 <limits.h> exists even on freestanding compilers. */
17694 # include <limits.h>
17696 # include <assert.h>
17701 /* Override any gcc2 internal prototype to avoid an error. */
17706 /* We use char because int might match the return type of a gcc2
17707 builtin and then its argument prototype would still apply. */
17709 /* The GNU C library defines this for functions which it implements
17710 to always fail with ENOSYS. Some functions are actually named
17711 something starting with __ and the normal name is an alias. */
17712 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17715 char (*f) () = dlopen;
17724 return f != dlopen;
17729 rm -f conftest.$ac_objext conftest$ac_exeext
17730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17731 (eval $ac_link) 2>conftest.er1
17733 grep -v '^ *+' conftest.er1 >conftest.err
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest$ac_exeext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 ac_cv_func_dlopen=yes
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 ac_cv_func_dlopen=no
17757 rm -f conftest.err conftest.$ac_objext \
17758 conftest$ac_exeext conftest.$ac_ext
17760 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17761 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17762 if test $ac_cv_func_dlopen = yes; then
17763 lt_cv_dlopen="dlopen"
17765 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 ac_check_lib_save_LIBS=$LIBS
17772 cat >conftest.$ac_ext <<_ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17779 /* Override any gcc2 internal prototype to avoid an error. */
17783 /* We use char because int might match the return type of a gcc2
17784 builtin and then its argument prototype would still apply. */
17794 rm -f conftest.$ac_objext conftest$ac_exeext
17795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17796 (eval $ac_link) 2>conftest.er1
17798 grep -v '^ *+' conftest.er1 >conftest.err
17800 cat conftest.err >&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } &&
17803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } &&
17809 { ac_try='test -s conftest$ac_exeext'
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; }; then
17815 ac_cv_lib_dl_dlopen=yes
17817 echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17820 ac_cv_lib_dl_dlopen=no
17822 rm -f conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824 LIBS=$ac_check_lib_save_LIBS
17826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17828 if test $ac_cv_lib_dl_dlopen = yes; then
17829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17831 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 ac_check_lib_save_LIBS=$LIBS
17837 LIBS="-lsvld $LIBS"
17838 cat >conftest.$ac_ext <<_ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17845 /* Override any gcc2 internal prototype to avoid an error. */
17849 /* We use char because int might match the return type of a gcc2
17850 builtin and then its argument prototype would still apply. */
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862 (eval $ac_link) 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest$ac_exeext'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 ac_cv_lib_svld_dlopen=yes
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17886 ac_cv_lib_svld_dlopen=no
17888 rm -f conftest.err conftest.$ac_objext \
17889 conftest$ac_exeext conftest.$ac_ext
17890 LIBS=$ac_check_lib_save_LIBS
17892 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17893 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17894 if test $ac_cv_lib_svld_dlopen = yes; then
17895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17897 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17898 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17899 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 ac_check_lib_save_LIBS=$LIBS
17904 cat >conftest.$ac_ext <<_ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17911 /* Override any gcc2 internal prototype to avoid an error. */
17915 /* We use char because int might match the return type of a gcc2
17916 builtin and then its argument prototype would still apply. */
17926 rm -f conftest.$ac_objext conftest$ac_exeext
17927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17928 (eval $ac_link) 2>conftest.er1
17930 grep -v '^ *+' conftest.er1 >conftest.err
17932 cat conftest.err >&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; } &&
17941 { ac_try='test -s conftest$ac_exeext'
17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 ac_cv_lib_dld_dld_link=yes
17949 echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17952 ac_cv_lib_dld_dld_link=no
17954 rm -f conftest.err conftest.$ac_objext \
17955 conftest$ac_exeext conftest.$ac_ext
17956 LIBS=$ac_check_lib_save_LIBS
17958 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17959 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17960 if test $ac_cv_lib_dld_dld_link = yes; then
17961 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17982 if test "x$lt_cv_dlopen" != xno; then
17988 case $lt_cv_dlopen in
17990 save_CPPFLAGS="$CPPFLAGS"
17991 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17993 save_LDFLAGS="$LDFLAGS"
17994 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17997 LIBS="$lt_cv_dlopen_libs $LIBS"
17999 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18000 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18001 if test "${lt_cv_dlopen_self+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 if test "$cross_compiling" = yes; then :
18005 lt_cv_dlopen_self=cross
18007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18008 lt_status=$lt_dlunknown
18009 cat > conftest.$ac_ext <<EOF
18010 #line 18010 "configure"
18011 #include "confdefs.h"
18020 # define LT_DLGLOBAL RTLD_GLOBAL
18023 # define LT_DLGLOBAL DL_GLOBAL
18025 # define LT_DLGLOBAL 0
18029 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18030 find out it does not work in some platform. */
18031 #ifndef LT_DLLAZY_OR_NOW
18033 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18036 # define LT_DLLAZY_OR_NOW DL_LAZY
18039 # define LT_DLLAZY_OR_NOW RTLD_NOW
18042 # define LT_DLLAZY_OR_NOW DL_NOW
18044 # define LT_DLLAZY_OR_NOW 0
18052 extern "C" void exit (int);
18055 void fnord() { int i=42;}
18058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18059 int status = $lt_dlunknown;
18063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18064 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18065 /* dlclose (self); */
18071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18072 (eval $ac_link) 2>&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18076 (./conftest; exit; ) 2>/dev/null
18078 case x$lt_status in
18079 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18080 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18081 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18084 # compilation failed
18085 lt_cv_dlopen_self=no
18092 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18093 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18095 if test "x$lt_cv_dlopen_self" = xyes; then
18096 LDFLAGS="$LDFLAGS $link_static_flag"
18097 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18098 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18099 if test "${lt_cv_dlopen_self_static+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 if test "$cross_compiling" = yes; then :
18103 lt_cv_dlopen_self_static=cross
18105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18106 lt_status=$lt_dlunknown
18107 cat > conftest.$ac_ext <<EOF
18108 #line 18108 "configure"
18109 #include "confdefs.h"
18118 # define LT_DLGLOBAL RTLD_GLOBAL
18121 # define LT_DLGLOBAL DL_GLOBAL
18123 # define LT_DLGLOBAL 0
18127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18128 find out it does not work in some platform. */
18129 #ifndef LT_DLLAZY_OR_NOW
18131 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18134 # define LT_DLLAZY_OR_NOW DL_LAZY
18137 # define LT_DLLAZY_OR_NOW RTLD_NOW
18140 # define LT_DLLAZY_OR_NOW DL_NOW
18142 # define LT_DLLAZY_OR_NOW 0
18150 extern "C" void exit (int);
18153 void fnord() { int i=42;}
18156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18157 int status = $lt_dlunknown;
18161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18162 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18163 /* dlclose (self); */
18169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18170 (eval $ac_link) 2>&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18174 (./conftest; exit; ) 2>/dev/null
18176 case x$lt_status in
18177 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18178 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18179 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18182 # compilation failed
18183 lt_cv_dlopen_self_static=no
18190 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18191 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18194 CPPFLAGS="$save_CPPFLAGS"
18195 LDFLAGS="$save_LDFLAGS"
18200 case $lt_cv_dlopen_self in
18201 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18202 *) enable_dlopen_self=unknown ;;
18205 case $lt_cv_dlopen_self_static in
18206 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18207 *) enable_dlopen_self_static=unknown ;;
18212 # The else clause should only fire when bootstrapping the
18213 # libtool distribution, otherwise you forgot to ship ltmain.sh
18214 # with your package, and you will get complaints that there are
18215 # no rules to generate ltmain.sh.
18216 if test -f "$ltmain"; then
18217 # See if we are running on zsh, and set the options which allow our commands through
18218 # without removal of \ escapes.
18219 if test -n "${ZSH_VERSION+set}" ; then
18220 setopt NO_GLOB_SUBST
18222 # Now quote all the things that may contain metacharacters while being
18223 # careful not to overquote the AC_SUBSTed values. We take copies of the
18224 # variables and quote the copies for generation of the libtool script.
18225 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18227 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18228 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18229 deplibs_check_method reload_flag reload_cmds need_locks \
18230 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18231 lt_cv_sys_global_symbol_to_c_name_address \
18232 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18233 old_postinstall_cmds old_postuninstall_cmds \
18237 lt_prog_compiler_wl_GCJ \
18238 lt_prog_compiler_pic_GCJ \
18239 lt_prog_compiler_static_GCJ \
18240 lt_prog_compiler_no_builtin_flag_GCJ \
18241 export_dynamic_flag_spec_GCJ \
18242 thread_safe_flag_spec_GCJ \
18243 whole_archive_flag_spec_GCJ \
18244 enable_shared_with_static_runtimes_GCJ \
18245 old_archive_cmds_GCJ \
18246 old_archive_from_new_cmds_GCJ \
18247 predep_objects_GCJ \
18248 postdep_objects_GCJ \
18251 compiler_lib_search_path_GCJ \
18253 archive_expsym_cmds_GCJ \
18254 postinstall_cmds_GCJ \
18255 postuninstall_cmds_GCJ \
18256 old_archive_from_expsyms_cmds_GCJ \
18257 allow_undefined_flag_GCJ \
18258 no_undefined_flag_GCJ \
18259 export_symbols_cmds_GCJ \
18260 hardcode_libdir_flag_spec_GCJ \
18261 hardcode_libdir_flag_spec_ld_GCJ \
18262 hardcode_libdir_separator_GCJ \
18263 hardcode_automatic_GCJ \
18265 module_expsym_cmds_GCJ \
18266 lt_cv_prog_compiler_c_o_GCJ \
18267 exclude_expsyms_GCJ \
18268 include_expsyms_GCJ; do
18271 old_archive_cmds_GCJ | \
18272 old_archive_from_new_cmds_GCJ | \
18273 archive_cmds_GCJ | \
18274 archive_expsym_cmds_GCJ | \
18275 module_cmds_GCJ | \
18276 module_expsym_cmds_GCJ | \
18277 old_archive_from_expsyms_cmds_GCJ | \
18278 export_symbols_cmds_GCJ | \
18279 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18280 postinstall_cmds | postuninstall_cmds | \
18281 old_postinstall_cmds | old_postuninstall_cmds | \
18282 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18283 # Double-quote double-evaled strings.
18284 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18287 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18293 *'\$0 --fallback-echo"')
18294 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18300 cat <<__EOF__ >> "$cfgfile"
18301 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18303 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18305 # Shell to use when invoking shell scripts.
18308 # Whether or not to build shared libraries.
18309 build_libtool_libs=$enable_shared
18311 # Whether or not to build static libraries.
18312 build_old_libs=$enable_static
18314 # Whether or not to add -lc for building shared libraries.
18315 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18317 # Whether or not to disallow shared libs when runtime libs are static
18318 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18320 # Whether or not to optimize for fast installation.
18321 fast_install=$enable_fast_install
18324 host_alias=$host_alias
18327 # An echo program that does not interpret backslashes.
18332 AR_FLAGS=$lt_AR_FLAGS
18337 # A language-specific compiler.
18338 CC=$lt_compiler_GCJ
18340 # Is the compiler the GNU C compiler?
18346 # The linker used to build libraries.
18349 # Whether we need hard or soft links.
18352 # A BSD-compatible nm program.
18355 # A symbol stripping program
18358 # Used to examine libraries when file_magic_cmd begins "file"
18359 MAGIC_CMD=$MAGIC_CMD
18361 # Used on cygwin: DLL creation program.
18364 # Used on cygwin: object dumper.
18367 # Used on cygwin: assembler.
18370 # The name of the directory that contains temporary libtool files.
18373 # How to create reloadable object files.
18374 reload_flag=$lt_reload_flag
18375 reload_cmds=$lt_reload_cmds
18377 # How to pass a linker flag through the compiler.
18378 wl=$lt_lt_prog_compiler_wl_GCJ
18380 # Object file suffix (normally "o").
18381 objext="$ac_objext"
18383 # Old archive suffix (normally "a").
18386 # Shared library suffix (normally ".so").
18387 shrext_cmds='$shrext_cmds'
18389 # Executable file suffix (normally "").
18392 # Additional compiler flags for building library objects.
18393 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18396 # What is the maximum length of a command?
18397 max_cmd_len=$lt_cv_sys_max_cmd_len
18399 # Does compiler simultaneously support -c and -o options?
18400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18402 # Must we lock files when doing compilation ?
18403 need_locks=$lt_need_locks
18405 # Do we need the lib prefix for modules?
18406 need_lib_prefix=$need_lib_prefix
18408 # Do we need a version for libraries?
18409 need_version=$need_version
18411 # Whether dlopen is supported.
18412 dlopen_support=$enable_dlopen
18414 # Whether dlopen of programs is supported.
18415 dlopen_self=$enable_dlopen_self
18417 # Whether dlopen of statically linked programs is supported.
18418 dlopen_self_static=$enable_dlopen_self_static
18420 # Compiler flag to prevent dynamic linking.
18421 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18423 # Compiler flag to turn off builtin functions.
18424 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18426 # Compiler flag to allow reflexive dlopens.
18427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18429 # Compiler flag to generate shared objects directly from archives.
18430 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18432 # Compiler flag to generate thread-safe objects.
18433 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18435 # Library versioning type.
18436 version_type=$version_type
18438 # Format of library name prefix.
18439 libname_spec=$lt_libname_spec
18441 # List of archive names. First name is the real one, the rest are links.
18442 # The last name is the one that the linker finds with -lNAME.
18443 library_names_spec=$lt_library_names_spec
18445 # The coded name of the library, if different from the real name.
18446 soname_spec=$lt_soname_spec
18448 # Commands used to build and install an old-style archive.
18450 old_archive_cmds=$lt_old_archive_cmds_GCJ
18451 old_postinstall_cmds=$lt_old_postinstall_cmds
18452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18454 # Create an old-style archive from a shared archive.
18455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18457 # Create a temporary old-style archive to link instead of a shared archive.
18458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18460 # Commands used to build and install a shared archive.
18461 archive_cmds=$lt_archive_cmds_GCJ
18462 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18463 postinstall_cmds=$lt_postinstall_cmds
18464 postuninstall_cmds=$lt_postuninstall_cmds
18466 # Commands used to build a loadable module (assumed same as above if empty)
18467 module_cmds=$lt_module_cmds_GCJ
18468 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18470 # Commands to strip libraries.
18471 old_striplib=$lt_old_striplib
18472 striplib=$lt_striplib
18474 # Dependencies to place before the objects being linked to create a
18476 predep_objects=$lt_predep_objects_GCJ
18478 # Dependencies to place after the objects being linked to create a
18480 postdep_objects=$lt_postdep_objects_GCJ
18482 # Dependencies to place before the objects being linked to create a
18484 predeps=$lt_predeps_GCJ
18486 # Dependencies to place after the objects being linked to create a
18488 postdeps=$lt_postdeps_GCJ
18490 # The library search path used internally by the compiler when linking
18491 # a shared library.
18492 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18494 # Method to check whether dependent libraries are shared objects.
18495 deplibs_check_method=$lt_deplibs_check_method
18497 # Command to use when deplibs_check_method == file_magic.
18498 file_magic_cmd=$lt_file_magic_cmd
18500 # Flag that allows shared libraries with undefined symbols to be built.
18501 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18503 # Flag that forces no undefined symbols.
18504 no_undefined_flag=$lt_no_undefined_flag_GCJ
18506 # Commands used to finish a libtool library installation in a directory.
18507 finish_cmds=$lt_finish_cmds
18509 # Same as above, but a single script fragment to be evaled but not shown.
18510 finish_eval=$lt_finish_eval
18512 # Take the output of nm and produce a listing of raw symbols and C names.
18513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18515 # Transform the output of nm in a proper C declaration
18516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18518 # Transform the output of nm in a C name address pair
18519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18521 # This is the shared library runtime path variable.
18522 runpath_var=$runpath_var
18524 # This is the shared library path variable.
18525 shlibpath_var=$shlibpath_var
18527 # Is shlibpath searched before the hard-coded library search path?
18528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18530 # How to hardcode a shared library path into an executable.
18531 hardcode_action=$hardcode_action_GCJ
18533 # Whether we should hardcode library paths into libraries.
18534 hardcode_into_libs=$hardcode_into_libs
18536 # Flag to hardcode \$libdir into a binary during linking.
18537 # This must work even if \$libdir does not exist.
18538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18540 # If ld is used when linking, flag to hardcode \$libdir into
18541 # a binary during linking. This must work even if \$libdir does
18543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18545 # Whether we need a single -rpath flag with a separated argument.
18546 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18548 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18549 # resulting binary.
18550 hardcode_direct=$hardcode_direct_GCJ
18552 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18553 # resulting binary.
18554 hardcode_minus_L=$hardcode_minus_L_GCJ
18556 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18557 # the resulting binary.
18558 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18560 # Set to yes if building a shared library automatically hardcodes DIR into the library
18561 # and all subsequent libraries and executables linked against it.
18562 hardcode_automatic=$hardcode_automatic_GCJ
18564 # Variables whose values should be saved in libtool wrapper scripts and
18565 # restored at relink time.
18566 variables_saved_for_relink="$variables_saved_for_relink"
18568 # Whether libtool must link a program against all its dependency libraries.
18569 link_all_deplibs=$link_all_deplibs_GCJ
18571 # Compile-time system search path for libraries
18572 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18574 # Run-time system search path for libraries
18575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18577 # Fix the shell variable \$srcfile for the compiler.
18578 fix_srcfile_path="$fix_srcfile_path_GCJ"
18580 # Set to yes if exported symbols are required.
18581 always_export_symbols=$always_export_symbols_GCJ
18583 # The commands to list exported symbols.
18584 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18586 # The commands to extract the exported symbol list from a shared archive.
18587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18589 # Symbols that should not be listed in the preloaded symbols.
18590 exclude_expsyms=$lt_exclude_expsyms_GCJ
18592 # Symbols that must always be exported.
18593 include_expsyms=$lt_include_expsyms_GCJ
18595 # ### END LIBTOOL TAG CONFIG: $tagname
18601 # If there is no Makefile yet, we rely on a make rule to execute
18602 # `config.status --recheck' to rerun these tests and create the
18603 # libtool script then.
18604 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18605 if test -f "$ltmain_in"; then
18606 test -f Makefile && make "$ltmain"
18612 ac_cpp='$CPP $CPPFLAGS'
18613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18628 # Source file extension for RC test sources.
18631 # Object file extension for compiled RC test sources.
18635 # Code to be used in simple compile tests
18636 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18638 # Code to be used in simple link tests
18639 lt_simple_link_test_code="$lt_simple_compile_test_code"
18641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18643 # If no C compiler was specified, use CC.
18646 # Allow CC to be a program name with arguments.
18650 # Allow CC to be a program name with arguments.
18655 lt_cv_prog_compiler_c_o_RC=yes
18657 # The else clause should only fire when bootstrapping the
18658 # libtool distribution, otherwise you forgot to ship ltmain.sh
18659 # with your package, and you will get complaints that there are
18660 # no rules to generate ltmain.sh.
18661 if test -f "$ltmain"; then
18662 # See if we are running on zsh, and set the options which allow our commands through
18663 # without removal of \ escapes.
18664 if test -n "${ZSH_VERSION+set}" ; then
18665 setopt NO_GLOB_SUBST
18667 # Now quote all the things that may contain metacharacters while being
18668 # careful not to overquote the AC_SUBSTed values. We take copies of the
18669 # variables and quote the copies for generation of the libtool script.
18670 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18672 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18673 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18674 deplibs_check_method reload_flag reload_cmds need_locks \
18675 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18676 lt_cv_sys_global_symbol_to_c_name_address \
18677 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18678 old_postinstall_cmds old_postuninstall_cmds \
18682 lt_prog_compiler_wl_RC \
18683 lt_prog_compiler_pic_RC \
18684 lt_prog_compiler_static_RC \
18685 lt_prog_compiler_no_builtin_flag_RC \
18686 export_dynamic_flag_spec_RC \
18687 thread_safe_flag_spec_RC \
18688 whole_archive_flag_spec_RC \
18689 enable_shared_with_static_runtimes_RC \
18690 old_archive_cmds_RC \
18691 old_archive_from_new_cmds_RC \
18692 predep_objects_RC \
18693 postdep_objects_RC \
18696 compiler_lib_search_path_RC \
18698 archive_expsym_cmds_RC \
18699 postinstall_cmds_RC \
18700 postuninstall_cmds_RC \
18701 old_archive_from_expsyms_cmds_RC \
18702 allow_undefined_flag_RC \
18703 no_undefined_flag_RC \
18704 export_symbols_cmds_RC \
18705 hardcode_libdir_flag_spec_RC \
18706 hardcode_libdir_flag_spec_ld_RC \
18707 hardcode_libdir_separator_RC \
18708 hardcode_automatic_RC \
18710 module_expsym_cmds_RC \
18711 lt_cv_prog_compiler_c_o_RC \
18712 exclude_expsyms_RC \
18713 include_expsyms_RC; do
18716 old_archive_cmds_RC | \
18717 old_archive_from_new_cmds_RC | \
18718 archive_cmds_RC | \
18719 archive_expsym_cmds_RC | \
18721 module_expsym_cmds_RC | \
18722 old_archive_from_expsyms_cmds_RC | \
18723 export_symbols_cmds_RC | \
18724 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18725 postinstall_cmds | postuninstall_cmds | \
18726 old_postinstall_cmds | old_postuninstall_cmds | \
18727 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18728 # Double-quote double-evaled strings.
18729 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18732 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18738 *'\$0 --fallback-echo"')
18739 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18745 cat <<__EOF__ >> "$cfgfile"
18746 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18750 # Shell to use when invoking shell scripts.
18753 # Whether or not to build shared libraries.
18754 build_libtool_libs=$enable_shared
18756 # Whether or not to build static libraries.
18757 build_old_libs=$enable_static
18759 # Whether or not to add -lc for building shared libraries.
18760 build_libtool_need_lc=$archive_cmds_need_lc_RC
18762 # Whether or not to disallow shared libs when runtime libs are static
18763 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18765 # Whether or not to optimize for fast installation.
18766 fast_install=$enable_fast_install
18769 host_alias=$host_alias
18772 # An echo program that does not interpret backslashes.
18777 AR_FLAGS=$lt_AR_FLAGS
18782 # A language-specific compiler.
18785 # Is the compiler the GNU C compiler?
18791 # The linker used to build libraries.
18794 # Whether we need hard or soft links.
18797 # A BSD-compatible nm program.
18800 # A symbol stripping program
18803 # Used to examine libraries when file_magic_cmd begins "file"
18804 MAGIC_CMD=$MAGIC_CMD
18806 # Used on cygwin: DLL creation program.
18809 # Used on cygwin: object dumper.
18812 # Used on cygwin: assembler.
18815 # The name of the directory that contains temporary libtool files.
18818 # How to create reloadable object files.
18819 reload_flag=$lt_reload_flag
18820 reload_cmds=$lt_reload_cmds
18822 # How to pass a linker flag through the compiler.
18823 wl=$lt_lt_prog_compiler_wl_RC
18825 # Object file suffix (normally "o").
18826 objext="$ac_objext"
18828 # Old archive suffix (normally "a").
18831 # Shared library suffix (normally ".so").
18832 shrext_cmds='$shrext_cmds'
18834 # Executable file suffix (normally "").
18837 # Additional compiler flags for building library objects.
18838 pic_flag=$lt_lt_prog_compiler_pic_RC
18841 # What is the maximum length of a command?
18842 max_cmd_len=$lt_cv_sys_max_cmd_len
18844 # Does compiler simultaneously support -c and -o options?
18845 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18847 # Must we lock files when doing compilation ?
18848 need_locks=$lt_need_locks
18850 # Do we need the lib prefix for modules?
18851 need_lib_prefix=$need_lib_prefix
18853 # Do we need a version for libraries?
18854 need_version=$need_version
18856 # Whether dlopen is supported.
18857 dlopen_support=$enable_dlopen
18859 # Whether dlopen of programs is supported.
18860 dlopen_self=$enable_dlopen_self
18862 # Whether dlopen of statically linked programs is supported.
18863 dlopen_self_static=$enable_dlopen_self_static
18865 # Compiler flag to prevent dynamic linking.
18866 link_static_flag=$lt_lt_prog_compiler_static_RC
18868 # Compiler flag to turn off builtin functions.
18869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18871 # Compiler flag to allow reflexive dlopens.
18872 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18874 # Compiler flag to generate shared objects directly from archives.
18875 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18877 # Compiler flag to generate thread-safe objects.
18878 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18880 # Library versioning type.
18881 version_type=$version_type
18883 # Format of library name prefix.
18884 libname_spec=$lt_libname_spec
18886 # List of archive names. First name is the real one, the rest are links.
18887 # The last name is the one that the linker finds with -lNAME.
18888 library_names_spec=$lt_library_names_spec
18890 # The coded name of the library, if different from the real name.
18891 soname_spec=$lt_soname_spec
18893 # Commands used to build and install an old-style archive.
18895 old_archive_cmds=$lt_old_archive_cmds_RC
18896 old_postinstall_cmds=$lt_old_postinstall_cmds
18897 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18899 # Create an old-style archive from a shared archive.
18900 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18902 # Create a temporary old-style archive to link instead of a shared archive.
18903 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18905 # Commands used to build and install a shared archive.
18906 archive_cmds=$lt_archive_cmds_RC
18907 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18908 postinstall_cmds=$lt_postinstall_cmds
18909 postuninstall_cmds=$lt_postuninstall_cmds
18911 # Commands used to build a loadable module (assumed same as above if empty)
18912 module_cmds=$lt_module_cmds_RC
18913 module_expsym_cmds=$lt_module_expsym_cmds_RC
18915 # Commands to strip libraries.
18916 old_striplib=$lt_old_striplib
18917 striplib=$lt_striplib
18919 # Dependencies to place before the objects being linked to create a
18921 predep_objects=$lt_predep_objects_RC
18923 # Dependencies to place after the objects being linked to create a
18925 postdep_objects=$lt_postdep_objects_RC
18927 # Dependencies to place before the objects being linked to create a
18929 predeps=$lt_predeps_RC
18931 # Dependencies to place after the objects being linked to create a
18933 postdeps=$lt_postdeps_RC
18935 # The library search path used internally by the compiler when linking
18936 # a shared library.
18937 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18939 # Method to check whether dependent libraries are shared objects.
18940 deplibs_check_method=$lt_deplibs_check_method
18942 # Command to use when deplibs_check_method == file_magic.
18943 file_magic_cmd=$lt_file_magic_cmd
18945 # Flag that allows shared libraries with undefined symbols to be built.
18946 allow_undefined_flag=$lt_allow_undefined_flag_RC
18948 # Flag that forces no undefined symbols.
18949 no_undefined_flag=$lt_no_undefined_flag_RC
18951 # Commands used to finish a libtool library installation in a directory.
18952 finish_cmds=$lt_finish_cmds
18954 # Same as above, but a single script fragment to be evaled but not shown.
18955 finish_eval=$lt_finish_eval
18957 # Take the output of nm and produce a listing of raw symbols and C names.
18958 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18960 # Transform the output of nm in a proper C declaration
18961 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18963 # Transform the output of nm in a C name address pair
18964 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18966 # This is the shared library runtime path variable.
18967 runpath_var=$runpath_var
18969 # This is the shared library path variable.
18970 shlibpath_var=$shlibpath_var
18972 # Is shlibpath searched before the hard-coded library search path?
18973 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18975 # How to hardcode a shared library path into an executable.
18976 hardcode_action=$hardcode_action_RC
18978 # Whether we should hardcode library paths into libraries.
18979 hardcode_into_libs=$hardcode_into_libs
18981 # Flag to hardcode \$libdir into a binary during linking.
18982 # This must work even if \$libdir does not exist.
18983 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18985 # If ld is used when linking, flag to hardcode \$libdir into
18986 # a binary during linking. This must work even if \$libdir does
18988 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18990 # Whether we need a single -rpath flag with a separated argument.
18991 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18993 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18994 # resulting binary.
18995 hardcode_direct=$hardcode_direct_RC
18997 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18998 # resulting binary.
18999 hardcode_minus_L=$hardcode_minus_L_RC
19001 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19002 # the resulting binary.
19003 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19005 # Set to yes if building a shared library automatically hardcodes DIR into the library
19006 # and all subsequent libraries and executables linked against it.
19007 hardcode_automatic=$hardcode_automatic_RC
19009 # Variables whose values should be saved in libtool wrapper scripts and
19010 # restored at relink time.
19011 variables_saved_for_relink="$variables_saved_for_relink"
19013 # Whether libtool must link a program against all its dependency libraries.
19014 link_all_deplibs=$link_all_deplibs_RC
19016 # Compile-time system search path for libraries
19017 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19019 # Run-time system search path for libraries
19020 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19022 # Fix the shell variable \$srcfile for the compiler.
19023 fix_srcfile_path="$fix_srcfile_path_RC"
19025 # Set to yes if exported symbols are required.
19026 always_export_symbols=$always_export_symbols_RC
19028 # The commands to list exported symbols.
19029 export_symbols_cmds=$lt_export_symbols_cmds_RC
19031 # The commands to extract the exported symbol list from a shared archive.
19032 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19034 # Symbols that should not be listed in the preloaded symbols.
19035 exclude_expsyms=$lt_exclude_expsyms_RC
19037 # Symbols that must always be exported.
19038 include_expsyms=$lt_include_expsyms_RC
19040 # ### END LIBTOOL TAG CONFIG: $tagname
19046 # If there is no Makefile yet, we rely on a make rule to execute
19047 # `config.status --recheck' to rerun these tests and create the
19048 # libtool script then.
19049 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19050 if test -f "$ltmain_in"; then
19051 test -f Makefile && make "$ltmain"
19057 ac_cpp='$CPP $CPPFLAGS'
19058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19067 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19068 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19069 { (exit 1); exit 1; }; }
19073 # Append the new tag name to the list of available tags.
19074 if test -n "$tagname" ; then
19075 available_tags="$available_tags $tagname"
19081 # Now substitute the updated list of available tags.
19082 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19083 mv "${ofile}T" "$ofile"
19087 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19088 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19089 { (exit 1); exit 1; }; }
19095 # This can be used to rebuild libtool when needed
19096 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19098 # Always use our own libtool.
19099 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19101 # Prevent multiple expansion
19123 ac_config_headers="$ac_config_headers src/config.h"
19125 ac_config_files="$ac_config_files aubio.pc"
19128 case "${host_os}" in
19130 mingw32_support="yes"
19131 if test "${ac_cv_header_windows_h+set}" = set; then
19132 echo "$as_me:$LINENO: checking for windows.h" >&5
19133 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19134 if test "${ac_cv_header_windows_h+set}" = set; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19138 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19140 # Is the header compilable?
19141 echo "$as_me:$LINENO: checking windows.h usability" >&5
19142 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19143 cat >conftest.$ac_ext <<_ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 $ac_includes_default
19150 #include <windows.h>
19152 rm -f conftest.$ac_objext
19153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19154 (eval $ac_compile) 2>conftest.er1
19156 grep -v '^ *+' conftest.er1 >conftest.err
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
19161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; } &&
19167 { ac_try='test -s conftest.$ac_objext'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 ac_header_compiler=yes
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19178 ac_header_compiler=no
19180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19182 echo "${ECHO_T}$ac_header_compiler" >&6
19184 # Is the header present?
19185 echo "$as_me:$LINENO: checking windows.h presence" >&5
19186 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19187 cat >conftest.$ac_ext <<_ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 #include <windows.h>
19195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19198 grep -v '^ *+' conftest.er1 >conftest.err
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } >/dev/null; then
19203 if test -s conftest.err; then
19204 ac_cpp_err=$ac_c_preproc_warn_flag
19205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19212 if test -z "$ac_cpp_err"; then
19213 ac_header_preproc=yes
19215 echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19218 ac_header_preproc=no
19220 rm -f conftest.err conftest.$ac_ext
19221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19222 echo "${ECHO_T}$ac_header_preproc" >&6
19224 # So? What about this header?
19225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19227 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19228 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19229 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
19230 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
19231 ac_header_preproc=yes
19234 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19235 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19236 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19237 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19238 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
19239 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
19240 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
19241 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
19242 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19243 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19244 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
19245 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
19248 ## ------------------------------------------ ##
19249 ## Report this to the AC_PACKAGE_NAME lists. ##
19250 ## ------------------------------------------ ##
19253 sed "s/^/$as_me: WARNING: /" >&2
19256 echo "$as_me:$LINENO: checking for windows.h" >&5
19257 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19258 if test "${ac_cv_header_windows_h+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 ac_cv_header_windows_h=$ac_header_preproc
19263 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19264 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19272 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
19273 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
19274 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 ac_check_lib_save_LIBS=$LIBS
19278 LIBS="-lcposix $LIBS"
19279 cat >conftest.$ac_ext <<_ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19286 /* Override any gcc2 internal prototype to avoid an error. */
19290 /* We use char because int might match the return type of a gcc2
19291 builtin and then its argument prototype would still apply. */
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303 (eval $ac_link) 2>conftest.er1
19305 grep -v '^ *+' conftest.er1 >conftest.err
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312 (eval $ac_try) 2>&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; } &&
19316 { ac_try='test -s conftest$ac_exeext'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 ac_cv_lib_cposix_strerror=yes
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_cv_lib_cposix_strerror=no
19329 rm -f conftest.err conftest.$ac_objext \
19330 conftest$ac_exeext conftest.$ac_ext
19331 LIBS=$ac_check_lib_save_LIBS
19333 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
19334 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
19335 if test $ac_cv_lib_cposix_strerror = yes; then
19336 LIBS="$LIBS -lcposix"
19345 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19346 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19347 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 ac_check_lib_save_LIBS=$LIBS
19351 LIBS="-lpthread $LIBS"
19352 cat >conftest.$ac_ext <<_ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19359 /* Override any gcc2 internal prototype to avoid an error. */
19363 /* We use char because int might match the return type of a gcc2
19364 builtin and then its argument prototype would still apply. */
19365 char pthread_create ();
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19376 (eval $ac_link) 2>conftest.er1
19378 grep -v '^ *+' conftest.er1 >conftest.err
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest$ac_exeext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_cv_lib_pthread_pthread_create=yes
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 ac_cv_lib_pthread_pthread_create=no
19402 rm -f conftest.err conftest.$ac_objext \
19403 conftest$ac_exeext conftest.$ac_ext
19404 LIBS=$ac_check_lib_save_LIBS
19406 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19407 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19408 if test $ac_cv_lib_pthread_pthread_create = yes; then
19409 cat >>confdefs.h <<_ACEOF
19410 #define HAVE_LIBPTHREAD 1
19413 LIBS="-lpthread $LIBS"
19418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19420 if test "${ac_cv_header_stdc+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 cat >conftest.$ac_ext <<_ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19429 #include <stdlib.h>
19430 #include <stdarg.h>
19431 #include <string.h>
19442 rm -f conftest.$ac_objext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444 (eval $ac_compile) 2>conftest.er1
19446 grep -v '^ *+' conftest.er1 >conftest.err
19448 cat conftest.err >&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } &&
19451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest.$ac_objext'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 ac_cv_header_stdc=yes
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19468 ac_cv_header_stdc=no
19470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19472 if test $ac_cv_header_stdc = yes; then
19473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19474 cat >conftest.$ac_ext <<_ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19480 #include <string.h>
19483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19484 $EGREP "memchr" >/dev/null 2>&1; then
19487 ac_cv_header_stdc=no
19493 if test $ac_cv_header_stdc = yes; then
19494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19495 cat >conftest.$ac_ext <<_ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19501 #include <stdlib.h>
19504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19505 $EGREP "free" >/dev/null 2>&1; then
19508 ac_cv_header_stdc=no
19514 if test $ac_cv_header_stdc = yes; then
19515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19516 if test "$cross_compiling" = yes; then
19519 cat >conftest.$ac_ext <<_ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 #if ((' ' & 0x0FF) == 0x020)
19527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19530 # define ISLOWER(c) \
19531 (('a' <= (c) && (c) <= 'i') \
19532 || ('j' <= (c) && (c) <= 'r') \
19533 || ('s' <= (c) && (c) <= 'z'))
19534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19542 for (i = 0; i < 256; i++)
19543 if (XOR (islower (i), ISLOWER (i))
19544 || toupper (i) != TOUPPER (i))
19549 rm -f conftest$ac_exeext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19551 (eval $ac_link) 2>&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19562 echo "$as_me: program exited with status $ac_status" >&5
19563 echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19566 ( exit $ac_status )
19567 ac_cv_header_stdc=no
19569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19573 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19574 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19575 if test $ac_cv_header_stdc = yes; then
19577 cat >>confdefs.h <<\_ACEOF
19578 #define STDC_HEADERS 1
19591 for ac_header in string.h stdlib.h stdio.h math.h errno.h stdarg.h unistd.h signal.h
19593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595 echo "$as_me:$LINENO: checking for $ac_header" >&5
19596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19603 # Is the header compilable?
19604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 $ac_includes_default
19613 #include <$ac_header>
19615 rm -f conftest.$ac_objext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617 (eval $ac_compile) 2>conftest.er1
19619 grep -v '^ *+' conftest.er1 >conftest.err
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626 (eval $ac_try) 2>&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; } &&
19630 { ac_try='test -s conftest.$ac_objext'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 ac_header_compiler=yes
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19641 ac_header_compiler=no
19643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19645 echo "${ECHO_T}$ac_header_compiler" >&6
19647 # Is the header present?
19648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19650 cat >conftest.$ac_ext <<_ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 #include <$ac_header>
19658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19661 grep -v '^ *+' conftest.er1 >conftest.err
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } >/dev/null; then
19666 if test -s conftest.err; then
19667 ac_cpp_err=$ac_c_preproc_warn_flag
19668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19675 if test -z "$ac_cpp_err"; then
19676 ac_header_preproc=yes
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 ac_header_preproc=no
19683 rm -f conftest.err conftest.$ac_ext
19684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19685 echo "${ECHO_T}$ac_header_preproc" >&6
19687 # So? What about this header?
19688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19694 ac_header_preproc=yes
19697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19711 ## ------------------------------------------ ##
19712 ## Report this to the AC_PACKAGE_NAME lists. ##
19713 ## ------------------------------------------ ##
19716 sed "s/^/$as_me: WARNING: /" >&2
19719 echo "$as_me:$LINENO: checking for $ac_header" >&5
19720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 eval "$as_ac_Header=\$ac_header_preproc"
19726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19731 cat >>confdefs.h <<_ACEOF
19732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19740 for ac_header in complex.h
19742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19744 echo "$as_me:$LINENO: checking for $ac_header" >&5
19745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19752 # Is the header compilable?
19753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19755 cat >conftest.$ac_ext <<_ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19761 $ac_includes_default
19762 #include <$ac_header>
19764 rm -f conftest.$ac_objext
19765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19766 (eval $ac_compile) 2>conftest.er1
19768 grep -v '^ *+' conftest.er1 >conftest.err
19770 cat conftest.err >&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
19773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; } &&
19779 { ac_try='test -s conftest.$ac_objext'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785 ac_header_compiler=yes
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ac_header_compiler=no
19792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19794 echo "${ECHO_T}$ac_header_compiler" >&6
19796 # Is the header present?
19797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19799 cat >conftest.$ac_ext <<_ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 #include <$ac_header>
19807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19810 grep -v '^ *+' conftest.er1 >conftest.err
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } >/dev/null; then
19815 if test -s conftest.err; then
19816 ac_cpp_err=$ac_c_preproc_warn_flag
19817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19824 if test -z "$ac_cpp_err"; then
19825 ac_header_preproc=yes
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 ac_header_preproc=no
19832 rm -f conftest.err conftest.$ac_ext
19833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19834 echo "${ECHO_T}$ac_header_preproc" >&6
19836 # So? What about this header?
19837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19843 ac_header_preproc=yes
19846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19860 ## ------------------------------------------ ##
19861 ## Report this to the AC_PACKAGE_NAME lists. ##
19862 ## ------------------------------------------ ##
19865 sed "s/^/$as_me: WARNING: /" >&2
19868 echo "$as_me:$LINENO: checking for $ac_header" >&5
19869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19873 eval "$as_ac_Header=\$ac_header_preproc"
19875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19880 cat >>confdefs.h <<_ACEOF
19881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19885 { { echo "$as_me:$LINENO: error: Ouch! missing complex.h header" >&5
19886 echo "$as_me: error: Ouch! missing complex.h header" >&2;}
19887 { (exit 1); exit 1; }; }
19893 for ac_header in fftw3.h
19895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19897 echo "$as_me:$LINENO: checking for $ac_header" >&5
19898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19905 # Is the header compilable?
19906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19908 cat >conftest.$ac_ext <<_ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19914 $ac_includes_default
19915 #include <$ac_header>
19917 rm -f conftest.$ac_objext
19918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19919 (eval $ac_compile) 2>conftest.er1
19921 grep -v '^ *+' conftest.er1 >conftest.err
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } &&
19926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19928 (eval $ac_try) 2>&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; } &&
19932 { ac_try='test -s conftest.$ac_objext'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; }; then
19938 ac_header_compiler=yes
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19943 ac_header_compiler=no
19945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19947 echo "${ECHO_T}$ac_header_compiler" >&6
19949 # Is the header present?
19950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19952 cat >conftest.$ac_ext <<_ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 #include <$ac_header>
19960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19963 grep -v '^ *+' conftest.er1 >conftest.err
19965 cat conftest.err >&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); } >/dev/null; then
19968 if test -s conftest.err; then
19969 ac_cpp_err=$ac_c_preproc_warn_flag
19970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19977 if test -z "$ac_cpp_err"; then
19978 ac_header_preproc=yes
19980 echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19983 ac_header_preproc=no
19985 rm -f conftest.err conftest.$ac_ext
19986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19987 echo "${ECHO_T}$ac_header_preproc" >&6
19989 # So? What about this header?
19990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19996 ac_header_preproc=yes
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20013 ## ------------------------------------------ ##
20014 ## Report this to the AC_PACKAGE_NAME lists. ##
20015 ## ------------------------------------------ ##
20018 sed "s/^/$as_me: WARNING: /" >&2
20021 echo "$as_me:$LINENO: checking for $ac_header" >&5
20022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 eval "$as_ac_Header=\$ac_header_preproc"
20028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20033 cat >>confdefs.h <<_ACEOF
20034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20038 { { echo "$as_me:$LINENO: error: Ouch! missing fftw3.h headeri" >&5
20039 echo "$as_me: error: Ouch! missing fftw3.h headeri" >&2;}
20040 { (exit 1); exit 1; }; }
20046 # Extract the first word of "pkg-config", so it can be a program name with args.
20047 set dummy pkg-config; ac_word=$2
20048 echo "$as_me:$LINENO: checking for $ac_word" >&5
20049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20050 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 case $PKG_CONFIG in
20055 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20059 for as_dir in $PATH
20062 test -z "$as_dir" && as_dir=.
20063 for ac_exec_ext in '' $ac_executable_extensions; do
20064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20065 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20072 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20076 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20078 if test -n "$PKG_CONFIG"; then
20079 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20080 echo "${ECHO_T}$PKG_CONFIG" >&6
20082 echo "$as_me:$LINENO: result: no" >&5
20083 echo "${ECHO_T}no" >&6
20090 if test -z "$PKG_CONFIG"; then
20091 # Extract the first word of "pkg-config", so it can be a program name with args.
20092 set dummy pkg-config; ac_word=$2
20093 echo "$as_me:$LINENO: checking for $ac_word" >&5
20094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20095 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 case $PKG_CONFIG in
20100 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20104 for as_dir in $PATH
20107 test -z "$as_dir" && as_dir=.
20108 for ac_exec_ext in '' $ac_executable_extensions; do
20109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20110 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20117 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20121 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20123 if test -n "$PKG_CONFIG"; then
20124 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20125 echo "${ECHO_T}$PKG_CONFIG" >&6
20127 echo "$as_me:$LINENO: result: no" >&5
20128 echo "${ECHO_T}no" >&6
20133 if test "$PKG_CONFIG" = "no" ; then
20134 echo "*** The pkg-config script could not be found. Make sure it is"
20135 echo "*** in your path, or set the PKG_CONFIG environment variable"
20136 echo "*** to the full path to pkg-config."
20137 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20139 PKG_CONFIG_MIN_VERSION=0.9.0
20140 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20141 echo "$as_me:$LINENO: checking for fftw3 >= 3.0.0" >&5
20142 echo $ECHO_N "checking for fftw3 >= 3.0.0... $ECHO_C" >&6
20144 if $PKG_CONFIG --exists "fftw3 >= 3.0.0" ; then
20145 echo "$as_me:$LINENO: result: yes" >&5
20146 echo "${ECHO_T}yes" >&6
20149 echo "$as_me:$LINENO: checking FFTWLIB_CFLAGS" >&5
20150 echo $ECHO_N "checking FFTWLIB_CFLAGS... $ECHO_C" >&6
20151 FFTWLIB_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0"`
20152 echo "$as_me:$LINENO: result: $FFTWLIB_CFLAGS" >&5
20153 echo "${ECHO_T}$FFTWLIB_CFLAGS" >&6
20155 echo "$as_me:$LINENO: checking FFTWLIB_LIBS" >&5
20156 echo $ECHO_N "checking FFTWLIB_LIBS... $ECHO_C" >&6
20157 FFTWLIB_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0"`
20158 echo "$as_me:$LINENO: result: $FFTWLIB_LIBS" >&5
20159 echo "${ECHO_T}$FFTWLIB_LIBS" >&6
20163 ## If we have a custom action on failure, don't print errors, but
20164 ## do set a variable so people can do so.
20165 FFTWLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3 >= 3.0.0"`
20166 echo $FFTWLIB_PKG_ERRORS
20172 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20173 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20177 if test $succeeded = yes; then
20180 { { echo "$as_me:$LINENO: error: Library requirements (fftw3 >= 3.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20181 echo "$as_me: error: Library requirements (fftw3 >= 3.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20182 { (exit 1); exit 1; }; }
20185 if test "${FFTW3_SUPPORT}" = "1"; then
20187 cat >>confdefs.h <<\_ACEOF
20188 #define FFTW3_SUPPORT 1
20195 if test -z "$PKG_CONFIG"; then
20196 # Extract the first word of "pkg-config", so it can be a program name with args.
20197 set dummy pkg-config; ac_word=$2
20198 echo "$as_me:$LINENO: checking for $ac_word" >&5
20199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20200 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 case $PKG_CONFIG in
20205 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20209 for as_dir in $PATH
20212 test -z "$as_dir" && as_dir=.
20213 for ac_exec_ext in '' $ac_executable_extensions; do
20214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20215 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20222 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20226 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20228 if test -n "$PKG_CONFIG"; then
20229 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20230 echo "${ECHO_T}$PKG_CONFIG" >&6
20232 echo "$as_me:$LINENO: result: no" >&5
20233 echo "${ECHO_T}no" >&6
20238 if test "$PKG_CONFIG" = "no" ; then
20239 echo "*** The pkg-config script could not be found. Make sure it is"
20240 echo "*** in your path, or set the PKG_CONFIG environment variable"
20241 echo "*** to the full path to pkg-config."
20242 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20244 PKG_CONFIG_MIN_VERSION=0.9.0
20245 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20246 echo "$as_me:$LINENO: checking for sndfile >= 1.0.4" >&5
20247 echo $ECHO_N "checking for sndfile >= 1.0.4... $ECHO_C" >&6
20249 if $PKG_CONFIG --exists "sndfile >= 1.0.4" ; then
20250 echo "$as_me:$LINENO: result: yes" >&5
20251 echo "${ECHO_T}yes" >&6
20254 echo "$as_me:$LINENO: checking SNDLIB_CFLAGS" >&5
20255 echo $ECHO_N "checking SNDLIB_CFLAGS... $ECHO_C" >&6
20256 SNDLIB_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.4"`
20257 echo "$as_me:$LINENO: result: $SNDLIB_CFLAGS" >&5
20258 echo "${ECHO_T}$SNDLIB_CFLAGS" >&6
20260 echo "$as_me:$LINENO: checking SNDLIB_LIBS" >&5
20261 echo $ECHO_N "checking SNDLIB_LIBS... $ECHO_C" >&6
20262 SNDLIB_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.4"`
20263 echo "$as_me:$LINENO: result: $SNDLIB_LIBS" >&5
20264 echo "${ECHO_T}$SNDLIB_LIBS" >&6
20268 ## If we have a custom action on failure, don't print errors, but
20269 ## do set a variable so people can do so.
20270 SNDLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sndfile >= 1.0.4"`
20271 echo $SNDLIB_PKG_ERRORS
20277 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20278 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20282 if test $succeeded = yes; then
20285 { { echo "$as_me:$LINENO: error: Library requirements (sndfile >= 1.0.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20286 echo "$as_me: error: Library requirements (sndfile >= 1.0.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20287 { (exit 1); exit 1; }; }
20293 if test -z "$PKG_CONFIG"; then
20294 # Extract the first word of "pkg-config", so it can be a program name with args.
20295 set dummy pkg-config; ac_word=$2
20296 echo "$as_me:$LINENO: checking for $ac_word" >&5
20297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20298 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 case $PKG_CONFIG in
20303 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20307 for as_dir in $PATH
20310 test -z "$as_dir" && as_dir=.
20311 for ac_exec_ext in '' $ac_executable_extensions; do
20312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20313 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20320 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20324 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20326 if test -n "$PKG_CONFIG"; then
20327 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20328 echo "${ECHO_T}$PKG_CONFIG" >&6
20330 echo "$as_me:$LINENO: result: no" >&5
20331 echo "${ECHO_T}no" >&6
20336 if test "$PKG_CONFIG" = "no" ; then
20337 echo "*** The pkg-config script could not be found. Make sure it is"
20338 echo "*** in your path, or set the PKG_CONFIG environment variable"
20339 echo "*** to the full path to pkg-config."
20340 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20342 PKG_CONFIG_MIN_VERSION=0.9.0
20343 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20344 echo "$as_me:$LINENO: checking for samplerate >= 0.0.15" >&5
20345 echo $ECHO_N "checking for samplerate >= 0.0.15... $ECHO_C" >&6
20347 if $PKG_CONFIG --exists "samplerate >= 0.0.15" ; then
20348 echo "$as_me:$LINENO: result: yes" >&5
20349 echo "${ECHO_T}yes" >&6
20352 echo "$as_me:$LINENO: checking SAMPLERATE_CFLAGS" >&5
20353 echo $ECHO_N "checking SAMPLERATE_CFLAGS... $ECHO_C" >&6
20354 SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= 0.0.15"`
20355 echo "$as_me:$LINENO: result: $SAMPLERATE_CFLAGS" >&5
20356 echo "${ECHO_T}$SAMPLERATE_CFLAGS" >&6
20358 echo "$as_me:$LINENO: checking SAMPLERATE_LIBS" >&5
20359 echo $ECHO_N "checking SAMPLERATE_LIBS... $ECHO_C" >&6
20360 SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= 0.0.15"`
20361 echo "$as_me:$LINENO: result: $SAMPLERATE_LIBS" >&5
20362 echo "${ECHO_T}$SAMPLERATE_LIBS" >&6
20364 SAMPLERATE_CFLAGS=""
20366 ## If we have a custom action on failure, don't print errors, but
20367 ## do set a variable so people can do so.
20368 SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate >= 0.0.15"`
20369 echo $SAMPLERATE_PKG_ERRORS
20375 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20376 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20380 if test $succeeded = yes; then
20381 SAMPLERATE_SUPPORT=1
20383 { { echo "$as_me:$LINENO: error: Library requirements (samplerate >= 0.0.15) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20384 echo "$as_me: error: Library requirements (samplerate >= 0.0.15) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20385 { (exit 1); exit 1; }; }
20389 if test "${SNDLIB_SUPPORT}" = "1"; then
20391 cat >>confdefs.h <<\_ACEOF
20392 #define SNDLIB_SUPPORT 1
20398 # Check whether --enable-fftw3f or --disable-fftw3f was given.
20399 if test "${enable_fftw3f+set}" = set; then
20400 enableval="$enable_fftw3f"
20405 if test "$with_fftw3f" = "yes"; then
20409 if test -z "$PKG_CONFIG"; then
20410 # Extract the first word of "pkg-config", so it can be a program name with args.
20411 set dummy pkg-config; ac_word=$2
20412 echo "$as_me:$LINENO: checking for $ac_word" >&5
20413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20414 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 case $PKG_CONFIG in
20419 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20423 for as_dir in $PATH
20426 test -z "$as_dir" && as_dir=.
20427 for ac_exec_ext in '' $ac_executable_extensions; do
20428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20429 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20436 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20440 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20442 if test -n "$PKG_CONFIG"; then
20443 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20444 echo "${ECHO_T}$PKG_CONFIG" >&6
20446 echo "$as_me:$LINENO: result: no" >&5
20447 echo "${ECHO_T}no" >&6
20452 if test "$PKG_CONFIG" = "no" ; then
20453 echo "*** The pkg-config script could not be found. Make sure it is"
20454 echo "*** in your path, or set the PKG_CONFIG environment variable"
20455 echo "*** to the full path to pkg-config."
20456 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20458 PKG_CONFIG_MIN_VERSION=0.9.0
20459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20460 echo "$as_me:$LINENO: checking for fftw3f >= 3.0.0" >&5
20461 echo $ECHO_N "checking for fftw3f >= 3.0.0... $ECHO_C" >&6
20463 if $PKG_CONFIG --exists "fftw3f >= 3.0.0" ; then
20464 echo "$as_me:$LINENO: result: yes" >&5
20465 echo "${ECHO_T}yes" >&6
20468 echo "$as_me:$LINENO: checking FFTWLIB_CFLAGS" >&5
20469 echo $ECHO_N "checking FFTWLIB_CFLAGS... $ECHO_C" >&6
20470 FFTWLIB_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0.0"`
20471 echo "$as_me:$LINENO: result: $FFTWLIB_CFLAGS" >&5
20472 echo "${ECHO_T}$FFTWLIB_CFLAGS" >&6
20474 echo "$as_me:$LINENO: checking FFTWLIB_LIBS" >&5
20475 echo $ECHO_N "checking FFTWLIB_LIBS... $ECHO_C" >&6
20476 FFTWLIB_LIBS=`$PKG_CONFIG --libs "fftw3f >= 3.0.0"`
20477 echo "$as_me:$LINENO: result: $FFTWLIB_LIBS" >&5
20478 echo "${ECHO_T}$FFTWLIB_LIBS" >&6
20482 ## If we have a custom action on failure, don't print errors, but
20483 ## do set a variable so people can do so.
20484 FFTWLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0.0"`
20485 echo $FFTWLIB_PKG_ERRORS
20491 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20492 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20496 if test $succeeded = yes; then
20499 { { echo "$as_me:$LINENO: error: Library requirements (fftw3f >= 3.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20500 echo "$as_me: error: Library requirements (fftw3f >= 3.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20501 { (exit 1); exit 1; }; }
20505 if test "${FFTW3F_SUPPORT}" = "1"; then
20507 cat >>confdefs.h <<\_ACEOF
20508 #define FFTW3F_SUPPORT 1
20513 # Check whether --enable-jack or --disable-jack was given.
20514 if test "${enable_jack+set}" = set; then
20515 enableval="$enable_jack"
20520 if test "$with_jack" = "yes"
20525 if test -z "$PKG_CONFIG"; then
20526 # Extract the first word of "pkg-config", so it can be a program name with args.
20527 set dummy pkg-config; ac_word=$2
20528 echo "$as_me:$LINENO: checking for $ac_word" >&5
20529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20530 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 case $PKG_CONFIG in
20535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20539 for as_dir in $PATH
20542 test -z "$as_dir" && as_dir=.
20543 for ac_exec_ext in '' $ac_executable_extensions; do
20544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20552 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20556 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20558 if test -n "$PKG_CONFIG"; then
20559 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20560 echo "${ECHO_T}$PKG_CONFIG" >&6
20562 echo "$as_me:$LINENO: result: no" >&5
20563 echo "${ECHO_T}no" >&6
20568 if test "$PKG_CONFIG" = "no" ; then
20569 echo "*** The pkg-config script could not be found. Make sure it is"
20570 echo "*** in your path, or set the PKG_CONFIG environment variable"
20571 echo "*** to the full path to pkg-config."
20572 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20574 PKG_CONFIG_MIN_VERSION=0.9.0
20575 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20576 echo "$as_me:$LINENO: checking for jack >= 0.15.0" >&5
20577 echo $ECHO_N "checking for jack >= 0.15.0... $ECHO_C" >&6
20579 if $PKG_CONFIG --exists "jack >= 0.15.0" ; then
20580 echo "$as_me:$LINENO: result: yes" >&5
20581 echo "${ECHO_T}yes" >&6
20584 echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
20585 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6
20586 JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.15.0"`
20587 echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
20588 echo "${ECHO_T}$JACK_CFLAGS" >&6
20590 echo "$as_me:$LINENO: checking JACK_LIBS" >&5
20591 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6
20592 JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.15.0"`
20593 echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
20594 echo "${ECHO_T}$JACK_LIBS" >&6
20598 ## If we have a custom action on failure, don't print errors, but
20599 ## do set a variable so people can do so.
20600 JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.15.0"`
20601 echo $JACK_PKG_ERRORS
20607 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20608 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20612 if test $succeeded = yes; then
20615 { { echo "$as_me:$LINENO: error: Library requirements (jack >= 0.15.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20616 echo "$as_me: error: Library requirements (jack >= 0.15.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20617 { (exit 1); exit 1; }; }
20620 if test "${JACK_SUPPORT}" = "1"; then
20622 cat >>confdefs.h <<\_ACEOF
20623 #define JACK_SUPPORT 1
20629 # Check whether --enable-alsa or --disable-alsa was given.
20630 if test "${enable_alsa+set}" = set; then
20631 enableval="$enable_alsa"
20636 if test "$with_alsa" = "yes"
20641 if test -z "$PKG_CONFIG"; then
20642 # Extract the first word of "pkg-config", so it can be a program name with args.
20643 set dummy pkg-config; ac_word=$2
20644 echo "$as_me:$LINENO: checking for $ac_word" >&5
20645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20646 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 case $PKG_CONFIG in
20651 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20655 for as_dir in $PATH
20658 test -z "$as_dir" && as_dir=.
20659 for ac_exec_ext in '' $ac_executable_extensions; do
20660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20661 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20668 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20672 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20674 if test -n "$PKG_CONFIG"; then
20675 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20676 echo "${ECHO_T}$PKG_CONFIG" >&6
20678 echo "$as_me:$LINENO: result: no" >&5
20679 echo "${ECHO_T}no" >&6
20684 if test "$PKG_CONFIG" = "no" ; then
20685 echo "*** The pkg-config script could not be found. Make sure it is"
20686 echo "*** in your path, or set the PKG_CONFIG environment variable"
20687 echo "*** to the full path to pkg-config."
20688 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20690 PKG_CONFIG_MIN_VERSION=0.9.0
20691 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20692 echo "$as_me:$LINENO: checking for alsa >= 0.0.9" >&5
20693 echo $ECHO_N "checking for alsa >= 0.0.9... $ECHO_C" >&6
20695 if $PKG_CONFIG --exists "alsa >= 0.0.9" ; then
20696 echo "$as_me:$LINENO: result: yes" >&5
20697 echo "${ECHO_T}yes" >&6
20700 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
20701 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
20702 ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.0.9"`
20703 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
20704 echo "${ECHO_T}$ALSA_CFLAGS" >&6
20706 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
20707 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
20708 ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.0.9"`
20709 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
20710 echo "${ECHO_T}$ALSA_LIBS" >&6
20714 ## If we have a custom action on failure, don't print errors, but
20715 ## do set a variable so people can do so.
20716 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.0.9"`
20717 echo $ALSA_PKG_ERRORS
20723 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20724 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20728 if test $succeeded = yes; then
20731 { { echo "$as_me:$LINENO: error: Library requirements (alsa >= 0.0.9) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20732 echo "$as_me: error: Library requirements (alsa >= 0.0.9) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20733 { (exit 1); exit 1; }; }
20736 if test "${ALSA_SUPPORT}" = "1"; then
20738 cat >>confdefs.h <<\_ACEOF
20739 #define ALSA_SUPPORT 1
20745 # Check whether --enable-ladcca or --disable-ladcca was given.
20746 if test "${enable_ladcca+set}" = set; then
20747 enableval="$enable_ladcca"
20752 if test "$with_ladcca" = "yes"
20757 if test -z "$PKG_CONFIG"; then
20758 # Extract the first word of "pkg-config", so it can be a program name with args.
20759 set dummy pkg-config; ac_word=$2
20760 echo "$as_me:$LINENO: checking for $ac_word" >&5
20761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20762 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 case $PKG_CONFIG in
20767 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20771 for as_dir in $PATH
20774 test -z "$as_dir" && as_dir=.
20775 for ac_exec_ext in '' $ac_executable_extensions; do
20776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20777 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20784 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20788 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20790 if test -n "$PKG_CONFIG"; then
20791 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20792 echo "${ECHO_T}$PKG_CONFIG" >&6
20794 echo "$as_me:$LINENO: result: no" >&5
20795 echo "${ECHO_T}no" >&6
20800 if test "$PKG_CONFIG" = "no" ; then
20801 echo "*** The pkg-config script could not be found. Make sure it is"
20802 echo "*** in your path, or set the PKG_CONFIG environment variable"
20803 echo "*** to the full path to pkg-config."
20804 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20806 PKG_CONFIG_MIN_VERSION=0.9.0
20807 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20808 echo "$as_me:$LINENO: checking for ladcca-1.0 >= 0.4.0" >&5
20809 echo $ECHO_N "checking for ladcca-1.0 >= 0.4.0... $ECHO_C" >&6
20811 if $PKG_CONFIG --exists "ladcca-1.0 >= 0.4.0" ; then
20812 echo "$as_me:$LINENO: result: yes" >&5
20813 echo "${ECHO_T}yes" >&6
20816 echo "$as_me:$LINENO: checking LADCCA_CFLAGS" >&5
20817 echo $ECHO_N "checking LADCCA_CFLAGS... $ECHO_C" >&6
20818 LADCCA_CFLAGS=`$PKG_CONFIG --cflags "ladcca-1.0 >= 0.4.0"`
20819 echo "$as_me:$LINENO: result: $LADCCA_CFLAGS" >&5
20820 echo "${ECHO_T}$LADCCA_CFLAGS" >&6
20822 echo "$as_me:$LINENO: checking LADCCA_LIBS" >&5
20823 echo $ECHO_N "checking LADCCA_LIBS... $ECHO_C" >&6
20824 LADCCA_LIBS=`$PKG_CONFIG --libs "ladcca-1.0 >= 0.4.0"`
20825 echo "$as_me:$LINENO: result: $LADCCA_LIBS" >&5
20826 echo "${ECHO_T}$LADCCA_LIBS" >&6
20830 ## If we have a custom action on failure, don't print errors, but
20831 ## do set a variable so people can do so.
20832 LADCCA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ladcca-1.0 >= 0.4.0"`
20833 echo $LADCCA_PKG_ERRORS
20839 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20840 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20844 if test $succeeded = yes; then
20847 { { echo "$as_me:$LINENO: error: Library requirements (ladcca-1.0 >= 0.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20848 echo "$as_me: error: Library requirements (ladcca-1.0 >= 0.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20849 { (exit 1); exit 1; }; }
20852 if test "${LADCCA_SUPPORT}" = "1"; then
20854 cat >>confdefs.h <<\_ACEOF
20855 #define LADCCA_SUPPORT 1
20865 # Find any Python interpreter.
20866 for ac_prog in python python2 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
20868 # Extract the first word of "$ac_prog", so it can be a program name with args.
20869 set dummy $ac_prog; ac_word=$2
20870 echo "$as_me:$LINENO: checking for $ac_word" >&5
20871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20872 if test "${ac_cv_path_PYTHON+set}" = set; then
20873 echo $ECHO_N "(cached) $ECHO_C" >&6
20877 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20881 for as_dir in $PATH
20884 test -z "$as_dir" && as_dir=.
20885 for ac_exec_ext in '' $ac_executable_extensions; do
20886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20887 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20897 PYTHON=$ac_cv_path_PYTHON
20899 if test -n "$PYTHON"; then
20900 echo "$as_me:$LINENO: result: $PYTHON" >&5
20901 echo "${ECHO_T}$PYTHON" >&6
20903 echo "$as_me:$LINENO: result: no" >&5
20904 echo "${ECHO_T}no" >&6
20907 test -n "$PYTHON" && break
20910 am_display_PYTHON=python
20914 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
20915 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
20916 if test "${am_cv_python_version+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
20921 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
20922 echo "${ECHO_T}$am_cv_python_version" >&6
20923 PYTHON_VERSION=$am_cv_python_version
20927 PYTHON_PREFIX='${prefix}'
20929 PYTHON_EXEC_PREFIX='${exec_prefix}'
20933 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
20934 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
20935 if test "${am_cv_python_platform+set}" = set; then
20936 echo $ECHO_N "(cached) $ECHO_C" >&6
20938 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
20940 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
20941 echo "${ECHO_T}$am_cv_python_platform" >&6
20942 PYTHON_PLATFORM=$am_cv_python_platform
20947 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
20948 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
20949 if test "${am_cv_python_pythondir+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20952 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
20953 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
20955 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
20956 echo "${ECHO_T}$am_cv_python_pythondir" >&6
20957 pythondir=$am_cv_python_pythondir
20961 pkgpythondir=\${pythondir}/$PACKAGE
20964 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
20965 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
20966 if test "${am_cv_python_pyexecdir+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20969 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
20970 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
20972 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
20973 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
20974 pyexecdir=$am_cv_python_pyexecdir
20978 pkgpyexecdir=\${pyexecdir}/$PACKAGE
20982 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile sounds/Makefile doc/Makefile python/Makefile python/aubio/Makefile plugins/Makefile plugins/audacity/Makefile plugins/audacity/plug-ins/Makefile plugins/wavesurfer/Makefile swig/Makefile"
20983 cat >confcache <<\_ACEOF
20984 # This file is a shell script that caches the results of configure
20985 # tests run on this system so they can be shared between configure
20986 # scripts and configure runs, see configure's option --config-cache.
20987 # It is not useful on other systems. If it contains results you don't
20988 # want to keep, you may remove or edit it.
20990 # config.status only pays attention to the cache file if you give it
20991 # the --recheck option to rerun configure.
20993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20995 # following values.
20999 # The following way of writing the cache mishandles newlines in values,
21000 # but we know of no workaround that is simple, portable, and efficient.
21001 # So, don't put newlines in cache variables' values.
21002 # Ultrix sh set writes to stderr and can't be redirected directly,
21003 # and sets the high bit in the cache file unless we assign to the vars.
21006 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21008 # `set' does not quote correctly, so add quotes (double-quote
21009 # substitution turns \\\\ into \\, and sed turns \\ into \).
21012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21015 # `set' quotes correctly as required by POSIX, so do not add quotes.
21017 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21026 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21028 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21029 if test -w $cache_file; then
21030 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21031 cat confcache >$cache_file
21033 echo "not updating unwritable cache $cache_file"
21038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21039 # Let make expand exec_prefix.
21040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21042 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21043 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21044 # trailing colons and then remove the whole line if VPATH becomes empty
21045 # (actually we leave an empty line to preserve line numbers).
21046 if test "x$srcdir" = x.; then
21047 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21048 s/:*\$(srcdir):*/:/;
21049 s/:*\${srcdir}:*/:/;
21051 s/^\([^=]*=[ ]*\):*/\1/;
21057 DEFS=-DHAVE_CONFIG_H
21061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21062 # 1. Remove the extension, and $U if already installed.
21063 ac_i=`echo "$ac_i" |
21064 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21066 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21067 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21069 LIBOBJS=$ac_libobjs
21071 LTLIBOBJS=$ac_ltlibobjs
21074 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21075 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21076 Usually this means the macro was only invoked conditionally." >&5
21077 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21078 Usually this means the macro was only invoked conditionally." >&2;}
21079 { (exit 1); exit 1; }; }
21081 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21082 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21083 Usually this means the macro was only invoked conditionally." >&5
21084 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21085 Usually this means the macro was only invoked conditionally." >&2;}
21086 { (exit 1); exit 1; }; }
21088 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21089 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21090 Usually this means the macro was only invoked conditionally." >&5
21091 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21092 Usually this means the macro was only invoked conditionally." >&2;}
21093 { (exit 1); exit 1; }; }
21096 : ${CONFIG_STATUS=./config.status}
21097 ac_clean_files_save=$ac_clean_files
21098 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21099 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21100 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21101 cat >$CONFIG_STATUS <<_ACEOF
21103 # Generated by $as_me.
21104 # Run this file to recreate the current configuration.
21105 # Compiler output produced by configure, useful for debugging
21106 # configure, is in config.log if it exists.
21109 ac_cs_recheck=false
21111 SHELL=\${CONFIG_SHELL-$SHELL}
21114 cat >>$CONFIG_STATUS <<\_ACEOF
21115 ## --------------------- ##
21116 ## M4sh Initialization. ##
21117 ## --------------------- ##
21119 # Be Bourne compatible
21120 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21123 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21124 # is contrary to our usage. Disable this feature.
21125 alias -g '${1+"$@"}'='"$@"'
21126 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21129 DUALCASE=1; export DUALCASE # for MKS sh
21131 # Support unset when possible.
21132 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21139 # Work around bugs in pre-3.0 UWIN ksh.
21140 $as_unset ENV MAIL MAILPATH
21147 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21148 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21149 LC_TELEPHONE LC_TIME
21151 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21152 eval $as_var=C; export $as_var
21158 # Required to use basename.
21159 if expr a : '\(a\)' >/dev/null 2>&1; then
21165 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21166 as_basename=basename
21172 # Name of the executable.
21173 as_me=`$as_basename "$0" ||
21174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21175 X"$0" : 'X\(//\)$' \| \
21176 X"$0" : 'X\(/\)$' \| \
21177 . : '\(.\)' 2>/dev/null ||
21179 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21180 /^X\/\(\/\/\)$/{ s//\1/; q; }
21181 /^X\/\(\/\).*/{ s//\1/; q; }
21185 # PATH needs CR, and LINENO needs CR and PATH.
21186 # Avoid depending upon Character Ranges.
21187 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21188 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21189 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21190 as_cr_digits='0123456789'
21191 as_cr_alnum=$as_cr_Letters$as_cr_digits
21193 # The user is always right.
21194 if test "${PATH_SEPARATOR+set}" != set; then
21195 echo "#! /bin/sh" >conf$$.sh
21196 echo "exit 0" >>conf$$.sh
21198 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21207 as_lineno_1=$LINENO
21208 as_lineno_2=$LINENO
21209 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21210 test "x$as_lineno_1" != "x$as_lineno_2" &&
21211 test "x$as_lineno_3" = "x$as_lineno_2" || {
21212 # Find who we are. Look in the path if we contain no path at all
21215 *[\\/]* ) as_myself=$0 ;;
21216 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21217 for as_dir in $PATH
21220 test -z "$as_dir" && as_dir=.
21221 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21226 # We did not find ourselves, most probably we were run as `sh COMMAND'
21227 # in which case we are not to be found in the path.
21228 if test "x$as_myself" = x; then
21231 if test ! -f "$as_myself"; then
21232 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21233 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21234 { (exit 1); exit 1; }; }
21236 case $CONFIG_SHELL in
21238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21239 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21242 test -z "$as_dir" && as_dir=.
21243 for as_base in sh bash ksh sh5; do
21246 if ("$as_dir/$as_base" -c '
21247 as_lineno_1=$LINENO
21248 as_lineno_2=$LINENO
21249 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21250 test "x$as_lineno_1" != "x$as_lineno_2" &&
21251 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21252 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21253 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21254 CONFIG_SHELL=$as_dir/$as_base
21255 export CONFIG_SHELL
21256 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21264 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21265 # uniformly replaced by the line number. The first 'sed' inserts a
21266 # line-number line before each line; the second 'sed' does the real
21267 # work. The second script uses 'N' to pair each line-number line
21268 # with the numbered line, and appends trailing '-' during
21269 # substitution so that $LINENO is not a special case at line end.
21270 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21271 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21272 sed '=' <$as_myself |
21277 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21280 s,^['$as_cr_digits']*\n,,
21281 ' >$as_me.lineno &&
21282 chmod +x $as_me.lineno ||
21283 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21284 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21285 { (exit 1); exit 1; }; }
21287 # Don't try to exec as it changes $[0], causing all sort of problems
21288 # (the dirname of $[0] is not the place where we might find the
21289 # original and so on. Autoconf is especially sensible to this).
21291 # Exit status is that of the last command.
21296 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21297 *c*,-n*) ECHO_N= ECHO_C='
21299 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21300 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21303 if expr a : '\(a\)' >/dev/null 2>&1; then
21309 rm -f conf$$ conf$$.exe conf$$.file
21311 if ln -s conf$$.file conf$$ 2>/dev/null; then
21312 # We could just check for DJGPP; but this test a) works b) is more generic
21313 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21314 if test -f conf$$.exe; then
21315 # Don't use ln at all; we don't have any links
21320 elif ln conf$$.file conf$$ 2>/dev/null; then
21325 rm -f conf$$ conf$$.exe conf$$.file
21327 if mkdir -p . 2>/dev/null; then
21330 test -d ./-p && rmdir ./-p
21334 as_executable_p="test -f"
21336 # Sed expression to map a string onto a valid CPP name.
21337 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21339 # Sed expression to map a string onto a valid variable name.
21340 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21344 # We need space, tab and new line, in precisely that order.
21354 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21355 # report actual input values of CONFIG_FILES etc. instead of their
21356 # values after options handling. Logging --version etc. is OK.
21360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21361 ## Running $as_me. ##
21366 This file was extended by $as_me, which was
21367 generated by GNU Autoconf 2.59. Invocation command line was
21369 CONFIG_FILES = $CONFIG_FILES
21370 CONFIG_HEADERS = $CONFIG_HEADERS
21371 CONFIG_LINKS = $CONFIG_LINKS
21372 CONFIG_COMMANDS = $CONFIG_COMMANDS
21376 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21380 # Files that config.status was made for.
21381 if test -n "$ac_config_files"; then
21382 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21385 if test -n "$ac_config_headers"; then
21386 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21389 if test -n "$ac_config_links"; then
21390 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21393 if test -n "$ac_config_commands"; then
21394 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21397 cat >>$CONFIG_STATUS <<\_ACEOF
21400 \`$as_me' instantiates files from templates according to the
21401 current configuration.
21403 Usage: $0 [OPTIONS] [FILE]...
21405 -h, --help print this help, then exit
21406 -V, --version print version number, then exit
21407 -q, --quiet do not print progress messages
21408 -d, --debug don't remove temporary files
21409 --recheck update $as_me by reconfiguring in the same conditions
21410 --file=FILE[:TEMPLATE]
21411 instantiate the configuration file FILE
21412 --header=FILE[:TEMPLATE]
21413 instantiate the configuration header FILE
21415 Configuration files:
21418 Configuration headers:
21421 Configuration commands:
21424 Report bugs to <bug-autoconf@gnu.org>."
21427 cat >>$CONFIG_STATUS <<_ACEOF
21430 configured by $0, generated by GNU Autoconf 2.59,
21431 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21433 Copyright (C) 2003 Free Software Foundation, Inc.
21434 This config.status script is free software; the Free Software Foundation
21435 gives unlimited permission to copy, distribute and modify it."
21440 cat >>$CONFIG_STATUS <<\_ACEOF
21441 # If no file are specified by the user, then we need to provide default
21442 # value. By we need to know if files were specified by the user.
21448 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21449 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21457 *) # This is not an option, so the user has probably given explicit
21460 ac_need_defaults=false;;
21464 # Handling of the options.
21466 cat >>$CONFIG_STATUS <<\_ACEOF
21467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21469 --version | --vers* | -V )
21470 echo "$ac_cs_version"; exit 0 ;;
21472 # Conflict between --help and --header
21473 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21474 Try \`$0 --help' for more information." >&5
21475 echo "$as_me: error: ambiguous option: $1
21476 Try \`$0 --help' for more information." >&2;}
21477 { (exit 1); exit 1; }; };;
21478 --help | --hel | -h )
21479 echo "$ac_cs_usage"; exit 0 ;;
21480 --debug | --d* | -d )
21482 --file | --fil | --fi | --f )
21484 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21485 ac_need_defaults=false;;
21486 --header | --heade | --head | --hea )
21488 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21489 ac_need_defaults=false;;
21490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21491 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21494 # This is an error.
21495 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21496 Try \`$0 --help' for more information." >&5
21497 echo "$as_me: error: unrecognized option: $1
21498 Try \`$0 --help' for more information." >&2;}
21499 { (exit 1); exit 1; }; } ;;
21501 *) ac_config_targets="$ac_config_targets $1" ;;
21507 ac_configure_extra_args=
21509 if $ac_cs_silent; then
21511 ac_configure_extra_args="$ac_configure_extra_args --silent"
21515 cat >>$CONFIG_STATUS <<_ACEOF
21516 if \$ac_cs_recheck; then
21517 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21518 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21523 cat >>$CONFIG_STATUS <<_ACEOF
21525 # INIT-COMMANDS section.
21528 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21534 cat >>$CONFIG_STATUS <<\_ACEOF
21535 for ac_config_target in $ac_config_targets
21537 case "$ac_config_target" in
21538 # Handling of arguments.
21539 "aubio.pc" ) CONFIG_FILES="$CONFIG_FILES aubio.pc" ;;
21540 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21541 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21542 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21543 "sounds/Makefile" ) CONFIG_FILES="$CONFIG_FILES sounds/Makefile" ;;
21544 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21545 "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
21546 "python/aubio/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/aubio/Makefile" ;;
21547 "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
21548 "plugins/audacity/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/audacity/Makefile" ;;
21549 "plugins/audacity/plug-ins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/audacity/plug-ins/Makefile" ;;
21550 "plugins/wavesurfer/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/wavesurfer/Makefile" ;;
21551 "swig/Makefile" ) CONFIG_FILES="$CONFIG_FILES swig/Makefile" ;;
21552 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21553 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21554 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21555 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21556 { (exit 1); exit 1; }; };;
21560 # If the user did not use the arguments to specify the items to instantiate,
21561 # then the envvar interface is used. Set only those that are not.
21562 # We use the long form for the default assignment because of an extremely
21563 # bizarre bug on SunOS 4.1.3.
21564 if $ac_need_defaults; then
21565 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21566 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21567 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21570 # Have a temporary directory for convenience. Make it in the build tree
21571 # simply because there is no reason to put it here, and in addition,
21572 # creating and moving files from /tmp can sometimes cause problems.
21573 # Create a temporary directory, and hook for its removal unless debugging.
21576 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21577 trap '{ (exit 1); exit 1; }' 1 2 13 15
21580 # Create a (secure) tmp directory for tmp files.
21583 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21584 test -n "$tmp" && test -d "$tmp"
21587 tmp=./confstat$$-$RANDOM
21588 (umask 077 && mkdir $tmp)
21591 echo "$me: cannot create a temporary directory in ." >&2
21592 { (exit 1); exit 1; }
21597 cat >>$CONFIG_STATUS <<_ACEOF
21600 # CONFIG_FILES section.
21603 # No need to generate the scripts if there are no CONFIG_FILES.
21604 # This happens for instance when ./config.status config.h
21605 if test -n "\$CONFIG_FILES"; then
21606 # Protect against being on the right side of a sed subst in config.status.
21607 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21608 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21609 s,@SHELL@,$SHELL,;t t
21610 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21611 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21612 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21613 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21614 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21615 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21616 s,@exec_prefix@,$exec_prefix,;t t
21617 s,@prefix@,$prefix,;t t
21618 s,@program_transform_name@,$program_transform_name,;t t
21619 s,@bindir@,$bindir,;t t
21620 s,@sbindir@,$sbindir,;t t
21621 s,@libexecdir@,$libexecdir,;t t
21622 s,@datadir@,$datadir,;t t
21623 s,@sysconfdir@,$sysconfdir,;t t
21624 s,@sharedstatedir@,$sharedstatedir,;t t
21625 s,@localstatedir@,$localstatedir,;t t
21626 s,@libdir@,$libdir,;t t
21627 s,@includedir@,$includedir,;t t
21628 s,@oldincludedir@,$oldincludedir,;t t
21629 s,@infodir@,$infodir,;t t
21630 s,@mandir@,$mandir,;t t
21631 s,@build_alias@,$build_alias,;t t
21632 s,@host_alias@,$host_alias,;t t
21633 s,@target_alias@,$target_alias,;t t
21634 s,@DEFS@,$DEFS,;t t
21635 s,@ECHO_C@,$ECHO_C,;t t
21636 s,@ECHO_N@,$ECHO_N,;t t
21637 s,@ECHO_T@,$ECHO_T,;t t
21638 s,@LIBS@,$LIBS,;t t
21639 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21640 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21641 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21642 s,@CYGPATH_W@,$CYGPATH_W,;t t
21643 s,@PACKAGE@,$PACKAGE,;t t
21644 s,@VERSION@,$VERSION,;t t
21645 s,@ACLOCAL@,$ACLOCAL,;t t
21646 s,@AUTOCONF@,$AUTOCONF,;t t
21647 s,@AUTOMAKE@,$AUTOMAKE,;t t
21648 s,@AUTOHEADER@,$AUTOHEADER,;t t
21649 s,@MAKEINFO@,$MAKEINFO,;t t
21650 s,@AMTAR@,$AMTAR,;t t
21651 s,@install_sh@,$install_sh,;t t
21652 s,@STRIP@,$STRIP,;t t
21653 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21654 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21656 s,@SET_MAKE@,$SET_MAKE,;t t
21657 s,@am__leading_dot@,$am__leading_dot,;t t
21658 s,@build@,$build,;t t
21659 s,@build_cpu@,$build_cpu,;t t
21660 s,@build_vendor@,$build_vendor,;t t
21661 s,@build_os@,$build_os,;t t
21662 s,@host@,$host,;t t
21663 s,@host_cpu@,$host_cpu,;t t
21664 s,@host_vendor@,$host_vendor,;t t
21665 s,@host_os@,$host_os,;t t
21667 s,@CFLAGS@,$CFLAGS,;t t
21668 s,@LDFLAGS@,$LDFLAGS,;t t
21669 s,@CPPFLAGS@,$CPPFLAGS,;t t
21670 s,@ac_ct_CC@,$ac_ct_CC,;t t
21671 s,@EXEEXT@,$EXEEXT,;t t
21672 s,@OBJEXT@,$OBJEXT,;t t
21673 s,@DEPDIR@,$DEPDIR,;t t
21674 s,@am__include@,$am__include,;t t
21675 s,@am__quote@,$am__quote,;t t
21676 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21677 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21678 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21679 s,@CCDEPMODE@,$CCDEPMODE,;t t
21680 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21681 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21682 s,@EGREP@,$EGREP,;t t
21683 s,@LN_S@,$LN_S,;t t
21684 s,@ECHO@,$ECHO,;t t
21686 s,@ac_ct_AR@,$ac_ct_AR,;t t
21687 s,@RANLIB@,$RANLIB,;t t
21688 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;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,@CXXCPP@,$CXXCPP,;t t
21698 s,@FFLAGS@,$FFLAGS,;t t
21699 s,@ac_ct_F77@,$ac_ct_F77,;t t
21700 s,@LIBTOOL@,$LIBTOOL,;t t
21701 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21702 s,@FFTWLIB_CFLAGS@,$FFTWLIB_CFLAGS,;t t
21703 s,@FFTWLIB_LIBS@,$FFTWLIB_LIBS,;t t
21704 s,@SNDLIB_CFLAGS@,$SNDLIB_CFLAGS,;t t
21705 s,@SNDLIB_LIBS@,$SNDLIB_LIBS,;t t
21706 s,@SAMPLERATE_CFLAGS@,$SAMPLERATE_CFLAGS,;t t
21707 s,@SAMPLERATE_LIBS@,$SAMPLERATE_LIBS,;t t
21708 s,@JACK_CFLAGS@,$JACK_CFLAGS,;t t
21709 s,@JACK_LIBS@,$JACK_LIBS,;t t
21710 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
21711 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
21712 s,@LADCCA_CFLAGS@,$LADCCA_CFLAGS,;t t
21713 s,@LADCCA_LIBS@,$LADCCA_LIBS,;t t
21714 s,@PYTHON@,$PYTHON,;t t
21715 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
21716 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
21717 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
21718 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
21719 s,@pythondir@,$pythondir,;t t
21720 s,@pkgpythondir@,$pkgpythondir,;t t
21721 s,@pyexecdir@,$pyexecdir,;t t
21722 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
21723 s,@LIBOBJS@,$LIBOBJS,;t t
21724 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21729 cat >>$CONFIG_STATUS <<\_ACEOF
21730 # Split the substitutions into bite-sized pieces for seds with
21731 # small command number limits, like on Digital OSF/1 and HP-UX.
21732 ac_max_sed_lines=48
21733 ac_sed_frag=1 # Number of current file.
21734 ac_beg=1 # First line for current file.
21735 ac_end=$ac_max_sed_lines # Line after last line for current file.
21738 while $ac_more_lines; do
21739 if test $ac_beg -gt 1; then
21740 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21742 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21744 if test ! -s $tmp/subs.frag; then
21745 ac_more_lines=false
21747 # The purpose of the label and of the branching condition is to
21748 # speed up the sed processing (if there are no `@' at all, there
21749 # is no need to browse any of the substitutions).
21750 # These are the two extra sed commands mentioned above.
21752 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21753 if test -z "$ac_sed_cmds"; then
21754 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21756 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21758 ac_sed_frag=`expr $ac_sed_frag + 1`
21760 ac_end=`expr $ac_end + $ac_max_sed_lines`
21763 if test -z "$ac_sed_cmds"; then
21766 fi # test -n "$CONFIG_FILES"
21769 cat >>$CONFIG_STATUS <<\_ACEOF
21770 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21771 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21773 - | *:- | *:-:* ) # input from stdin
21775 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21777 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21778 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21779 * ) ac_file_in=$ac_file.in ;;
21782 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21783 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21784 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21785 X"$ac_file" : 'X\(//\)[^/]' \| \
21786 X"$ac_file" : 'X\(//\)$' \| \
21787 X"$ac_file" : 'X\(/\)' \| \
21788 . : '\(.\)' 2>/dev/null ||
21790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21792 /^X\(\/\/\)$/{ s//\1/; q; }
21793 /^X\(\/\).*/{ s//\1/; q; }
21795 { if $as_mkdir_p; then
21800 while test ! -d "$as_dir"; do
21801 as_dirs="$as_dir $as_dirs"
21802 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21804 X"$as_dir" : 'X\(//\)[^/]' \| \
21805 X"$as_dir" : 'X\(//\)$' \| \
21806 X"$as_dir" : 'X\(/\)' \| \
21807 . : '\(.\)' 2>/dev/null ||
21809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21811 /^X\(\/\/\)$/{ s//\1/; q; }
21812 /^X\(\/\).*/{ s//\1/; q; }
21815 test ! -n "$as_dirs" || mkdir $as_dirs
21816 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21817 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21818 { (exit 1); exit 1; }; }; }
21822 if test "$ac_dir" != .; then
21823 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21824 # A "../" for each directory in $ac_dir_suffix.
21825 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21827 ac_dir_suffix= ac_top_builddir=
21831 .) # No --srcdir option. We are building in place.
21833 if test -z "$ac_top_builddir"; then
21836 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21838 [\\/]* | ?:[\\/]* ) # Absolute path.
21839 ac_srcdir=$srcdir$ac_dir_suffix;
21840 ac_top_srcdir=$srcdir ;;
21841 *) # Relative path.
21842 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21843 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21846 # Do not use `cd foo && pwd` to compute absolute paths, because
21847 # the directories may not exist.
21849 .) ac_abs_builddir="$ac_dir";;
21852 .) ac_abs_builddir=`pwd`;;
21853 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21854 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21857 case $ac_abs_builddir in
21858 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21860 case ${ac_top_builddir}. in
21861 .) ac_abs_top_builddir=$ac_abs_builddir;;
21862 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21863 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21866 case $ac_abs_builddir in
21867 .) ac_abs_srcdir=$ac_srcdir;;
21870 .) ac_abs_srcdir=$ac_abs_builddir;;
21871 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21872 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21875 case $ac_abs_builddir in
21876 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21878 case $ac_top_srcdir in
21879 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21880 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21881 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21887 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21888 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21891 # Let's still pretend it is `configure' which instantiates (i.e., don't
21892 # use $as_me), people would be surprised to read:
21893 # /* config.h. Generated by config.status. */
21894 if test x"$ac_file" = x-; then
21897 configure_input="$ac_file. "
21899 configure_input=$configure_input"Generated from `echo $ac_file_in |
21900 sed 's,.*/,,'` by configure."
21902 # First look for the input files in the build tree, otherwise in the
21904 ac_file_inputs=`IFS=:
21905 for f in $ac_file_in; do
21907 -) echo $tmp/stdin ;;
21909 # Absolute (can't be DOS-style, as IFS=:)
21910 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21911 echo "$as_me: error: cannot find input file: $f" >&2;}
21912 { (exit 1); exit 1; }; }
21915 if test -f "$f"; then
21918 elif test -f "$srcdir/$f"; then
21923 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21924 echo "$as_me: error: cannot find input file: $f" >&2;}
21925 { (exit 1); exit 1; }; }
21928 done` || { (exit 1); exit 1; }
21930 if test x"$ac_file" != x-; then
21931 { echo "$as_me:$LINENO: creating $ac_file" >&5
21932 echo "$as_me: creating $ac_file" >&6;}
21936 cat >>$CONFIG_STATUS <<_ACEOF
21940 cat >>$CONFIG_STATUS <<\_ACEOF
21942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21943 s,@configure_input@,$configure_input,;t t
21944 s,@srcdir@,$ac_srcdir,;t t
21945 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21946 s,@top_srcdir@,$ac_top_srcdir,;t t
21947 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21948 s,@builddir@,$ac_builddir,;t t
21949 s,@abs_builddir@,$ac_abs_builddir,;t t
21950 s,@top_builddir@,$ac_top_builddir,;t t
21951 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21952 s,@INSTALL@,$ac_INSTALL,;t t
21953 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21955 if test x"$ac_file" != x-; then
21956 mv $tmp/out $ac_file
21964 cat >>$CONFIG_STATUS <<\_ACEOF
21967 # CONFIG_HEADER section.
21970 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21971 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21973 # ac_d sets the value in "#define NAME VALUE" lines.
21974 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21975 ac_dB='[ ].*$,\1#\2'
21978 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21979 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21980 ac_uB='$,\1#\2define\3'
21984 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21987 - | *:- | *:-:* ) # input from stdin
21989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21993 * ) ac_file_in=$ac_file.in ;;
21996 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21997 echo "$as_me: creating $ac_file" >&6;}
21999 # First look for the input files in the build tree, otherwise in the
22001 ac_file_inputs=`IFS=:
22002 for f in $ac_file_in; do
22004 -) echo $tmp/stdin ;;
22006 # Absolute (can't be DOS-style, as IFS=:)
22007 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22008 echo "$as_me: error: cannot find input file: $f" >&2;}
22009 { (exit 1); exit 1; }; }
22010 # Do quote $f, to prevent DOS paths from being IFS'd.
22013 if test -f "$f"; then
22016 elif test -f "$srcdir/$f"; then
22021 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22022 echo "$as_me: error: cannot find input file: $f" >&2;}
22023 { (exit 1); exit 1; }; }
22026 done` || { (exit 1); exit 1; }
22027 # Remove the trailing spaces.
22028 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22032 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22033 # `conftest.undefs', that substitutes the proper values into
22034 # config.h.in to produce config.h. The first handles `#define'
22035 # templates, and the second `#undef' templates.
22036 # And first: Protect against being on the right side of a sed subst in
22037 # config.status. Protect against being in an unquoted here document
22038 # in config.status.
22039 rm -f conftest.defines conftest.undefs
22040 # Using a here document instead of a string reduces the quoting nightmare.
22041 # Putting comments in sed scripts is not portable.
22043 # `end' is used to avoid that the second main sed command (meant for
22044 # 0-ary CPP macros) applies to n-ary macro definitions.
22045 # See the Autoconf documentation for `clear'.
22046 cat >confdef2sed.sed <<\_ACEOF
22051 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22053 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22056 # If some macros were called several times there might be several times
22057 # the same #defines, which is useless. Nevertheless, we may not want to
22058 # sort them, since we want the *last* AC-DEFINE to be honored.
22059 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22060 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22061 rm -f confdef2sed.sed
22063 # This sed command replaces #undef with comments. This is necessary, for
22064 # example, in the case of _POSIX_SOURCE, which is predefined and required
22065 # on some systems where configure will not decide to define it.
22066 cat >>conftest.undefs <<\_ACEOF
22067 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22070 # Break up conftest.defines because some shells have a limit on the size
22071 # of here documents, and old seds have small limits too (100 cmds).
22072 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22073 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22074 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22075 echo ' :' >>$CONFIG_STATUS
22076 rm -f conftest.tail
22077 while grep . conftest.defines >/dev/null
22079 # Write a limited-size here document to $tmp/defines.sed.
22080 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22081 # Speed up: don't consider the non `#define' lines.
22082 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22083 # Work around the forget-to-reset-the-flag bug.
22084 echo 't clr' >>$CONFIG_STATUS
22085 echo ': clr' >>$CONFIG_STATUS
22086 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22088 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22090 mv $tmp/out $tmp/in
22092 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22093 rm -f conftest.defines
22094 mv conftest.tail conftest.defines
22096 rm -f conftest.defines
22097 echo ' fi # grep' >>$CONFIG_STATUS
22098 echo >>$CONFIG_STATUS
22100 # Break up conftest.undefs because some shells have a limit on the size
22101 # of here documents, and old seds have small limits too (100 cmds).
22102 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22103 rm -f conftest.tail
22104 while grep . conftest.undefs >/dev/null
22106 # Write a limited-size here document to $tmp/undefs.sed.
22107 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22108 # Speed up: don't consider the non `#undef'
22109 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22110 # Work around the forget-to-reset-the-flag bug.
22111 echo 't clr' >>$CONFIG_STATUS
22112 echo ': clr' >>$CONFIG_STATUS
22113 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22115 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22117 mv $tmp/out $tmp/in
22119 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22120 rm -f conftest.undefs
22121 mv conftest.tail conftest.undefs
22123 rm -f conftest.undefs
22125 cat >>$CONFIG_STATUS <<\_ACEOF
22126 # Let's still pretend it is `configure' which instantiates (i.e., don't
22127 # use $as_me), people would be surprised to read:
22128 # /* config.h. Generated by config.status. */
22129 if test x"$ac_file" = x-; then
22130 echo "/* Generated by configure. */" >$tmp/config.h
22132 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22134 cat $tmp/in >>$tmp/config.h
22136 if test x"$ac_file" != x-; then
22137 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22138 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22139 echo "$as_me: $ac_file is unchanged" >&6;}
22141 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22142 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22143 X"$ac_file" : 'X\(//\)[^/]' \| \
22144 X"$ac_file" : 'X\(//\)$' \| \
22145 X"$ac_file" : 'X\(/\)' \| \
22146 . : '\(.\)' 2>/dev/null ||
22148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22150 /^X\(\/\/\)$/{ s//\1/; q; }
22151 /^X\(\/\).*/{ s//\1/; q; }
22153 { if $as_mkdir_p; then
22158 while test ! -d "$as_dir"; do
22159 as_dirs="$as_dir $as_dirs"
22160 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22162 X"$as_dir" : 'X\(//\)[^/]' \| \
22163 X"$as_dir" : 'X\(//\)$' \| \
22164 X"$as_dir" : 'X\(/\)' \| \
22165 . : '\(.\)' 2>/dev/null ||
22167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22169 /^X\(\/\/\)$/{ s//\1/; q; }
22170 /^X\(\/\).*/{ s//\1/; q; }
22173 test ! -n "$as_dirs" || mkdir $as_dirs
22174 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22175 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22176 { (exit 1); exit 1; }; }; }
22179 mv $tmp/config.h $ac_file
22183 rm -f $tmp/config.h
22185 # Compute $ac_file's index in $config_headers.
22187 for _am_header in $config_headers :; do
22188 case $_am_header in
22189 $ac_file | $ac_file:* )
22192 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22195 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22196 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22197 X$ac_file : 'X\(//\)[^/]' \| \
22198 X$ac_file : 'X\(//\)$' \| \
22199 X$ac_file : 'X\(/\)' \| \
22200 . : '\(.\)' 2>/dev/null ||
22202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22204 /^X\(\/\/\)$/{ s//\1/; q; }
22205 /^X\(\/\).*/{ s//\1/; q; }
22206 s/.*/./; q'`/stamp-h$_am_stamp_count
22209 cat >>$CONFIG_STATUS <<\_ACEOF
22212 # CONFIG_COMMANDS section.
22214 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22215 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22216 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22217 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22218 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22219 X"$ac_dest" : 'X\(//\)[^/]' \| \
22220 X"$ac_dest" : 'X\(//\)$' \| \
22221 X"$ac_dest" : 'X\(/\)' \| \
22222 . : '\(.\)' 2>/dev/null ||
22224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22226 /^X\(\/\/\)$/{ s//\1/; q; }
22227 /^X\(\/\).*/{ s//\1/; q; }
22229 { if $as_mkdir_p; then
22234 while test ! -d "$as_dir"; do
22235 as_dirs="$as_dir $as_dirs"
22236 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22238 X"$as_dir" : 'X\(//\)[^/]' \| \
22239 X"$as_dir" : 'X\(//\)$' \| \
22240 X"$as_dir" : 'X\(/\)' \| \
22241 . : '\(.\)' 2>/dev/null ||
22243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22245 /^X\(\/\/\)$/{ s//\1/; q; }
22246 /^X\(\/\).*/{ s//\1/; q; }
22249 test ! -n "$as_dirs" || mkdir $as_dirs
22250 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22251 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22252 { (exit 1); exit 1; }; }; }
22256 if test "$ac_dir" != .; then
22257 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22258 # A "../" for each directory in $ac_dir_suffix.
22259 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22261 ac_dir_suffix= ac_top_builddir=
22265 .) # No --srcdir option. We are building in place.
22267 if test -z "$ac_top_builddir"; then
22270 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22272 [\\/]* | ?:[\\/]* ) # Absolute path.
22273 ac_srcdir=$srcdir$ac_dir_suffix;
22274 ac_top_srcdir=$srcdir ;;
22275 *) # Relative path.
22276 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22277 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22280 # Do not use `cd foo && pwd` to compute absolute paths, because
22281 # the directories may not exist.
22283 .) ac_abs_builddir="$ac_dir";;
22286 .) ac_abs_builddir=`pwd`;;
22287 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22288 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22291 case $ac_abs_builddir in
22292 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22294 case ${ac_top_builddir}. in
22295 .) ac_abs_top_builddir=$ac_abs_builddir;;
22296 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22297 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22300 case $ac_abs_builddir in
22301 .) ac_abs_srcdir=$ac_srcdir;;
22304 .) ac_abs_srcdir=$ac_abs_builddir;;
22305 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22306 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22309 case $ac_abs_builddir in
22310 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22312 case $ac_top_srcdir in
22313 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22314 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22315 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22320 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22321 echo "$as_me: executing $ac_dest commands" >&6;}
22323 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22324 # Strip MF so we end up with the name of the file.
22325 mf=`echo "$mf" | sed -e 's/:.*$//'`
22326 # Check whether this is an Automake generated Makefile or not.
22327 # We used to match only the files named `Makefile.in', but
22328 # some people rename them; so instead we look at the file content.
22329 # Grep'ing the first line is not enough: some people post-process
22330 # each Makefile.in and add a new line on top of each file to say so.
22331 # So let's grep whole file.
22332 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22333 dirpart=`(dirname "$mf") 2>/dev/null ||
22334 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22335 X"$mf" : 'X\(//\)[^/]' \| \
22336 X"$mf" : 'X\(//\)$' \| \
22337 X"$mf" : 'X\(/\)' \| \
22338 . : '\(.\)' 2>/dev/null ||
22340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22342 /^X\(\/\/\)$/{ s//\1/; q; }
22343 /^X\(\/\).*/{ s//\1/; q; }
22348 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22349 # Extract the definition of DEP_FILES from the Makefile without
22351 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22352 test -z "$DEPDIR" && continue
22353 # When using ansi2knr, U may be empty or an underscore; expand it
22354 U=`sed -n -e '/^U = / s///p' < "$mf"`
22355 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22356 # We invoke sed twice because it is the simplest approach to
22357 # changing $(DEPDIR) to its actual value in the expansion.
22358 for file in `sed -n -e '
22359 /^DEP_FILES = .*\\\\$/ {
22368 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22369 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22370 # Make sure the directory exists.
22371 test -f "$dirpart/$file" && continue
22372 fdir=`(dirname "$file") 2>/dev/null ||
22373 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22374 X"$file" : 'X\(//\)[^/]' \| \
22375 X"$file" : 'X\(//\)$' \| \
22376 X"$file" : 'X\(/\)' \| \
22377 . : '\(.\)' 2>/dev/null ||
22379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22381 /^X\(\/\/\)$/{ s//\1/; q; }
22382 /^X\(\/\).*/{ s//\1/; q; }
22384 { if $as_mkdir_p; then
22385 mkdir -p $dirpart/$fdir
22387 as_dir=$dirpart/$fdir
22389 while test ! -d "$as_dir"; do
22390 as_dirs="$as_dir $as_dirs"
22391 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22393 X"$as_dir" : 'X\(//\)[^/]' \| \
22394 X"$as_dir" : 'X\(//\)$' \| \
22395 X"$as_dir" : 'X\(/\)' \| \
22396 . : '\(.\)' 2>/dev/null ||
22398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22400 /^X\(\/\/\)$/{ s//\1/; q; }
22401 /^X\(\/\).*/{ s//\1/; q; }
22404 test ! -n "$as_dirs" || mkdir $as_dirs
22405 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22406 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22407 { (exit 1); exit 1; }; }; }
22409 # echo "creating $dirpart/$file"
22410 echo '# dummy' > "$dirpart/$file"
22418 cat >>$CONFIG_STATUS <<\_ACEOF
22420 { (exit 0); exit 0; }
22422 chmod +x $CONFIG_STATUS
22423 ac_clean_files=$ac_clean_files_save
22426 # configure is writing to config.log, and then calls config.status.
22427 # config.status does its own redirection, appending to config.log.
22428 # Unfortunately, on DOS this fails, as config.log is still kept open
22429 # by configure, so config.status won't be able to write to it; its
22430 # output is simply discarded. So we exec the FD to /dev/null,
22431 # effectively closing config.log, so it can be properly (re)opened and
22432 # appended to by config.status. When coming back to configure, we
22433 # need to make the FD available again.
22434 if test "$no_create" != yes; then
22436 ac_config_status_args=
22437 test "$silent" = yes &&
22438 ac_config_status_args="$ac_config_status_args --quiet"
22440 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22442 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22443 # would make configure fail if this is the last instruction.
22444 $ac_cs_success || { (exit 1); exit 1; }
22449 echo "**************************************************************"
22451 if test "${FFTW3F_SUPPORT}" = "1"; then
22452 echo "Fftw3: yes (fftw3f)"
22454 if test "${FFTW3_SUPPORT}" = "1"; then
22460 if test "${SNDLIB_SUPPORT}" = "1"; then
22461 echo "Libsndfile: yes"
22463 echo "Libsndfile: no"
22465 if test "${SAMPLERATE_SUPPORT}" = "1"; then
22466 echo "Libsamplerate: yes"
22468 echo "Libsamplerate: no"
22470 if test "${JACK_SUPPORT}" = "1"; then
22475 if test "${ALSA_SUPPORT}" = "1"; then
22476 echo "ALSA midi: yes"
22478 echo "ALSA midi: no"
22480 if test "${LADCCA_SUPPORT}" = "1"; then
22485 echo "**************************************************************"
22486 echo Configuration completed successfully. Type \'make\' to build ${PACKAGE}