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"
1917 # Check whether --enable-debug or --disable-debug was given.
1918 if test "${enable_debug+set}" = set; then
1919 enableval="$enable_debug"
1924 if test "$with_debug" = "yes"
1927 cat >>confdefs.h <<\_ACEOF
1934 # Check whether --enable-warnme or --disable-warnme was given.
1935 if test "${enable_warnme+set}" = set; then
1936 enableval="$enable_warnme"
1941 if test "$with_warnme" = "yes"
1943 ALL_CWARNINGS="-Wall -Werror -Wmissing-prototypes -Wmissing-declarations -Wno-char-subscripts -Wno-unknown-pragmas"
1944 CFLAGS="$CFLAGS $ALL_CWARNINGS"
1948 # Make sure we can run config.sub.
1949 $ac_config_sub sun4 >/dev/null 2>&1 ||
1950 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1951 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1952 { (exit 1); exit 1; }; }
1954 echo "$as_me:$LINENO: checking build system type" >&5
1955 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1956 if test "${ac_cv_build+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 ac_cv_build_alias=$build_alias
1960 test -z "$ac_cv_build_alias" &&
1961 ac_cv_build_alias=`$ac_config_guess`
1962 test -z "$ac_cv_build_alias" &&
1963 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1964 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1965 { (exit 1); exit 1; }; }
1966 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1967 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1968 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1969 { (exit 1); exit 1; }; }
1972 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1973 echo "${ECHO_T}$ac_cv_build" >&6
1975 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1976 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1977 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1980 echo "$as_me:$LINENO: checking host system type" >&5
1981 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1982 if test "${ac_cv_host+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 ac_cv_host_alias=$host_alias
1986 test -z "$ac_cv_host_alias" &&
1987 ac_cv_host_alias=$ac_cv_build_alias
1988 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1989 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1990 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1991 { (exit 1); exit 1; }; }
1994 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1995 echo "${ECHO_T}$ac_cv_host" >&6
1997 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1998 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1999 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2045 if test -z "$ac_cv_prog_CC"; then
2047 # Extract the first word of "gcc", so it can be a program name with args.
2048 set dummy gcc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CC="gcc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2087 if test -z "$CC"; then
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}cc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC="${ac_tool_prefix}cc"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2125 if test -z "$ac_cv_prog_CC"; then
2127 # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 if test -n "$ac_ct_CC"; then
2135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 ac_cv_prog_ac_ct_CC="cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2154 if test -n "$ac_ct_CC"; then
2155 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156 echo "${ECHO_T}$ac_ct_CC" >&6
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2168 if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 if test $ac_prog_rejected = yes; then
2199 # We found a bogon in the path, so make sure we never use it.
2200 set dummy $ac_cv_prog_CC
2202 if test $# != 0; then
2203 # We chose a different compiler from the bogus one.
2204 # However, it has the same basename, so the bogon will be chosen
2205 # first if we set CC to just the basename; use the full file name.
2207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2213 if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2222 if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2261 test -n "$CC" && break
2264 if test -z "$CC"; then
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 if test -n "$ac_ct_CC"; then
2276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_ac_ct_CC="$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2303 test -n "$ac_ct_CC" && break
2312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2318 # Provide some information about the compiler.
2319 echo "$as_me:$LINENO:" \
2320 "checking for C compiler version" >&5
2321 ac_compiler=`set X $ac_compile; echo $2`
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2323 (eval $ac_compiler --version </dev/null >&5) 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2328 (eval $ac_compiler -v </dev/null >&5) 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2333 (eval $ac_compiler -V </dev/null >&5) 2>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2338 cat >conftest.$ac_ext <<_ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2353 ac_clean_files_save=$ac_clean_files
2354 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2358 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2360 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2362 (eval $ac_link_default) 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; then
2366 # Find the output, starting from the most likely. This scheme is
2367 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2370 # Be careful to initialize this variable, since it used to be cached.
2371 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2373 # b.out is created by i960 compilers.
2374 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2376 test -f "$ac_file" || continue
2378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2381 # This is the source file.
2384 # We found the default executable, but exeext='' is most
2388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389 # FIXME: I believe we export ac_cv_exeext for Libtool,
2390 # but it would be cool to find out if it's true. Does anybody
2391 # maintain Libtool? --akim.
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&2;}
2406 { (exit 77); exit 77; }; }
2409 ac_exeext=$ac_cv_exeext
2410 echo "$as_me:$LINENO: result: $ac_file" >&5
2411 echo "${ECHO_T}$ac_file" >&6
2413 # Check the compiler produces executables we can run. If not, either
2414 # the compiler is broken, or we cross compile.
2415 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420 if { ac_try='./$ac_file'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2428 if test "$cross_compiling" = maybe; then
2431 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2450 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6
2453 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456 (eval $ac_link) 2>&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2461 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2462 # work properly (i.e., refer to `conftest.exe'), while it won't with
2464 for ac_file in conftest.exe conftest conftest.*; do
2465 test -f "$ac_file" || continue
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2475 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2478 See \`config.log' for more details." >&2;}
2479 { (exit 1); exit 1; }; }
2482 rm -f conftest$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2484 echo "${ECHO_T}$ac_cv_exeext" >&6
2486 rm -f conftest.$ac_ext
2487 EXEEXT=$ac_cv_exeext
2489 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2491 if test "${ac_cv_objext+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 cat >conftest.$ac_ext <<_ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2509 rm -f conftest.o conftest.obj
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; then
2515 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2535 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6
2537 OBJEXT=$ac_cv_objext
2539 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2566 grep -v '^ *+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2591 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2594 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2595 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2596 GCC=`test $ac_compiler_gnu = yes && echo yes`
2597 ac_test_CFLAGS=${CFLAGS+set}
2598 ac_save_CFLAGS=$CFLAGS
2600 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2601 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2602 if test "${ac_cv_prog_cc_g+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 cat >conftest.$ac_ext <<_ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>conftest.er1
2624 grep -v '^ *+' conftest.er1 >conftest.err
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2650 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2651 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2652 if test "$ac_test_CFLAGS" = set; then
2653 CFLAGS=$ac_save_CFLAGS
2654 elif test $ac_cv_prog_cc_g = yes; then
2655 if test "$GCC" = yes; then
2661 if test "$GCC" = yes; then
2667 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2668 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2669 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 ac_cv_prog_cc_stdc=no
2674 cat >conftest.$ac_ext <<_ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2682 #include <sys/types.h>
2683 #include <sys/stat.h>
2684 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2685 struct buf { int x; };
2686 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2687 static char *e (p, i)
2693 static char *f (char * (*g) (char **, int), char **p, ...)
2698 s = g (p, va_arg (v,int));
2703 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2704 function prototypes and stuff, but not '\xHH' hex character constants.
2705 These don't provoke an error unfortunately, instead are silently treated
2706 as 'x'. The following induces an error, until -std1 is added to get
2707 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2708 array size at least. It's necessary to write '\x00'==0 to get something
2709 that's true only with -std1. */
2710 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2712 int test (int i, double x);
2713 struct s1 {int (*f) (int a);};
2714 struct s2 {int (*f) (double a);};
2715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2721 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2726 # Don't try gcc -ansi; that turns off useful extensions and
2727 # breaks some systems' header files.
2728 # AIX -qlanglvl=ansi
2729 # Ultrix and OSF/1 -std1
2730 # HP-UX 10.20 and later -Ae
2731 # HP-UX older versions -Aa -D_HPUX_SOURCE
2732 # SVR4 -Xc -D__EXTENSIONS__
2733 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2735 CC="$ac_save_CC $ac_arg"
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 ac_cv_prog_cc_stdc=$ac_arg
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2764 rm -f conftest.err conftest.$ac_objext
2766 rm -f conftest.$ac_ext conftest.$ac_objext
2771 case "x$ac_cv_prog_cc_stdc" in
2773 echo "$as_me:$LINENO: result: none needed" >&5
2774 echo "${ECHO_T}none needed" >&6 ;;
2776 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778 CC="$CC $ac_cv_prog_cc_stdc" ;;
2781 # Some people use a C++ compiler to compile C. Since we use `exit',
2782 # in C++ we need to declare it. In case someone uses the same compiler
2783 # for both compiling C and C++ we need to have the C++ compiler decide
2784 # the declaration of exit, since it's the most demanding environment.
2785 cat >conftest.$ac_ext <<_ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>conftest.er1
2794 grep -v '^ *+' conftest.er1 >conftest.err
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 for ac_declaration in \
2813 'extern "C" void std::exit (int) throw (); using std::exit;' \
2814 'extern "C" void std::exit (int); using std::exit;' \
2815 'extern "C" void exit (int) throw ();' \
2816 'extern "C" void exit (int);' \
2819 cat >conftest.$ac_ext <<_ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; } &&
2850 { ac_try='test -s conftest.$ac_objext'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864 cat >conftest.$ac_ext <<_ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2909 if test -n "$ac_declaration"; then
2910 echo '#ifdef __cplusplus' >>confdefs.h
2911 echo $ac_declaration >>confdefs.h
2912 echo '#endif' >>confdefs.h
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 DEPDIR="${am__leading_dot}deps"
2928 ac_config_commands="$ac_config_commands depfiles"
2931 am_make=${MAKE-make}
2932 cat > confinc << 'END'
2937 # If we don't find an include directive, just comment out the code.
2938 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2939 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2943 # First try GNU make style include.
2944 echo "include confinc" > confmf
2945 # We grep out `Entering directory' and `Leaving directory'
2946 # messages which can occur if `w' ends up in MAKEFLAGS.
2947 # In particular we don't look at `^make:' because GNU make might
2948 # be invoked under some other name (usually "gmake"), in which
2949 # case it prints its new name instead of `make'.
2950 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2955 # Now try BSD make style include.
2956 if test "$am__include" = "#"; then
2957 echo '.include "confinc"' > confmf
2958 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2959 am__include=.include
2966 echo "$as_me:$LINENO: result: $_am_result" >&5
2967 echo "${ECHO_T}$_am_result" >&6
2968 rm -f confinc confmf
2970 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2971 if test "${enable_dependency_tracking+set}" = set; then
2972 enableval="$enable_dependency_tracking"
2975 if test "x$enable_dependency_tracking" != xno; then
2976 am_depcomp="$ac_aux_dir/depcomp"
2981 if test "x$enable_dependency_tracking" != xno; then
2992 depcc="$CC" am_compiler_list=
2994 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2995 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2996 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3000 # We make a subdir and do the tests there. Otherwise we can end up
3001 # making bogus files that we don't know about and never remove. For
3002 # instance it was reported that on HP-UX the gcc test will end up
3003 # making a dummy file named `D' -- because `-MD' means `put the output
3006 # Copy depcomp to subdir because otherwise we won't find it if we're
3007 # using a relative directory.
3008 cp "$am_depcomp" conftest.dir
3010 # We will build objects and dependencies in a subdirectory because
3011 # it helps to detect inapplicable dependency modes. For instance
3012 # both Tru64's cc and ICC support -MD to output dependencies as a
3013 # side effect of compilation, but ICC will put the dependencies in
3014 # the current directory while Tru64 will put them in the object
3018 am_cv_CC_dependencies_compiler_type=none
3019 if test "$am_compiler_list" = ""; then
3020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3022 for depmode in $am_compiler_list; do
3023 # Setup a source with many dependencies, because some compilers
3024 # like to wrap large dependency lists on column 80 (with \), and
3025 # we should not choose a depcomp mode which is confused by this.
3027 # We need to recreate these files for each test, as the compiler may
3028 # overwrite some of them when testing with obscure command lines.
3029 # This happens at least with the AIX C compiler.
3031 for i in 1 2 3 4 5 6; do
3032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3039 # after this tag, mechanisms are not by side-effect, so they'll
3040 # only be used when explicitly requested
3041 if test "x$enable_dependency_tracking" = xyes; then
3049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3050 # mode. It turns out that the SunPro C++ compiler does not properly
3051 # handle `-M -o', and we need to detect this.
3052 if depmode=$depmode \
3053 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3055 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3056 >/dev/null 2>conftest.err &&
3057 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3058 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3059 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3060 # icc doesn't choke on unknown options, it will just issue warnings
3061 # (even with -Werror). So we grep stderr for any message
3062 # that says an option was ignored.
3063 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3064 am_cv_CC_dependencies_compiler_type=$depmode
3073 am_cv_CC_dependencies_compiler_type=none
3077 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3078 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3079 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3084 test "x$enable_dependency_tracking" != xno \
3085 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3087 am__fastdepCC_FALSE='#'
3089 am__fastdepCC_TRUE='#'
3090 am__fastdepCC_FALSE=
3094 if test "$ac_cv_prog_cc" = "no" ; then
3095 { { echo "$as_me:$LINENO: error: *** No C compiler found !" >&5
3096 echo "$as_me: error: *** No C compiler found !" >&2;}
3097 { (exit 1); exit 1; }; }
3099 # Find a good install program. We prefer a C program (faster),
3100 # so one script is as good as another. But avoid the broken or
3101 # incompatible versions:
3102 # SysV /etc/install, /usr/sbin/install
3103 # SunOS /usr/etc/install
3104 # IRIX /sbin/install
3106 # AmigaOS /C/install, which installs bootblocks on floppy discs
3107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3110 # OS/2's system install, which has a completely different semantic
3111 # ./install, which can be erroneously created by make from ./install.sh.
3112 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3113 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3114 if test -z "$INSTALL"; then
3115 if test "${ac_cv_path_install+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 test -z "$as_dir" && as_dir=.
3123 # Account for people who put trailing slashes in PATH elements.
3125 ./ | .// | /cC/* | \
3126 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3127 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3130 # OSF1 and SCO ODT 3.0 have their own names for install.
3131 # Don't use installbsd from OSF since it installs stuff as root
3133 for ac_prog in ginstall scoinst install; do
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3136 if test $ac_prog = install &&
3137 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138 # AIX install. It has an incompatible calling convention.
3140 elif test $ac_prog = install &&
3141 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3142 # program-specific install script used by HP pwplus--don't use.
3145 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3157 if test "${ac_cv_path_install+set}" = set; then
3158 INSTALL=$ac_cv_path_install
3160 # As a last resort, use the slow shell script. We don't cache a
3161 # path for INSTALL within a source directory, because that will
3162 # break other packages using the cache if that directory is
3163 # removed, or if the path is relative.
3164 INSTALL=$ac_install_sh
3167 echo "$as_me:$LINENO: result: $INSTALL" >&5
3168 echo "${ECHO_T}$INSTALL" >&6
3170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3171 # It thinks the first close brace ends the variable substitution.
3172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3181 # Check whether --enable-shared or --disable-shared was given.
3182 if test "${enable_shared+set}" = set; then
3183 enableval="$enable_shared"
3184 p=${PACKAGE-default}
3186 yes) enable_shared=yes ;;
3187 no) enable_shared=no ;;
3190 # Look at the argument we got. We use all the common list separators.
3191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3192 for pkg in $enableval; do
3194 if test "X$pkg" = "X$p"; then
3205 # Check whether --enable-static or --disable-static was given.
3206 if test "${enable_static+set}" = set; then
3207 enableval="$enable_static"
3208 p=${PACKAGE-default}
3210 yes) enable_static=yes ;;
3211 no) enable_static=no ;;
3214 # Look at the argument we got. We use all the common list separators.
3215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3216 for pkg in $enableval; do
3218 if test "X$pkg" = "X$p"; then
3229 # Check whether --enable-fast-install or --disable-fast-install was given.
3230 if test "${enable_fast_install+set}" = set; then
3231 enableval="$enable_fast_install"
3232 p=${PACKAGE-default}
3234 yes) enable_fast_install=yes ;;
3235 no) enable_fast_install=no ;;
3237 enable_fast_install=no
3238 # Look at the argument we got. We use all the common list separators.
3239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3240 for pkg in $enableval; do
3242 if test "X$pkg" = "X$p"; then
3243 enable_fast_install=yes
3250 enable_fast_install=yes
3253 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3254 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3255 if test "${lt_cv_path_SED+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 # Loop through the user's path and test for sed and gsed.
3259 # Then use that list of sed's as ones to test for truncation.
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 test -z "$as_dir" && as_dir=.
3265 for lt_ac_prog in sed gsed; do
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3268 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3275 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3276 # along with /bin/sed that truncates output.
3277 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3278 test ! -f $lt_ac_sed && break
3279 cat /dev/null > conftest.in
3281 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3282 # Check for GNU sed and select it if it is found.
3283 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3284 lt_cv_path_SED=$lt_ac_sed
3288 cat conftest.in conftest.in >conftest.tmp
3289 mv conftest.tmp conftest.in
3290 cp conftest.in conftest.nl
3292 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3293 cmp -s conftest.out conftest.nl || break
3294 # 10000 chars as input seems more than enough
3295 test $lt_ac_count -gt 10 && break
3296 lt_ac_count=`expr $lt_ac_count + 1`
3297 if test $lt_ac_count -gt $lt_ac_max; then
3298 lt_ac_max=$lt_ac_count
3299 lt_cv_path_SED=$lt_ac_sed
3307 echo "$as_me:$LINENO: result: $SED" >&5
3308 echo "${ECHO_T}$SED" >&6
3310 echo "$as_me:$LINENO: checking for egrep" >&5
3311 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3312 if test "${ac_cv_prog_egrep+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3316 then ac_cv_prog_egrep='grep -E'
3317 else ac_cv_prog_egrep='egrep'
3320 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3321 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3322 EGREP=$ac_cv_prog_egrep
3326 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3327 if test "${with_gnu_ld+set}" = set; then
3328 withval="$with_gnu_ld"
3329 test "$withval" = no || with_gnu_ld=yes
3334 if test "$GCC" = yes; then
3335 # Check if gcc -print-prog-name=ld gives a path.
3336 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3337 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3340 # gcc leaves a trailing carriage return which upsets mingw
3341 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3343 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3346 # Accept absolute paths.
3348 re_direlt='/[^/][^/]*/\.\./'
3349 # Canonicalize the pathname of ld
3350 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3351 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3352 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3354 test -z "$LD" && LD="$ac_prog"
3357 # If it fails, then pretend we aren't using GCC.
3361 # If it is relative, then search for the first ld in PATH.
3365 elif test "$with_gnu_ld" = yes; then
3366 echo "$as_me:$LINENO: checking for GNU ld" >&5
3367 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3369 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3370 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3372 if test "${lt_cv_path_LD+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if test -z "$LD"; then
3376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3377 for ac_dir in $PATH; do
3379 test -z "$ac_dir" && ac_dir=.
3380 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3381 lt_cv_path_LD="$ac_dir/$ac_prog"
3382 # Check to see if the program is GNU ld. I'd rather use --version,
3383 # but apparently some GNU ld's only accept -v.
3384 # Break only if it was the GNU/non-GNU ld that we prefer.
3385 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3386 *GNU* | *'with BFD'*)
3387 test "$with_gnu_ld" != no && break
3390 test "$with_gnu_ld" != yes && break
3397 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3402 if test -n "$LD"; then
3403 echo "$as_me:$LINENO: result: $LD" >&5
3404 echo "${ECHO_T}$LD" >&6
3406 echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3409 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3410 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3411 { (exit 1); exit 1; }; }
3412 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3413 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3414 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3418 case `$LD -v 2>&1 </dev/null` in
3419 *GNU* | *'with BFD'*)
3420 lt_cv_prog_gnu_ld=yes
3423 lt_cv_prog_gnu_ld=no
3427 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3428 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3429 with_gnu_ld=$lt_cv_prog_gnu_ld
3432 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3433 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3434 if test "${lt_cv_ld_reload_flag+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 lt_cv_ld_reload_flag='-r'
3439 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3440 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3441 reload_flag=$lt_cv_ld_reload_flag
3442 case $reload_flag in
3444 *) reload_flag=" $reload_flag" ;;
3446 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3448 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3449 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3450 if test "${lt_cv_path_NM+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 if test -n "$NM"; then
3454 # Let the user override the test.
3457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3458 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3460 test -z "$ac_dir" && ac_dir=.
3461 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3462 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3463 # Check to see if the nm accepts a BSD-compat flag.
3464 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3465 # nm: unknown option "B" ignored
3466 # Tru64's nm complains that /dev/null is an invalid object file
3467 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3468 */dev/null* | *'Invalid file or object type'*)
3469 lt_cv_path_NM="$tmp_nm -B"
3473 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3475 lt_cv_path_NM="$tmp_nm -p"
3479 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3480 continue # so that we can try to find one that supports BSD flags
3487 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3490 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3491 echo "${ECHO_T}$lt_cv_path_NM" >&6
3494 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3495 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3497 if test "$LN_S" = "ln -s"; then
3498 echo "$as_me:$LINENO: result: yes" >&5
3499 echo "${ECHO_T}yes" >&6
3501 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3502 echo "${ECHO_T}no, using $LN_S" >&6
3505 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3506 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3507 if test "${lt_cv_deplibs_check_method+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 lt_cv_file_magic_cmd='$MAGIC_CMD'
3511 lt_cv_file_magic_test_file=
3512 lt_cv_deplibs_check_method='unknown'
3513 # Need to set the preceding variable on all platforms that support
3514 # interlibrary dependencies.
3515 # 'none' -- dependencies not supported.
3516 # `unknown' -- same as none, but documents that we really don't know.
3517 # 'pass_all' -- all dependencies passed with no checks.
3518 # 'test_compile' -- check by making test program.
3519 # 'file_magic [[regex]]' -- check by looking for files in library path
3520 # which responds to the $file_magic_cmd with a given extended regex.
3521 # If you have `file' or equivalent on your system and you're not sure
3522 # whether `pass_all' will *always* work, you probably want this one.
3526 lt_cv_deplibs_check_method=pass_all
3530 lt_cv_deplibs_check_method=pass_all
3534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3535 lt_cv_file_magic_cmd='/usr/bin/file -L'
3536 lt_cv_file_magic_test_file=/shlib/libc.so
3540 # func_win32_libid is a shell function defined in ltmain.sh
3541 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3542 lt_cv_file_magic_cmd='func_win32_libid'
3546 # Base MSYS/MinGW do not provide the 'file' command needed by
3547 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3548 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3549 lt_cv_file_magic_cmd='$OBJDUMP -f'
3552 darwin* | rhapsody*)
3553 lt_cv_deplibs_check_method=pass_all
3556 freebsd* | kfreebsd*-gnu)
3557 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3560 # Not sure whether the presence of OpenBSD here was a mistake.
3561 # Let's accept both of them until this is cleared up.
3562 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3563 lt_cv_file_magic_cmd=/usr/bin/file
3564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3568 lt_cv_deplibs_check_method=pass_all
3573 lt_cv_deplibs_check_method=pass_all
3576 hpux10.20* | hpux11*)
3577 lt_cv_file_magic_cmd=/usr/bin/file
3580 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3581 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3584 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]'
3585 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3589 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3594 irix5* | irix6* | nonstopux*)
3596 *-32|*"-32 ") libmagic=32-bit;;
3597 *-n32|*"-n32 ") libmagic=N32;;
3598 *-64|*"-64 ") libmagic=64-bit;;
3599 *) libmagic=never-match;;
3601 lt_cv_deplibs_check_method=pass_all
3604 # This must be Linux ELF.
3606 lt_cv_deplibs_check_method=pass_all
3609 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3610 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3619 lt_cv_file_magic_cmd=/usr/bin/file
3620 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3624 lt_cv_deplibs_check_method=unknown
3628 lt_cv_file_magic_cmd=/usr/bin/file
3629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3630 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3633 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3637 osf3* | osf4* | osf5*)
3638 lt_cv_deplibs_check_method=pass_all
3642 lt_cv_deplibs_check_method=pass_all
3646 lt_cv_deplibs_check_method=pass_all
3649 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3650 case $host_vendor in
3652 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]'
3653 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3656 lt_cv_deplibs_check_method=pass_all
3659 lt_cv_file_magic_cmd='/bin/file'
3660 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3663 lt_cv_file_magic_cmd='/bin/file'
3664 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3665 lt_cv_file_magic_test_file=/lib/libc.so
3668 lt_cv_deplibs_check_method=pass_all
3673 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3674 lt_cv_deplibs_check_method=pass_all
3679 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3680 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3681 file_magic_cmd=$lt_cv_file_magic_cmd
3682 deplibs_check_method=$lt_cv_deplibs_check_method
3683 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3688 # If no C compiler was specified, use CC.
3691 # Allow CC to be a program name with arguments.
3695 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3696 if test "${enable_libtool_lock+set}" = set; then
3697 enableval="$enable_libtool_lock"
3700 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3702 # Some flags need to be propagated to the compiler or linker for good
3706 # Find out which ABI we are using.
3707 echo 'int i;' > conftest.$ac_ext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709 (eval $ac_compile) 2>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; then
3713 case `/usr/bin/file conftest.$ac_objext` in
3725 # Find out which ABI we are using.
3726 echo '#line 3726 "configure"' > conftest.$ac_ext
3727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728 (eval $ac_compile) 2>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; then
3732 if test "$lt_cv_prog_gnu_ld" = yes; then
3733 case `/usr/bin/file conftest.$ac_objext` in
3735 LD="${LD-ld} -melf32bsmip"
3738 LD="${LD-ld} -melf32bmipn32"
3741 LD="${LD-ld} -melf64bmip"
3745 case `/usr/bin/file conftest.$ac_objext` in
3761 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3762 # Find out which ABI we are using.
3763 echo 'int i;' > conftest.$ac_ext
3764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3765 (eval $ac_compile) 2>&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; then
3769 case "`/usr/bin/file conftest.o`" in
3773 LD="${LD-ld} -m elf_i386"
3775 ppc64-*linux*|powerpc64-*linux*)
3776 LD="${LD-ld} -m elf32ppclinux"
3779 LD="${LD-ld} -m elf_s390"
3782 LD="${LD-ld} -m elf32_sparc"
3789 LD="${LD-ld} -m elf_x86_64"
3791 ppc*-*linux*|powerpc*-*linux*)
3792 LD="${LD-ld} -m elf64ppc"
3795 LD="${LD-ld} -m elf64_s390"
3798 LD="${LD-ld} -m elf64_sparc"
3808 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3809 SAVE_CFLAGS="$CFLAGS"
3810 CFLAGS="$CFLAGS -belf"
3811 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3812 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3813 if test "${lt_cv_cc_needs_belf+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822 cat >conftest.$ac_ext <<_ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3837 rm -f conftest.$ac_objext conftest$ac_exeext
3838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3839 (eval $ac_link) 2>conftest.er1
3841 grep -v '^ *+' conftest.er1 >conftest.err
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; } &&
3852 { ac_try='test -s conftest$ac_exeext'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; }; then
3858 lt_cv_cc_needs_belf=yes
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 lt_cv_cc_needs_belf=no
3865 rm -f conftest.err conftest.$ac_objext \
3866 conftest$ac_exeext conftest.$ac_ext
3868 ac_cpp='$CPP $CPPFLAGS'
3869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3875 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3876 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3877 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3878 CFLAGS="$SAVE_CFLAGS"
3884 need_locks="$enable_libtool_lock"
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3893 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3894 # On Suns, sometimes $CPP names a directory.
3895 if test -n "$CPP" && test -d "$CPP"; then
3898 if test -z "$CPP"; then
3899 if test "${ac_cv_prog_CPP+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 # Double quotes because CPP needs to be expanded
3903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3906 for ac_c_preproc_warn_flag in '' yes
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3921 # include <limits.h>
3923 # include <assert.h>
3927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3930 grep -v '^ *+' conftest.er1 >conftest.err
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } >/dev/null; then
3935 if test -s conftest.err; then
3936 ac_cpp_err=$ac_c_preproc_warn_flag
3937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3944 if test -z "$ac_cpp_err"; then
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 # Broken: fails on valid input.
3953 rm -f conftest.err conftest.$ac_ext
3955 # OK, works on sane cases. Now check whether non-existent headers
3956 # can be detected and how.
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #include <ac_nonexistent.h>
3965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3968 grep -v '^ *+' conftest.er1 >conftest.err
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } >/dev/null; then
3973 if test -s conftest.err; then
3974 ac_cpp_err=$ac_c_preproc_warn_flag
3975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3982 if test -z "$ac_cpp_err"; then
3983 # Broken: success on invalid input.
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 # Passes both tests.
3993 rm -f conftest.err conftest.$ac_ext
3996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997 rm -f conftest.err conftest.$ac_ext
3998 if $ac_preproc_ok; then
4010 echo "$as_me:$LINENO: result: $CPP" >&5
4011 echo "${ECHO_T}$CPP" >&6
4013 for ac_c_preproc_warn_flag in '' yes
4015 # Use a header file that comes with gcc, so configuring glibc
4016 # with a fresh cross-compiler works.
4017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018 # <limits.h> exists even on freestanding compilers.
4019 # On the NeXT, cc -E runs the code through the compiler's parser,
4020 # not just through cpp. "Syntax error" is here to catch this case.
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4028 # include <limits.h>
4030 # include <assert.h>
4034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } >/dev/null; then
4042 if test -s conftest.err; then
4043 ac_cpp_err=$ac_c_preproc_warn_flag
4044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4051 if test -z "$ac_cpp_err"; then
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 # Broken: fails on valid input.
4060 rm -f conftest.err conftest.$ac_ext
4062 # OK, works on sane cases. Now check whether non-existent headers
4063 # can be detected and how.
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <ac_nonexistent.h>
4072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } >/dev/null; then
4080 if test -s conftest.err; then
4081 ac_cpp_err=$ac_c_preproc_warn_flag
4082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4089 if test -z "$ac_cpp_err"; then
4090 # Broken: success on invalid input.
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 # Passes both tests.
4100 rm -f conftest.err conftest.$ac_ext
4103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104 rm -f conftest.err conftest.$ac_ext
4105 if $ac_preproc_ok; then
4108 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4109 See \`config.log' for more details." >&5
4110 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4111 See \`config.log' for more details." >&2;}
4112 { (exit 1); exit 1; }; }
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4124 if test "${ac_cv_header_stdc+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 cat >conftest.$ac_ext <<_ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_cv_header_stdc=yes
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 ac_cv_header_stdc=no
4174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 if test $ac_cv_header_stdc = yes; then
4177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4178 cat >conftest.$ac_ext <<_ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 $EGREP "memchr" >/dev/null 2>&1; then
4191 ac_cv_header_stdc=no
4197 if test $ac_cv_header_stdc = yes; then
4198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 $EGREP "free" >/dev/null 2>&1; then
4212 ac_cv_header_stdc=no
4218 if test $ac_cv_header_stdc = yes; then
4219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4220 if test "$cross_compiling" = yes; then
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4230 #if ((' ' & 0x0FF) == 0x020)
4231 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4232 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4234 # define ISLOWER(c) \
4235 (('a' <= (c) && (c) <= 'i') \
4236 || ('j' <= (c) && (c) <= 'r') \
4237 || ('s' <= (c) && (c) <= 'z'))
4238 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4246 for (i = 0; i < 256; i++)
4247 if (XOR (islower (i), ISLOWER (i))
4248 || toupper (i) != TOUPPER (i))
4253 rm -f conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255 (eval $ac_link) 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4266 echo "$as_me: program exited with status $ac_status" >&5
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4271 ac_cv_header_stdc=no
4273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4277 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4278 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4279 if test $ac_cv_header_stdc = yes; then
4281 cat >>confdefs.h <<\_ACEOF
4282 #define STDC_HEADERS 1
4287 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4297 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4298 inttypes.h stdint.h unistd.h
4300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4301 echo "$as_me:$LINENO: checking for $ac_header" >&5
4302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 cat >conftest.$ac_ext <<_ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 $ac_includes_default
4314 #include <$ac_header>
4316 rm -f conftest.$ac_objext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4318 (eval $ac_compile) 2>conftest.er1
4320 grep -v '^ *+' conftest.er1 >conftest.err
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 eval "$as_ac_Header=yes"
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 eval "$as_ac_Header=no"
4344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4349 cat >>confdefs.h <<_ACEOF
4350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4359 for ac_header in dlfcn.h
4361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4363 echo "$as_me:$LINENO: checking for $ac_header" >&5
4364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4371 # Is the header compilable?
4372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4374 cat >conftest.$ac_ext <<_ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 $ac_includes_default
4381 #include <$ac_header>
4383 rm -f conftest.$ac_objext
4384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385 (eval $ac_compile) 2>conftest.er1
4387 grep -v '^ *+' conftest.er1 >conftest.err
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_header_compiler=yes
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 ac_header_compiler=no
4411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4413 echo "${ECHO_T}$ac_header_compiler" >&6
4415 # Is the header present?
4416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #include <$ac_header>
4426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4429 grep -v '^ *+' conftest.er1 >conftest.err
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } >/dev/null; then
4434 if test -s conftest.err; then
4435 ac_cpp_err=$ac_c_preproc_warn_flag
4436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4443 if test -z "$ac_cpp_err"; then
4444 ac_header_preproc=yes
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4449 ac_header_preproc=no
4451 rm -f conftest.err conftest.$ac_ext
4452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4453 echo "${ECHO_T}$ac_header_preproc" >&6
4455 # So? What about this header?
4456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4462 ac_header_preproc=yes
4465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4479 ## ------------------------------------------ ##
4480 ## Report this to the AC_PACKAGE_NAME lists. ##
4481 ## ------------------------------------------ ##
4484 sed "s/^/$as_me: WARNING: /" >&2
4487 echo "$as_me:$LINENO: checking for $ac_header" >&5
4488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 eval "$as_ac_Header=\$ac_header_preproc"
4494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4499 cat >>confdefs.h <<_ACEOF
4500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4508 ac_cpp='$CXXCPP $CPPFLAGS'
4509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4512 if test -n "$ac_tool_prefix"; then
4513 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4517 echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519 if test "${ac_cv_prog_CXX+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 if test -n "$CXX"; then
4523 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 if test -n "$CXX"; then
4543 echo "$as_me:$LINENO: result: $CXX" >&5
4544 echo "${ECHO_T}$CXX" >&6
4546 echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6
4550 test -n "$CXX" && break
4553 if test -z "$CXX"; then
4555 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4557 # Extract the first word of "$ac_prog", so it can be a program name with args.
4558 set dummy $ac_prog; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 if test -n "$ac_ct_CXX"; then
4565 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_ac_ct_CXX="$ac_prog"
4575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4584 if test -n "$ac_ct_CXX"; then
4585 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4586 echo "${ECHO_T}$ac_ct_CXX" >&6
4588 echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4592 test -n "$ac_ct_CXX" && break
4594 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4600 # Provide some information about the compiler.
4601 echo "$as_me:$LINENO:" \
4602 "checking for C++ compiler version" >&5
4603 ac_compiler=`set X $ac_compile; echo $2`
4604 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4605 (eval $ac_compiler --version </dev/null >&5) 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }
4609 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4610 (eval $ac_compiler -v </dev/null >&5) 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }
4614 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4615 (eval $ac_compiler -V </dev/null >&5) 2>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }
4620 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4621 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4622 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 cat >conftest.$ac_ext <<_ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4643 rm -f conftest.$ac_objext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>conftest.er1
4647 grep -v '^ *+' conftest.er1 >conftest.err
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; } &&
4658 { ac_try='test -s conftest.$ac_objext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4672 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4675 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4676 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4677 GXX=`test $ac_compiler_gnu = yes && echo yes`
4678 ac_test_CXXFLAGS=${CXXFLAGS+set}
4679 ac_save_CXXFLAGS=$CXXFLAGS
4681 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4682 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4683 if test "${ac_cv_prog_cxx_g+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 cat >conftest.$ac_ext <<_ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4701 rm -f conftest.$ac_objext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>conftest.er1
4705 grep -v '^ *+' conftest.er1 >conftest.err
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try='test -s conftest.$ac_objext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 ac_cv_prog_cxx_g=yes
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4731 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4732 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4733 if test "$ac_test_CXXFLAGS" = set; then
4734 CXXFLAGS=$ac_save_CXXFLAGS
4735 elif test $ac_cv_prog_cxx_g = yes; then
4736 if test "$GXX" = yes; then
4742 if test "$GXX" = yes; then
4748 for ac_declaration in \
4750 'extern "C" void std::exit (int) throw (); using std::exit;' \
4751 'extern "C" void std::exit (int); using std::exit;' \
4752 'extern "C" void exit (int) throw ();' \
4753 'extern "C" void exit (int);' \
4756 cat >conftest.$ac_ext <<_ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>conftest.er1
4776 grep -v '^ *+' conftest.er1 >conftest.err
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; } &&
4787 { ac_try='test -s conftest.$ac_objext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4846 if test -n "$ac_declaration"; then
4847 echo '#ifdef __cplusplus' >>confdefs.h
4848 echo $ac_declaration >>confdefs.h
4849 echo '#endif' >>confdefs.h
4853 ac_cpp='$CXXCPP $CPPFLAGS'
4854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4858 depcc="$CXX" am_compiler_list=
4860 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4861 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4862 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4866 # We make a subdir and do the tests there. Otherwise we can end up
4867 # making bogus files that we don't know about and never remove. For
4868 # instance it was reported that on HP-UX the gcc test will end up
4869 # making a dummy file named `D' -- because `-MD' means `put the output
4872 # Copy depcomp to subdir because otherwise we won't find it if we're
4873 # using a relative directory.
4874 cp "$am_depcomp" conftest.dir
4876 # We will build objects and dependencies in a subdirectory because
4877 # it helps to detect inapplicable dependency modes. For instance
4878 # both Tru64's cc and ICC support -MD to output dependencies as a
4879 # side effect of compilation, but ICC will put the dependencies in
4880 # the current directory while Tru64 will put them in the object
4884 am_cv_CXX_dependencies_compiler_type=none
4885 if test "$am_compiler_list" = ""; then
4886 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4888 for depmode in $am_compiler_list; do
4889 # Setup a source with many dependencies, because some compilers
4890 # like to wrap large dependency lists on column 80 (with \), and
4891 # we should not choose a depcomp mode which is confused by this.
4893 # We need to recreate these files for each test, as the compiler may
4894 # overwrite some of them when testing with obscure command lines.
4895 # This happens at least with the AIX C compiler.
4897 for i in 1 2 3 4 5 6; do
4898 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4901 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4905 # after this tag, mechanisms are not by side-effect, so they'll
4906 # only be used when explicitly requested
4907 if test "x$enable_dependency_tracking" = xyes; then
4915 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4916 # mode. It turns out that the SunPro C++ compiler does not properly
4917 # handle `-M -o', and we need to detect this.
4918 if depmode=$depmode \
4919 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4921 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4922 >/dev/null 2>conftest.err &&
4923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4926 # icc doesn't choke on unknown options, it will just issue warnings
4927 # (even with -Werror). So we grep stderr for any message
4928 # that says an option was ignored.
4929 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4930 am_cv_CXX_dependencies_compiler_type=$depmode
4939 am_cv_CXX_dependencies_compiler_type=none
4943 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4944 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4945 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4950 test "x$enable_dependency_tracking" != xno \
4951 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4952 am__fastdepCXX_TRUE=
4953 am__fastdepCXX_FALSE='#'
4955 am__fastdepCXX_TRUE='#'
4956 am__fastdepCXX_FALSE=
4961 ac_cpp='$CXXCPP $CPPFLAGS'
4962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4966 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4967 if test -z "$CXXCPP"; then
4968 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 # Double quotes because CXXCPP needs to be expanded
4972 for CXXCPP in "$CXX -E" "/lib/cpp"
4975 for ac_cxx_preproc_warn_flag in '' yes
4977 # Use a header file that comes with gcc, so configuring glibc
4978 # with a fresh cross-compiler works.
4979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980 # <limits.h> exists even on freestanding compilers.
4981 # On the NeXT, cc -E runs the code through the compiler's parser,
4982 # not just through cpp. "Syntax error" is here to catch this case.
4983 cat >conftest.$ac_ext <<_ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4990 # include <limits.h>
4992 # include <assert.h>
4996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4999 grep -v '^ *+' conftest.er1 >conftest.err
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } >/dev/null; then
5004 if test -s conftest.err; then
5005 ac_cpp_err=$ac_cxx_preproc_warn_flag
5006 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5013 if test -z "$ac_cpp_err"; then
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5019 # Broken: fails on valid input.
5022 rm -f conftest.err conftest.$ac_ext
5024 # OK, works on sane cases. Now check whether non-existent headers
5025 # can be detected and how.
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032 #include <ac_nonexistent.h>
5034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5037 grep -v '^ *+' conftest.er1 >conftest.err
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } >/dev/null; then
5042 if test -s conftest.err; then
5043 ac_cpp_err=$ac_cxx_preproc_warn_flag
5044 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5051 if test -z "$ac_cpp_err"; then
5052 # Broken: success on invalid input.
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5058 # Passes both tests.
5062 rm -f conftest.err conftest.$ac_ext
5065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5066 rm -f conftest.err conftest.$ac_ext
5067 if $ac_preproc_ok; then
5072 ac_cv_prog_CXXCPP=$CXXCPP
5075 CXXCPP=$ac_cv_prog_CXXCPP
5077 ac_cv_prog_CXXCPP=$CXXCPP
5079 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5080 echo "${ECHO_T}$CXXCPP" >&6
5082 for ac_cxx_preproc_warn_flag in '' yes
5084 # Use a header file that comes with gcc, so configuring glibc
5085 # with a fresh cross-compiler works.
5086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5087 # <limits.h> exists even on freestanding compilers.
5088 # On the NeXT, cc -E runs the code through the compiler's parser,
5089 # not just through cpp. "Syntax error" is here to catch this case.
5090 cat >conftest.$ac_ext <<_ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5097 # include <limits.h>
5099 # include <assert.h>
5103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } >/dev/null; then
5111 if test -s conftest.err; then
5112 ac_cpp_err=$ac_cxx_preproc_warn_flag
5113 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5120 if test -z "$ac_cpp_err"; then
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5126 # Broken: fails on valid input.
5129 rm -f conftest.err conftest.$ac_ext
5131 # OK, works on sane cases. Now check whether non-existent headers
5132 # can be detected and how.
5133 cat >conftest.$ac_ext <<_ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 #include <ac_nonexistent.h>
5141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5144 grep -v '^ *+' conftest.er1 >conftest.err
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } >/dev/null; then
5149 if test -s conftest.err; then
5150 ac_cpp_err=$ac_cxx_preproc_warn_flag
5151 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5158 if test -z "$ac_cpp_err"; then
5159 # Broken: success on invalid input.
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5165 # Passes both tests.
5169 rm -f conftest.err conftest.$ac_ext
5172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5173 rm -f conftest.err conftest.$ac_ext
5174 if $ac_preproc_ok; then
5177 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5178 See \`config.log' for more details." >&5
5179 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5180 See \`config.log' for more details." >&2;}
5181 { (exit 1); exit 1; }; }
5185 ac_cpp='$CXXCPP $CPPFLAGS'
5186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5192 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5193 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5195 if test -n "$ac_tool_prefix"; then
5196 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5200 echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202 if test "${ac_cv_prog_F77+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 if test -n "$F77"; then
5206 ac_cv_prog_F77="$F77" # Let the user override the test.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 if test -n "$F77"; then
5226 echo "$as_me:$LINENO: result: $F77" >&5
5227 echo "${ECHO_T}$F77" >&6
5229 echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5233 test -n "$F77" && break
5236 if test -z "$F77"; then
5238 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5240 # Extract the first word of "$ac_prog", so it can be a program name with args.
5241 set dummy $ac_prog; ac_word=$2
5242 echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 if test -n "$ac_ct_F77"; then
5248 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_ac_ct_F77="$ac_prog"
5258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5267 if test -n "$ac_ct_F77"; then
5268 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5269 echo "${ECHO_T}$ac_ct_F77" >&6
5271 echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6
5275 test -n "$ac_ct_F77" && break
5282 # Provide some information about the compiler.
5283 echo "$as_me:5283:" \
5284 "checking for Fortran 77 compiler version" >&5
5285 ac_compiler=`set X $ac_compile; echo $2`
5286 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5287 (eval $ac_compiler --version </dev/null >&5) 2>&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }
5291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5292 (eval $ac_compiler -v </dev/null >&5) 2>&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }
5296 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5297 (eval $ac_compiler -V </dev/null >&5) 2>&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }
5303 # If we don't use `.F' as extension, the preprocessor is not run on the
5304 # input file. (Note that this only needs to work for GNU compilers.)
5307 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5308 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5309 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 cat >conftest.$ac_ext <<_ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>conftest.er1
5324 grep -v '^ *+' conftest.er1 >conftest.err
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; } &&
5335 { ac_try='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5349 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5352 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5353 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5355 ac_test_FFLAGS=${FFLAGS+set}
5356 ac_save_FFLAGS=$FFLAGS
5358 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5359 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5360 if test "${ac_cv_prog_f77_g+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 cat >conftest.$ac_ext <<_ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5373 grep -v '^ *+' conftest.er1 >conftest.err
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_cv_prog_f77_g=yes
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5400 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5401 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5402 if test "$ac_test_FFLAGS" = set; then
5403 FFLAGS=$ac_save_FFLAGS
5404 elif test $ac_cv_prog_f77_g = yes; then
5405 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5411 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5418 G77=`test $ac_compiler_gnu = yes && echo yes`
5420 ac_cpp='$CPP $CPPFLAGS'
5421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5429 # find the maximum length of command line arguments
5430 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5431 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5432 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 # On DJGPP, this test can blow up pretty badly due to problems in libc
5441 # (any single argument exceeding 2000 bytes causes a buffer overrun
5442 # during glob expansion). Even if it were fixed, the result of this
5443 # check would be larger than it should be.
5444 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5448 # Under GNU Hurd, this test is not required because there is
5449 # no limit to the length of command line arguments.
5450 # Libtool will interpret -1 as no limit whatsoever
5451 lt_cv_sys_max_cmd_len=-1;
5455 # On Win9x/ME, this test blows up -- it succeeds, but takes
5456 # about 5 minutes as the teststring grows exponentially.
5457 # Worse, since 9x/ME are not pre-emptively multitasking,
5458 # you end up with a "frozen" computer, even though with patience
5459 # the test eventually succeeds (with a max line length of 256k).
5460 # Instead, let's just punt: use the minimum linelength reported by
5461 # all of the supported platforms: 8192 (on NT/2K/XP).
5462 lt_cv_sys_max_cmd_len=8192;
5466 # On AmigaOS with pdksh, this test takes hours, literally.
5467 # So we just punt and use a minimum line length of 8192.
5468 lt_cv_sys_max_cmd_len=8192;
5472 # If test is not a shell built-in, we'll probably end up computing a
5473 # maximum length that is only half of the actual maximum length, but
5475 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5476 = "XX$teststring") >/dev/null 2>&1 &&
5477 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5478 lt_cv_sys_max_cmd_len=$new_result &&
5479 test $i != 17 # 1/2 MB should be enough
5482 teststring=$teststring$teststring
5485 # Add a significant safety factor because C++ compilers can tack on massive
5486 # amounts of additional arguments before passing them to the linker.
5487 # It appears as though 1/2 is a usable value.
5488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5494 if test -n $lt_cv_sys_max_cmd_len ; then
5495 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5496 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5498 echo "$as_me:$LINENO: result: none" >&5
5499 echo "${ECHO_T}none" >&6
5505 # Check for command to grab the raw symbol name followed by C symbol from nm.
5506 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5507 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5508 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 # These are sane defaults that work on at least a few old systems.
5513 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5515 # Character class describing NM global symbol codes.
5516 symcode='[BCDEGRST]'
5518 # Regexp to match symbols that can be accessed directly from C.
5519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5521 # Transform the above into a raw symbol and a C symbol.
5522 symxfrm='\1 \2\3 \3'
5524 # Transform an extracted symbol line into a proper C declaration
5525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5527 # Transform an extracted symbol line into symbol name and symbol address
5528 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'"
5530 # Define system-specific variables.
5535 cygwin* | mingw* | pw32*)
5536 symcode='[ABCDGISTW]'
5538 hpux*) # Its linker distinguishes data from code symbols
5539 if test "$host_cpu" = ia64; then
5540 symcode='[ABCDEGRST]'
5542 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5543 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'"
5546 symcode='[BCDEGRST]'
5549 symcode='[BCDEGQRST]'
5559 # Handle CRLF in mingw tool chain
5563 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5567 # If we're using GNU nm, then use its standard symbol codes.
5568 case `$NM -V 2>&1` in
5569 *GNU* | *'with BFD'*)
5570 symcode='[ABCDGIRSTW]' ;;
5573 # Try without a prefix undercore, then with it.
5574 for ac_symprfx in "" "_"; do
5576 # Write the raw and C identifiers.
5577 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5579 # Check to see that the pipe works correctly.
5583 cat > conftest.$ac_ext <<EOF
5588 void nm_test_func(){}
5592 int main(){nm_test_var='a';nm_test_func();return(0);}
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; then
5600 # Now try to grab the symbols.
5602 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5603 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && test -s "$nlist"; then
5607 # Try sorting and uniquifying the output.
5608 if sort "$nlist" | uniq > "$nlist"T; then
5609 mv -f "$nlist"T "$nlist"
5614 # Make sure that we snagged all the symbols we need.
5615 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5616 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5617 cat <<EOF > conftest.$ac_ext
5623 # Now generate the symbol file.
5624 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5626 cat <<EOF >> conftest.$ac_ext
5627 #if defined (__STDC__) && __STDC__
5628 # define lt_ptr_t void *
5630 # define lt_ptr_t char *
5634 /* The mapping between symbol names and symbols. */
5639 lt_preloaded_symbols[] =
5642 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5643 cat <<\EOF >> conftest.$ac_ext
5651 # Now try linking the two files.
5652 mv conftest.$ac_objext conftstm.$ac_objext
5653 lt_save_LIBS="$LIBS"
5654 lt_save_CFLAGS="$CFLAGS"
5655 LIBS="conftstm.$ac_objext"
5656 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5658 (eval $ac_link) 2>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5664 LIBS="$lt_save_LIBS"
5665 CFLAGS="$lt_save_CFLAGS"
5667 echo "cannot find nm_test_func in $nlist" >&5
5670 echo "cannot find nm_test_var in $nlist" >&5
5673 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5676 echo "$progname: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5679 rm -f conftest* conftst*
5681 # Do not use the global_symbol_pipe unless it works.
5682 if test "$pipe_works" = yes; then
5685 lt_cv_sys_global_symbol_pipe=
5691 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5692 lt_cv_sys_global_symbol_to_cdecl=
5694 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5695 echo "$as_me:$LINENO: result: failed" >&5
5696 echo "${ECHO_T}failed" >&6
5698 echo "$as_me:$LINENO: result: ok" >&5
5699 echo "${ECHO_T}ok" >&6
5702 echo "$as_me:$LINENO: checking for objdir" >&5
5703 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5704 if test "${lt_cv_objdir+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 rm -f .libs 2>/dev/null
5708 mkdir .libs 2>/dev/null
5709 if test -d .libs; then
5712 # MS-DOS does not allow filenames that begin with a dot.
5715 rmdir .libs 2>/dev/null
5717 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5718 echo "${ECHO_T}$lt_cv_objdir" >&6
5719 objdir=$lt_cv_objdir
5727 # AIX sometimes has problems with the GCC collect2 program. For some
5728 # reason, if we set the COLLECT_NAMES environment variable, the problems
5729 # vanish in a puff of smoke.
5730 if test "X${COLLECT_NAMES+set}" != Xset; then
5732 export COLLECT_NAMES
5737 # Sed substitution that helps us do robust quoting. It backslashifies
5738 # metacharacters that are still active within double-quoted strings.
5739 Xsed='sed -e s/^X//'
5740 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5742 # Same as above, but do not quote variable references.
5743 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5745 # Sed substitution to delay expansion of an escaped shell variable in a
5746 # double_quote_subst'ed string.
5747 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5749 # Sed substitution to avoid accidental globbing in evaled expressions
5750 no_glob_subst='s/\*/\\\*/g'
5756 default_ofile=libtool
5757 can_build_shared=yes
5759 # All known linkers require a `.a' archive for static linking (except M$VC,
5760 # which needs '.lib').
5762 ltmain="$ac_aux_dir/ltmain.sh"
5763 ofile="$default_ofile"
5764 with_gnu_ld="$lt_cv_prog_gnu_ld"
5766 if test -n "$ac_tool_prefix"; then
5767 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5768 set dummy ${ac_tool_prefix}ar; ac_word=$2
5769 echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5771 if test "${ac_cv_prog_AR+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 if test -n "$AR"; then
5775 ac_cv_prog_AR="$AR" # Let the user override the test.
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784 ac_cv_prog_AR="${ac_tool_prefix}ar"
5785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 if test -n "$AR"; then
5795 echo "$as_me:$LINENO: result: $AR" >&5
5796 echo "${ECHO_T}$AR" >&6
5798 echo "$as_me:$LINENO: result: no" >&5
5799 echo "${ECHO_T}no" >&6
5803 if test -z "$ac_cv_prog_AR"; then
5805 # Extract the first word of "ar", so it can be a program name with args.
5806 set dummy ar; ac_word=$2
5807 echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5809 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 if test -n "$ac_ct_AR"; then
5813 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_ac_ct_AR="ar"
5823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5832 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5833 if test -n "$ac_ct_AR"; then
5834 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5835 echo "${ECHO_T}$ac_ct_AR" >&6
5837 echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_RANLIB+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -n "$RANLIB"; then
5855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 RANLIB=$ac_cv_prog_RANLIB
5874 if test -n "$RANLIB"; then
5875 echo "$as_me:$LINENO: result: $RANLIB" >&5
5876 echo "${ECHO_T}$RANLIB" >&6
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5883 if test -z "$ac_cv_prog_RANLIB"; then
5884 ac_ct_RANLIB=$RANLIB
5885 # Extract the first word of "ranlib", so it can be a program name with args.
5886 set dummy ranlib; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 if test -n "$ac_ct_RANLIB"; then
5893 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902 ac_cv_prog_ac_ct_RANLIB="ranlib"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5913 if test -n "$ac_ct_RANLIB"; then
5914 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5915 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5917 echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5921 RANLIB=$ac_ct_RANLIB
5923 RANLIB="$ac_cv_prog_RANLIB"
5926 if test -n "$ac_tool_prefix"; then
5927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}strip; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_STRIP+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 if test -n "$STRIP"; then
5935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 STRIP=$ac_cv_prog_STRIP
5954 if test -n "$STRIP"; then
5955 echo "$as_me:$LINENO: result: $STRIP" >&5
5956 echo "${ECHO_T}$STRIP" >&6
5958 echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5963 if test -z "$ac_cv_prog_STRIP"; then
5965 # Extract the first word of "strip", so it can be a program name with args.
5966 set dummy strip; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 if test -n "$ac_ct_STRIP"; then
5973 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_ac_ct_STRIP="strip"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5993 if test -n "$ac_ct_STRIP"; then
5994 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5995 echo "${ECHO_T}$ac_ct_STRIP" >&6
5997 echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6
6003 STRIP="$ac_cv_prog_STRIP"
6008 old_CFLAGS="$CFLAGS"
6010 # Set sane defaults for various variables
6011 test -z "$AR" && AR=ar
6012 test -z "$AR_FLAGS" && AR_FLAGS=cru
6013 test -z "$AS" && AS=as
6014 test -z "$CC" && CC=cc
6015 test -z "$LTCC" && LTCC=$CC
6016 test -z "$DLLTOOL" && DLLTOOL=dlltool
6017 test -z "$LD" && LD=ld
6018 test -z "$LN_S" && LN_S="ln -s"
6019 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6020 test -z "$NM" && NM=nm
6021 test -z "$SED" && SED=sed
6022 test -z "$OBJDUMP" && OBJDUMP=objdump
6023 test -z "$RANLIB" && RANLIB=:
6024 test -z "$STRIP" && STRIP=:
6025 test -z "$ac_objext" && ac_objext=o
6027 # Determine commands to create old-style static archives.
6028 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6029 old_postinstall_cmds='chmod 644 $oldlib'
6030 old_postuninstall_cmds=
6032 if test -n "$RANLIB"; then
6035 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6038 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6041 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6044 # Only perform the check for file, if the check method requires it
6045 case $deplibs_check_method in
6047 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6048 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6049 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6050 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6058 lt_save_MAGIC_CMD="$MAGIC_CMD"
6059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6060 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6061 for ac_dir in $ac_dummy; do
6063 test -z "$ac_dir" && ac_dir=.
6064 if test -f $ac_dir/${ac_tool_prefix}file; then
6065 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6066 if test -n "$file_magic_test_file"; then
6067 case $deplibs_check_method in
6069 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6071 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6072 $EGREP "$file_magic_regex" > /dev/null; then
6077 *** Warning: the command libtool uses to detect shared libraries,
6078 *** $file_magic_cmd, produces output that libtool cannot recognize.
6079 *** The result is that libtool may fail to recognize shared libraries
6080 *** as such. This will affect the creation of libtool libraries that
6081 *** depend on shared libraries, but programs linked with such libtool
6082 *** libraries will work regardless of this problem. Nevertheless, you
6083 *** may want to report the problem to your system manager and/or to
6084 *** bug-libtool@gnu.org
6094 MAGIC_CMD="$lt_save_MAGIC_CMD"
6099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6100 if test -n "$MAGIC_CMD"; then
6101 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6102 echo "${ECHO_T}$MAGIC_CMD" >&6
6104 echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6
6108 if test -z "$lt_cv_path_MAGIC_CMD"; then
6109 if test -n "$ac_tool_prefix"; then
6110 echo "$as_me:$LINENO: checking for file" >&5
6111 echo $ECHO_N "checking for file... $ECHO_C" >&6
6112 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6120 lt_save_MAGIC_CMD="$MAGIC_CMD"
6121 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6122 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6123 for ac_dir in $ac_dummy; do
6125 test -z "$ac_dir" && ac_dir=.
6126 if test -f $ac_dir/file; then
6127 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6128 if test -n "$file_magic_test_file"; then
6129 case $deplibs_check_method in
6131 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6132 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6133 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6134 $EGREP "$file_magic_regex" > /dev/null; then
6139 *** Warning: the command libtool uses to detect shared libraries,
6140 *** $file_magic_cmd, produces output that libtool cannot recognize.
6141 *** The result is that libtool may fail to recognize shared libraries
6142 *** as such. This will affect the creation of libtool libraries that
6143 *** depend on shared libraries, but programs linked with such libtool
6144 *** libraries will work regardless of this problem. Nevertheless, you
6145 *** may want to report the problem to your system manager and/or to
6146 *** bug-libtool@gnu.org
6156 MAGIC_CMD="$lt_save_MAGIC_CMD"
6161 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6162 if test -n "$MAGIC_CMD"; then
6163 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6164 echo "${ECHO_T}$MAGIC_CMD" >&6
6166 echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6
6182 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6183 if test "${enable_libtool_lock+set}" = set; then
6184 enableval="$enable_libtool_lock"
6187 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6190 # Check whether --with-pic or --without-pic was given.
6191 if test "${with_pic+set}" = set; then
6197 test -z "$pic_mode" && pic_mode=default
6199 # Use C for the default configuration in the libtool script
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209 # Source file extension for C test sources.
6212 # Object file extension for compiled C test sources.
6216 # Code to be used in simple compile tests
6217 lt_simple_compile_test_code="int some_variable = 0;\n"
6219 # Code to be used in simple link tests
6220 lt_simple_link_test_code='int main(){return(0);}\n'
6223 # If no C compiler was specified, use CC.
6226 # Allow CC to be a program name with arguments.
6231 # Check for any special shared library compilation flags.
6234 if test "$GCC" = no; then
6237 lt_prog_cc_shlib='-belf'
6241 if test -n "$lt_prog_cc_shlib"; then
6242 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6243 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6244 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6246 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6247 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6248 lt_cv_prog_cc_can_build_shared=no
6254 # Check to make sure the static flag actually works.
6256 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6257 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6258 if test "${lt_prog_compiler_static_works+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 lt_prog_compiler_static_works=no
6262 save_LDFLAGS="$LDFLAGS"
6263 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6264 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6265 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6266 # The compiler can only warn and ignore the option if not recognized
6267 # So say no if there are warnings
6268 if test -s conftest.err; then
6269 # Append any errors to the config.log.
6270 cat conftest.err 1>&5
6272 lt_prog_compiler_static_works=yes
6276 LDFLAGS="$save_LDFLAGS"
6279 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6280 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6282 if test x"$lt_prog_compiler_static_works" = xyes; then
6285 lt_prog_compiler_static=
6291 lt_prog_compiler_no_builtin_flag=
6293 if test "$GCC" = yes; then
6294 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6297 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6298 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6299 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 lt_cv_prog_compiler_rtti_exceptions=no
6303 ac_outfile=conftest.$ac_objext
6304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6305 lt_compiler_flag="-fno-rtti -fno-exceptions"
6306 # Insert the option either (1) after the last *FLAGS variable, or
6307 # (2) before a word containing "conftest.", or (3) at the end.
6308 # Note that $ac_compile itself does not contain backslashes and begins
6309 # with a dollar sign (not a hyphen), so the echo should work correctly.
6310 # The option is referenced via a variable to avoid confusing sed.
6311 lt_compile=`echo "$ac_compile" | $SED \
6312 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6314 -e 's:$: $lt_compiler_flag:'`
6315 (eval echo "\"\$as_me:6315: $lt_compile\"" >&5)
6316 (eval "$lt_compile" 2>conftest.err)
6318 cat conftest.err >&5
6319 echo "$as_me:6319: \$? = $ac_status" >&5
6320 if (exit $ac_status) && test -s "$ac_outfile"; then
6321 # The compiler can only warn and ignore the option if not recognized
6322 # So say no if there are warnings
6323 if test ! -s conftest.err; then
6324 lt_cv_prog_compiler_rtti_exceptions=yes
6330 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6331 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6333 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6334 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6341 lt_prog_compiler_wl=
6342 lt_prog_compiler_pic=
6343 lt_prog_compiler_static=
6345 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6346 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6348 if test "$GCC" = yes; then
6349 lt_prog_compiler_wl='-Wl,'
6350 lt_prog_compiler_static='-static'
6354 # All AIX code is PIC.
6355 if test "$host_cpu" = ia64; then
6356 # AIX 5 now supports IA64 processor
6357 lt_prog_compiler_static='-Bstatic'
6362 # FIXME: we need at least 68020 code to build shared libraries, but
6363 # adding the `-m68020' flag to GCC prevents building anything better,
6365 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6368 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6369 # PIC is the default for these OSes.
6372 mingw* | pw32* | os2*)
6373 # This hack is so that the source file can tell whether it is being
6374 # built for inclusion in a dll (and should export symbols for example).
6375 lt_prog_compiler_pic='-DDLL_EXPORT'
6378 darwin* | rhapsody*)
6379 # PIC is the default on this platform
6380 # Common symbols not allowed in MH_DYLIB files
6381 lt_prog_compiler_pic='-fno-common'
6385 # Just because we use GCC doesn't mean we suddenly get shared libraries
6386 # on systems that don't support them.
6387 lt_prog_compiler_can_build_shared=no
6392 if test -d /usr/nec; then
6393 lt_prog_compiler_pic=-Kconform_pic
6398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6405 lt_prog_compiler_pic='-fPIC'
6411 lt_prog_compiler_pic='-fPIC'
6415 # PORTME Check for flag to pass linker flags through the system compiler.
6418 lt_prog_compiler_wl='-Wl,'
6419 if test "$host_cpu" = ia64; then
6420 # AIX 5 now supports IA64 processor
6421 lt_prog_compiler_static='-Bstatic'
6423 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6427 mingw* | pw32* | os2*)
6428 # This hack is so that the source file can tell whether it is being
6429 # built for inclusion in a dll (and should export symbols for example).
6430 lt_prog_compiler_pic='-DDLL_EXPORT'
6433 hpux9* | hpux10* | hpux11*)
6434 lt_prog_compiler_wl='-Wl,'
6435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6442 lt_prog_compiler_pic='+Z'
6445 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6446 lt_prog_compiler_static='${wl}-a ${wl}archive'
6449 irix5* | irix6* | nonstopux*)
6450 lt_prog_compiler_wl='-Wl,'
6451 # PIC (with -KPIC) is the default.
6452 lt_prog_compiler_static='-non_shared'
6456 lt_prog_compiler_pic='-KPIC'
6457 lt_prog_compiler_static='-Bstatic'
6463 lt_prog_compiler_wl='-Wl,'
6464 lt_prog_compiler_pic='-KPIC'
6465 lt_prog_compiler_static='-static'
6468 lt_prog_compiler_wl='-Wl,'
6469 # All Alpha code is PIC.
6470 lt_prog_compiler_static='-non_shared'
6475 osf3* | osf4* | osf5*)
6476 lt_prog_compiler_wl='-Wl,'
6477 # All OSF/1 code is PIC.
6478 lt_prog_compiler_static='-non_shared'
6482 lt_prog_compiler_pic='-Kpic'
6483 lt_prog_compiler_static='-dn'
6487 lt_prog_compiler_wl='-Wl,'
6488 lt_prog_compiler_pic='-KPIC'
6489 lt_prog_compiler_static='-Bstatic'
6493 lt_prog_compiler_wl='-Qoption ld '
6494 lt_prog_compiler_pic='-PIC'
6495 lt_prog_compiler_static='-Bstatic'
6498 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6499 lt_prog_compiler_wl='-Wl,'
6500 lt_prog_compiler_pic='-KPIC'
6501 lt_prog_compiler_static='-Bstatic'
6505 if test -d /usr/nec ;then
6506 lt_prog_compiler_pic='-Kconform_pic'
6507 lt_prog_compiler_static='-Bstatic'
6512 lt_prog_compiler_pic='-pic'
6513 lt_prog_compiler_static='-Bstatic'
6517 lt_prog_compiler_can_build_shared=no
6522 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6523 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6526 # Check to make sure the PIC flag actually works.
6528 if test -n "$lt_prog_compiler_pic"; then
6530 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6531 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6532 if test "${lt_prog_compiler_pic_works+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 lt_prog_compiler_pic_works=no
6536 ac_outfile=conftest.$ac_objext
6537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6538 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6539 # Insert the option either (1) after the last *FLAGS variable, or
6540 # (2) before a word containing "conftest.", or (3) at the end.
6541 # Note that $ac_compile itself does not contain backslashes and begins
6542 # with a dollar sign (not a hyphen), so the echo should work correctly.
6543 # The option is referenced via a variable to avoid confusing sed.
6544 lt_compile=`echo "$ac_compile" | $SED \
6545 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6547 -e 's:$: $lt_compiler_flag:'`
6548 (eval echo "\"\$as_me:6548: $lt_compile\"" >&5)
6549 (eval "$lt_compile" 2>conftest.err)
6551 cat conftest.err >&5
6552 echo "$as_me:6552: \$? = $ac_status" >&5
6553 if (exit $ac_status) && test -s "$ac_outfile"; then
6554 # The compiler can only warn and ignore the option if not recognized
6555 # So say no if there are warnings
6556 if test ! -s conftest.err; then
6557 lt_prog_compiler_pic_works=yes
6563 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6564 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6566 if test x"$lt_prog_compiler_pic_works" = xyes; then
6567 case $lt_prog_compiler_pic in
6569 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6572 lt_prog_compiler_pic=
6573 lt_prog_compiler_can_build_shared=no
6578 # For platforms which do not support PIC, -DPIC is meaningless:
6580 lt_prog_compiler_pic=
6583 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6587 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6588 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 lt_cv_prog_compiler_c_o=no
6593 $rm -r conftest 2>/dev/null
6597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6599 lt_compiler_flag="-o out/conftest2.$ac_objext"
6600 # Insert the option either (1) after the last *FLAGS variable, or
6601 # (2) before a word containing "conftest.", or (3) at the end.
6602 # Note that $ac_compile itself does not contain backslashes and begins
6603 # with a dollar sign (not a hyphen), so the echo should work correctly.
6604 lt_compile=`echo "$ac_compile" | $SED \
6605 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6607 -e 's:$: $lt_compiler_flag:'`
6608 (eval echo "\"\$as_me:6608: $lt_compile\"" >&5)
6609 (eval "$lt_compile" 2>out/conftest.err)
6611 cat out/conftest.err >&5
6612 echo "$as_me:6612: \$? = $ac_status" >&5
6613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6615 # The compiler can only warn and ignore the option if not recognized
6616 # So say no if there are warnings
6617 if test ! -s out/conftest.err; then
6618 lt_cv_prog_compiler_c_o=yes
6623 # SGI C++ compiler will create directory out/ii_files/ for
6624 # template instantiation
6625 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6626 $rm out/* && rmdir out
6632 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6633 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6636 hard_links="nottested"
6637 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6638 # do not overwrite the value of need_locks provided by the user
6639 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6640 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6645 ln conftest.a conftest.b 2>&5 || hard_links=no
6646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6647 echo "$as_me:$LINENO: result: $hard_links" >&5
6648 echo "${ECHO_T}$hard_links" >&6
6649 if test "$hard_links" = no; then
6650 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6651 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6658 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6659 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6662 allow_undefined_flag=
6663 enable_shared_with_static_runtimes=no
6665 archive_expsym_cmds=
6666 old_archive_From_new_cmds=
6667 old_archive_from_expsyms_cmds=
6668 export_dynamic_flag_spec=
6669 whole_archive_flag_spec=
6670 thread_safe_flag_spec=
6671 hardcode_libdir_flag_spec=
6672 hardcode_libdir_flag_spec_ld=
6673 hardcode_libdir_separator=
6676 hardcode_shlibpath_var=unsupported
6677 link_all_deplibs=unknown
6678 hardcode_automatic=no
6681 always_export_symbols=no
6682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6683 # include_expsyms should be a list of space-separated symbols to be *always*
6684 # included in the symbol list
6686 # exclude_expsyms can be an extended regexp of symbols to exclude
6687 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6688 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6689 # as well as any symbol that contains `d'.
6690 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6692 # platforms (ab)use it in PIC code, but their linkers get confused if
6693 # the symbol is explicitly referenced. Since portable code cannot
6694 # rely on this symbol name, it's probably fine to never include it in
6695 # preloaded symbol tables.
6696 extract_expsyms_cmds=
6699 cygwin* | mingw* | pw32*)
6700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6701 # When not using gcc, we currently assume that we are using
6702 # Microsoft Visual C++.
6703 if test "$GCC" != yes; then
6713 if test "$with_gnu_ld" = yes; then
6714 # If archive_cmds runs LD, not CC, wlarc should be empty
6717 # See if GNU ld supports shared libraries.
6719 aix3* | aix4* | aix5*)
6720 # On AIX/PPC, the GNU linker is very broken
6721 if test "$host_cpu" != ia64; then
6725 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6726 *** to be unable to reliably create shared libraries on AIX.
6727 *** Therefore, libtool is disabling shared libraries support. If you
6728 *** really care for shared libraries, you may want to modify your PATH
6729 *** so that a non-GNU linker is found, and then restart.
6736 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)'
6737 hardcode_libdir_flag_spec='-L$libdir'
6738 hardcode_minus_L=yes
6740 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6741 # that the semantics of dynamic libraries on AmigaOS, at least up
6742 # to version 4, is to share data among multiple programs linked
6743 # with the same dynamic library. Since this doesn't match the
6744 # behavior of shared libraries on other platforms, we can't use
6750 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6751 allow_undefined_flag=unsupported
6752 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6753 # support --undefined. This deserves some investigation. FIXME
6754 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6760 cygwin* | mingw* | pw32*)
6761 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6762 # as there is no search path for DLLs.
6763 hardcode_libdir_flag_spec='-L$libdir'
6764 allow_undefined_flag=unsupported
6765 always_export_symbols=no
6766 enable_shared_with_static_runtimes=yes
6767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6769 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6771 # If the export-symbols file already is a .def file (1st line
6772 # is EXPORTS), use it as is; otherwise, prepend...
6773 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6774 cp $export_symbols $output_objdir/$soname.def;
6776 echo EXPORTS > $output_objdir/$soname.def;
6777 cat $export_symbols >> $output_objdir/$soname.def;
6779 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6785 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6786 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6787 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6791 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6796 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6800 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6801 *** create shared libraries on Solaris systems. Therefore, libtool
6802 *** is disabling shared libraries support. We urge you to upgrade GNU
6803 *** binutils to release 2.9.1 or newer. Another option is to modify
6804 *** your PATH or compiler configuration so that the native linker is
6805 *** used, and then restart.
6808 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6810 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6817 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6820 hardcode_shlibpath_var=no
6824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6825 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6826 archive_cmds="$tmp_archive_cmds"
6827 supports_anon_versioning=no
6828 case `$LD -v 2>/dev/null` in
6829 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6830 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6831 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6832 *\ 2.11.*) ;; # other 2.11 versions
6833 *) supports_anon_versioning=yes ;;
6835 if test $supports_anon_versioning = yes; then
6836 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6838 $echo "local: *; };" >> $output_objdir/$libname.ver~
6839 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6841 archive_expsym_cmds="$tmp_archive_cmds"
6850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6859 if test "$ld_shlibs" = yes; then
6860 runpath_var=LD_RUN_PATH
6861 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6862 export_dynamic_flag_spec='${wl}--export-dynamic'
6863 # ancient GNU ld didn't support --whole-archive et. al.
6864 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6865 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6867 whole_archive_flag_spec=
6871 # PORTME fill in a description of your system's linker (not GNU ld)
6874 allow_undefined_flag=unsupported
6875 always_export_symbols=yes
6876 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'
6877 # Note: this linker hardcodes the directories in LIBPATH if there
6878 # are no directories specified by -L.
6879 hardcode_minus_L=yes
6880 if test "$GCC" = yes && test -z "$link_static_flag"; then
6881 # Neither direct hardcoding nor static linking is supported with a
6883 hardcode_direct=unsupported
6888 if test "$host_cpu" = ia64; then
6889 # On IA64, the linker does run time linking by default, so we don't
6890 # have to do anything special.
6891 aix_use_runtimelinking=no
6892 exp_sym_flag='-Bexport'
6895 # If we're using GNU nm, then we don't want the "-C" option.
6896 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6897 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6898 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'
6900 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'
6902 aix_use_runtimelinking=no
6904 # Test if we are trying to use run time linking or normal
6905 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6906 # need to do runtime linking.
6907 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6908 for ld_flag in $LDFLAGS; do
6909 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6910 aix_use_runtimelinking=yes
6916 exp_sym_flag='-bexport'
6917 no_entry_flag='-bnoentry'
6920 # When large executables or shared objects are built, AIX ld can
6921 # have problems creating the table of contents. If linking a library
6922 # or program results in "error TOC overflow" add -mminimal-toc to
6923 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6924 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6928 hardcode_libdir_separator=':'
6929 link_all_deplibs=yes
6931 if test "$GCC" = yes; then
6932 case $host_os in aix4.012|aix4.012.*)
6933 # We only want to do this on AIX 4.2 and lower, the check
6934 # below for broken collect2 doesn't work under 4.3+
6935 collect2name=`${CC} -print-prog-name=collect2`
6936 if test -f "$collect2name" && \
6937 strings "$collect2name" | grep resolve_lib_name >/dev/null
6939 # We have reworked collect2
6942 # We have old collect2
6943 hardcode_direct=unsupported
6944 # It fails to find uninstalled libraries when the uninstalled
6945 # path is not listed in the libpath. Setting hardcode_minus_L
6946 # to unsupported forces relinking
6947 hardcode_minus_L=yes
6948 hardcode_libdir_flag_spec='-L$libdir'
6949 hardcode_libdir_separator=
6952 shared_flag='-shared'
6955 if test "$host_cpu" = ia64; then
6956 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6957 # chokes on -Wl,-G. The following line is correct:
6960 if test "$aix_use_runtimelinking" = yes; then
6961 shared_flag='${wl}-G'
6963 shared_flag='${wl}-bM:SRE'
6968 # It seems that -bexpall does not export symbols beginning with
6969 # underscore (_), so it is better to generate a list of symbols to export.
6970 always_export_symbols=yes
6971 if test "$aix_use_runtimelinking" = yes; then
6972 # Warning - without using the other runtime loading flags (-brtl),
6973 # -berok will link without error, but may produce a broken library.
6974 allow_undefined_flag='-berok'
6975 # Determine the default libpath from the value encoded in an empty executable.
6976 cat >conftest.$ac_ext <<_ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6991 rm -f conftest.$ac_objext conftest$ac_exeext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6993 (eval $ac_link) 2>conftest.er1
6995 grep -v '^ *+' conftest.er1 >conftest.err
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; } &&
7006 { ac_try='test -s conftest$ac_exeext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7015 # Check for a 64-bit object if we didn't find anything.
7016 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; }
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7023 rm -f conftest.err conftest.$ac_objext \
7024 conftest$ac_exeext conftest.$ac_ext
7025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7027 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7028 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"
7030 if test "$host_cpu" = ia64; then
7031 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7032 allow_undefined_flag="-z nodefs"
7033 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"
7035 # Determine the default libpath from the value encoded in an empty executable.
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7051 rm -f conftest.$ac_objext conftest$ac_exeext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053 (eval $ac_link) 2>conftest.er1
7055 grep -v '^ *+' conftest.er1 >conftest.err
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
7060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; } &&
7066 { ac_try='test -s conftest$ac_exeext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7075 # Check for a 64-bit object if we didn't find anything.
7076 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; }
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7083 rm -f conftest.err conftest.$ac_objext \
7084 conftest$ac_exeext conftest.$ac_ext
7085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7087 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7088 # Warning - without using the other run time loading flags,
7089 # -berok will link without error, but may produce a broken library.
7090 no_undefined_flag=' ${wl}-bernotok'
7091 allow_undefined_flag=' ${wl}-berok'
7092 # -bexpall does not export symbols beginning with underscore (_)
7093 always_export_symbols=yes
7094 # Exported symbols can be pulled into shared objects from archives
7095 whole_archive_flag_spec=' '
7096 archive_cmds_need_lc=yes
7097 # This is similar to how AIX traditionally builds it's shared libraries.
7098 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'
7104 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)'
7105 hardcode_libdir_flag_spec='-L$libdir'
7106 hardcode_minus_L=yes
7107 # see comment about different semantics on the GNU ld section
7112 export_dynamic_flag_spec=-rdynamic
7115 cygwin* | mingw* | pw32*)
7116 # When not using gcc, we currently assume that we are using
7117 # Microsoft Visual C++.
7118 # hardcode_libdir_flag_spec is actually meaningless, as there is
7119 # no search path for DLLs.
7120 hardcode_libdir_flag_spec=' '
7121 allow_undefined_flag=unsupported
7122 # Tell ltmain to make .lib files, not .a files.
7124 # Tell ltmain to make .dll files, not .so files.
7126 # FIXME: Setting linknames here is a bad hack.
7127 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7128 # The linker will automatically build a .lib file if we build a DLL.
7129 old_archive_From_new_cmds='true'
7130 # FIXME: Should let the user specify the lib program.
7131 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7132 fix_srcfile_path='`cygpath -w "$srcfile"`'
7133 enable_shared_with_static_runtimes=yes
7136 darwin* | rhapsody*)
7137 if test "$GXX" = yes ; then
7138 archive_cmds_need_lc=no
7140 rhapsody* | darwin1.[012])
7141 allow_undefined_flag='-undefined suppress'
7144 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7145 allow_undefined_flag='-flat_namespace -undefined suppress'
7147 case ${MACOSX_DEPLOYMENT_TARGET} in
7149 allow_undefined_flag='-flat_namespace -undefined suppress'
7152 allow_undefined_flag='-undefined dynamic_lookup'
7158 lt_int_apple_cc_single_mod=no
7159 output_verbose_link_cmd='echo'
7160 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7161 lt_int_apple_cc_single_mod=yes
7163 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7164 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7166 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'
7168 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7169 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7170 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7171 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}'
7173 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}'
7175 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}'
7177 hardcode_automatic=yes
7178 hardcode_shlibpath_var=unsupported
7179 whole_archive_flag_spec='-all_load $convenience'
7180 link_all_deplibs=yes
7187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7188 hardcode_libdir_flag_spec='-L$libdir'
7189 hardcode_shlibpath_var=no
7196 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7197 # support. Future versions do this automatically, but an explicit c++rt0.o
7198 # does not break anything, and helps significantly (at the cost of a little
7201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7202 hardcode_libdir_flag_spec='-R$libdir'
7204 hardcode_shlibpath_var=no
7207 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7211 hardcode_minus_L=yes
7212 hardcode_shlibpath_var=no
7215 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7216 freebsd* | kfreebsd*-gnu)
7217 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7218 hardcode_libdir_flag_spec='-R$libdir'
7220 hardcode_shlibpath_var=no
7224 if test "$GCC" = yes; then
7225 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'
7227 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'
7229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7230 hardcode_libdir_separator=:
7233 # hardcode_minus_L: Not really in the search PATH,
7234 # but as the default location of the library.
7235 hardcode_minus_L=yes
7236 export_dynamic_flag_spec='${wl}-E'
7240 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7243 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7246 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7252 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7255 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7259 if test "$with_gnu_ld" = no; then
7262 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7263 hardcode_libdir_flag_spec_ld='+b $libdir'
7264 hardcode_libdir_separator=:
7266 hardcode_shlibpath_var=no
7269 hardcode_libdir_flag_spec='-L$libdir'
7271 hardcode_shlibpath_var=no
7273 # hardcode_minus_L: Not really in the search PATH,
7274 # but as the default location of the library.
7275 hardcode_minus_L=yes
7278 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7279 hardcode_libdir_separator=:
7281 export_dynamic_flag_spec='${wl}-E'
7283 # hardcode_minus_L: Not really in the search PATH,
7284 # but as the default location of the library.
7285 hardcode_minus_L=yes
7291 irix5* | irix6* | nonstopux*)
7292 if test "$GCC" = yes; then
7293 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'
7295 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'
7296 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7299 hardcode_libdir_separator=:
7300 link_all_deplibs=yes
7303 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7307 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7309 hardcode_libdir_flag_spec='-R$libdir'
7311 hardcode_shlibpath_var=no
7315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7318 hardcode_libdir_separator=:
7319 hardcode_shlibpath_var=no
7324 hardcode_shlibpath_var=no
7325 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7328 export_dynamic_flag_spec='${wl}-E'
7331 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7333 hardcode_libdir_flag_spec='-R$libdir'
7336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7344 hardcode_libdir_flag_spec='-L$libdir'
7345 hardcode_minus_L=yes
7346 allow_undefined_flag=unsupported
7347 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'
7348 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7352 if test "$GCC" = yes; then
7353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7354 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'
7356 allow_undefined_flag=' -expect_unresolved \*'
7357 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'
7359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7360 hardcode_libdir_separator=:
7363 osf4* | osf5*) # as osf3* with the addition of -msym flag
7364 if test "$GCC" = yes; then
7365 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7366 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'
7367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7369 allow_undefined_flag=' -expect_unresolved \*'
7370 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'
7371 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7372 $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'
7374 # Both c and cxx compiler support -rpath directly
7375 hardcode_libdir_flag_spec='-rpath $libdir'
7377 hardcode_libdir_separator=:
7381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382 hardcode_shlibpath_var=no
7383 export_dynamic_flag_spec='${wl}-Bexport'
7384 runpath_var=LD_RUN_PATH
7385 hardcode_runpath_var=yes
7389 no_undefined_flag=' -z text'
7390 if test "$GCC" = yes; then
7391 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7392 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7393 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7395 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7396 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7399 hardcode_libdir_flag_spec='-R$libdir'
7400 hardcode_shlibpath_var=no
7402 solaris2.[0-5] | solaris2.[0-5].*) ;;
7403 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7404 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7406 link_all_deplibs=yes
7410 if test "x$host_vendor" = xsequent; then
7411 # Use $CC to link under sequent, because it throws in some extra .o
7412 # files that make .init and .fini sections work.
7413 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7415 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7417 hardcode_libdir_flag_spec='-L$libdir'
7419 hardcode_minus_L=yes
7420 hardcode_shlibpath_var=no
7424 case $host_vendor in
7426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7427 hardcode_direct=yes # is this really true???
7430 ## LD is ld it makes a PLAMLIB
7431 ## CC just makes a GrossModule.
7432 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7433 reload_cmds='$CC -r -o $output$reload_objs'
7437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7438 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7441 runpath_var='LD_RUN_PATH'
7442 hardcode_shlibpath_var=no
7446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7447 hardcode_shlibpath_var=no
7448 export_dynamic_flag_spec='-Bexport'
7452 if test -d /usr/nec; then
7453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454 hardcode_shlibpath_var=no
7455 runpath_var=LD_RUN_PATH
7456 hardcode_runpath_var=yes
7462 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7465 hardcode_shlibpath_var=no
7466 hardcode_runpath_var=yes
7467 runpath_var=LD_RUN_PATH
7470 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7471 no_undefined_flag='${wl}-z ${wl}text'
7472 if test "$GCC" = yes; then
7473 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7475 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7477 runpath_var='LD_RUN_PATH'
7478 hardcode_shlibpath_var=no
7482 no_undefined_flag=' -z text'
7483 # $CC -shared without GNU ld will not create a library from C++
7484 # object files and a static libstdc++, better avoid it by now
7485 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7486 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7487 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7488 hardcode_libdir_flag_spec=
7489 hardcode_shlibpath_var=no
7490 runpath_var='LD_RUN_PATH'
7494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7495 hardcode_libdir_flag_spec='-L$libdir'
7496 hardcode_shlibpath_var=no
7505 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7506 echo "${ECHO_T}$ld_shlibs" >&6
7507 test "$ld_shlibs" = no && can_build_shared=no
7509 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7510 if test "$GCC" = yes; then
7511 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7515 # Do we need to explicitly link libc?
7517 case "x$archive_cmds_need_lc" in
7519 # Assume -lc should be added
7520 archive_cmds_need_lc=yes
7522 if test "$enable_shared" = yes && test "$GCC" = yes; then
7523 case $archive_cmds in
7525 # FIXME: we may have to deal with multi-command sequences.
7528 # Test whether the compiler implicitly links with -lc since on some
7529 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7530 # to ld, don't add -lc before -lgcc.
7531 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7532 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7534 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7537 (eval $ac_compile) 2>&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } 2>conftest.err; then
7543 libobjs=conftest.$ac_objext
7545 wl=$lt_prog_compiler_wl
7551 lt_save_allow_undefined_flag=$allow_undefined_flag
7552 allow_undefined_flag=
7553 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7554 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }
7559 archive_cmds_need_lc=no
7561 archive_cmds_need_lc=yes
7563 allow_undefined_flag=$lt_save_allow_undefined_flag
7565 cat conftest.err 1>&5
7568 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7569 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7576 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7577 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7579 libname_spec='lib$name'
7587 shlibpath_overrides_runpath=unknown
7589 dynamic_linker="$host_os ld.so"
7590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7591 if test "$GCC" = yes; then
7592 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7593 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7594 # if the path contains ";" then we assume it to be the separator
7595 # otherwise default to the standard path separator (i.e. ":") - it is
7596 # assumed that no part of a normal pathname contains ";" but that should
7597 # okay in the real world where ";" in dirpaths is itself problematic.
7598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7603 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7605 need_lib_prefix=unknown
7606 hardcode_into_libs=no
7608 # when you set need_version to no, make sure it does not cause -set_version
7609 # flags to be left without arguments
7610 need_version=unknown
7615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7616 shlibpath_var=LIBPATH
7618 # AIX 3 has no versioning support, so we append a major version to the name.
7619 soname_spec='${libname}${release}${shared_ext}$major'
7626 hardcode_into_libs=yes
7627 if test "$host_cpu" = ia64; then
7628 # AIX 5 supports IA64
7629 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7630 shlibpath_var=LD_LIBRARY_PATH
7632 # With GCC up to 2.95.x, collect2 would create an import file
7633 # for dependence libraries. The import file would start with
7634 # the line `#! .'. This would cause the generated library to
7635 # depend on `.', always an invalid library. This was fixed in
7636 # development snapshots of GCC prior to 3.0.
7638 aix4 | aix4.[01] | aix4.[01].*)
7639 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7641 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7648 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7649 # soname into executable. Probably we can add versioning support to
7650 # collect2, so additional links can be useful in future.
7651 if test "$aix_use_runtimelinking" = yes; then
7652 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7653 # instead of lib<name>.a to let people know that these are not
7654 # typical AIX shared libraries.
7655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7657 # We preserve .a as extension for shared libraries through AIX4.2
7658 # and later when we are not doing run time linking.
7659 library_names_spec='${libname}${release}.a $libname.a'
7660 soname_spec='${libname}${release}${shared_ext}$major'
7662 shlibpath_var=LIBPATH
7667 library_names_spec='$libname.ixlibrary $libname.a'
7668 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7669 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'
7673 library_names_spec='${libname}${shared_ext}'
7674 dynamic_linker="$host_os ld.so"
7675 shlibpath_var=LIBRARY_PATH
7681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7682 soname_spec='${libname}${release}${shared_ext}$major'
7683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7684 shlibpath_var=LD_LIBRARY_PATH
7685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7687 # the default ld.so.conf also contains /usr/contrib/lib and
7688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7689 # libtool to hard-code these into programs
7692 cygwin* | mingw* | pw32*)
7693 version_type=windows
7698 case $GCC,$host_os in
7699 yes,cygwin* | yes,mingw* | yes,pw32*)
7700 library_names_spec='$libname.dll.a'
7701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7702 postinstall_cmds='base_file=`basename \${file}`~
7703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7704 dldir=$destdir/`dirname \$dlpath`~
7705 test -d \$dldir || mkdir -p \$dldir~
7706 $install_prog $dir/$dlname \$dldir/$dlname'
7707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7708 dlpath=$dir/\$dldll~
7710 shlibpath_overrides_runpath=yes
7714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7715 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7716 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7719 # MinGW DLLs use traditional 'lib' prefix
7720 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7721 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7722 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7723 # It is most probably a Windows format PATH printed by
7724 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7725 # path with ; separators, and with drive letters. We can handle the
7726 # drive letters (cygwin fileutils understands them), so leave them,
7727 # especially as we might pass files found there to a mingw objdump,
7728 # which wouldn't understand a cygwinified path. Ahh.
7729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7735 # pw32 DLLs use 'pw' prefix rather than 'lib'
7736 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7742 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7745 dynamic_linker='Win32 ld.exe'
7746 # FIXME: first we should search . and the directory the executable is in
7750 darwin* | rhapsody*)
7751 dynamic_linker="$host_os dyld"
7755 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7756 soname_spec='${libname}${release}${major}$shared_ext'
7757 shlibpath_overrides_runpath=yes
7758 shlibpath_var=DYLD_LIBRARY_PATH
7759 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7760 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7761 if test "$GCC" = yes; then
7762 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"`
7764 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7766 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7774 soname_spec='${libname}${release}${shared_ext}$major'
7775 shlibpath_var=LD_LIBRARY_PATH
7786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7787 soname_spec='${libname}${release}${shared_ext}$major'
7788 shlibpath_var=LD_LIBRARY_PATH
7789 shlibpath_overrides_runpath=no
7790 hardcode_into_libs=yes
7791 dynamic_linker='GNU ld.so'
7795 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7796 version_type=freebsd-$objformat
7797 case $version_type in
7799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7808 shlibpath_var=LD_LIBRARY_PATH
7811 shlibpath_overrides_runpath=yes
7813 freebsd3.01* | freebsdelf3.01*)
7814 shlibpath_overrides_runpath=yes
7815 hardcode_into_libs=yes
7818 shlibpath_overrides_runpath=no
7819 hardcode_into_libs=yes
7828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7829 soname_spec='${libname}${release}${shared_ext}$major'
7830 shlibpath_var=LD_LIBRARY_PATH
7831 hardcode_into_libs=yes
7834 hpux9* | hpux10* | hpux11*)
7835 # Give a soname corresponding to the major version so that dld.sl refuses to
7836 # link against other versions.
7843 hardcode_into_libs=yes
7844 dynamic_linker="$host_os dld.so"
7845 shlibpath_var=LD_LIBRARY_PATH
7846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7848 soname_spec='${libname}${release}${shared_ext}$major'
7849 if test "X$HPUX_IA64_MODE" = X32; then
7850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7858 hardcode_into_libs=yes
7859 dynamic_linker="$host_os dld.sl"
7860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863 soname_spec='${libname}${release}${shared_ext}$major'
7864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7869 dynamic_linker="$host_os dld.sl"
7870 shlibpath_var=SHLIB_PATH
7871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7873 soname_spec='${libname}${release}${shared_ext}$major'
7876 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7877 postinstall_cmds='chmod 555 $lib'
7880 irix5* | irix6* | nonstopux*)
7882 nonstopux*) version_type=nonstopux ;;
7884 if test "$lt_cv_prog_gnu_ld" = yes; then
7892 soname_spec='${libname}${release}${shared_ext}$major'
7893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7895 irix5* | nonstopux*)
7899 case $LD in # libtool.m4 will add one of these switches to LD
7900 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7901 libsuff= shlibsuff= libmagic=32-bit;;
7902 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7903 libsuff=32 shlibsuff=N32 libmagic=N32;;
7904 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7905 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7906 *) libsuff= shlibsuff= libmagic=never-match;;
7910 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7911 shlibpath_overrides_runpath=no
7912 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7913 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7914 hardcode_into_libs=yes
7917 # No shared lib support for Linux oldld, aout, or coff.
7918 linux*oldld* | linux*aout* | linux*coff*)
7922 # This must be Linux ELF.
7927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7928 soname_spec='${libname}${release}${shared_ext}$major'
7929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7930 shlibpath_var=LD_LIBRARY_PATH
7931 shlibpath_overrides_runpath=no
7932 # This implies no fast_install, which is unacceptable.
7933 # Some rework will be needed to allow for fast_install
7934 # before this can be enabled.
7935 hardcode_into_libs=yes
7937 # Append ld.so.conf contents to the search path
7938 if test -f /etc/ld.so.conf; then
7939 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7943 # We used to test for /lib/ld.so.1 and disable shared libraries on
7944 # powerpc, because MkLinux only supported shared libraries with the
7945 # GNU dynamic linker. Since this was broken with cross compilers,
7946 # most powerpc-linux boxes support dynamic linking these days and
7947 # people can always --disable-shared, the test was removed, and we
7948 # assume the GNU/Linux dynamic linker is in use.
7949 dynamic_linker='GNU/Linux ld.so'
7956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7957 soname_spec='${libname}${release}${shared_ext}$major'
7958 shlibpath_var=LD_LIBRARY_PATH
7959 shlibpath_overrides_runpath=no
7960 hardcode_into_libs=yes
7961 dynamic_linker='NetBSD ld.elf_so'
7968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7969 soname_spec='${libname}${release}${shared_ext}$major'
7970 shlibpath_var=LD_LIBRARY_PATH
7971 shlibpath_overrides_runpath=no
7972 hardcode_into_libs=yes
7973 dynamic_linker='GNU ld.so'
7980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7983 dynamic_linker='NetBSD (a.out) ld.so'
7985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7986 soname_spec='${libname}${release}${shared_ext}$major'
7987 dynamic_linker='NetBSD ld.elf_so'
7989 shlibpath_var=LD_LIBRARY_PATH
7990 shlibpath_overrides_runpath=yes
7991 hardcode_into_libs=yes
7996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7997 shlibpath_var=LD_LIBRARY_PATH
7998 shlibpath_overrides_runpath=yes
8005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8006 soname_spec='${libname}${release}${shared_ext}$major'
8007 shlibpath_var=LD_LIBRARY_PATH
8008 shlibpath_overrides_runpath=yes
8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8017 shlibpath_var=LD_LIBRARY_PATH
8018 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8020 openbsd2.[89] | openbsd2.[89].*)
8021 shlibpath_overrides_runpath=no
8024 shlibpath_overrides_runpath=yes
8028 shlibpath_overrides_runpath=yes
8033 libname_spec='$name'
8036 library_names_spec='$libname${shared_ext} $libname.a'
8037 dynamic_linker='OS/2 ld.exe'
8038 shlibpath_var=LIBPATH
8041 osf3* | osf4* | osf5*)
8045 soname_spec='${libname}${release}${shared_ext}$major'
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047 shlibpath_var=LD_LIBRARY_PATH
8048 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8049 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8054 soname_spec='${libname}${release}${shared_ext}$major'
8055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056 shlibpath_var=LD_LIBRARY_PATH
8063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8064 soname_spec='${libname}${release}${shared_ext}$major'
8065 shlibpath_var=LD_LIBRARY_PATH
8066 shlibpath_overrides_runpath=yes
8067 hardcode_into_libs=yes
8068 # ldd complains unless libraries are executable
8069 postinstall_cmds='chmod +x $lib'
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8076 shlibpath_var=LD_LIBRARY_PATH
8077 shlibpath_overrides_runpath=yes
8078 if test "$with_gnu_ld" = yes; then
8084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8087 soname_spec='${libname}${release}${shared_ext}$major'
8088 shlibpath_var=LD_LIBRARY_PATH
8089 case $host_vendor in
8091 shlibpath_overrides_runpath=no
8093 export_dynamic_flag_spec='${wl}-Blargedynsym'
8094 runpath_var=LD_RUN_PATH
8102 shlibpath_overrides_runpath=no
8103 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8109 if test -d /usr/nec ;then
8111 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8112 soname_spec='$libname${shared_ext}.$major'
8113 shlibpath_var=LD_LIBRARY_PATH
8119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8120 soname_spec='${libname}${release}${shared_ext}$major'
8121 shlibpath_var=LD_LIBRARY_PATH
8128 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8129 echo "${ECHO_T}$dynamic_linker" >&6
8130 test "$dynamic_linker" = no && can_build_shared=no
8132 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8133 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8135 if test -n "$hardcode_libdir_flag_spec" || \
8136 test -n "$runpath_var " || \
8137 test "X$hardcode_automatic"="Xyes" ; then
8139 # We can hardcode non-existant directories.
8140 if test "$hardcode_direct" != no &&
8141 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8142 # have to relink, otherwise we might link with an installed library
8143 # when we should be linking with a yet-to-be-installed one
8144 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8145 test "$hardcode_minus_L" != no; then
8146 # Linking always hardcodes the temporary library directory.
8147 hardcode_action=relink
8149 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8150 hardcode_action=immediate
8153 # We cannot hardcode anything, or else we can only hardcode existing
8155 hardcode_action=unsupported
8157 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8158 echo "${ECHO_T}$hardcode_action" >&6
8160 if test "$hardcode_action" = relink; then
8161 # Fast installation is not supported
8162 enable_fast_install=no
8163 elif test "$shlibpath_overrides_runpath" = yes ||
8164 test "$enable_shared" = no; then
8165 # Fast installation is not necessary
8166 enable_fast_install=needless
8171 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8172 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8173 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8174 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8175 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8176 echo "$as_me:$LINENO: result: yes" >&5
8177 echo "${ECHO_T}yes" >&6
8179 # FIXME - insert some real tests, host_os isn't really good enough
8182 if test -n "$STRIP" ; then
8183 striplib="$STRIP -x"
8184 echo "$as_me:$LINENO: result: yes" >&5
8185 echo "${ECHO_T}yes" >&6
8187 echo "$as_me:$LINENO: result: no" >&5
8188 echo "${ECHO_T}no" >&6
8192 echo "$as_me:$LINENO: result: no" >&5
8193 echo "${ECHO_T}no" >&6
8198 if test "x$enable_dlopen" != xyes; then
8199 enable_dlopen=unknown
8200 enable_dlopen_self=unknown
8201 enable_dlopen_self_static=unknown
8208 lt_cv_dlopen="load_add_on"
8210 lt_cv_dlopen_self=yes
8214 lt_cv_dlopen="LoadLibrary"
8219 lt_cv_dlopen="dlopen"
8224 # if libdl is installed we need to link against it
8225 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8226 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8227 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 ac_check_lib_save_LIBS=$LIBS
8232 cat >conftest.$ac_ext <<_ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8239 /* Override any gcc2 internal prototype to avoid an error. */
8243 /* We use char because int might match the return type of a gcc2
8244 builtin and then its argument prototype would still apply. */
8254 rm -f conftest.$ac_objext conftest$ac_exeext
8255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256 (eval $ac_link) 2>conftest.er1
8258 grep -v '^ *+' conftest.er1 >conftest.err
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest$ac_exeext'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 ac_cv_lib_dl_dlopen=yes
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 ac_cv_lib_dl_dlopen=no
8282 rm -f conftest.err conftest.$ac_objext \
8283 conftest$ac_exeext conftest.$ac_ext
8284 LIBS=$ac_check_lib_save_LIBS
8286 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8287 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8288 if test $ac_cv_lib_dl_dlopen = yes; then
8289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8294 lt_cv_dlopen_self=yes
8301 echo "$as_me:$LINENO: checking for shl_load" >&5
8302 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8303 if test "${ac_cv_func_shl_load+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8314 #define shl_load innocuous_shl_load
8316 /* System header to define __stub macros and hopefully few prototypes,
8317 which can conflict with char shl_load (); below.
8318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8319 <limits.h> exists even on freestanding compilers. */
8322 # include <limits.h>
8324 # include <assert.h>
8329 /* Override any gcc2 internal prototype to avoid an error. */
8334 /* We use char because int might match the return type of a gcc2
8335 builtin and then its argument prototype would still apply. */
8337 /* The GNU C library defines this for functions which it implements
8338 to always fail with ENOSYS. Some functions are actually named
8339 something starting with __ and the normal name is an alias. */
8340 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8343 char (*f) () = shl_load;
8352 return f != shl_load;
8357 rm -f conftest.$ac_objext conftest$ac_exeext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359 (eval $ac_link) 2>conftest.er1
8361 grep -v '^ *+' conftest.er1 >conftest.err
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_cv_func_shl_load=yes
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_func_shl_load=no
8385 rm -f conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8388 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8389 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8390 if test $ac_cv_func_shl_load = yes; then
8391 lt_cv_dlopen="shl_load"
8393 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8394 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8395 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 ac_check_lib_save_LIBS=$LIBS
8400 cat >conftest.$ac_ext <<_ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8407 /* Override any gcc2 internal prototype to avoid an error. */
8411 /* We use char because int might match the return type of a gcc2
8412 builtin and then its argument prototype would still apply. */
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>conftest.er1
8426 grep -v '^ *+' conftest.er1 >conftest.err
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_lib_dld_shl_load=yes
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8448 ac_cv_lib_dld_shl_load=no
8450 rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 LIBS=$ac_check_lib_save_LIBS
8454 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8455 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8456 if test $ac_cv_lib_dld_shl_load = yes; then
8457 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8459 echo "$as_me:$LINENO: checking for dlopen" >&5
8460 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8461 if test "${ac_cv_func_dlopen+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8472 #define dlopen innocuous_dlopen
8474 /* System header to define __stub macros and hopefully few prototypes,
8475 which can conflict with char dlopen (); below.
8476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8477 <limits.h> exists even on freestanding compilers. */
8480 # include <limits.h>
8482 # include <assert.h>
8487 /* Override any gcc2 internal prototype to avoid an error. */
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8501 char (*f) () = dlopen;
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_func_dlopen=yes
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 ac_cv_func_dlopen=no
8543 rm -f conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8547 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8548 if test $ac_cv_func_dlopen = yes; then
8549 lt_cv_dlopen="dlopen"
8551 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8552 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 ac_check_lib_save_LIBS=$LIBS
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8565 /* Override any gcc2 internal prototype to avoid an error. */
8569 /* We use char because int might match the return type of a gcc2
8570 builtin and then its argument prototype would still apply. */
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582 (eval $ac_link) 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_lib_dl_dlopen=yes
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 ac_cv_lib_dl_dlopen=no
8608 rm -f conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
8610 LIBS=$ac_check_lib_save_LIBS
8612 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8613 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8614 if test $ac_cv_lib_dl_dlopen = yes; then
8615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8617 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8618 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8619 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 ac_check_lib_save_LIBS=$LIBS
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8631 /* Override any gcc2 internal prototype to avoid an error. */
8635 /* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; } &&
8661 { ac_try='test -s conftest$ac_exeext'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8667 ac_cv_lib_svld_dlopen=yes
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 ac_cv_lib_svld_dlopen=no
8674 rm -f conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8678 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8679 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8680 if test $ac_cv_lib_svld_dlopen = yes; then
8681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8683 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8684 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8685 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 ac_check_lib_save_LIBS=$LIBS
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8697 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8716 grep -v '^ *+' conftest.er1 >conftest.err
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_cv_lib_dld_dld_link=yes
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_lib_dld_dld_link=no
8740 rm -f conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8742 LIBS=$ac_check_lib_save_LIBS
8744 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8745 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8746 if test $ac_cv_lib_dld_dld_link = yes; then
8747 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8768 if test "x$lt_cv_dlopen" != xno; then
8774 case $lt_cv_dlopen in
8776 save_CPPFLAGS="$CPPFLAGS"
8777 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8779 save_LDFLAGS="$LDFLAGS"
8780 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8783 LIBS="$lt_cv_dlopen_libs $LIBS"
8785 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8786 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8787 if test "${lt_cv_dlopen_self+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 if test "$cross_compiling" = yes; then :
8791 lt_cv_dlopen_self=cross
8793 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8794 lt_status=$lt_dlunknown
8795 cat > conftest.$ac_ext <<EOF
8796 #line 8796 "configure"
8797 #include "confdefs.h"
8806 # define LT_DLGLOBAL RTLD_GLOBAL
8809 # define LT_DLGLOBAL DL_GLOBAL
8811 # define LT_DLGLOBAL 0
8815 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8816 find out it does not work in some platform. */
8817 #ifndef LT_DLLAZY_OR_NOW
8819 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8822 # define LT_DLLAZY_OR_NOW DL_LAZY
8825 # define LT_DLLAZY_OR_NOW RTLD_NOW
8828 # define LT_DLLAZY_OR_NOW DL_NOW
8830 # define LT_DLLAZY_OR_NOW 0
8838 extern "C" void exit (int);
8841 void fnord() { int i=42;}
8844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8845 int status = $lt_dlunknown;
8849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8850 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8851 /* dlclose (self); */
8857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858 (eval $ac_link) 2>&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8862 (./conftest; exit; ) 2>/dev/null
8865 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8866 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8867 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8870 # compilation failed
8871 lt_cv_dlopen_self=no
8878 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8879 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8881 if test "x$lt_cv_dlopen_self" = xyes; then
8882 LDFLAGS="$LDFLAGS $link_static_flag"
8883 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8884 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8885 if test "${lt_cv_dlopen_self_static+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 if test "$cross_compiling" = yes; then :
8889 lt_cv_dlopen_self_static=cross
8891 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8892 lt_status=$lt_dlunknown
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8894 "configure"
8895 #include "confdefs.h"
8904 # define LT_DLGLOBAL RTLD_GLOBAL
8907 # define LT_DLGLOBAL DL_GLOBAL
8909 # define LT_DLGLOBAL 0
8913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8914 find out it does not work in some platform. */
8915 #ifndef LT_DLLAZY_OR_NOW
8917 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8920 # define LT_DLLAZY_OR_NOW DL_LAZY
8923 # define LT_DLLAZY_OR_NOW RTLD_NOW
8926 # define LT_DLLAZY_OR_NOW DL_NOW
8928 # define LT_DLLAZY_OR_NOW 0
8936 extern "C" void exit (int);
8939 void fnord() { int i=42;}
8942 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8943 int status = $lt_dlunknown;
8947 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8948 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8949 /* dlclose (self); */
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8960 (./conftest; exit; ) 2>/dev/null
8963 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8964 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8965 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8968 # compilation failed
8969 lt_cv_dlopen_self_static=no
8976 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8977 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8980 CPPFLAGS="$save_CPPFLAGS"
8981 LDFLAGS="$save_LDFLAGS"
8986 case $lt_cv_dlopen_self in
8987 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8988 *) enable_dlopen_self=unknown ;;
8991 case $lt_cv_dlopen_self_static in
8992 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8993 *) enable_dlopen_self_static=unknown ;;
8998 # Report which librarie types wil actually be built
8999 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9000 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9001 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9002 echo "${ECHO_T}$can_build_shared" >&6
9004 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9005 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9006 test "$can_build_shared" = "no" && enable_shared=no
9008 # On AIX, shared libraries and static libraries use the same namespace, and
9009 # are all built from PIC.
9012 test "$enable_shared" = yes && enable_static=no
9013 if test -n "$RANLIB"; then
9014 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9015 postinstall_cmds='$RANLIB $lib'
9020 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9021 test "$enable_shared" = yes && enable_static=no
9024 darwin* | rhapsody*)
9025 if test "$GCC" = yes; then
9026 archive_cmds_need_lc=no
9028 rhapsody* | darwin1.[012])
9029 allow_undefined_flag='-undefined suppress'
9032 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9033 allow_undefined_flag='-flat_namespace -undefined suppress'
9035 case ${MACOSX_DEPLOYMENT_TARGET} in
9037 allow_undefined_flag='-flat_namespace -undefined suppress'
9040 allow_undefined_flag='-undefined dynamic_lookup'
9046 output_verbose_link_cmd='echo'
9047 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9048 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9049 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9050 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}'
9051 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}'
9053 hardcode_automatic=yes
9054 hardcode_shlibpath_var=unsupported
9055 whole_archive_flag_spec='-all_load $convenience'
9056 link_all_deplibs=yes
9062 echo "$as_me:$LINENO: result: $enable_shared" >&5
9063 echo "${ECHO_T}$enable_shared" >&6
9065 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9066 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9067 # Make sure either enable_shared or enable_static is yes.
9068 test "$enable_shared" = yes || enable_static=yes
9069 echo "$as_me:$LINENO: result: $enable_static" >&5
9070 echo "${ECHO_T}$enable_static" >&6
9072 # The else clause should only fire when bootstrapping the
9073 # libtool distribution, otherwise you forgot to ship ltmain.sh
9074 # with your package, and you will get complaints that there are
9075 # no rules to generate ltmain.sh.
9076 if test -f "$ltmain"; then
9077 # See if we are running on zsh, and set the options which allow our commands through
9078 # without removal of \ escapes.
9079 if test -n "${ZSH_VERSION+set}" ; then
9080 setopt NO_GLOB_SUBST
9082 # Now quote all the things that may contain metacharacters while being
9083 # careful not to overquote the AC_SUBSTed values. We take copies of the
9084 # variables and quote the copies for generation of the libtool script.
9085 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9089 deplibs_check_method reload_flag reload_cmds need_locks \
9090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9091 lt_cv_sys_global_symbol_to_c_name_address \
9092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9093 old_postinstall_cmds old_postuninstall_cmds \
9097 lt_prog_compiler_wl \
9098 lt_prog_compiler_pic \
9099 lt_prog_compiler_static \
9100 lt_prog_compiler_no_builtin_flag \
9101 export_dynamic_flag_spec \
9102 thread_safe_flag_spec \
9103 whole_archive_flag_spec \
9104 enable_shared_with_static_runtimes \
9106 old_archive_from_new_cmds \
9111 compiler_lib_search_path \
9113 archive_expsym_cmds \
9115 postuninstall_cmds \
9116 old_archive_from_expsyms_cmds \
9117 allow_undefined_flag \
9119 export_symbols_cmds \
9120 hardcode_libdir_flag_spec \
9121 hardcode_libdir_flag_spec_ld \
9122 hardcode_libdir_separator \
9123 hardcode_automatic \
9125 module_expsym_cmds \
9126 lt_cv_prog_compiler_c_o \
9131 old_archive_cmds | \
9132 old_archive_from_new_cmds | \
9134 archive_expsym_cmds | \
9136 module_expsym_cmds | \
9137 old_archive_from_expsyms_cmds | \
9138 export_symbols_cmds | \
9139 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9140 postinstall_cmds | postuninstall_cmds | \
9141 old_postinstall_cmds | old_postuninstall_cmds | \
9142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9143 # Double-quote double-evaled strings.
9144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9153 *'\$0 --fallback-echo"')
9154 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9159 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9161 { echo "$as_me:$LINENO: creating $ofile" >&5
9162 echo "$as_me: creating $ofile" >&6;}
9164 cat <<__EOF__ >> "$cfgfile"
9167 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9168 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9169 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9171 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9172 # Free Software Foundation, Inc.
9174 # This file is part of GNU Libtool:
9175 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9177 # This program is free software; you can redistribute it and/or modify
9178 # it under the terms of the GNU General Public License as published by
9179 # the Free Software Foundation; either version 2 of the License, or
9180 # (at your option) any later version.
9182 # This program is distributed in the hope that it will be useful, but
9183 # WITHOUT ANY WARRANTY; without even the implied warranty of
9184 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9185 # General Public License for more details.
9187 # You should have received a copy of the GNU General Public License
9188 # along with this program; if not, write to the Free Software
9189 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9191 # As a special exception to the GNU General Public License, if you
9192 # distribute this file as part of a program that contains a
9193 # configuration script generated by Autoconf, you may include it under
9194 # the same distribution terms that you use for the rest of that program.
9196 # A sed program that does not truncate output.
9199 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9200 Xsed="$SED -e s/^X//"
9202 # The HP-UX ksh and POSIX shell print the target directory to stdout
9204 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9206 # The names of the tagged configurations supported by this script.
9209 # ### BEGIN LIBTOOL CONFIG
9211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9213 # Shell to use when invoking shell scripts.
9216 # Whether or not to build shared libraries.
9217 build_libtool_libs=$enable_shared
9219 # Whether or not to build static libraries.
9220 build_old_libs=$enable_static
9222 # Whether or not to add -lc for building shared libraries.
9223 build_libtool_need_lc=$archive_cmds_need_lc
9225 # Whether or not to disallow shared libs when runtime libs are static
9226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9228 # Whether or not to optimize for fast installation.
9229 fast_install=$enable_fast_install
9232 host_alias=$host_alias
9235 # An echo program that does not interpret backslashes.
9240 AR_FLAGS=$lt_AR_FLAGS
9245 # A language-specific compiler.
9248 # Is the compiler the GNU C compiler?
9254 # The linker used to build libraries.
9257 # Whether we need hard or soft links.
9260 # A BSD-compatible nm program.
9263 # A symbol stripping program
9266 # Used to examine libraries when file_magic_cmd begins "file"
9267 MAGIC_CMD=$MAGIC_CMD
9269 # Used on cygwin: DLL creation program.
9272 # Used on cygwin: object dumper.
9275 # Used on cygwin: assembler.
9278 # The name of the directory that contains temporary libtool files.
9281 # How to create reloadable object files.
9282 reload_flag=$lt_reload_flag
9283 reload_cmds=$lt_reload_cmds
9285 # How to pass a linker flag through the compiler.
9286 wl=$lt_lt_prog_compiler_wl
9288 # Object file suffix (normally "o").
9291 # Old archive suffix (normally "a").
9294 # Shared library suffix (normally ".so").
9295 shrext_cmds='$shrext_cmds'
9297 # Executable file suffix (normally "").
9300 # Additional compiler flags for building library objects.
9301 pic_flag=$lt_lt_prog_compiler_pic
9304 # What is the maximum length of a command?
9305 max_cmd_len=$lt_cv_sys_max_cmd_len
9307 # Does compiler simultaneously support -c and -o options?
9308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9310 # Must we lock files when doing compilation ?
9311 need_locks=$lt_need_locks
9313 # Do we need the lib prefix for modules?
9314 need_lib_prefix=$need_lib_prefix
9316 # Do we need a version for libraries?
9317 need_version=$need_version
9319 # Whether dlopen is supported.
9320 dlopen_support=$enable_dlopen
9322 # Whether dlopen of programs is supported.
9323 dlopen_self=$enable_dlopen_self
9325 # Whether dlopen of statically linked programs is supported.
9326 dlopen_self_static=$enable_dlopen_self_static
9328 # Compiler flag to prevent dynamic linking.
9329 link_static_flag=$lt_lt_prog_compiler_static
9331 # Compiler flag to turn off builtin functions.
9332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9334 # Compiler flag to allow reflexive dlopens.
9335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9337 # Compiler flag to generate shared objects directly from archives.
9338 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9340 # Compiler flag to generate thread-safe objects.
9341 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9343 # Library versioning type.
9344 version_type=$version_type
9346 # Format of library name prefix.
9347 libname_spec=$lt_libname_spec
9349 # List of archive names. First name is the real one, the rest are links.
9350 # The last name is the one that the linker finds with -lNAME.
9351 library_names_spec=$lt_library_names_spec
9353 # The coded name of the library, if different from the real name.
9354 soname_spec=$lt_soname_spec
9356 # Commands used to build and install an old-style archive.
9358 old_archive_cmds=$lt_old_archive_cmds
9359 old_postinstall_cmds=$lt_old_postinstall_cmds
9360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9362 # Create an old-style archive from a shared archive.
9363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9365 # Create a temporary old-style archive to link instead of a shared archive.
9366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9368 # Commands used to build and install a shared archive.
9369 archive_cmds=$lt_archive_cmds
9370 archive_expsym_cmds=$lt_archive_expsym_cmds
9371 postinstall_cmds=$lt_postinstall_cmds
9372 postuninstall_cmds=$lt_postuninstall_cmds
9374 # Commands used to build a loadable module (assumed same as above if empty)
9375 module_cmds=$lt_module_cmds
9376 module_expsym_cmds=$lt_module_expsym_cmds
9378 # Commands to strip libraries.
9379 old_striplib=$lt_old_striplib
9380 striplib=$lt_striplib
9382 # Dependencies to place before the objects being linked to create a
9384 predep_objects=$lt_predep_objects
9386 # Dependencies to place after the objects being linked to create a
9388 postdep_objects=$lt_postdep_objects
9390 # Dependencies to place before the objects being linked to create a
9394 # Dependencies to place after the objects being linked to create a
9396 postdeps=$lt_postdeps
9398 # The library search path used internally by the compiler when linking
9400 compiler_lib_search_path=$lt_compiler_lib_search_path
9402 # Method to check whether dependent libraries are shared objects.
9403 deplibs_check_method=$lt_deplibs_check_method
9405 # Command to use when deplibs_check_method == file_magic.
9406 file_magic_cmd=$lt_file_magic_cmd
9408 # Flag that allows shared libraries with undefined symbols to be built.
9409 allow_undefined_flag=$lt_allow_undefined_flag
9411 # Flag that forces no undefined symbols.
9412 no_undefined_flag=$lt_no_undefined_flag
9414 # Commands used to finish a libtool library installation in a directory.
9415 finish_cmds=$lt_finish_cmds
9417 # Same as above, but a single script fragment to be evaled but not shown.
9418 finish_eval=$lt_finish_eval
9420 # Take the output of nm and produce a listing of raw symbols and C names.
9421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9423 # Transform the output of nm in a proper C declaration
9424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9426 # Transform the output of nm in a C name address pair
9427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9429 # This is the shared library runtime path variable.
9430 runpath_var=$runpath_var
9432 # This is the shared library path variable.
9433 shlibpath_var=$shlibpath_var
9435 # Is shlibpath searched before the hard-coded library search path?
9436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9438 # How to hardcode a shared library path into an executable.
9439 hardcode_action=$hardcode_action
9441 # Whether we should hardcode library paths into libraries.
9442 hardcode_into_libs=$hardcode_into_libs
9444 # Flag to hardcode \$libdir into a binary during linking.
9445 # This must work even if \$libdir does not exist.
9446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9448 # If ld is used when linking, flag to hardcode \$libdir into
9449 # a binary during linking. This must work even if \$libdir does
9451 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9453 # Whether we need a single -rpath flag with a separated argument.
9454 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9456 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9458 hardcode_direct=$hardcode_direct
9460 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9462 hardcode_minus_L=$hardcode_minus_L
9464 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9465 # the resulting binary.
9466 hardcode_shlibpath_var=$hardcode_shlibpath_var
9468 # Set to yes if building a shared library automatically hardcodes DIR into the library
9469 # and all subsequent libraries and executables linked against it.
9470 hardcode_automatic=$hardcode_automatic
9472 # Variables whose values should be saved in libtool wrapper scripts and
9473 # restored at relink time.
9474 variables_saved_for_relink="$variables_saved_for_relink"
9476 # Whether libtool must link a program against all its dependency libraries.
9477 link_all_deplibs=$link_all_deplibs
9479 # Compile-time system search path for libraries
9480 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9482 # Run-time system search path for libraries
9483 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9485 # Fix the shell variable \$srcfile for the compiler.
9486 fix_srcfile_path="$fix_srcfile_path"
9488 # Set to yes if exported symbols are required.
9489 always_export_symbols=$always_export_symbols
9491 # The commands to list exported symbols.
9492 export_symbols_cmds=$lt_export_symbols_cmds
9494 # The commands to extract the exported symbol list from a shared archive.
9495 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9497 # Symbols that should not be listed in the preloaded symbols.
9498 exclude_expsyms=$lt_exclude_expsyms
9500 # Symbols that must always be exported.
9501 include_expsyms=$lt_include_expsyms
9503 # ### END LIBTOOL CONFIG
9510 cat <<\EOF >> "$cfgfile"
9512 # AIX sometimes has problems with the GCC collect2 program. For some
9513 # reason, if we set the COLLECT_NAMES environment variable, the problems
9514 # vanish in a puff of smoke.
9515 if test "X${COLLECT_NAMES+set}" != Xset; then
9517 export COLLECT_NAMES
9523 # We use sed instead of cat because bash on DJGPP gets confused if
9524 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9525 # text mode, it properly converts lines to CR/LF. This bash problem
9526 # is reportedly fixed, but why not run on old versions too?
9527 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9529 mv -f "$cfgfile" "$ofile" || \
9530 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9534 # If there is no Makefile yet, we rely on a make rule to execute
9535 # `config.status --recheck' to rerun these tests and create the
9536 # libtool script then.
9537 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9538 if test -f "$ltmain_in"; then
9539 test -f Makefile && make "$ltmain"
9545 ac_cpp='$CPP $CPPFLAGS'
9546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9553 # Check whether --with-tags or --without-tags was given.
9554 if test "${with_tags+set}" = set; then
9555 withval="$with_tags"
9559 if test -f "$ltmain" && test -n "$tagnames"; then
9560 if test ! -f "${ofile}"; then
9561 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9562 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9565 if test -z "$LTCC"; then
9566 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9567 if test -z "$LTCC"; then
9568 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9569 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9572 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9576 # Extract list of available tagged configurations in $ofile.
9577 # Note that this assumes the entire list is on one line.
9578 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9581 for tagname in $tagnames; do
9583 # Check whether tagname contains only valid characters
9584 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9586 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9587 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9588 { (exit 1); exit 1; }; }
9592 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9594 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9595 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9596 { (exit 1); exit 1; }; }
9599 # Update the list of available tags.
9600 if test -n "$tagname"; then
9601 echo appending configuration tag \"$tagname\" to $ofile
9605 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9607 ac_cpp='$CXXCPP $CPPFLAGS'
9608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9615 archive_cmds_need_lc_CXX=no
9616 allow_undefined_flag_CXX=
9617 always_export_symbols_CXX=no
9618 archive_expsym_cmds_CXX=
9619 export_dynamic_flag_spec_CXX=
9620 hardcode_direct_CXX=no
9621 hardcode_libdir_flag_spec_CXX=
9622 hardcode_libdir_flag_spec_ld_CXX=
9623 hardcode_libdir_separator_CXX=
9624 hardcode_minus_L_CXX=no
9625 hardcode_automatic_CXX=no
9627 module_expsym_cmds_CXX=
9628 link_all_deplibs_CXX=unknown
9629 old_archive_cmds_CXX=$old_archive_cmds
9630 no_undefined_flag_CXX=
9631 whole_archive_flag_spec_CXX=
9632 enable_shared_with_static_runtimes_CXX=no
9634 # Dependencies to place before and after the object being linked:
9636 postdep_objects_CXX=
9639 compiler_lib_search_path_CXX=
9641 # Source file extension for C++ test sources.
9644 # Object file extension for compiled C++ test sources.
9648 # Code to be used in simple compile tests
9649 lt_simple_compile_test_code="int some_variable = 0;\n"
9651 # Code to be used in simple link tests
9652 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9654 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9656 # If no C compiler was specified, use CC.
9659 # Allow CC to be a program name with arguments.
9663 # Allow CC to be a program name with arguments.
9668 lt_save_with_gnu_ld=$with_gnu_ld
9669 lt_save_path_LD=$lt_cv_path_LD
9670 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9671 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9673 unset lt_cv_prog_gnu_ld
9675 if test -n "${lt_cv_path_LDCXX+set}"; then
9676 lt_cv_path_LD=$lt_cv_path_LDCXX
9680 test -z "${LDCXX+set}" || LD=$LDCXX
9684 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9686 # We don't want -fno-exception wen compiling C++ code, so set the
9687 # no_builtin_flag separately
9688 if test "$GXX" = yes; then
9689 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9691 lt_prog_compiler_no_builtin_flag_CXX=
9694 if test "$GXX" = yes; then
9695 # Set up default GNU C++ configuration
9698 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9699 if test "${with_gnu_ld+set}" = set; then
9700 withval="$with_gnu_ld"
9701 test "$withval" = no || with_gnu_ld=yes
9706 if test "$GCC" = yes; then
9707 # Check if gcc -print-prog-name=ld gives a path.
9708 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9709 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9712 # gcc leaves a trailing carriage return which upsets mingw
9713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9718 # Accept absolute paths.
9720 re_direlt='/[^/][^/]*/\.\./'
9721 # Canonicalize the pathname of ld
9722 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9723 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9724 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9726 test -z "$LD" && LD="$ac_prog"
9729 # If it fails, then pretend we aren't using GCC.
9733 # If it is relative, then search for the first ld in PATH.
9737 elif test "$with_gnu_ld" = yes; then
9738 echo "$as_me:$LINENO: checking for GNU ld" >&5
9739 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9741 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9742 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9744 if test "${lt_cv_path_LD+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 if test -z "$LD"; then
9748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9749 for ac_dir in $PATH; do
9751 test -z "$ac_dir" && ac_dir=.
9752 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9753 lt_cv_path_LD="$ac_dir/$ac_prog"
9754 # Check to see if the program is GNU ld. I'd rather use --version,
9755 # but apparently some GNU ld's only accept -v.
9756 # Break only if it was the GNU/non-GNU ld that we prefer.
9757 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9758 *GNU* | *'with BFD'*)
9759 test "$with_gnu_ld" != no && break
9762 test "$with_gnu_ld" != yes && break
9769 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9774 if test -n "$LD"; then
9775 echo "$as_me:$LINENO: result: $LD" >&5
9776 echo "${ECHO_T}$LD" >&6
9778 echo "$as_me:$LINENO: result: no" >&5
9779 echo "${ECHO_T}no" >&6
9781 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9782 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9783 { (exit 1); exit 1; }; }
9784 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9785 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9786 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9790 case `$LD -v 2>&1 </dev/null` in
9791 *GNU* | *'with BFD'*)
9792 lt_cv_prog_gnu_ld=yes
9795 lt_cv_prog_gnu_ld=no
9799 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9800 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9801 with_gnu_ld=$lt_cv_prog_gnu_ld
9805 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9806 # archiving commands below assume that GNU ld is being used.
9807 if test "$with_gnu_ld" = yes; then
9808 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9809 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'
9811 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9812 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9814 # If archive_cmds runs LD, not CC, wlarc should be empty
9815 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9816 # investigate it a little bit more. (MM)
9819 # ancient GNU ld didn't support --whole-archive et. al.
9820 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9821 grep 'no-whole-archive' > /dev/null; then
9822 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9824 whole_archive_flag_spec_CXX=
9830 # A generic and very simple default shared library creation
9831 # command for GNU C++ for the case where it uses the native
9832 # linker, instead of GNU ld. If possible, this setting should
9833 # overridden to take advantage of the native linker features on
9834 # the platform it is being used on.
9835 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9838 # Commands to make compiler produce verbose output that lists
9839 # what "hidden" libraries, object files and flags are used when
9840 # linking a shared library.
9841 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9849 # PORTME: fill in a description of your system's C++ link characteristics
9850 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9855 # FIXME: insert proper C++ library support
9859 if test "$host_cpu" = ia64; then
9860 # On IA64, the linker does run time linking by default, so we don't
9861 # have to do anything special.
9862 aix_use_runtimelinking=no
9863 exp_sym_flag='-Bexport'
9866 aix_use_runtimelinking=no
9868 # Test if we are trying to use run time linking or normal
9869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9870 # need to do runtime linking.
9871 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9872 for ld_flag in $LDFLAGS; do
9875 aix_use_runtimelinking=yes
9882 exp_sym_flag='-bexport'
9883 no_entry_flag='-bnoentry'
9886 # When large executables or shared objects are built, AIX ld can
9887 # have problems creating the table of contents. If linking a library
9888 # or program results in "error TOC overflow" add -mminimal-toc to
9889 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9890 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9893 hardcode_direct_CXX=yes
9894 hardcode_libdir_separator_CXX=':'
9895 link_all_deplibs_CXX=yes
9897 if test "$GXX" = yes; then
9898 case $host_os in aix4.012|aix4.012.*)
9899 # We only want to do this on AIX 4.2 and lower, the check
9900 # below for broken collect2 doesn't work under 4.3+
9901 collect2name=`${CC} -print-prog-name=collect2`
9902 if test -f "$collect2name" && \
9903 strings "$collect2name" | grep resolve_lib_name >/dev/null
9905 # We have reworked collect2
9906 hardcode_direct_CXX=yes
9908 # We have old collect2
9909 hardcode_direct_CXX=unsupported
9910 # It fails to find uninstalled libraries when the uninstalled
9911 # path is not listed in the libpath. Setting hardcode_minus_L
9912 # to unsupported forces relinking
9913 hardcode_minus_L_CXX=yes
9914 hardcode_libdir_flag_spec_CXX='-L$libdir'
9915 hardcode_libdir_separator_CXX=
9918 shared_flag='-shared'
9921 if test "$host_cpu" = ia64; then
9922 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9923 # chokes on -Wl,-G. The following line is correct:
9926 if test "$aix_use_runtimelinking" = yes; then
9927 shared_flag='${wl}-G'
9929 shared_flag='${wl}-bM:SRE'
9934 # It seems that -bexpall does not export symbols beginning with
9935 # underscore (_), so it is better to generate a list of symbols to export.
9936 always_export_symbols_CXX=yes
9937 if test "$aix_use_runtimelinking" = yes; then
9938 # Warning - without using the other runtime loading flags (-brtl),
9939 # -berok will link without error, but may produce a broken library.
9940 allow_undefined_flag_CXX='-berok'
9941 # Determine the default libpath from the value encoded in an empty executable.
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959 (eval $ac_link) 2>conftest.er1
9961 grep -v '^ *+' conftest.er1 >conftest.err
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9981 # Check for a 64-bit object if we didn't find anything.
9982 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; }
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9989 rm -f conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9993 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9995 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"
9997 if test "$host_cpu" = ia64; then
9998 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9999 allow_undefined_flag_CXX="-z nodefs"
10000 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"
10002 # Determine the default libpath from the value encoded in an empty executable.
10003 cat >conftest.$ac_ext <<_ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020 (eval $ac_link) 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
10040 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10042 # Check for a 64-bit object if we didn't find anything.
10043 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; }
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10050 rm -f conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10054 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10055 # Warning - without using the other run time loading flags,
10056 # -berok will link without error, but may produce a broken library.
10057 no_undefined_flag_CXX=' ${wl}-bernotok'
10058 allow_undefined_flag_CXX=' ${wl}-berok'
10059 # -bexpall does not export symbols beginning with underscore (_)
10060 always_export_symbols_CXX=yes
10061 # Exported symbols can be pulled into shared objects from archives
10062 whole_archive_flag_spec_CXX=' '
10063 archive_cmds_need_lc_CXX=yes
10064 # This is similar to how AIX traditionally builds it's shared libraries.
10065 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'
10070 case $cc_basename in
10072 # FIXME: insert proper C++ library support
10078 cygwin* | mingw* | pw32*)
10079 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10080 # as there is no search path for DLLs.
10081 hardcode_libdir_flag_spec_CXX='-L$libdir'
10082 allow_undefined_flag_CXX=unsupported
10083 always_export_symbols_CXX=no
10084 enable_shared_with_static_runtimes_CXX=yes
10086 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10087 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'
10088 # If the export-symbols file already is a .def file (1st line
10089 # is EXPORTS), use it as is; otherwise, prepend...
10090 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10091 cp $export_symbols $output_objdir/$soname.def;
10093 echo EXPORTS > $output_objdir/$soname.def;
10094 cat $export_symbols >> $output_objdir/$soname.def;
10096 $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'
10102 darwin* | rhapsody*)
10103 if test "$GXX" = yes; then
10104 archive_cmds_need_lc_CXX=no
10106 rhapsody* | darwin1.[012])
10107 allow_undefined_flag_CXX='-undefined suppress'
10110 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10111 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10113 case ${MACOSX_DEPLOYMENT_TARGET} in
10115 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10118 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10124 lt_int_apple_cc_single_mod=no
10125 output_verbose_link_cmd='echo'
10126 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10127 lt_int_apple_cc_single_mod=yes
10129 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10130 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10132 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'
10134 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10136 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10137 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10138 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}'
10140 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}'
10142 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}'
10143 hardcode_direct_CXX=no
10144 hardcode_automatic_CXX=yes
10145 hardcode_shlibpath_var_CXX=unsupported
10146 whole_archive_flag_spec_CXX='-all_load $convenience'
10147 link_all_deplibs_CXX=yes
10154 case $cc_basename in
10156 # FIXME: insert proper C++ library support
10160 # Green Hills C++ Compiler
10161 # FIXME: insert proper C++ library support
10165 # FIXME: insert proper C++ library support
10171 # C++ shared libraries reported to be fairly broken before switch to ELF
10175 archive_cmds_need_lc_CXX=no
10177 freebsd* | kfreebsd*-gnu)
10178 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10185 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10186 hardcode_libdir_separator_CXX=:
10187 export_dynamic_flag_spec_CXX='${wl}-E'
10188 hardcode_direct_CXX=yes
10189 hardcode_minus_L_CXX=yes # Not in the search PATH,
10190 # but as the default
10191 # location of the library.
10193 case $cc_basename in
10195 # FIXME: insert proper C++ library support
10199 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'
10200 # Commands to make compiler produce verbose output that lists
10201 # what "hidden" libraries, object files and flags are used when
10202 # linking a shared library.
10204 # There doesn't appear to be a way to prevent this compiler from
10205 # explicitly linking system object files so we need to strip them
10206 # from the output so that they don't get included in the library
10208 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'
10211 if test "$GXX" = yes; then
10212 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'
10214 # FIXME: insert proper C++ library support
10221 if test $with_gnu_ld = no; then
10222 case "$host_cpu" in
10224 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10225 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10226 hardcode_libdir_separator_CXX=:
10229 hardcode_libdir_flag_spec_CXX='-L$libdir'
10232 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10233 hardcode_libdir_separator_CXX=:
10234 export_dynamic_flag_spec_CXX='${wl}-E'
10238 case "$host_cpu" in
10240 hardcode_direct_CXX=no
10241 hardcode_shlibpath_var_CXX=no
10244 hardcode_direct_CXX=no
10245 hardcode_shlibpath_var_CXX=no
10246 hardcode_minus_L_CXX=yes # Not in the search PATH,
10247 # but as the default
10248 # location of the library.
10251 hardcode_direct_CXX=yes
10252 hardcode_minus_L_CXX=yes # Not in the search PATH,
10253 # but as the default
10254 # location of the library.
10258 case $cc_basename in
10260 # FIXME: insert proper C++ library support
10264 case "$host_cpu" in
10266 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10269 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10272 # Commands to make compiler produce verbose output that lists
10273 # what "hidden" libraries, object files and flags are used when
10274 # linking a shared library.
10276 # There doesn't appear to be a way to prevent this compiler from
10277 # explicitly linking system object files so we need to strip them
10278 # from the output so that they don't get included in the library
10280 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'
10283 if test "$GXX" = yes; then
10284 if test $with_gnu_ld = no; then
10285 case "$host_cpu" in
10287 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10290 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'
10295 # FIXME: insert proper C++ library support
10302 case $cc_basename in
10305 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'
10307 # Archives containing C++ object files must be created using
10308 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10309 # necessary to make sure instantiated templates are included
10311 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10314 if test "$GXX" = yes; then
10315 if test "$with_gnu_ld" = no; then
10316 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'
10318 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'
10321 link_all_deplibs_CXX=yes
10324 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10325 hardcode_libdir_separator_CXX=:
10328 case $cc_basename in
10330 # Kuck and Associates, Inc. (KAI) C++ Compiler
10332 # KCC will only create a shared library if the output file
10333 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10334 # to its proper name (with version) after linking.
10335 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'
10336 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'
10337 # Commands to make compiler produce verbose output that lists
10338 # what "hidden" libraries, object files and flags are used when
10339 # linking a shared library.
10341 # There doesn't appear to be a way to prevent this compiler from
10342 # explicitly linking system object files so we need to strip them
10343 # from the output so that they don't get included in the library
10345 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'
10347 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10348 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10350 # Archives containing C++ object files must be created using
10351 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10352 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10357 archive_cmds_need_lc_CXX=no
10358 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10359 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'
10360 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10362 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10366 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10367 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'
10369 runpath_var=LD_RUN_PATH
10370 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10371 hardcode_libdir_separator_CXX=:
10373 # Commands to make compiler produce verbose output that lists
10374 # what "hidden" libraries, object files and flags are used when
10375 # linking a shared library.
10377 # There doesn't appear to be a way to prevent this compiler from
10378 # explicitly linking system object files so we need to strip them
10379 # from the output so that they don't get included in the library
10381 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'
10386 # FIXME: insert proper C++ library support
10390 # FIXME: insert proper C++ library support
10394 case $cc_basename in
10396 # FIXME: insert proper C++ library support
10400 # FIXME: insert proper C++ library support
10405 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10407 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10409 hardcode_libdir_flag_spec_CXX='-R$libdir'
10410 hardcode_direct_CXX=yes
10411 hardcode_shlibpath_var_CXX=no
10413 # Workaround some broken pre-1.5 toolchains
10414 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10417 case $cc_basename in
10419 # Kuck and Associates, Inc. (KAI) C++ Compiler
10421 # KCC will only create a shared library if the output file
10422 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10423 # to its proper name (with version) after linking.
10424 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'
10426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10427 hardcode_libdir_separator_CXX=:
10429 # Archives containing C++ object files must be created using
10430 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10431 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10435 # Rational C++ 2.4.1
10436 # FIXME: insert proper C++ library support
10440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10441 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'
10443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10444 hardcode_libdir_separator_CXX=:
10446 # Commands to make compiler produce verbose output that lists
10447 # what "hidden" libraries, object files and flags are used when
10448 # linking a shared library.
10450 # There doesn't appear to be a way to prevent this compiler from
10451 # explicitly linking system object files so we need to strip them
10452 # from the output so that they don't get included in the library
10454 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'
10457 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10459 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'
10461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10462 hardcode_libdir_separator_CXX=:
10464 # Commands to make compiler produce verbose output that lists
10465 # what "hidden" libraries, object files and flags are used when
10466 # linking a shared library.
10467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10470 # FIXME: insert proper C++ library support
10477 case $cc_basename in
10479 # Kuck and Associates, Inc. (KAI) C++ Compiler
10481 # KCC will only create a shared library if the output file
10482 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10483 # to its proper name (with version) after linking.
10484 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'
10486 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10487 hardcode_libdir_separator_CXX=:
10489 # Archives containing C++ object files must be created using
10490 # the KAI C++ compiler.
10491 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10494 # Rational C++ 2.4.1
10495 # FIXME: insert proper C++ library support
10499 allow_undefined_flag_CXX=' -expect_unresolved \*'
10500 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'
10501 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10502 echo "-hidden">> $lib.exp~
10503 $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~
10506 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10507 hardcode_libdir_separator_CXX=:
10509 # Commands to make compiler produce verbose output that lists
10510 # what "hidden" libraries, object files and flags are used when
10511 # linking a shared library.
10513 # There doesn't appear to be a way to prevent this compiler from
10514 # explicitly linking system object files so we need to strip them
10515 # from the output so that they don't get included in the library
10517 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'
10520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10522 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'
10524 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10525 hardcode_libdir_separator_CXX=:
10527 # Commands to make compiler produce verbose output that lists
10528 # what "hidden" libraries, object files and flags are used when
10529 # linking a shared library.
10530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10533 # FIXME: insert proper C++ library support
10540 # FIXME: insert proper C++ library support
10544 archive_cmds_need_lc_CXX=no
10545 case $cc_basename in
10547 # FIXME: insert proper C++ library support
10551 # FIXME: insert proper C++ library support
10557 case $cc_basename in
10560 # FIXME: insert proper C++ library support
10565 # FIXME: insert proper C++ library support
10569 # FIXME: insert proper C++ library support
10575 case $cc_basename in
10577 # Sun C++ 4.2, 5.x and Centerline C++
10578 no_undefined_flag_CXX=' -zdefs'
10579 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10580 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10581 $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'
10583 hardcode_libdir_flag_spec_CXX='-R$libdir'
10584 hardcode_shlibpath_var_CXX=no
10586 solaris2.0-5 | solaris2.0-5.*) ;;
10588 # The C++ compiler is used as linker so we must use $wl
10589 # flag to pass the commands to the underlying system
10591 # Supported since Solaris 2.6 (maybe 2.5.1?)
10592 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10595 link_all_deplibs_CXX=yes
10597 # Commands to make compiler produce verbose output that lists
10598 # what "hidden" libraries, object files and flags are used when
10599 # linking a shared library.
10601 # There doesn't appear to be a way to prevent this compiler from
10602 # explicitly linking system object files so we need to strip them
10603 # from the output so that they don't get included in the library
10605 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'
10607 # Archives containing C++ object files must be created using
10608 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10609 # necessary to make sure instantiated templates are included
10611 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10614 # Green Hills C++ Compiler
10615 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10617 # The C++ compiler must be used to create the archive.
10618 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10621 # GNU C++ compiler with Solaris linker
10622 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10623 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10624 if $CC --version | grep -v '^2\.7' > /dev/null; then
10625 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10626 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10627 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10629 # Commands to make compiler produce verbose output that lists
10630 # what "hidden" libraries, object files and flags are used when
10631 # linking a shared library.
10632 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10634 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10636 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10637 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10638 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10640 # Commands to make compiler produce verbose output that lists
10641 # what "hidden" libraries, object files and flags are used when
10642 # linking a shared library.
10643 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10646 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10651 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10652 archive_cmds_need_lc_CXX=no
10655 case $cc_basename in
10657 # NonStop-UX NCC 3.20
10658 # FIXME: insert proper C++ library support
10662 # FIXME: insert proper C++ library support
10668 # FIXME: insert proper C++ library support
10672 # FIXME: insert proper C++ library support
10676 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10677 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10678 test "$ld_shlibs_CXX" = no && can_build_shared=no
10684 cat > conftest.$ac_ext <<EOF
10688 Foo (void) { a = 0; }
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; then
10699 # Parse the compiler output and extract the necessary
10700 # objects, libraries and library flags.
10702 # Sentinel used to keep track of whether or not we are before
10703 # the conftest object file.
10704 pre_test_object_deps_done=no
10706 # The `*' in the case matches for architectures that use `case' in
10707 # $output_verbose_cmd can trigger glob expansion during the loop
10708 # eval without this substitution.
10709 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10711 for p in `eval $output_verbose_link_cmd`; do
10715 # Some compilers place space between "-{L,R}" and the path.
10716 # Remove the space.
10717 if test $p = "-L" \
10718 || test $p = "-R"; then
10725 if test "$pre_test_object_deps_done" = no; then
10728 # Internal compiler library paths should come after those
10729 # provided the user. The postdeps already come after the
10730 # user supplied libs so there is no need to process them.
10731 if test -z "$compiler_lib_search_path_CXX"; then
10732 compiler_lib_search_path_CXX="${prev}${p}"
10734 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10737 # The "-l" case would never come before the object being
10738 # linked, so don't bother handling this case.
10741 if test -z "$postdeps_CXX"; then
10742 postdeps_CXX="${prev}${p}"
10744 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10750 # This assumes that the test object file only shows up
10751 # once in the compiler output.
10752 if test "$p" = "conftest.$objext"; then
10753 pre_test_object_deps_done=yes
10757 if test "$pre_test_object_deps_done" = no; then
10758 if test -z "$predep_objects_CXX"; then
10759 predep_objects_CXX="$p"
10761 predep_objects_CXX="$predep_objects_CXX $p"
10764 if test -z "$postdep_objects_CXX"; then
10765 postdep_objects_CXX="$p"
10767 postdep_objects_CXX="$postdep_objects_CXX $p"
10772 *) ;; # Ignore the rest.
10780 echo "libtool.m4: error: problem compiling CXX test program"
10783 $rm -f confest.$objext
10785 case " $postdeps_CXX " in
10786 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10789 lt_prog_compiler_wl_CXX=
10790 lt_prog_compiler_pic_CXX=
10791 lt_prog_compiler_static_CXX=
10793 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10794 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10796 # C++ specific cases for pic, static, wl, etc.
10797 if test "$GXX" = yes; then
10798 lt_prog_compiler_wl_CXX='-Wl,'
10799 lt_prog_compiler_static_CXX='-static'
10803 # All AIX code is PIC.
10804 if test "$host_cpu" = ia64; then
10805 # AIX 5 now supports IA64 processor
10806 lt_prog_compiler_static_CXX='-Bstatic'
10810 # FIXME: we need at least 68020 code to build shared libraries, but
10811 # adding the `-m68020' flag to GCC prevents building anything better,
10813 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10815 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10816 # PIC is the default for these OSes.
10818 mingw* | os2* | pw32*)
10819 # This hack is so that the source file can tell whether it is being
10820 # built for inclusion in a dll (and should export symbols for example).
10821 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10823 darwin* | rhapsody*)
10824 # PIC is the default on this platform
10825 # Common symbols not allowed in MH_DYLIB files
10826 lt_prog_compiler_pic_CXX='-fno-common'
10829 # DJGPP does not support shared libraries at all
10830 lt_prog_compiler_pic_CXX=
10833 if test -d /usr/nec; then
10834 lt_prog_compiler_pic_CXX=-Kconform_pic
10838 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10839 # not for PA HP-UX.
10840 case "$host_cpu" in
10844 lt_prog_compiler_pic_CXX='-fPIC'
10849 lt_prog_compiler_pic_CXX='-fPIC'
10855 # All AIX code is PIC.
10856 if test "$host_cpu" = ia64; then
10857 # AIX 5 now supports IA64 processor
10858 lt_prog_compiler_static_CXX='-Bstatic'
10860 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10864 case $cc_basename in
10866 # Green Hills C++ Compiler
10867 # _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"
10872 case $cc_basename in
10874 lt_prog_compiler_pic_CXX='-KPIC'
10877 # Green Hills C++ Compiler
10878 lt_prog_compiler_pic_CXX='-pic'
10884 freebsd* | kfreebsd*-gnu)
10885 # FreeBSD uses GNU C++
10887 hpux9* | hpux10* | hpux11*)
10888 case $cc_basename in
10890 lt_prog_compiler_wl_CXX='-Wl,'
10891 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10892 if test "$host_cpu" != ia64; then
10893 lt_prog_compiler_pic_CXX='+Z'
10897 lt_prog_compiler_wl_CXX='-Wl,'
10898 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10899 case "$host_cpu" in
10904 lt_prog_compiler_pic_CXX='+Z'
10912 irix5* | irix6* | nonstopux*)
10913 case $cc_basename in
10915 lt_prog_compiler_wl_CXX='-Wl,'
10916 lt_prog_compiler_static_CXX='-non_shared'
10917 # CC pic flag -KPIC is the default.
10924 case $cc_basename in
10927 lt_prog_compiler_wl_CXX='--backend -Wl,'
10928 lt_prog_compiler_pic_CXX='-fPIC'
10932 lt_prog_compiler_wl_CXX='-Wl,'
10933 lt_prog_compiler_pic_CXX='-KPIC'
10934 lt_prog_compiler_static_CXX='-static'
10938 # Make sure the PIC flag is empty. It appears that all Alpha
10939 # Linux and Compaq Tru64 Unix objects are PIC.
10940 lt_prog_compiler_pic_CXX=
10941 lt_prog_compiler_static_CXX='-non_shared'
10952 case $cc_basename in
10954 lt_prog_compiler_pic_CXX='-W c,exportall'
10960 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10962 osf3* | osf4* | osf5*)
10963 case $cc_basename in
10965 lt_prog_compiler_wl_CXX='--backend -Wl,'
10968 # Rational C++ 2.4.1
10969 lt_prog_compiler_pic_CXX='-pic'
10972 # Digital/Compaq C++
10973 lt_prog_compiler_wl_CXX='-Wl,'
10974 # Make sure the PIC flag is empty. It appears that all Alpha
10975 # Linux and Compaq Tru64 Unix objects are PIC.
10976 lt_prog_compiler_pic_CXX=
10977 lt_prog_compiler_static_CXX='-non_shared'
10986 case $cc_basename in
10988 lt_prog_compiler_pic_CXX='-fPIC'
10995 case $cc_basename in
10997 # Sun C++ 4.2, 5.x and Centerline C++
10998 lt_prog_compiler_pic_CXX='-KPIC'
10999 lt_prog_compiler_static_CXX='-Bstatic'
11000 lt_prog_compiler_wl_CXX='-Qoption ld '
11003 # Green Hills C++ Compiler
11004 lt_prog_compiler_pic_CXX='-PIC'
11011 case $cc_basename in
11014 lt_prog_compiler_pic_CXX='-pic'
11015 lt_prog_compiler_static_CXX='-Bstatic'
11019 lt_prog_compiler_pic_CXX='-pic'
11026 case $cc_basename in
11028 # NonStop-UX NCC 3.20
11029 lt_prog_compiler_pic_CXX='-KPIC'
11040 lt_prog_compiler_can_build_shared_CXX=no
11045 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11046 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11049 # Check to make sure the PIC flag actually works.
11051 if test -n "$lt_prog_compiler_pic_CXX"; then
11053 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11054 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11055 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 lt_prog_compiler_pic_works_CXX=no
11059 ac_outfile=conftest.$ac_objext
11060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11061 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11062 # Insert the option either (1) after the last *FLAGS variable, or
11063 # (2) before a word containing "conftest.", or (3) at the end.
11064 # Note that $ac_compile itself does not contain backslashes and begins
11065 # with a dollar sign (not a hyphen), so the echo should work correctly.
11066 # The option is referenced via a variable to avoid confusing sed.
11067 lt_compile=`echo "$ac_compile" | $SED \
11068 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11070 -e 's:$: $lt_compiler_flag:'`
11071 (eval echo "\"\$as_me:11071: $lt_compile\"" >&5)
11072 (eval "$lt_compile" 2>conftest.err)
11074 cat conftest.err >&5
11075 echo "$as_me:11075: \$? = $ac_status" >&5
11076 if (exit $ac_status) && test -s "$ac_outfile"; then
11077 # The compiler can only warn and ignore the option if not recognized
11078 # So say no if there are warnings
11079 if test ! -s conftest.err; then
11080 lt_prog_compiler_pic_works_CXX=yes
11086 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11087 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11089 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11090 case $lt_prog_compiler_pic_CXX in
11092 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11095 lt_prog_compiler_pic_CXX=
11096 lt_prog_compiler_can_build_shared_CXX=no
11101 # For platforms which do not support PIC, -DPIC is meaningless:
11103 lt_prog_compiler_pic_CXX=
11106 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11110 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11111 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11112 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 lt_cv_prog_compiler_c_o_CXX=no
11116 $rm -r conftest 2>/dev/null
11120 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11122 lt_compiler_flag="-o out/conftest2.$ac_objext"
11123 # Insert the option either (1) after the last *FLAGS variable, or
11124 # (2) before a word containing "conftest.", or (3) at the end.
11125 # Note that $ac_compile itself does not contain backslashes and begins
11126 # with a dollar sign (not a hyphen), so the echo should work correctly.
11127 lt_compile=`echo "$ac_compile" | $SED \
11128 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11130 -e 's:$: $lt_compiler_flag:'`
11131 (eval echo "\"\$as_me:11131: $lt_compile\"" >&5)
11132 (eval "$lt_compile" 2>out/conftest.err)
11134 cat out/conftest.err >&5
11135 echo "$as_me:11135: \$? = $ac_status" >&5
11136 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11138 # The compiler can only warn and ignore the option if not recognized
11139 # So say no if there are warnings
11140 if test ! -s out/conftest.err; then
11141 lt_cv_prog_compiler_c_o_CXX=yes
11146 # SGI C++ compiler will create directory out/ii_files/ for
11147 # template instantiation
11148 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11149 $rm out/* && rmdir out
11155 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11156 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11159 hard_links="nottested"
11160 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11161 # do not overwrite the value of need_locks provided by the user
11162 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11163 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11168 ln conftest.a conftest.b 2>&5 || hard_links=no
11169 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11170 echo "$as_me:$LINENO: result: $hard_links" >&5
11171 echo "${ECHO_T}$hard_links" >&6
11172 if test "$hard_links" = no; then
11173 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11174 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11181 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11182 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11184 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11187 # If we're using GNU nm, then we don't want the "-C" option.
11188 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11189 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11190 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'
11192 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'
11196 export_symbols_cmds_CXX="$ltdll_cmds"
11199 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11202 link_all_deplibs_CXX=no
11205 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11209 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11210 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11211 test "$ld_shlibs_CXX" = no && can_build_shared=no
11213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11214 if test "$GCC" = yes; then
11215 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11219 # Do we need to explicitly link libc?
11221 case "x$archive_cmds_need_lc_CXX" in
11223 # Assume -lc should be added
11224 archive_cmds_need_lc_CXX=yes
11226 if test "$enable_shared" = yes && test "$GCC" = yes; then
11227 case $archive_cmds_CXX in
11229 # FIXME: we may have to deal with multi-command sequences.
11232 # Test whether the compiler implicitly links with -lc since on some
11233 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11234 # to ld, don't add -lc before -lgcc.
11235 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11236 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } 2>conftest.err; then
11247 libobjs=conftest.$ac_objext
11249 wl=$lt_prog_compiler_wl_CXX
11255 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11256 allow_undefined_flag_CXX=
11257 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11258 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }
11263 archive_cmds_need_lc_CXX=no
11265 archive_cmds_need_lc_CXX=yes
11267 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11269 cat conftest.err 1>&5
11272 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11273 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11280 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11281 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11282 library_names_spec=
11283 libname_spec='lib$name'
11287 postuninstall_cmds=
11291 shlibpath_overrides_runpath=unknown
11293 dynamic_linker="$host_os ld.so"
11294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11295 if test "$GCC" = yes; then
11296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11297 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11298 # if the path contains ";" then we assume it to be the separator
11299 # otherwise default to the standard path separator (i.e. ":") - it is
11300 # assumed that no part of a normal pathname contains ";" but that should
11301 # okay in the real world where ";" in dirpaths is itself problematic.
11302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11309 need_lib_prefix=unknown
11310 hardcode_into_libs=no
11312 # when you set need_version to no, make sure it does not cause -set_version
11313 # flags to be left without arguments
11314 need_version=unknown
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11320 shlibpath_var=LIBPATH
11322 # AIX 3 has no versioning support, so we append a major version to the name.
11323 soname_spec='${libname}${release}${shared_ext}$major'
11330 hardcode_into_libs=yes
11331 if test "$host_cpu" = ia64; then
11332 # AIX 5 supports IA64
11333 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11334 shlibpath_var=LD_LIBRARY_PATH
11336 # With GCC up to 2.95.x, collect2 would create an import file
11337 # for dependence libraries. The import file would start with
11338 # the line `#! .'. This would cause the generated library to
11339 # depend on `.', always an invalid library. This was fixed in
11340 # development snapshots of GCC prior to 3.0.
11342 aix4 | aix4.[01] | aix4.[01].*)
11343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11345 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11348 can_build_shared=no
11352 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11353 # soname into executable. Probably we can add versioning support to
11354 # collect2, so additional links can be useful in future.
11355 if test "$aix_use_runtimelinking" = yes; then
11356 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11357 # instead of lib<name>.a to let people know that these are not
11358 # typical AIX shared libraries.
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 # We preserve .a as extension for shared libraries through AIX4.2
11362 # and later when we are not doing run time linking.
11363 library_names_spec='${libname}${release}.a $libname.a'
11364 soname_spec='${libname}${release}${shared_ext}$major'
11366 shlibpath_var=LIBPATH
11371 library_names_spec='$libname.ixlibrary $libname.a'
11372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11373 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'
11377 library_names_spec='${libname}${shared_ext}'
11378 dynamic_linker="$host_os ld.so"
11379 shlibpath_var=LIBRARY_PATH
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11391 # the default ld.so.conf also contains /usr/contrib/lib and
11392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11393 # libtool to hard-code these into programs
11396 cygwin* | mingw* | pw32*)
11397 version_type=windows
11402 case $GCC,$host_os in
11403 yes,cygwin* | yes,mingw* | yes,pw32*)
11404 library_names_spec='$libname.dll.a'
11405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11406 postinstall_cmds='base_file=`basename \${file}`~
11407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11408 dldir=$destdir/`dirname \$dlpath`~
11409 test -d \$dldir || mkdir -p \$dldir~
11410 $install_prog $dir/$dlname \$dldir/$dlname'
11411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11412 dlpath=$dir/\$dldll~
11414 shlibpath_overrides_runpath=yes
11418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11420 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11423 # MinGW DLLs use traditional 'lib' prefix
11424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11425 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11426 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11427 # It is most probably a Windows format PATH printed by
11428 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11429 # path with ; separators, and with drive letters. We can handle the
11430 # drive letters (cygwin fileutils understands them), so leave them,
11431 # especially as we might pass files found there to a mingw objdump,
11432 # which wouldn't understand a cygwinified path. Ahh.
11433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11439 # pw32 DLLs use 'pw' prefix rather than 'lib'
11440 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11446 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11449 dynamic_linker='Win32 ld.exe'
11450 # FIXME: first we should search . and the directory the executable is in
11454 darwin* | rhapsody*)
11455 dynamic_linker="$host_os dyld"
11456 version_type=darwin
11459 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11460 soname_spec='${libname}${release}${major}$shared_ext'
11461 shlibpath_overrides_runpath=yes
11462 shlibpath_var=DYLD_LIBRARY_PATH
11463 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11464 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11465 if test "$GCC" = yes; then
11466 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"`
11468 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11478 soname_spec='${libname}${release}${shared_ext}$major'
11479 shlibpath_var=LD_LIBRARY_PATH
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11491 soname_spec='${libname}${release}${shared_ext}$major'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 shlibpath_overrides_runpath=no
11494 hardcode_into_libs=yes
11495 dynamic_linker='GNU ld.so'
11499 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11500 version_type=freebsd-$objformat
11501 case $version_type in
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11512 shlibpath_var=LD_LIBRARY_PATH
11515 shlibpath_overrides_runpath=yes
11517 freebsd3.01* | freebsdelf3.01*)
11518 shlibpath_overrides_runpath=yes
11519 hardcode_into_libs=yes
11522 shlibpath_overrides_runpath=no
11523 hardcode_into_libs=yes
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 hardcode_into_libs=yes
11538 hpux9* | hpux10* | hpux11*)
11539 # Give a soname corresponding to the major version so that dld.sl refuses to
11540 # link against other versions.
11544 case "$host_cpu" in
11547 hardcode_into_libs=yes
11548 dynamic_linker="$host_os dld.so"
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552 soname_spec='${libname}${release}${shared_ext}$major'
11553 if test "X$HPUX_IA64_MODE" = X32; then
11554 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11556 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11562 hardcode_into_libs=yes
11563 dynamic_linker="$host_os dld.sl"
11564 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567 soname_spec='${libname}${release}${shared_ext}$major'
11568 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11573 dynamic_linker="$host_os dld.sl"
11574 shlibpath_var=SHLIB_PATH
11575 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577 soname_spec='${libname}${release}${shared_ext}$major'
11580 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11581 postinstall_cmds='chmod 555 $lib'
11584 irix5* | irix6* | nonstopux*)
11586 nonstopux*) version_type=nonstopux ;;
11588 if test "$lt_cv_prog_gnu_ld" = yes; then
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11599 irix5* | nonstopux*)
11600 libsuff= shlibsuff=
11603 case $LD in # libtool.m4 will add one of these switches to LD
11604 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11605 libsuff= shlibsuff= libmagic=32-bit;;
11606 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11607 libsuff=32 shlibsuff=N32 libmagic=N32;;
11608 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11609 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11610 *) libsuff= shlibsuff= libmagic=never-match;;
11614 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11615 shlibpath_overrides_runpath=no
11616 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11617 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11618 hardcode_into_libs=yes
11621 # No shared lib support for Linux oldld, aout, or coff.
11622 linux*oldld* | linux*aout* | linux*coff*)
11626 # This must be Linux ELF.
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636 # This implies no fast_install, which is unacceptable.
11637 # Some rework will be needed to allow for fast_install
11638 # before this can be enabled.
11639 hardcode_into_libs=yes
11641 # Append ld.so.conf contents to the search path
11642 if test -f /etc/ld.so.conf; then
11643 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11644 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11647 # We used to test for /lib/ld.so.1 and disable shared libraries on
11648 # powerpc, because MkLinux only supported shared libraries with the
11649 # GNU dynamic linker. Since this was broken with cross compilers,
11650 # most powerpc-linux boxes support dynamic linking these days and
11651 # people can always --disable-shared, the test was removed, and we
11652 # assume the GNU/Linux dynamic linker is in use.
11653 dynamic_linker='GNU/Linux ld.so'
11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11661 soname_spec='${libname}${release}${shared_ext}$major'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=no
11664 hardcode_into_libs=yes
11665 dynamic_linker='NetBSD ld.elf_so'
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11673 soname_spec='${libname}${release}${shared_ext}$major'
11674 shlibpath_var=LD_LIBRARY_PATH
11675 shlibpath_overrides_runpath=no
11676 hardcode_into_libs=yes
11677 dynamic_linker='GNU ld.so'
11684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11687 dynamic_linker='NetBSD (a.out) ld.so'
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 dynamic_linker='NetBSD ld.elf_so'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=yes
11695 hardcode_into_libs=yes
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 shlibpath_overrides_runpath=yes
11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710 soname_spec='${libname}${release}${shared_ext}$major'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 shlibpath_overrides_runpath=yes
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11721 shlibpath_var=LD_LIBRARY_PATH
11722 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11724 openbsd2.[89] | openbsd2.[89].*)
11725 shlibpath_overrides_runpath=no
11728 shlibpath_overrides_runpath=yes
11732 shlibpath_overrides_runpath=yes
11737 libname_spec='$name'
11740 library_names_spec='$libname${shared_ext} $libname.a'
11741 dynamic_linker='OS/2 ld.exe'
11742 shlibpath_var=LIBPATH
11745 osf3* | osf4* | osf5*)
11749 soname_spec='${libname}${release}${shared_ext}$major'
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11753 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 shlibpath_var=LD_LIBRARY_PATH
11767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768 soname_spec='${libname}${release}${shared_ext}$major'
11769 shlibpath_var=LD_LIBRARY_PATH
11770 shlibpath_overrides_runpath=yes
11771 hardcode_into_libs=yes
11772 # ldd complains unless libraries are executable
11773 postinstall_cmds='chmod +x $lib'
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=yes
11782 if test "$with_gnu_ld" = yes; then
11788 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 case $host_vendor in
11795 shlibpath_overrides_runpath=no
11797 export_dynamic_flag_spec='${wl}-Blargedynsym'
11798 runpath_var=LD_RUN_PATH
11806 shlibpath_overrides_runpath=no
11807 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11813 if test -d /usr/nec ;then
11815 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11816 soname_spec='$libname${shared_ext}.$major'
11817 shlibpath_var=LD_LIBRARY_PATH
11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824 soname_spec='${libname}${release}${shared_ext}$major'
11825 shlibpath_var=LD_LIBRARY_PATH
11832 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11833 echo "${ECHO_T}$dynamic_linker" >&6
11834 test "$dynamic_linker" = no && can_build_shared=no
11836 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11837 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11838 hardcode_action_CXX=
11839 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11840 test -n "$runpath_var CXX" || \
11841 test "X$hardcode_automatic_CXX"="Xyes" ; then
11843 # We can hardcode non-existant directories.
11844 if test "$hardcode_direct_CXX" != no &&
11845 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11846 # have to relink, otherwise we might link with an installed library
11847 # when we should be linking with a yet-to-be-installed one
11848 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11849 test "$hardcode_minus_L_CXX" != no; then
11850 # Linking always hardcodes the temporary library directory.
11851 hardcode_action_CXX=relink
11853 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11854 hardcode_action_CXX=immediate
11857 # We cannot hardcode anything, or else we can only hardcode existing
11859 hardcode_action_CXX=unsupported
11861 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11862 echo "${ECHO_T}$hardcode_action_CXX" >&6
11864 if test "$hardcode_action_CXX" = relink; then
11865 # Fast installation is not supported
11866 enable_fast_install=no
11867 elif test "$shlibpath_overrides_runpath" = yes ||
11868 test "$enable_shared" = no; then
11869 # Fast installation is not necessary
11870 enable_fast_install=needless
11875 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11876 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11877 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11878 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11879 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11880 echo "$as_me:$LINENO: result: yes" >&5
11881 echo "${ECHO_T}yes" >&6
11883 # FIXME - insert some real tests, host_os isn't really good enough
11886 if test -n "$STRIP" ; then
11887 striplib="$STRIP -x"
11888 echo "$as_me:$LINENO: result: yes" >&5
11889 echo "${ECHO_T}yes" >&6
11891 echo "$as_me:$LINENO: result: no" >&5
11892 echo "${ECHO_T}no" >&6
11896 echo "$as_me:$LINENO: result: no" >&5
11897 echo "${ECHO_T}no" >&6
11902 if test "x$enable_dlopen" != xyes; then
11903 enable_dlopen=unknown
11904 enable_dlopen_self=unknown
11905 enable_dlopen_self_static=unknown
11912 lt_cv_dlopen="load_add_on"
11914 lt_cv_dlopen_self=yes
11918 lt_cv_dlopen="LoadLibrary"
11923 lt_cv_dlopen="dlopen"
11928 # if libdl is installed we need to link against it
11929 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11930 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11931 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 ac_check_lib_save_LIBS=$LIBS
11936 cat >conftest.$ac_ext <<_ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11943 /* Override any gcc2 internal prototype to avoid an error. */
11947 /* We use char because int might match the return type of a gcc2
11948 builtin and then its argument prototype would still apply. */
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11960 (eval $ac_link) 2>conftest.er1
11962 grep -v '^ *+' conftest.er1 >conftest.err
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
11967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; } &&
11973 { ac_try='test -s conftest$ac_exeext'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 ac_cv_lib_dl_dlopen=yes
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_cv_lib_dl_dlopen=no
11986 rm -f conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11990 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11991 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11992 if test $ac_cv_lib_dl_dlopen = yes; then
11993 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11996 lt_cv_dlopen="dyld"
11998 lt_cv_dlopen_self=yes
12005 echo "$as_me:$LINENO: checking for shl_load" >&5
12006 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12007 if test "${ac_cv_func_shl_load+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 cat >conftest.$ac_ext <<_ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12018 #define shl_load innocuous_shl_load
12020 /* System header to define __stub macros and hopefully few prototypes,
12021 which can conflict with char shl_load (); below.
12022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12023 <limits.h> exists even on freestanding compilers. */
12026 # include <limits.h>
12028 # include <assert.h>
12033 /* Override any gcc2 internal prototype to avoid an error. */
12038 /* We use char because int might match the return type of a gcc2
12039 builtin and then its argument prototype would still apply. */
12041 /* The GNU C library defines this for functions which it implements
12042 to always fail with ENOSYS. Some functions are actually named
12043 something starting with __ and the normal name is an alias. */
12044 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12047 char (*f) () = shl_load;
12056 return f != shl_load;
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063 (eval $ac_link) 2>conftest.er1
12065 grep -v '^ *+' conftest.er1 >conftest.err
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_func_shl_load=yes
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ac_cv_func_shl_load=no
12089 rm -f conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12092 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12093 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12094 if test $ac_cv_func_shl_load = yes; then
12095 lt_cv_dlopen="shl_load"
12097 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12098 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12099 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 ac_check_lib_save_LIBS=$LIBS
12104 cat >conftest.$ac_ext <<_ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12111 /* Override any gcc2 internal prototype to avoid an error. */
12115 /* We use char because int might match the return type of a gcc2
12116 builtin and then its argument prototype would still apply. */
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest$ac_exeext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_lib_dld_shl_load=yes
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 ac_cv_lib_dld_shl_load=no
12154 rm -f conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_lib_save_LIBS
12158 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12159 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12160 if test $ac_cv_lib_dld_shl_load = yes; then
12161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12163 echo "$as_me:$LINENO: checking for dlopen" >&5
12164 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12165 if test "${ac_cv_func_dlopen+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 cat >conftest.$ac_ext <<_ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12176 #define dlopen innocuous_dlopen
12178 /* System header to define __stub macros and hopefully few prototypes,
12179 which can conflict with char dlopen (); below.
12180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181 <limits.h> exists even on freestanding compilers. */
12184 # include <limits.h>
12186 # include <assert.h>
12191 /* Override any gcc2 internal prototype to avoid an error. */
12196 /* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12199 /* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
12202 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12205 char (*f) () = dlopen;
12214 return f != dlopen;
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; } &&
12234 { ac_try='test -s conftest$ac_exeext'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 ac_cv_func_dlopen=yes
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12245 ac_cv_func_dlopen=no
12247 rm -f conftest.err conftest.$ac_objext \
12248 conftest$ac_exeext conftest.$ac_ext
12250 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12251 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12252 if test $ac_cv_func_dlopen = yes; then
12253 lt_cv_dlopen="dlopen"
12255 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12256 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12257 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 ac_check_lib_save_LIBS=$LIBS
12262 cat >conftest.$ac_ext <<_ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12269 /* Override any gcc2 internal prototype to avoid an error. */
12273 /* We use char because int might match the return type of a gcc2
12274 builtin and then its argument prototype would still apply. */
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12286 (eval $ac_link) 2>conftest.er1
12288 grep -v '^ *+' conftest.er1 >conftest.err
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest$ac_exeext'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12305 ac_cv_lib_dl_dlopen=yes
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12310 ac_cv_lib_dl_dlopen=no
12312 rm -f conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314 LIBS=$ac_check_lib_save_LIBS
12316 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12317 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12318 if test $ac_cv_lib_dl_dlopen = yes; then
12319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12321 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12322 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12323 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 ac_check_lib_save_LIBS=$LIBS
12327 LIBS="-lsvld $LIBS"
12328 cat >conftest.$ac_ext <<_ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12335 /* Override any gcc2 internal prototype to avoid an error. */
12339 /* We use char because int might match the return type of a gcc2
12340 builtin and then its argument prototype would still apply. */
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12352 (eval $ac_link) 2>conftest.er1
12354 grep -v '^ *+' conftest.er1 >conftest.err
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest$ac_exeext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_cv_lib_svld_dlopen=yes
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_cv_lib_svld_dlopen=no
12378 rm -f conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12382 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12383 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12384 if test $ac_cv_lib_svld_dlopen = yes; then
12385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12387 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12388 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 ac_check_lib_save_LIBS=$LIBS
12394 cat >conftest.$ac_ext <<_ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12401 /* Override any gcc2 internal prototype to avoid an error. */
12405 /* We use char because int might match the return type of a gcc2
12406 builtin and then its argument prototype would still apply. */
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418 (eval $ac_link) 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest$ac_exeext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_lib_dld_dld_link=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_cv_lib_dld_dld_link=no
12444 rm -f conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12448 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12449 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12450 if test $ac_cv_lib_dld_dld_link = yes; then
12451 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12472 if test "x$lt_cv_dlopen" != xno; then
12478 case $lt_cv_dlopen in
12480 save_CPPFLAGS="$CPPFLAGS"
12481 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12483 save_LDFLAGS="$LDFLAGS"
12484 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12487 LIBS="$lt_cv_dlopen_libs $LIBS"
12489 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12490 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12491 if test "${lt_cv_dlopen_self+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 if test "$cross_compiling" = yes; then :
12495 lt_cv_dlopen_self=cross
12497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12498 lt_status=$lt_dlunknown
12499 cat > conftest.$ac_ext <<EOF
12500 #line 12500 "configure"
12501 #include "confdefs.h"
12510 # define LT_DLGLOBAL RTLD_GLOBAL
12513 # define LT_DLGLOBAL DL_GLOBAL
12515 # define LT_DLGLOBAL 0
12519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12520 find out it does not work in some platform. */
12521 #ifndef LT_DLLAZY_OR_NOW
12523 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12526 # define LT_DLLAZY_OR_NOW DL_LAZY
12529 # define LT_DLLAZY_OR_NOW RTLD_NOW
12532 # define LT_DLLAZY_OR_NOW DL_NOW
12534 # define LT_DLLAZY_OR_NOW 0
12542 extern "C" void exit (int);
12545 void fnord() { int i=42;}
12548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12549 int status = $lt_dlunknown;
12553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12555 /* dlclose (self); */
12561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12562 (eval $ac_link) 2>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12566 (./conftest; exit; ) 2>/dev/null
12568 case x$lt_status in
12569 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12570 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12571 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12574 # compilation failed
12575 lt_cv_dlopen_self=no
12582 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12583 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12585 if test "x$lt_cv_dlopen_self" = xyes; then
12586 LDFLAGS="$LDFLAGS $link_static_flag"
12587 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12588 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12589 if test "${lt_cv_dlopen_self_static+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 if test "$cross_compiling" = yes; then :
12593 lt_cv_dlopen_self_static=cross
12595 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12596 lt_status=$lt_dlunknown
12597 cat > conftest.$ac_ext <<EOF
12598 #line 12598 "configure"
12599 #include "confdefs.h"
12608 # define LT_DLGLOBAL RTLD_GLOBAL
12611 # define LT_DLGLOBAL DL_GLOBAL
12613 # define LT_DLGLOBAL 0
12617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12618 find out it does not work in some platform. */
12619 #ifndef LT_DLLAZY_OR_NOW
12621 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12624 # define LT_DLLAZY_OR_NOW DL_LAZY
12627 # define LT_DLLAZY_OR_NOW RTLD_NOW
12630 # define LT_DLLAZY_OR_NOW DL_NOW
12632 # define LT_DLLAZY_OR_NOW 0
12640 extern "C" void exit (int);
12643 void fnord() { int i=42;}
12646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12647 int status = $lt_dlunknown;
12651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12652 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12653 /* dlclose (self); */
12659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12660 (eval $ac_link) 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12664 (./conftest; exit; ) 2>/dev/null
12666 case x$lt_status in
12667 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12668 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12669 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12672 # compilation failed
12673 lt_cv_dlopen_self_static=no
12680 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12681 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12684 CPPFLAGS="$save_CPPFLAGS"
12685 LDFLAGS="$save_LDFLAGS"
12690 case $lt_cv_dlopen_self in
12691 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12692 *) enable_dlopen_self=unknown ;;
12695 case $lt_cv_dlopen_self_static in
12696 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12697 *) enable_dlopen_self_static=unknown ;;
12702 # The else clause should only fire when bootstrapping the
12703 # libtool distribution, otherwise you forgot to ship ltmain.sh
12704 # with your package, and you will get complaints that there are
12705 # no rules to generate ltmain.sh.
12706 if test -f "$ltmain"; then
12707 # See if we are running on zsh, and set the options which allow our commands through
12708 # without removal of \ escapes.
12709 if test -n "${ZSH_VERSION+set}" ; then
12710 setopt NO_GLOB_SUBST
12712 # Now quote all the things that may contain metacharacters while being
12713 # careful not to overquote the AC_SUBSTed values. We take copies of the
12714 # variables and quote the copies for generation of the libtool script.
12715 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12717 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12718 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12719 deplibs_check_method reload_flag reload_cmds need_locks \
12720 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12721 lt_cv_sys_global_symbol_to_c_name_address \
12722 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12723 old_postinstall_cmds old_postuninstall_cmds \
12727 lt_prog_compiler_wl_CXX \
12728 lt_prog_compiler_pic_CXX \
12729 lt_prog_compiler_static_CXX \
12730 lt_prog_compiler_no_builtin_flag_CXX \
12731 export_dynamic_flag_spec_CXX \
12732 thread_safe_flag_spec_CXX \
12733 whole_archive_flag_spec_CXX \
12734 enable_shared_with_static_runtimes_CXX \
12735 old_archive_cmds_CXX \
12736 old_archive_from_new_cmds_CXX \
12737 predep_objects_CXX \
12738 postdep_objects_CXX \
12741 compiler_lib_search_path_CXX \
12743 archive_expsym_cmds_CXX \
12744 postinstall_cmds_CXX \
12745 postuninstall_cmds_CXX \
12746 old_archive_from_expsyms_cmds_CXX \
12747 allow_undefined_flag_CXX \
12748 no_undefined_flag_CXX \
12749 export_symbols_cmds_CXX \
12750 hardcode_libdir_flag_spec_CXX \
12751 hardcode_libdir_flag_spec_ld_CXX \
12752 hardcode_libdir_separator_CXX \
12753 hardcode_automatic_CXX \
12755 module_expsym_cmds_CXX \
12756 lt_cv_prog_compiler_c_o_CXX \
12757 exclude_expsyms_CXX \
12758 include_expsyms_CXX; do
12761 old_archive_cmds_CXX | \
12762 old_archive_from_new_cmds_CXX | \
12763 archive_cmds_CXX | \
12764 archive_expsym_cmds_CXX | \
12765 module_cmds_CXX | \
12766 module_expsym_cmds_CXX | \
12767 old_archive_from_expsyms_cmds_CXX | \
12768 export_symbols_cmds_CXX | \
12769 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12770 postinstall_cmds | postuninstall_cmds | \
12771 old_postinstall_cmds | old_postuninstall_cmds | \
12772 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12773 # Double-quote double-evaled strings.
12774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12783 *'\$0 --fallback-echo"')
12784 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12790 cat <<__EOF__ >> "$cfgfile"
12791 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12793 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12795 # Shell to use when invoking shell scripts.
12798 # Whether or not to build shared libraries.
12799 build_libtool_libs=$enable_shared
12801 # Whether or not to build static libraries.
12802 build_old_libs=$enable_static
12804 # Whether or not to add -lc for building shared libraries.
12805 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12807 # Whether or not to disallow shared libs when runtime libs are static
12808 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12810 # Whether or not to optimize for fast installation.
12811 fast_install=$enable_fast_install
12814 host_alias=$host_alias
12817 # An echo program that does not interpret backslashes.
12822 AR_FLAGS=$lt_AR_FLAGS
12827 # A language-specific compiler.
12828 CC=$lt_compiler_CXX
12830 # Is the compiler the GNU C compiler?
12836 # The linker used to build libraries.
12839 # Whether we need hard or soft links.
12842 # A BSD-compatible nm program.
12845 # A symbol stripping program
12848 # Used to examine libraries when file_magic_cmd begins "file"
12849 MAGIC_CMD=$MAGIC_CMD
12851 # Used on cygwin: DLL creation program.
12854 # Used on cygwin: object dumper.
12857 # Used on cygwin: assembler.
12860 # The name of the directory that contains temporary libtool files.
12863 # How to create reloadable object files.
12864 reload_flag=$lt_reload_flag
12865 reload_cmds=$lt_reload_cmds
12867 # How to pass a linker flag through the compiler.
12868 wl=$lt_lt_prog_compiler_wl_CXX
12870 # Object file suffix (normally "o").
12871 objext="$ac_objext"
12873 # Old archive suffix (normally "a").
12876 # Shared library suffix (normally ".so").
12877 shrext_cmds='$shrext_cmds'
12879 # Executable file suffix (normally "").
12882 # Additional compiler flags for building library objects.
12883 pic_flag=$lt_lt_prog_compiler_pic_CXX
12886 # What is the maximum length of a command?
12887 max_cmd_len=$lt_cv_sys_max_cmd_len
12889 # Does compiler simultaneously support -c and -o options?
12890 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12892 # Must we lock files when doing compilation ?
12893 need_locks=$lt_need_locks
12895 # Do we need the lib prefix for modules?
12896 need_lib_prefix=$need_lib_prefix
12898 # Do we need a version for libraries?
12899 need_version=$need_version
12901 # Whether dlopen is supported.
12902 dlopen_support=$enable_dlopen
12904 # Whether dlopen of programs is supported.
12905 dlopen_self=$enable_dlopen_self
12907 # Whether dlopen of statically linked programs is supported.
12908 dlopen_self_static=$enable_dlopen_self_static
12910 # Compiler flag to prevent dynamic linking.
12911 link_static_flag=$lt_lt_prog_compiler_static_CXX
12913 # Compiler flag to turn off builtin functions.
12914 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12916 # Compiler flag to allow reflexive dlopens.
12917 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12919 # Compiler flag to generate shared objects directly from archives.
12920 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12922 # Compiler flag to generate thread-safe objects.
12923 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12925 # Library versioning type.
12926 version_type=$version_type
12928 # Format of library name prefix.
12929 libname_spec=$lt_libname_spec
12931 # List of archive names. First name is the real one, the rest are links.
12932 # The last name is the one that the linker finds with -lNAME.
12933 library_names_spec=$lt_library_names_spec
12935 # The coded name of the library, if different from the real name.
12936 soname_spec=$lt_soname_spec
12938 # Commands used to build and install an old-style archive.
12940 old_archive_cmds=$lt_old_archive_cmds_CXX
12941 old_postinstall_cmds=$lt_old_postinstall_cmds
12942 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12944 # Create an old-style archive from a shared archive.
12945 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12947 # Create a temporary old-style archive to link instead of a shared archive.
12948 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12950 # Commands used to build and install a shared archive.
12951 archive_cmds=$lt_archive_cmds_CXX
12952 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12953 postinstall_cmds=$lt_postinstall_cmds
12954 postuninstall_cmds=$lt_postuninstall_cmds
12956 # Commands used to build a loadable module (assumed same as above if empty)
12957 module_cmds=$lt_module_cmds_CXX
12958 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12960 # Commands to strip libraries.
12961 old_striplib=$lt_old_striplib
12962 striplib=$lt_striplib
12964 # Dependencies to place before the objects being linked to create a
12966 predep_objects=$lt_predep_objects_CXX
12968 # Dependencies to place after the objects being linked to create a
12970 postdep_objects=$lt_postdep_objects_CXX
12972 # Dependencies to place before the objects being linked to create a
12974 predeps=$lt_predeps_CXX
12976 # Dependencies to place after the objects being linked to create a
12978 postdeps=$lt_postdeps_CXX
12980 # The library search path used internally by the compiler when linking
12981 # a shared library.
12982 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12984 # Method to check whether dependent libraries are shared objects.
12985 deplibs_check_method=$lt_deplibs_check_method
12987 # Command to use when deplibs_check_method == file_magic.
12988 file_magic_cmd=$lt_file_magic_cmd
12990 # Flag that allows shared libraries with undefined symbols to be built.
12991 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12993 # Flag that forces no undefined symbols.
12994 no_undefined_flag=$lt_no_undefined_flag_CXX
12996 # Commands used to finish a libtool library installation in a directory.
12997 finish_cmds=$lt_finish_cmds
12999 # Same as above, but a single script fragment to be evaled but not shown.
13000 finish_eval=$lt_finish_eval
13002 # Take the output of nm and produce a listing of raw symbols and C names.
13003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13005 # Transform the output of nm in a proper C declaration
13006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13008 # Transform the output of nm in a C name address pair
13009 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13011 # This is the shared library runtime path variable.
13012 runpath_var=$runpath_var
13014 # This is the shared library path variable.
13015 shlibpath_var=$shlibpath_var
13017 # Is shlibpath searched before the hard-coded library search path?
13018 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13020 # How to hardcode a shared library path into an executable.
13021 hardcode_action=$hardcode_action_CXX
13023 # Whether we should hardcode library paths into libraries.
13024 hardcode_into_libs=$hardcode_into_libs
13026 # Flag to hardcode \$libdir into a binary during linking.
13027 # This must work even if \$libdir does not exist.
13028 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13030 # If ld is used when linking, flag to hardcode \$libdir into
13031 # a binary during linking. This must work even if \$libdir does
13033 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13035 # Whether we need a single -rpath flag with a separated argument.
13036 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13038 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13039 # resulting binary.
13040 hardcode_direct=$hardcode_direct_CXX
13042 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13043 # resulting binary.
13044 hardcode_minus_L=$hardcode_minus_L_CXX
13046 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13047 # the resulting binary.
13048 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13050 # Set to yes if building a shared library automatically hardcodes DIR into the library
13051 # and all subsequent libraries and executables linked against it.
13052 hardcode_automatic=$hardcode_automatic_CXX
13054 # Variables whose values should be saved in libtool wrapper scripts and
13055 # restored at relink time.
13056 variables_saved_for_relink="$variables_saved_for_relink"
13058 # Whether libtool must link a program against all its dependency libraries.
13059 link_all_deplibs=$link_all_deplibs_CXX
13061 # Compile-time system search path for libraries
13062 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13064 # Run-time system search path for libraries
13065 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13067 # Fix the shell variable \$srcfile for the compiler.
13068 fix_srcfile_path="$fix_srcfile_path_CXX"
13070 # Set to yes if exported symbols are required.
13071 always_export_symbols=$always_export_symbols_CXX
13073 # The commands to list exported symbols.
13074 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13076 # The commands to extract the exported symbol list from a shared archive.
13077 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13079 # Symbols that should not be listed in the preloaded symbols.
13080 exclude_expsyms=$lt_exclude_expsyms_CXX
13082 # Symbols that must always be exported.
13083 include_expsyms=$lt_include_expsyms_CXX
13085 # ### END LIBTOOL TAG CONFIG: $tagname
13091 # If there is no Makefile yet, we rely on a make rule to execute
13092 # `config.status --recheck' to rerun these tests and create the
13093 # libtool script then.
13094 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13095 if test -f "$ltmain_in"; then
13096 test -f Makefile && make "$ltmain"
13102 ac_cpp='$CPP $CPPFLAGS'
13103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13111 with_gnu_ldcxx=$with_gnu_ld
13112 with_gnu_ld=$lt_save_with_gnu_ld
13113 lt_cv_path_LDCXX=$lt_cv_path_LD
13114 lt_cv_path_LD=$lt_save_path_LD
13115 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13116 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13124 if test -n "$F77" && test "X$F77" != "Xno"; then
13127 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13128 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13129 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13132 archive_cmds_need_lc_F77=no
13133 allow_undefined_flag_F77=
13134 always_export_symbols_F77=no
13135 archive_expsym_cmds_F77=
13136 export_dynamic_flag_spec_F77=
13137 hardcode_direct_F77=no
13138 hardcode_libdir_flag_spec_F77=
13139 hardcode_libdir_flag_spec_ld_F77=
13140 hardcode_libdir_separator_F77=
13141 hardcode_minus_L_F77=no
13142 hardcode_automatic_F77=no
13144 module_expsym_cmds_F77=
13145 link_all_deplibs_F77=unknown
13146 old_archive_cmds_F77=$old_archive_cmds
13147 no_undefined_flag_F77=
13148 whole_archive_flag_spec_F77=
13149 enable_shared_with_static_runtimes_F77=no
13151 # Source file extension for f77 test sources.
13154 # Object file extension for compiled f77 test sources.
13158 # Code to be used in simple compile tests
13159 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13161 # Code to be used in simple link tests
13162 lt_simple_link_test_code=" program t\n end\n"
13164 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13166 # If no C compiler was specified, use CC.
13169 # Allow CC to be a program name with arguments.
13173 # Allow CC to be a program name with arguments.
13178 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13180 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13181 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13182 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13183 echo "${ECHO_T}$can_build_shared" >&6
13185 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13186 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13187 test "$can_build_shared" = "no" && enable_shared=no
13189 # On AIX, shared libraries and static libraries use the same namespace, and
13190 # are all built from PIC.
13193 test "$enable_shared" = yes && enable_static=no
13194 if test -n "$RANLIB"; then
13195 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13196 postinstall_cmds='$RANLIB $lib'
13200 test "$enable_shared" = yes && enable_static=no
13203 echo "$as_me:$LINENO: result: $enable_shared" >&5
13204 echo "${ECHO_T}$enable_shared" >&6
13206 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13207 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13208 # Make sure either enable_shared or enable_static is yes.
13209 test "$enable_shared" = yes || enable_static=yes
13210 echo "$as_me:$LINENO: result: $enable_static" >&5
13211 echo "${ECHO_T}$enable_static" >&6
13213 test "$ld_shlibs_F77" = no && can_build_shared=no
13218 lt_prog_compiler_wl_F77=
13219 lt_prog_compiler_pic_F77=
13220 lt_prog_compiler_static_F77=
13222 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13223 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13225 if test "$GCC" = yes; then
13226 lt_prog_compiler_wl_F77='-Wl,'
13227 lt_prog_compiler_static_F77='-static'
13231 # All AIX code is PIC.
13232 if test "$host_cpu" = ia64; then
13233 # AIX 5 now supports IA64 processor
13234 lt_prog_compiler_static_F77='-Bstatic'
13239 # FIXME: we need at least 68020 code to build shared libraries, but
13240 # adding the `-m68020' flag to GCC prevents building anything better,
13242 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13245 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13246 # PIC is the default for these OSes.
13249 mingw* | pw32* | os2*)
13250 # This hack is so that the source file can tell whether it is being
13251 # built for inclusion in a dll (and should export symbols for example).
13252 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13255 darwin* | rhapsody*)
13256 # PIC is the default on this platform
13257 # Common symbols not allowed in MH_DYLIB files
13258 lt_prog_compiler_pic_F77='-fno-common'
13262 # Just because we use GCC doesn't mean we suddenly get shared libraries
13263 # on systems that don't support them.
13264 lt_prog_compiler_can_build_shared_F77=no
13269 if test -d /usr/nec; then
13270 lt_prog_compiler_pic_F77=-Kconform_pic
13275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13276 # not for PA HP-UX.
13277 case "$host_cpu" in
13282 lt_prog_compiler_pic_F77='-fPIC'
13288 lt_prog_compiler_pic_F77='-fPIC'
13292 # PORTME Check for flag to pass linker flags through the system compiler.
13295 lt_prog_compiler_wl_F77='-Wl,'
13296 if test "$host_cpu" = ia64; then
13297 # AIX 5 now supports IA64 processor
13298 lt_prog_compiler_static_F77='-Bstatic'
13300 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13304 mingw* | pw32* | os2*)
13305 # This hack is so that the source file can tell whether it is being
13306 # built for inclusion in a dll (and should export symbols for example).
13307 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13310 hpux9* | hpux10* | hpux11*)
13311 lt_prog_compiler_wl_F77='-Wl,'
13312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13313 # not for PA HP-UX.
13314 case "$host_cpu" in
13319 lt_prog_compiler_pic_F77='+Z'
13322 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13323 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13326 irix5* | irix6* | nonstopux*)
13327 lt_prog_compiler_wl_F77='-Wl,'
13328 # PIC (with -KPIC) is the default.
13329 lt_prog_compiler_static_F77='-non_shared'
13333 lt_prog_compiler_pic_F77='-KPIC'
13334 lt_prog_compiler_static_F77='-Bstatic'
13340 lt_prog_compiler_wl_F77='-Wl,'
13341 lt_prog_compiler_pic_F77='-KPIC'
13342 lt_prog_compiler_static_F77='-static'
13345 lt_prog_compiler_wl_F77='-Wl,'
13346 # All Alpha code is PIC.
13347 lt_prog_compiler_static_F77='-non_shared'
13352 osf3* | osf4* | osf5*)
13353 lt_prog_compiler_wl_F77='-Wl,'
13354 # All OSF/1 code is PIC.
13355 lt_prog_compiler_static_F77='-non_shared'
13359 lt_prog_compiler_pic_F77='-Kpic'
13360 lt_prog_compiler_static_F77='-dn'
13364 lt_prog_compiler_wl_F77='-Wl,'
13365 lt_prog_compiler_pic_F77='-KPIC'
13366 lt_prog_compiler_static_F77='-Bstatic'
13370 lt_prog_compiler_wl_F77='-Qoption ld '
13371 lt_prog_compiler_pic_F77='-PIC'
13372 lt_prog_compiler_static_F77='-Bstatic'
13375 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13376 lt_prog_compiler_wl_F77='-Wl,'
13377 lt_prog_compiler_pic_F77='-KPIC'
13378 lt_prog_compiler_static_F77='-Bstatic'
13382 if test -d /usr/nec ;then
13383 lt_prog_compiler_pic_F77='-Kconform_pic'
13384 lt_prog_compiler_static_F77='-Bstatic'
13389 lt_prog_compiler_pic_F77='-pic'
13390 lt_prog_compiler_static_F77='-Bstatic'
13394 lt_prog_compiler_can_build_shared_F77=no
13399 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13400 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13403 # Check to make sure the PIC flag actually works.
13405 if test -n "$lt_prog_compiler_pic_F77"; then
13407 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13408 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13409 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 lt_prog_compiler_pic_works_F77=no
13413 ac_outfile=conftest.$ac_objext
13414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13415 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13416 # Insert the option either (1) after the last *FLAGS variable, or
13417 # (2) before a word containing "conftest.", or (3) at the end.
13418 # Note that $ac_compile itself does not contain backslashes and begins
13419 # with a dollar sign (not a hyphen), so the echo should work correctly.
13420 # The option is referenced via a variable to avoid confusing sed.
13421 lt_compile=`echo "$ac_compile" | $SED \
13422 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13424 -e 's:$: $lt_compiler_flag:'`
13425 (eval echo "\"\$as_me:13425: $lt_compile\"" >&5)
13426 (eval "$lt_compile" 2>conftest.err)
13428 cat conftest.err >&5
13429 echo "$as_me:13429: \$? = $ac_status" >&5
13430 if (exit $ac_status) && test -s "$ac_outfile"; then
13431 # The compiler can only warn and ignore the option if not recognized
13432 # So say no if there are warnings
13433 if test ! -s conftest.err; then
13434 lt_prog_compiler_pic_works_F77=yes
13440 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13441 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13443 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13444 case $lt_prog_compiler_pic_F77 in
13446 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13449 lt_prog_compiler_pic_F77=
13450 lt_prog_compiler_can_build_shared_F77=no
13455 # For platforms which do not support PIC, -DPIC is meaningless:
13457 lt_prog_compiler_pic_F77=
13460 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13464 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13465 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13466 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 lt_cv_prog_compiler_c_o_F77=no
13470 $rm -r conftest 2>/dev/null
13474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13476 lt_compiler_flag="-o out/conftest2.$ac_objext"
13477 # Insert the option either (1) after the last *FLAGS variable, or
13478 # (2) before a word containing "conftest.", or (3) at the end.
13479 # Note that $ac_compile itself does not contain backslashes and begins
13480 # with a dollar sign (not a hyphen), so the echo should work correctly.
13481 lt_compile=`echo "$ac_compile" | $SED \
13482 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13484 -e 's:$: $lt_compiler_flag:'`
13485 (eval echo "\"\$as_me:13485: $lt_compile\"" >&5)
13486 (eval "$lt_compile" 2>out/conftest.err)
13488 cat out/conftest.err >&5
13489 echo "$as_me:13489: \$? = $ac_status" >&5
13490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13492 # The compiler can only warn and ignore the option if not recognized
13493 # So say no if there are warnings
13494 if test ! -s out/conftest.err; then
13495 lt_cv_prog_compiler_c_o_F77=yes
13500 # SGI C++ compiler will create directory out/ii_files/ for
13501 # template instantiation
13502 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13503 $rm out/* && rmdir out
13509 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13510 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13513 hard_links="nottested"
13514 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13515 # do not overwrite the value of need_locks provided by the user
13516 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13517 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13522 ln conftest.a conftest.b 2>&5 || hard_links=no
13523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13524 echo "$as_me:$LINENO: result: $hard_links" >&5
13525 echo "${ECHO_T}$hard_links" >&6
13526 if test "$hard_links" = no; then
13527 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13528 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13535 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13536 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13539 allow_undefined_flag_F77=
13540 enable_shared_with_static_runtimes_F77=no
13542 archive_expsym_cmds_F77=
13543 old_archive_From_new_cmds_F77=
13544 old_archive_from_expsyms_cmds_F77=
13545 export_dynamic_flag_spec_F77=
13546 whole_archive_flag_spec_F77=
13547 thread_safe_flag_spec_F77=
13548 hardcode_libdir_flag_spec_F77=
13549 hardcode_libdir_flag_spec_ld_F77=
13550 hardcode_libdir_separator_F77=
13551 hardcode_direct_F77=no
13552 hardcode_minus_L_F77=no
13553 hardcode_shlibpath_var_F77=unsupported
13554 link_all_deplibs_F77=unknown
13555 hardcode_automatic_F77=no
13557 module_expsym_cmds_F77=
13558 always_export_symbols_F77=no
13559 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13560 # include_expsyms should be a list of space-separated symbols to be *always*
13561 # included in the symbol list
13562 include_expsyms_F77=
13563 # exclude_expsyms can be an extended regexp of symbols to exclude
13564 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13565 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13566 # as well as any symbol that contains `d'.
13567 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13568 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13569 # platforms (ab)use it in PIC code, but their linkers get confused if
13570 # the symbol is explicitly referenced. Since portable code cannot
13571 # rely on this symbol name, it's probably fine to never include it in
13572 # preloaded symbol tables.
13573 extract_expsyms_cmds=
13576 cygwin* | mingw* | pw32*)
13577 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13578 # When not using gcc, we currently assume that we are using
13579 # Microsoft Visual C++.
13580 if test "$GCC" != yes; then
13590 if test "$with_gnu_ld" = yes; then
13591 # If archive_cmds runs LD, not CC, wlarc should be empty
13594 # See if GNU ld supports shared libraries.
13596 aix3* | aix4* | aix5*)
13597 # On AIX/PPC, the GNU linker is very broken
13598 if test "$host_cpu" != ia64; then
13602 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13603 *** to be unable to reliably create shared libraries on AIX.
13604 *** Therefore, libtool is disabling shared libraries support. If you
13605 *** really care for shared libraries, you may want to modify your PATH
13606 *** so that a non-GNU linker is found, and then restart.
13613 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)'
13614 hardcode_libdir_flag_spec_F77='-L$libdir'
13615 hardcode_minus_L_F77=yes
13617 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13618 # that the semantics of dynamic libraries on AmigaOS, at least up
13619 # to version 4, is to share data among multiple programs linked
13620 # with the same dynamic library. Since this doesn't match the
13621 # behavior of shared libraries on other platforms, we can't use
13627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13628 allow_undefined_flag_F77=unsupported
13629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13630 # support --undefined. This deserves some investigation. FIXME
13631 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13637 cygwin* | mingw* | pw32*)
13638 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13639 # as there is no search path for DLLs.
13640 hardcode_libdir_flag_spec_F77='-L$libdir'
13641 allow_undefined_flag_F77=unsupported
13642 always_export_symbols_F77=no
13643 enable_shared_with_static_runtimes_F77=yes
13644 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13646 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13647 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13648 # If the export-symbols file already is a .def file (1st line
13649 # is EXPORTS), use it as is; otherwise, prepend...
13650 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13651 cp $export_symbols $output_objdir/$soname.def;
13653 echo EXPORTS > $output_objdir/$soname.def;
13654 cat $export_symbols >> $output_objdir/$soname.def;
13656 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13662 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13664 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13667 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13668 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13673 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13677 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13678 *** create shared libraries on Solaris systems. Therefore, libtool
13679 *** is disabling shared libraries support. We urge you to upgrade GNU
13680 *** binutils to release 2.9.1 or newer. Another option is to modify
13681 *** your PATH or compiler configuration so that the native linker is
13682 *** used, and then restart.
13685 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13686 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13687 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13694 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13696 hardcode_direct_F77=yes
13697 hardcode_shlibpath_var_F77=no
13701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13702 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13703 archive_cmds_F77="$tmp_archive_cmds"
13704 supports_anon_versioning=no
13705 case `$LD -v 2>/dev/null` in
13706 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13707 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13708 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13709 *\ 2.11.*) ;; # other 2.11 versions
13710 *) supports_anon_versioning=yes ;;
13712 if test $supports_anon_versioning = yes; then
13713 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13715 $echo "local: *; };" >> $output_objdir/$libname.ver~
13716 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13718 archive_expsym_cmds_F77="$tmp_archive_cmds"
13720 link_all_deplibs_F77=no
13727 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13728 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13729 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13736 if test "$ld_shlibs_F77" = yes; then
13737 runpath_var=LD_RUN_PATH
13738 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13739 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13740 # ancient GNU ld didn't support --whole-archive et. al.
13741 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13742 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13744 whole_archive_flag_spec_F77=
13748 # PORTME fill in a description of your system's linker (not GNU ld)
13751 allow_undefined_flag_F77=unsupported
13752 always_export_symbols_F77=yes
13753 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13754 # Note: this linker hardcodes the directories in LIBPATH if there
13755 # are no directories specified by -L.
13756 hardcode_minus_L_F77=yes
13757 if test "$GCC" = yes && test -z "$link_static_flag"; then
13758 # Neither direct hardcoding nor static linking is supported with a
13760 hardcode_direct_F77=unsupported
13765 if test "$host_cpu" = ia64; then
13766 # On IA64, the linker does run time linking by default, so we don't
13767 # have to do anything special.
13768 aix_use_runtimelinking=no
13769 exp_sym_flag='-Bexport'
13772 # If we're using GNU nm, then we don't want the "-C" option.
13773 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13774 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13775 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13777 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13779 aix_use_runtimelinking=no
13781 # Test if we are trying to use run time linking or normal
13782 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13783 # need to do runtime linking.
13784 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13785 for ld_flag in $LDFLAGS; do
13786 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13787 aix_use_runtimelinking=yes
13793 exp_sym_flag='-bexport'
13794 no_entry_flag='-bnoentry'
13797 # When large executables or shared objects are built, AIX ld can
13798 # have problems creating the table of contents. If linking a library
13799 # or program results in "error TOC overflow" add -mminimal-toc to
13800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13803 archive_cmds_F77=''
13804 hardcode_direct_F77=yes
13805 hardcode_libdir_separator_F77=':'
13806 link_all_deplibs_F77=yes
13808 if test "$GCC" = yes; then
13809 case $host_os in aix4.012|aix4.012.*)
13810 # We only want to do this on AIX 4.2 and lower, the check
13811 # below for broken collect2 doesn't work under 4.3+
13812 collect2name=`${CC} -print-prog-name=collect2`
13813 if test -f "$collect2name" && \
13814 strings "$collect2name" | grep resolve_lib_name >/dev/null
13816 # We have reworked collect2
13817 hardcode_direct_F77=yes
13819 # We have old collect2
13820 hardcode_direct_F77=unsupported
13821 # It fails to find uninstalled libraries when the uninstalled
13822 # path is not listed in the libpath. Setting hardcode_minus_L
13823 # to unsupported forces relinking
13824 hardcode_minus_L_F77=yes
13825 hardcode_libdir_flag_spec_F77='-L$libdir'
13826 hardcode_libdir_separator_F77=
13829 shared_flag='-shared'
13832 if test "$host_cpu" = ia64; then
13833 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13834 # chokes on -Wl,-G. The following line is correct:
13837 if test "$aix_use_runtimelinking" = yes; then
13838 shared_flag='${wl}-G'
13840 shared_flag='${wl}-bM:SRE'
13845 # It seems that -bexpall does not export symbols beginning with
13846 # underscore (_), so it is better to generate a list of symbols to export.
13847 always_export_symbols_F77=yes
13848 if test "$aix_use_runtimelinking" = yes; then
13849 # Warning - without using the other runtime loading flags (-brtl),
13850 # -berok will link without error, but may produce a broken library.
13851 allow_undefined_flag_F77='-berok'
13852 # Determine the default libpath from the value encoded in an empty executable.
13853 cat >conftest.$ac_ext <<_ACEOF
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13860 (eval $ac_link) 2>conftest.er1
13862 grep -v '^ *+' conftest.er1 >conftest.err
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; } &&
13873 { ac_try='test -s conftest$ac_exeext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13880 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13882 # Check for a 64-bit object if we didn't find anything.
13883 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; }
13886 echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13890 rm -f conftest.err conftest.$ac_objext \
13891 conftest$ac_exeext conftest.$ac_ext
13892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13894 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13895 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"
13897 if test "$host_cpu" = ia64; then
13898 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13899 allow_undefined_flag_F77="-z nodefs"
13900 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"
13902 # Determine the default libpath from the value encoded in an empty executable.
13903 cat >conftest.$ac_ext <<_ACEOF
13908 rm -f conftest.$ac_objext conftest$ac_exeext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13910 (eval $ac_link) 2>conftest.er1
13912 grep -v '^ *+' conftest.er1 >conftest.err
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
13917 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest$ac_exeext'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13932 # Check for a 64-bit object if we didn't find anything.
13933 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; }
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13940 rm -f conftest.err conftest.$ac_objext \
13941 conftest$ac_exeext conftest.$ac_ext
13942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13944 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13945 # Warning - without using the other run time loading flags,
13946 # -berok will link without error, but may produce a broken library.
13947 no_undefined_flag_F77=' ${wl}-bernotok'
13948 allow_undefined_flag_F77=' ${wl}-berok'
13949 # -bexpall does not export symbols beginning with underscore (_)
13950 always_export_symbols_F77=yes
13951 # Exported symbols can be pulled into shared objects from archives
13952 whole_archive_flag_spec_F77=' '
13953 archive_cmds_need_lc_F77=yes
13954 # This is similar to how AIX traditionally builds it's shared libraries.
13955 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'
13961 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)'
13962 hardcode_libdir_flag_spec_F77='-L$libdir'
13963 hardcode_minus_L_F77=yes
13964 # see comment about different semantics on the GNU ld section
13969 export_dynamic_flag_spec_F77=-rdynamic
13972 cygwin* | mingw* | pw32*)
13973 # When not using gcc, we currently assume that we are using
13974 # Microsoft Visual C++.
13975 # hardcode_libdir_flag_spec is actually meaningless, as there is
13976 # no search path for DLLs.
13977 hardcode_libdir_flag_spec_F77=' '
13978 allow_undefined_flag_F77=unsupported
13979 # Tell ltmain to make .lib files, not .a files.
13981 # Tell ltmain to make .dll files, not .so files.
13983 # FIXME: Setting linknames here is a bad hack.
13984 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13985 # The linker will automatically build a .lib file if we build a DLL.
13986 old_archive_From_new_cmds_F77='true'
13987 # FIXME: Should let the user specify the lib program.
13988 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13989 fix_srcfile_path='`cygpath -w "$srcfile"`'
13990 enable_shared_with_static_runtimes_F77=yes
13993 darwin* | rhapsody*)
13994 if test "$GXX" = yes ; then
13995 archive_cmds_need_lc_F77=no
13997 rhapsody* | darwin1.[012])
13998 allow_undefined_flag_F77='-undefined suppress'
14001 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14002 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14004 case ${MACOSX_DEPLOYMENT_TARGET} in
14006 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14009 allow_undefined_flag_F77='-undefined dynamic_lookup'
14015 lt_int_apple_cc_single_mod=no
14016 output_verbose_link_cmd='echo'
14017 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14018 lt_int_apple_cc_single_mod=yes
14020 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14021 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14023 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'
14025 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14027 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14028 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}'
14030 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}'
14032 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}'
14033 hardcode_direct_F77=no
14034 hardcode_automatic_F77=yes
14035 hardcode_shlibpath_var_F77=unsupported
14036 whole_archive_flag_spec_F77='-all_load $convenience'
14037 link_all_deplibs_F77=yes
14044 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14045 hardcode_libdir_flag_spec_F77='-L$libdir'
14046 hardcode_shlibpath_var_F77=no
14053 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14054 # support. Future versions do this automatically, but an explicit c++rt0.o
14055 # does not break anything, and helps significantly (at the cost of a little
14058 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14059 hardcode_libdir_flag_spec_F77='-R$libdir'
14060 hardcode_direct_F77=yes
14061 hardcode_shlibpath_var_F77=no
14064 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14066 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14067 hardcode_direct_F77=yes
14068 hardcode_minus_L_F77=yes
14069 hardcode_shlibpath_var_F77=no
14072 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14073 freebsd* | kfreebsd*-gnu)
14074 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14075 hardcode_libdir_flag_spec_F77='-R$libdir'
14076 hardcode_direct_F77=yes
14077 hardcode_shlibpath_var_F77=no
14081 if test "$GCC" = yes; then
14082 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'
14084 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'
14086 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14087 hardcode_libdir_separator_F77=:
14088 hardcode_direct_F77=yes
14090 # hardcode_minus_L: Not really in the search PATH,
14091 # but as the default location of the library.
14092 hardcode_minus_L_F77=yes
14093 export_dynamic_flag_spec_F77='${wl}-E'
14097 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14098 case "$host_cpu" in
14100 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14103 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14107 case "$host_cpu" in
14109 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14112 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14116 if test "$with_gnu_ld" = no; then
14117 case "$host_cpu" in
14119 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14120 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14121 hardcode_libdir_separator_F77=:
14122 hardcode_direct_F77=no
14123 hardcode_shlibpath_var_F77=no
14126 hardcode_libdir_flag_spec_F77='-L$libdir'
14127 hardcode_direct_F77=no
14128 hardcode_shlibpath_var_F77=no
14130 # hardcode_minus_L: Not really in the search PATH,
14131 # but as the default location of the library.
14132 hardcode_minus_L_F77=yes
14135 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14136 hardcode_libdir_separator_F77=:
14137 hardcode_direct_F77=yes
14138 export_dynamic_flag_spec_F77='${wl}-E'
14140 # hardcode_minus_L: Not really in the search PATH,
14141 # but as the default location of the library.
14142 hardcode_minus_L_F77=yes
14148 irix5* | irix6* | nonstopux*)
14149 if test "$GCC" = yes; then
14150 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'
14152 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'
14153 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14155 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14156 hardcode_libdir_separator_F77=:
14157 link_all_deplibs_F77=yes
14160 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14162 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14164 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14166 hardcode_libdir_flag_spec_F77='-R$libdir'
14167 hardcode_direct_F77=yes
14168 hardcode_shlibpath_var_F77=no
14172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14173 hardcode_direct_F77=yes
14174 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14175 hardcode_libdir_separator_F77=:
14176 hardcode_shlibpath_var_F77=no
14180 hardcode_direct_F77=yes
14181 hardcode_shlibpath_var_F77=no
14182 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14183 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14184 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14185 export_dynamic_flag_spec_F77='${wl}-E'
14188 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14189 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14190 hardcode_libdir_flag_spec_F77='-R$libdir'
14193 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14194 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14201 hardcode_libdir_flag_spec_F77='-L$libdir'
14202 hardcode_minus_L_F77=yes
14203 allow_undefined_flag_F77=unsupported
14204 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'
14205 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14209 if test "$GCC" = yes; then
14210 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14211 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14213 allow_undefined_flag_F77=' -expect_unresolved \*'
14214 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'
14216 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14217 hardcode_libdir_separator_F77=:
14220 osf4* | osf5*) # as osf3* with the addition of -msym flag
14221 if test "$GCC" = yes; then
14222 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14223 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'
14224 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14226 allow_undefined_flag_F77=' -expect_unresolved \*'
14227 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'
14228 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~
14229 $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'
14231 # Both c and cxx compiler support -rpath directly
14232 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14234 hardcode_libdir_separator_F77=:
14238 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14239 hardcode_shlibpath_var_F77=no
14240 export_dynamic_flag_spec_F77='${wl}-Bexport'
14241 runpath_var=LD_RUN_PATH
14242 hardcode_runpath_var=yes
14246 no_undefined_flag_F77=' -z text'
14247 if test "$GCC" = yes; then
14248 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14249 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14250 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14252 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14253 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14254 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14256 hardcode_libdir_flag_spec_F77='-R$libdir'
14257 hardcode_shlibpath_var_F77=no
14259 solaris2.[0-5] | solaris2.[0-5].*) ;;
14260 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14261 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14263 link_all_deplibs_F77=yes
14267 if test "x$host_vendor" = xsequent; then
14268 # Use $CC to link under sequent, because it throws in some extra .o
14269 # files that make .init and .fini sections work.
14270 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14272 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14274 hardcode_libdir_flag_spec_F77='-L$libdir'
14275 hardcode_direct_F77=yes
14276 hardcode_minus_L_F77=yes
14277 hardcode_shlibpath_var_F77=no
14281 case $host_vendor in
14283 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14284 hardcode_direct_F77=yes # is this really true???
14287 ## LD is ld it makes a PLAMLIB
14288 ## CC just makes a GrossModule.
14289 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14290 reload_cmds_F77='$CC -r -o $output$reload_objs'
14291 hardcode_direct_F77=no
14294 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14298 runpath_var='LD_RUN_PATH'
14299 hardcode_shlibpath_var_F77=no
14303 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14304 hardcode_shlibpath_var_F77=no
14305 export_dynamic_flag_spec_F77='-Bexport'
14309 if test -d /usr/nec; then
14310 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311 hardcode_shlibpath_var_F77=no
14312 runpath_var=LD_RUN_PATH
14313 hardcode_runpath_var=yes
14319 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14320 hardcode_direct_F77=yes
14321 hardcode_minus_L_F77=no
14322 hardcode_shlibpath_var_F77=no
14323 hardcode_runpath_var=yes
14324 runpath_var=LD_RUN_PATH
14327 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14328 no_undefined_flag_F77='${wl}-z ${wl}text'
14329 if test "$GCC" = yes; then
14330 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14332 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14334 runpath_var='LD_RUN_PATH'
14335 hardcode_shlibpath_var_F77=no
14339 no_undefined_flag_F77=' -z text'
14340 # $CC -shared without GNU ld will not create a library from C++
14341 # object files and a static libstdc++, better avoid it by now
14342 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14343 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14344 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14345 hardcode_libdir_flag_spec_F77=
14346 hardcode_shlibpath_var_F77=no
14347 runpath_var='LD_RUN_PATH'
14351 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14352 hardcode_libdir_flag_spec_F77='-L$libdir'
14353 hardcode_shlibpath_var_F77=no
14362 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14363 echo "${ECHO_T}$ld_shlibs_F77" >&6
14364 test "$ld_shlibs_F77" = no && can_build_shared=no
14366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14367 if test "$GCC" = yes; then
14368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14372 # Do we need to explicitly link libc?
14374 case "x$archive_cmds_need_lc_F77" in
14376 # Assume -lc should be added
14377 archive_cmds_need_lc_F77=yes
14379 if test "$enable_shared" = yes && test "$GCC" = yes; then
14380 case $archive_cmds_F77 in
14382 # FIXME: we may have to deal with multi-command sequences.
14385 # Test whether the compiler implicitly links with -lc since on some
14386 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14387 # to ld, don't add -lc before -lgcc.
14388 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14389 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14394 (eval $ac_compile) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } 2>conftest.err; then
14400 libobjs=conftest.$ac_objext
14402 wl=$lt_prog_compiler_wl_F77
14408 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14409 allow_undefined_flag_F77=
14410 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14411 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }
14416 archive_cmds_need_lc_F77=no
14418 archive_cmds_need_lc_F77=yes
14420 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14422 cat conftest.err 1>&5
14425 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14426 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14433 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14434 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14435 library_names_spec=
14436 libname_spec='lib$name'
14440 postuninstall_cmds=
14444 shlibpath_overrides_runpath=unknown
14446 dynamic_linker="$host_os ld.so"
14447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14448 if test "$GCC" = yes; then
14449 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14450 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14451 # if the path contains ";" then we assume it to be the separator
14452 # otherwise default to the standard path separator (i.e. ":") - it is
14453 # assumed that no part of a normal pathname contains ";" but that should
14454 # okay in the real world where ";" in dirpaths is itself problematic.
14455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14462 need_lib_prefix=unknown
14463 hardcode_into_libs=no
14465 # when you set need_version to no, make sure it does not cause -set_version
14466 # flags to be left without arguments
14467 need_version=unknown
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14473 shlibpath_var=LIBPATH
14475 # AIX 3 has no versioning support, so we append a major version to the name.
14476 soname_spec='${libname}${release}${shared_ext}$major'
14483 hardcode_into_libs=yes
14484 if test "$host_cpu" = ia64; then
14485 # AIX 5 supports IA64
14486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14487 shlibpath_var=LD_LIBRARY_PATH
14489 # With GCC up to 2.95.x, collect2 would create an import file
14490 # for dependence libraries. The import file would start with
14491 # the line `#! .'. This would cause the generated library to
14492 # depend on `.', always an invalid library. This was fixed in
14493 # development snapshots of GCC prior to 3.0.
14495 aix4 | aix4.[01] | aix4.[01].*)
14496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14498 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14501 can_build_shared=no
14505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14506 # soname into executable. Probably we can add versioning support to
14507 # collect2, so additional links can be useful in future.
14508 if test "$aix_use_runtimelinking" = yes; then
14509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14510 # instead of lib<name>.a to let people know that these are not
14511 # typical AIX shared libraries.
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514 # We preserve .a as extension for shared libraries through AIX4.2
14515 # and later when we are not doing run time linking.
14516 library_names_spec='${libname}${release}.a $libname.a'
14517 soname_spec='${libname}${release}${shared_ext}$major'
14519 shlibpath_var=LIBPATH
14524 library_names_spec='$libname.ixlibrary $libname.a'
14525 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14526 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'
14530 library_names_spec='${libname}${shared_ext}'
14531 dynamic_linker="$host_os ld.so"
14532 shlibpath_var=LIBRARY_PATH
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14541 shlibpath_var=LD_LIBRARY_PATH
14542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14544 # the default ld.so.conf also contains /usr/contrib/lib and
14545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14546 # libtool to hard-code these into programs
14549 cygwin* | mingw* | pw32*)
14550 version_type=windows
14555 case $GCC,$host_os in
14556 yes,cygwin* | yes,mingw* | yes,pw32*)
14557 library_names_spec='$libname.dll.a'
14558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14559 postinstall_cmds='base_file=`basename \${file}`~
14560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14561 dldir=$destdir/`dirname \$dlpath`~
14562 test -d \$dldir || mkdir -p \$dldir~
14563 $install_prog $dir/$dlname \$dldir/$dlname'
14564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14565 dlpath=$dir/\$dldll~
14567 shlibpath_overrides_runpath=yes
14571 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14572 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14573 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14576 # MinGW DLLs use traditional 'lib' prefix
14577 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14578 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14579 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14580 # It is most probably a Windows format PATH printed by
14581 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14582 # path with ; separators, and with drive letters. We can handle the
14583 # drive letters (cygwin fileutils understands them), so leave them,
14584 # especially as we might pass files found there to a mingw objdump,
14585 # which wouldn't understand a cygwinified path. Ahh.
14586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14592 # pw32 DLLs use 'pw' prefix rather than 'lib'
14593 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14599 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14602 dynamic_linker='Win32 ld.exe'
14603 # FIXME: first we should search . and the directory the executable is in
14607 darwin* | rhapsody*)
14608 dynamic_linker="$host_os dyld"
14609 version_type=darwin
14612 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14613 soname_spec='${libname}${release}${major}$shared_ext'
14614 shlibpath_overrides_runpath=yes
14615 shlibpath_var=DYLD_LIBRARY_PATH
14616 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14617 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14618 if test "$GCC" = yes; then
14619 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"`
14621 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14623 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14631 soname_spec='${libname}${release}${shared_ext}$major'
14632 shlibpath_var=LD_LIBRARY_PATH
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14644 soname_spec='${libname}${release}${shared_ext}$major'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 shlibpath_overrides_runpath=no
14647 hardcode_into_libs=yes
14648 dynamic_linker='GNU ld.so'
14652 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14653 version_type=freebsd-$objformat
14654 case $version_type in
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14665 shlibpath_var=LD_LIBRARY_PATH
14668 shlibpath_overrides_runpath=yes
14670 freebsd3.01* | freebsdelf3.01*)
14671 shlibpath_overrides_runpath=yes
14672 hardcode_into_libs=yes
14675 shlibpath_overrides_runpath=no
14676 hardcode_into_libs=yes
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14686 soname_spec='${libname}${release}${shared_ext}$major'
14687 shlibpath_var=LD_LIBRARY_PATH
14688 hardcode_into_libs=yes
14691 hpux9* | hpux10* | hpux11*)
14692 # Give a soname corresponding to the major version so that dld.sl refuses to
14693 # link against other versions.
14697 case "$host_cpu" in
14700 hardcode_into_libs=yes
14701 dynamic_linker="$host_os dld.so"
14702 shlibpath_var=LD_LIBRARY_PATH
14703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 if test "X$HPUX_IA64_MODE" = X32; then
14707 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14709 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14715 hardcode_into_libs=yes
14716 dynamic_linker="$host_os dld.sl"
14717 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14726 dynamic_linker="$host_os dld.sl"
14727 shlibpath_var=SHLIB_PATH
14728 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730 soname_spec='${libname}${release}${shared_ext}$major'
14733 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14734 postinstall_cmds='chmod 555 $lib'
14737 irix5* | irix6* | nonstopux*)
14739 nonstopux*) version_type=nonstopux ;;
14741 if test "$lt_cv_prog_gnu_ld" = yes; then
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14752 irix5* | nonstopux*)
14753 libsuff= shlibsuff=
14756 case $LD in # libtool.m4 will add one of these switches to LD
14757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14758 libsuff= shlibsuff= libmagic=32-bit;;
14759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14760 libsuff=32 shlibsuff=N32 libmagic=N32;;
14761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14763 *) libsuff= shlibsuff= libmagic=never-match;;
14767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14768 shlibpath_overrides_runpath=no
14769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14771 hardcode_into_libs=yes
14774 # No shared lib support for Linux oldld, aout, or coff.
14775 linux*oldld* | linux*aout* | linux*coff*)
14779 # This must be Linux ELF.
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 shlibpath_overrides_runpath=no
14789 # This implies no fast_install, which is unacceptable.
14790 # Some rework will be needed to allow for fast_install
14791 # before this can be enabled.
14792 hardcode_into_libs=yes
14794 # Append ld.so.conf contents to the search path
14795 if test -f /etc/ld.so.conf; then
14796 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14797 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14800 # We used to test for /lib/ld.so.1 and disable shared libraries on
14801 # powerpc, because MkLinux only supported shared libraries with the
14802 # GNU dynamic linker. Since this was broken with cross compilers,
14803 # most powerpc-linux boxes support dynamic linking these days and
14804 # people can always --disable-shared, the test was removed, and we
14805 # assume the GNU/Linux dynamic linker is in use.
14806 dynamic_linker='GNU/Linux ld.so'
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14814 soname_spec='${libname}${release}${shared_ext}$major'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 shlibpath_overrides_runpath=no
14817 hardcode_into_libs=yes
14818 dynamic_linker='NetBSD ld.elf_so'
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14826 soname_spec='${libname}${release}${shared_ext}$major'
14827 shlibpath_var=LD_LIBRARY_PATH
14828 shlibpath_overrides_runpath=no
14829 hardcode_into_libs=yes
14830 dynamic_linker='GNU ld.so'
14837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14840 dynamic_linker='NetBSD (a.out) ld.so'
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 dynamic_linker='NetBSD ld.elf_so'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 shlibpath_overrides_runpath=yes
14848 hardcode_into_libs=yes
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=yes
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 shlibpath_overrides_runpath=yes
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14877 openbsd2.[89] | openbsd2.[89].*)
14878 shlibpath_overrides_runpath=no
14881 shlibpath_overrides_runpath=yes
14885 shlibpath_overrides_runpath=yes
14890 libname_spec='$name'
14893 library_names_spec='$libname${shared_ext} $libname.a'
14894 dynamic_linker='OS/2 ld.exe'
14895 shlibpath_var=LIBPATH
14898 osf3* | osf4* | osf5*)
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14906 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 shlibpath_var=LD_LIBRARY_PATH
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921 soname_spec='${libname}${release}${shared_ext}$major'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 shlibpath_overrides_runpath=yes
14924 hardcode_into_libs=yes
14925 # ldd complains unless libraries are executable
14926 postinstall_cmds='chmod +x $lib'
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14932 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 shlibpath_overrides_runpath=yes
14935 if test "$with_gnu_ld" = yes; then
14941 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944 soname_spec='${libname}${release}${shared_ext}$major'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 case $host_vendor in
14948 shlibpath_overrides_runpath=no
14950 export_dynamic_flag_spec='${wl}-Blargedynsym'
14951 runpath_var=LD_RUN_PATH
14959 shlibpath_overrides_runpath=no
14960 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14966 if test -d /usr/nec ;then
14968 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14969 soname_spec='$libname${shared_ext}.$major'
14970 shlibpath_var=LD_LIBRARY_PATH
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 shlibpath_var=LD_LIBRARY_PATH
14985 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14986 echo "${ECHO_T}$dynamic_linker" >&6
14987 test "$dynamic_linker" = no && can_build_shared=no
14989 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14990 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14991 hardcode_action_F77=
14992 if test -n "$hardcode_libdir_flag_spec_F77" || \
14993 test -n "$runpath_var F77" || \
14994 test "X$hardcode_automatic_F77"="Xyes" ; then
14996 # We can hardcode non-existant directories.
14997 if test "$hardcode_direct_F77" != no &&
14998 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14999 # have to relink, otherwise we might link with an installed library
15000 # when we should be linking with a yet-to-be-installed one
15001 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15002 test "$hardcode_minus_L_F77" != no; then
15003 # Linking always hardcodes the temporary library directory.
15004 hardcode_action_F77=relink
15006 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15007 hardcode_action_F77=immediate
15010 # We cannot hardcode anything, or else we can only hardcode existing
15012 hardcode_action_F77=unsupported
15014 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15015 echo "${ECHO_T}$hardcode_action_F77" >&6
15017 if test "$hardcode_action_F77" = relink; then
15018 # Fast installation is not supported
15019 enable_fast_install=no
15020 elif test "$shlibpath_overrides_runpath" = yes ||
15021 test "$enable_shared" = no; then
15022 # Fast installation is not necessary
15023 enable_fast_install=needless
15028 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15029 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15030 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15031 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15032 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15033 echo "$as_me:$LINENO: result: yes" >&5
15034 echo "${ECHO_T}yes" >&6
15036 # FIXME - insert some real tests, host_os isn't really good enough
15039 if test -n "$STRIP" ; then
15040 striplib="$STRIP -x"
15041 echo "$as_me:$LINENO: result: yes" >&5
15042 echo "${ECHO_T}yes" >&6
15044 echo "$as_me:$LINENO: result: no" >&5
15045 echo "${ECHO_T}no" >&6
15049 echo "$as_me:$LINENO: result: no" >&5
15050 echo "${ECHO_T}no" >&6
15057 # The else clause should only fire when bootstrapping the
15058 # libtool distribution, otherwise you forgot to ship ltmain.sh
15059 # with your package, and you will get complaints that there are
15060 # no rules to generate ltmain.sh.
15061 if test -f "$ltmain"; then
15062 # See if we are running on zsh, and set the options which allow our commands through
15063 # without removal of \ escapes.
15064 if test -n "${ZSH_VERSION+set}" ; then
15065 setopt NO_GLOB_SUBST
15067 # Now quote all the things that may contain metacharacters while being
15068 # careful not to overquote the AC_SUBSTed values. We take copies of the
15069 # variables and quote the copies for generation of the libtool script.
15070 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15072 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15073 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15074 deplibs_check_method reload_flag reload_cmds need_locks \
15075 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15076 lt_cv_sys_global_symbol_to_c_name_address \
15077 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15078 old_postinstall_cmds old_postuninstall_cmds \
15082 lt_prog_compiler_wl_F77 \
15083 lt_prog_compiler_pic_F77 \
15084 lt_prog_compiler_static_F77 \
15085 lt_prog_compiler_no_builtin_flag_F77 \
15086 export_dynamic_flag_spec_F77 \
15087 thread_safe_flag_spec_F77 \
15088 whole_archive_flag_spec_F77 \
15089 enable_shared_with_static_runtimes_F77 \
15090 old_archive_cmds_F77 \
15091 old_archive_from_new_cmds_F77 \
15092 predep_objects_F77 \
15093 postdep_objects_F77 \
15096 compiler_lib_search_path_F77 \
15098 archive_expsym_cmds_F77 \
15099 postinstall_cmds_F77 \
15100 postuninstall_cmds_F77 \
15101 old_archive_from_expsyms_cmds_F77 \
15102 allow_undefined_flag_F77 \
15103 no_undefined_flag_F77 \
15104 export_symbols_cmds_F77 \
15105 hardcode_libdir_flag_spec_F77 \
15106 hardcode_libdir_flag_spec_ld_F77 \
15107 hardcode_libdir_separator_F77 \
15108 hardcode_automatic_F77 \
15110 module_expsym_cmds_F77 \
15111 lt_cv_prog_compiler_c_o_F77 \
15112 exclude_expsyms_F77 \
15113 include_expsyms_F77; do
15116 old_archive_cmds_F77 | \
15117 old_archive_from_new_cmds_F77 | \
15118 archive_cmds_F77 | \
15119 archive_expsym_cmds_F77 | \
15120 module_cmds_F77 | \
15121 module_expsym_cmds_F77 | \
15122 old_archive_from_expsyms_cmds_F77 | \
15123 export_symbols_cmds_F77 | \
15124 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15125 postinstall_cmds | postuninstall_cmds | \
15126 old_postinstall_cmds | old_postuninstall_cmds | \
15127 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15128 # Double-quote double-evaled strings.
15129 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15132 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15138 *'\$0 --fallback-echo"')
15139 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15145 cat <<__EOF__ >> "$cfgfile"
15146 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15150 # Shell to use when invoking shell scripts.
15153 # Whether or not to build shared libraries.
15154 build_libtool_libs=$enable_shared
15156 # Whether or not to build static libraries.
15157 build_old_libs=$enable_static
15159 # Whether or not to add -lc for building shared libraries.
15160 build_libtool_need_lc=$archive_cmds_need_lc_F77
15162 # Whether or not to disallow shared libs when runtime libs are static
15163 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15165 # Whether or not to optimize for fast installation.
15166 fast_install=$enable_fast_install
15169 host_alias=$host_alias
15172 # An echo program that does not interpret backslashes.
15177 AR_FLAGS=$lt_AR_FLAGS
15182 # A language-specific compiler.
15183 CC=$lt_compiler_F77
15185 # Is the compiler the GNU C compiler?
15191 # The linker used to build libraries.
15194 # Whether we need hard or soft links.
15197 # A BSD-compatible nm program.
15200 # A symbol stripping program
15203 # Used to examine libraries when file_magic_cmd begins "file"
15204 MAGIC_CMD=$MAGIC_CMD
15206 # Used on cygwin: DLL creation program.
15209 # Used on cygwin: object dumper.
15212 # Used on cygwin: assembler.
15215 # The name of the directory that contains temporary libtool files.
15218 # How to create reloadable object files.
15219 reload_flag=$lt_reload_flag
15220 reload_cmds=$lt_reload_cmds
15222 # How to pass a linker flag through the compiler.
15223 wl=$lt_lt_prog_compiler_wl_F77
15225 # Object file suffix (normally "o").
15226 objext="$ac_objext"
15228 # Old archive suffix (normally "a").
15231 # Shared library suffix (normally ".so").
15232 shrext_cmds='$shrext_cmds'
15234 # Executable file suffix (normally "").
15237 # Additional compiler flags for building library objects.
15238 pic_flag=$lt_lt_prog_compiler_pic_F77
15241 # What is the maximum length of a command?
15242 max_cmd_len=$lt_cv_sys_max_cmd_len
15244 # Does compiler simultaneously support -c and -o options?
15245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15247 # Must we lock files when doing compilation ?
15248 need_locks=$lt_need_locks
15250 # Do we need the lib prefix for modules?
15251 need_lib_prefix=$need_lib_prefix
15253 # Do we need a version for libraries?
15254 need_version=$need_version
15256 # Whether dlopen is supported.
15257 dlopen_support=$enable_dlopen
15259 # Whether dlopen of programs is supported.
15260 dlopen_self=$enable_dlopen_self
15262 # Whether dlopen of statically linked programs is supported.
15263 dlopen_self_static=$enable_dlopen_self_static
15265 # Compiler flag to prevent dynamic linking.
15266 link_static_flag=$lt_lt_prog_compiler_static_F77
15268 # Compiler flag to turn off builtin functions.
15269 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15271 # Compiler flag to allow reflexive dlopens.
15272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15274 # Compiler flag to generate shared objects directly from archives.
15275 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15277 # Compiler flag to generate thread-safe objects.
15278 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15280 # Library versioning type.
15281 version_type=$version_type
15283 # Format of library name prefix.
15284 libname_spec=$lt_libname_spec
15286 # List of archive names. First name is the real one, the rest are links.
15287 # The last name is the one that the linker finds with -lNAME.
15288 library_names_spec=$lt_library_names_spec
15290 # The coded name of the library, if different from the real name.
15291 soname_spec=$lt_soname_spec
15293 # Commands used to build and install an old-style archive.
15295 old_archive_cmds=$lt_old_archive_cmds_F77
15296 old_postinstall_cmds=$lt_old_postinstall_cmds
15297 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15299 # Create an old-style archive from a shared archive.
15300 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15302 # Create a temporary old-style archive to link instead of a shared archive.
15303 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15305 # Commands used to build and install a shared archive.
15306 archive_cmds=$lt_archive_cmds_F77
15307 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15308 postinstall_cmds=$lt_postinstall_cmds
15309 postuninstall_cmds=$lt_postuninstall_cmds
15311 # Commands used to build a loadable module (assumed same as above if empty)
15312 module_cmds=$lt_module_cmds_F77
15313 module_expsym_cmds=$lt_module_expsym_cmds_F77
15315 # Commands to strip libraries.
15316 old_striplib=$lt_old_striplib
15317 striplib=$lt_striplib
15319 # Dependencies to place before the objects being linked to create a
15321 predep_objects=$lt_predep_objects_F77
15323 # Dependencies to place after the objects being linked to create a
15325 postdep_objects=$lt_postdep_objects_F77
15327 # Dependencies to place before the objects being linked to create a
15329 predeps=$lt_predeps_F77
15331 # Dependencies to place after the objects being linked to create a
15333 postdeps=$lt_postdeps_F77
15335 # The library search path used internally by the compiler when linking
15336 # a shared library.
15337 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15339 # Method to check whether dependent libraries are shared objects.
15340 deplibs_check_method=$lt_deplibs_check_method
15342 # Command to use when deplibs_check_method == file_magic.
15343 file_magic_cmd=$lt_file_magic_cmd
15345 # Flag that allows shared libraries with undefined symbols to be built.
15346 allow_undefined_flag=$lt_allow_undefined_flag_F77
15348 # Flag that forces no undefined symbols.
15349 no_undefined_flag=$lt_no_undefined_flag_F77
15351 # Commands used to finish a libtool library installation in a directory.
15352 finish_cmds=$lt_finish_cmds
15354 # Same as above, but a single script fragment to be evaled but not shown.
15355 finish_eval=$lt_finish_eval
15357 # Take the output of nm and produce a listing of raw symbols and C names.
15358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15360 # Transform the output of nm in a proper C declaration
15361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15363 # Transform the output of nm in a C name address pair
15364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15366 # This is the shared library runtime path variable.
15367 runpath_var=$runpath_var
15369 # This is the shared library path variable.
15370 shlibpath_var=$shlibpath_var
15372 # Is shlibpath searched before the hard-coded library search path?
15373 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15375 # How to hardcode a shared library path into an executable.
15376 hardcode_action=$hardcode_action_F77
15378 # Whether we should hardcode library paths into libraries.
15379 hardcode_into_libs=$hardcode_into_libs
15381 # Flag to hardcode \$libdir into a binary during linking.
15382 # This must work even if \$libdir does not exist.
15383 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15385 # If ld is used when linking, flag to hardcode \$libdir into
15386 # a binary during linking. This must work even if \$libdir does
15388 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15390 # Whether we need a single -rpath flag with a separated argument.
15391 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15393 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15394 # resulting binary.
15395 hardcode_direct=$hardcode_direct_F77
15397 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15398 # resulting binary.
15399 hardcode_minus_L=$hardcode_minus_L_F77
15401 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15402 # the resulting binary.
15403 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15405 # Set to yes if building a shared library automatically hardcodes DIR into the library
15406 # and all subsequent libraries and executables linked against it.
15407 hardcode_automatic=$hardcode_automatic_F77
15409 # Variables whose values should be saved in libtool wrapper scripts and
15410 # restored at relink time.
15411 variables_saved_for_relink="$variables_saved_for_relink"
15413 # Whether libtool must link a program against all its dependency libraries.
15414 link_all_deplibs=$link_all_deplibs_F77
15416 # Compile-time system search path for libraries
15417 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15419 # Run-time system search path for libraries
15420 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15422 # Fix the shell variable \$srcfile for the compiler.
15423 fix_srcfile_path="$fix_srcfile_path_F77"
15425 # Set to yes if exported symbols are required.
15426 always_export_symbols=$always_export_symbols_F77
15428 # The commands to list exported symbols.
15429 export_symbols_cmds=$lt_export_symbols_cmds_F77
15431 # The commands to extract the exported symbol list from a shared archive.
15432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15434 # Symbols that should not be listed in the preloaded symbols.
15435 exclude_expsyms=$lt_exclude_expsyms_F77
15437 # Symbols that must always be exported.
15438 include_expsyms=$lt_include_expsyms_F77
15440 # ### END LIBTOOL TAG CONFIG: $tagname
15446 # If there is no Makefile yet, we rely on a make rule to execute
15447 # `config.status --recheck' to rerun these tests and create the
15448 # libtool script then.
15449 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15450 if test -f "$ltmain_in"; then
15451 test -f Makefile && make "$ltmain"
15457 ac_cpp='$CPP $CPPFLAGS'
15458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15470 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15474 # Source file extension for Java test sources.
15477 # Object file extension for compiled Java test sources.
15481 # Code to be used in simple compile tests
15482 lt_simple_compile_test_code="class foo {}\n"
15484 # Code to be used in simple link tests
15485 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15487 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15489 # If no C compiler was specified, use CC.
15492 # Allow CC to be a program name with arguments.
15496 # Allow CC to be a program name with arguments.
15502 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15503 archive_cmds_need_lc_GCJ=no
15506 lt_prog_compiler_no_builtin_flag_GCJ=
15508 if test "$GCC" = yes; then
15509 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15512 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15513 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15514 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 lt_cv_prog_compiler_rtti_exceptions=no
15518 ac_outfile=conftest.$ac_objext
15519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15520 lt_compiler_flag="-fno-rtti -fno-exceptions"
15521 # Insert the option either (1) after the last *FLAGS variable, or
15522 # (2) before a word containing "conftest.", or (3) at the end.
15523 # Note that $ac_compile itself does not contain backslashes and begins
15524 # with a dollar sign (not a hyphen), so the echo should work correctly.
15525 # The option is referenced via a variable to avoid confusing sed.
15526 lt_compile=`echo "$ac_compile" | $SED \
15527 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15529 -e 's:$: $lt_compiler_flag:'`
15530 (eval echo "\"\$as_me:15530: $lt_compile\"" >&5)
15531 (eval "$lt_compile" 2>conftest.err)
15533 cat conftest.err >&5
15534 echo "$as_me:15534: \$? = $ac_status" >&5
15535 if (exit $ac_status) && test -s "$ac_outfile"; then
15536 # The compiler can only warn and ignore the option if not recognized
15537 # So say no if there are warnings
15538 if test ! -s conftest.err; then
15539 lt_cv_prog_compiler_rtti_exceptions=yes
15545 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15546 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15548 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15549 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15556 lt_prog_compiler_wl_GCJ=
15557 lt_prog_compiler_pic_GCJ=
15558 lt_prog_compiler_static_GCJ=
15560 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15561 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15563 if test "$GCC" = yes; then
15564 lt_prog_compiler_wl_GCJ='-Wl,'
15565 lt_prog_compiler_static_GCJ='-static'
15569 # All AIX code is PIC.
15570 if test "$host_cpu" = ia64; then
15571 # AIX 5 now supports IA64 processor
15572 lt_prog_compiler_static_GCJ='-Bstatic'
15577 # FIXME: we need at least 68020 code to build shared libraries, but
15578 # adding the `-m68020' flag to GCC prevents building anything better,
15580 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15583 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15584 # PIC is the default for these OSes.
15587 mingw* | pw32* | os2*)
15588 # This hack is so that the source file can tell whether it is being
15589 # built for inclusion in a dll (and should export symbols for example).
15590 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15593 darwin* | rhapsody*)
15594 # PIC is the default on this platform
15595 # Common symbols not allowed in MH_DYLIB files
15596 lt_prog_compiler_pic_GCJ='-fno-common'
15600 # Just because we use GCC doesn't mean we suddenly get shared libraries
15601 # on systems that don't support them.
15602 lt_prog_compiler_can_build_shared_GCJ=no
15607 if test -d /usr/nec; then
15608 lt_prog_compiler_pic_GCJ=-Kconform_pic
15613 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15614 # not for PA HP-UX.
15615 case "$host_cpu" in
15620 lt_prog_compiler_pic_GCJ='-fPIC'
15626 lt_prog_compiler_pic_GCJ='-fPIC'
15630 # PORTME Check for flag to pass linker flags through the system compiler.
15633 lt_prog_compiler_wl_GCJ='-Wl,'
15634 if test "$host_cpu" = ia64; then
15635 # AIX 5 now supports IA64 processor
15636 lt_prog_compiler_static_GCJ='-Bstatic'
15638 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15642 mingw* | pw32* | os2*)
15643 # This hack is so that the source file can tell whether it is being
15644 # built for inclusion in a dll (and should export symbols for example).
15645 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15648 hpux9* | hpux10* | hpux11*)
15649 lt_prog_compiler_wl_GCJ='-Wl,'
15650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15651 # not for PA HP-UX.
15652 case "$host_cpu" in
15657 lt_prog_compiler_pic_GCJ='+Z'
15660 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15661 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15664 irix5* | irix6* | nonstopux*)
15665 lt_prog_compiler_wl_GCJ='-Wl,'
15666 # PIC (with -KPIC) is the default.
15667 lt_prog_compiler_static_GCJ='-non_shared'
15671 lt_prog_compiler_pic_GCJ='-KPIC'
15672 lt_prog_compiler_static_GCJ='-Bstatic'
15678 lt_prog_compiler_wl_GCJ='-Wl,'
15679 lt_prog_compiler_pic_GCJ='-KPIC'
15680 lt_prog_compiler_static_GCJ='-static'
15683 lt_prog_compiler_wl_GCJ='-Wl,'
15684 # All Alpha code is PIC.
15685 lt_prog_compiler_static_GCJ='-non_shared'
15690 osf3* | osf4* | osf5*)
15691 lt_prog_compiler_wl_GCJ='-Wl,'
15692 # All OSF/1 code is PIC.
15693 lt_prog_compiler_static_GCJ='-non_shared'
15697 lt_prog_compiler_pic_GCJ='-Kpic'
15698 lt_prog_compiler_static_GCJ='-dn'
15702 lt_prog_compiler_wl_GCJ='-Wl,'
15703 lt_prog_compiler_pic_GCJ='-KPIC'
15704 lt_prog_compiler_static_GCJ='-Bstatic'
15708 lt_prog_compiler_wl_GCJ='-Qoption ld '
15709 lt_prog_compiler_pic_GCJ='-PIC'
15710 lt_prog_compiler_static_GCJ='-Bstatic'
15713 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15714 lt_prog_compiler_wl_GCJ='-Wl,'
15715 lt_prog_compiler_pic_GCJ='-KPIC'
15716 lt_prog_compiler_static_GCJ='-Bstatic'
15720 if test -d /usr/nec ;then
15721 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15722 lt_prog_compiler_static_GCJ='-Bstatic'
15727 lt_prog_compiler_pic_GCJ='-pic'
15728 lt_prog_compiler_static_GCJ='-Bstatic'
15732 lt_prog_compiler_can_build_shared_GCJ=no
15737 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15738 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15741 # Check to make sure the PIC flag actually works.
15743 if test -n "$lt_prog_compiler_pic_GCJ"; then
15745 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15746 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15747 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 lt_prog_compiler_pic_works_GCJ=no
15751 ac_outfile=conftest.$ac_objext
15752 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15753 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15754 # Insert the option either (1) after the last *FLAGS variable, or
15755 # (2) before a word containing "conftest.", or (3) at the end.
15756 # Note that $ac_compile itself does not contain backslashes and begins
15757 # with a dollar sign (not a hyphen), so the echo should work correctly.
15758 # The option is referenced via a variable to avoid confusing sed.
15759 lt_compile=`echo "$ac_compile" | $SED \
15760 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15762 -e 's:$: $lt_compiler_flag:'`
15763 (eval echo "\"\$as_me:15763: $lt_compile\"" >&5)
15764 (eval "$lt_compile" 2>conftest.err)
15766 cat conftest.err >&5
15767 echo "$as_me:15767: \$? = $ac_status" >&5
15768 if (exit $ac_status) && test -s "$ac_outfile"; then
15769 # The compiler can only warn and ignore the option if not recognized
15770 # So say no if there are warnings
15771 if test ! -s conftest.err; then
15772 lt_prog_compiler_pic_works_GCJ=yes
15778 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15779 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15781 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15782 case $lt_prog_compiler_pic_GCJ in
15784 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15787 lt_prog_compiler_pic_GCJ=
15788 lt_prog_compiler_can_build_shared_GCJ=no
15793 # For platforms which do not support PIC, -DPIC is meaningless:
15795 lt_prog_compiler_pic_GCJ=
15798 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15802 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15803 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15804 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 lt_cv_prog_compiler_c_o_GCJ=no
15808 $rm -r conftest 2>/dev/null
15812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15814 lt_compiler_flag="-o out/conftest2.$ac_objext"
15815 # Insert the option either (1) after the last *FLAGS variable, or
15816 # (2) before a word containing "conftest.", or (3) at the end.
15817 # Note that $ac_compile itself does not contain backslashes and begins
15818 # with a dollar sign (not a hyphen), so the echo should work correctly.
15819 lt_compile=`echo "$ac_compile" | $SED \
15820 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15822 -e 's:$: $lt_compiler_flag:'`
15823 (eval echo "\"\$as_me:15823: $lt_compile\"" >&5)
15824 (eval "$lt_compile" 2>out/conftest.err)
15826 cat out/conftest.err >&5
15827 echo "$as_me:15827: \$? = $ac_status" >&5
15828 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15830 # The compiler can only warn and ignore the option if not recognized
15831 # So say no if there are warnings
15832 if test ! -s out/conftest.err; then
15833 lt_cv_prog_compiler_c_o_GCJ=yes
15838 # SGI C++ compiler will create directory out/ii_files/ for
15839 # template instantiation
15840 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15841 $rm out/* && rmdir out
15847 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15848 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15851 hard_links="nottested"
15852 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15853 # do not overwrite the value of need_locks provided by the user
15854 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15855 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15860 ln conftest.a conftest.b 2>&5 || hard_links=no
15861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15862 echo "$as_me:$LINENO: result: $hard_links" >&5
15863 echo "${ECHO_T}$hard_links" >&6
15864 if test "$hard_links" = no; then
15865 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15866 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15873 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15874 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15877 allow_undefined_flag_GCJ=
15878 enable_shared_with_static_runtimes_GCJ=no
15880 archive_expsym_cmds_GCJ=
15881 old_archive_From_new_cmds_GCJ=
15882 old_archive_from_expsyms_cmds_GCJ=
15883 export_dynamic_flag_spec_GCJ=
15884 whole_archive_flag_spec_GCJ=
15885 thread_safe_flag_spec_GCJ=
15886 hardcode_libdir_flag_spec_GCJ=
15887 hardcode_libdir_flag_spec_ld_GCJ=
15888 hardcode_libdir_separator_GCJ=
15889 hardcode_direct_GCJ=no
15890 hardcode_minus_L_GCJ=no
15891 hardcode_shlibpath_var_GCJ=unsupported
15892 link_all_deplibs_GCJ=unknown
15893 hardcode_automatic_GCJ=no
15895 module_expsym_cmds_GCJ=
15896 always_export_symbols_GCJ=no
15897 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15898 # include_expsyms should be a list of space-separated symbols to be *always*
15899 # included in the symbol list
15900 include_expsyms_GCJ=
15901 # exclude_expsyms can be an extended regexp of symbols to exclude
15902 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15903 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15904 # as well as any symbol that contains `d'.
15905 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15906 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15907 # platforms (ab)use it in PIC code, but their linkers get confused if
15908 # the symbol is explicitly referenced. Since portable code cannot
15909 # rely on this symbol name, it's probably fine to never include it in
15910 # preloaded symbol tables.
15911 extract_expsyms_cmds=
15914 cygwin* | mingw* | pw32*)
15915 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15916 # When not using gcc, we currently assume that we are using
15917 # Microsoft Visual C++.
15918 if test "$GCC" != yes; then
15928 if test "$with_gnu_ld" = yes; then
15929 # If archive_cmds runs LD, not CC, wlarc should be empty
15932 # See if GNU ld supports shared libraries.
15934 aix3* | aix4* | aix5*)
15935 # On AIX/PPC, the GNU linker is very broken
15936 if test "$host_cpu" != ia64; then
15940 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15941 *** to be unable to reliably create shared libraries on AIX.
15942 *** Therefore, libtool is disabling shared libraries support. If you
15943 *** really care for shared libraries, you may want to modify your PATH
15944 *** so that a non-GNU linker is found, and then restart.
15951 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)'
15952 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15953 hardcode_minus_L_GCJ=yes
15955 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15956 # that the semantics of dynamic libraries on AmigaOS, at least up
15957 # to version 4, is to share data among multiple programs linked
15958 # with the same dynamic library. Since this doesn't match the
15959 # behavior of shared libraries on other platforms, we can't use
15965 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15966 allow_undefined_flag_GCJ=unsupported
15967 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15968 # support --undefined. This deserves some investigation. FIXME
15969 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15975 cygwin* | mingw* | pw32*)
15976 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15977 # as there is no search path for DLLs.
15978 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15979 allow_undefined_flag_GCJ=unsupported
15980 always_export_symbols_GCJ=no
15981 enable_shared_with_static_runtimes_GCJ=yes
15982 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15984 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15985 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15986 # If the export-symbols file already is a .def file (1st line
15987 # is EXPORTS), use it as is; otherwise, prepend...
15988 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15989 cp $export_symbols $output_objdir/$soname.def;
15991 echo EXPORTS > $output_objdir/$soname.def;
15992 cat $export_symbols >> $output_objdir/$soname.def;
15994 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16000 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16002 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16005 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16006 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16011 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16015 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16016 *** create shared libraries on Solaris systems. Therefore, libtool
16017 *** is disabling shared libraries support. We urge you to upgrade GNU
16018 *** binutils to release 2.9.1 or newer. Another option is to modify
16019 *** your PATH or compiler configuration so that the native linker is
16020 *** used, and then restart.
16023 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16024 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16025 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16032 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16034 hardcode_direct_GCJ=yes
16035 hardcode_shlibpath_var_GCJ=no
16039 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16040 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16041 archive_cmds_GCJ="$tmp_archive_cmds"
16042 supports_anon_versioning=no
16043 case `$LD -v 2>/dev/null` in
16044 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16045 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16046 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16047 *\ 2.11.*) ;; # other 2.11 versions
16048 *) supports_anon_versioning=yes ;;
16050 if test $supports_anon_versioning = yes; then
16051 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16052 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16053 $echo "local: *; };" >> $output_objdir/$libname.ver~
16054 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16056 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16058 link_all_deplibs_GCJ=no
16065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16074 if test "$ld_shlibs_GCJ" = yes; then
16075 runpath_var=LD_RUN_PATH
16076 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16077 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16078 # ancient GNU ld didn't support --whole-archive et. al.
16079 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16080 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16082 whole_archive_flag_spec_GCJ=
16086 # PORTME fill in a description of your system's linker (not GNU ld)
16089 allow_undefined_flag_GCJ=unsupported
16090 always_export_symbols_GCJ=yes
16091 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16092 # Note: this linker hardcodes the directories in LIBPATH if there
16093 # are no directories specified by -L.
16094 hardcode_minus_L_GCJ=yes
16095 if test "$GCC" = yes && test -z "$link_static_flag"; then
16096 # Neither direct hardcoding nor static linking is supported with a
16098 hardcode_direct_GCJ=unsupported
16103 if test "$host_cpu" = ia64; then
16104 # On IA64, the linker does run time linking by default, so we don't
16105 # have to do anything special.
16106 aix_use_runtimelinking=no
16107 exp_sym_flag='-Bexport'
16110 # If we're using GNU nm, then we don't want the "-C" option.
16111 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16112 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16113 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16115 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16117 aix_use_runtimelinking=no
16119 # Test if we are trying to use run time linking or normal
16120 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16121 # need to do runtime linking.
16122 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16123 for ld_flag in $LDFLAGS; do
16124 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16125 aix_use_runtimelinking=yes
16131 exp_sym_flag='-bexport'
16132 no_entry_flag='-bnoentry'
16135 # When large executables or shared objects are built, AIX ld can
16136 # have problems creating the table of contents. If linking a library
16137 # or program results in "error TOC overflow" add -mminimal-toc to
16138 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16139 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16141 archive_cmds_GCJ=''
16142 hardcode_direct_GCJ=yes
16143 hardcode_libdir_separator_GCJ=':'
16144 link_all_deplibs_GCJ=yes
16146 if test "$GCC" = yes; then
16147 case $host_os in aix4.012|aix4.012.*)
16148 # We only want to do this on AIX 4.2 and lower, the check
16149 # below for broken collect2 doesn't work under 4.3+
16150 collect2name=`${CC} -print-prog-name=collect2`
16151 if test -f "$collect2name" && \
16152 strings "$collect2name" | grep resolve_lib_name >/dev/null
16154 # We have reworked collect2
16155 hardcode_direct_GCJ=yes
16157 # We have old collect2
16158 hardcode_direct_GCJ=unsupported
16159 # It fails to find uninstalled libraries when the uninstalled
16160 # path is not listed in the libpath. Setting hardcode_minus_L
16161 # to unsupported forces relinking
16162 hardcode_minus_L_GCJ=yes
16163 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16164 hardcode_libdir_separator_GCJ=
16167 shared_flag='-shared'
16170 if test "$host_cpu" = ia64; then
16171 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16172 # chokes on -Wl,-G. The following line is correct:
16175 if test "$aix_use_runtimelinking" = yes; then
16176 shared_flag='${wl}-G'
16178 shared_flag='${wl}-bM:SRE'
16183 # It seems that -bexpall does not export symbols beginning with
16184 # underscore (_), so it is better to generate a list of symbols to export.
16185 always_export_symbols_GCJ=yes
16186 if test "$aix_use_runtimelinking" = yes; then
16187 # Warning - without using the other runtime loading flags (-brtl),
16188 # -berok will link without error, but may produce a broken library.
16189 allow_undefined_flag_GCJ='-berok'
16190 # Determine the default libpath from the value encoded in an empty executable.
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16206 rm -f conftest.$ac_objext conftest$ac_exeext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16208 (eval $ac_link) 2>conftest.er1
16210 grep -v '^ *+' conftest.er1 >conftest.err
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
16215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; } &&
16221 { ac_try='test -s conftest$ac_exeext'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16228 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16230 # Check for a 64-bit object if we didn't find anything.
16231 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; }
16234 echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16238 rm -f conftest.err conftest.$ac_objext \
16239 conftest$ac_exeext conftest.$ac_ext
16240 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16242 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16243 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"
16245 if test "$host_cpu" = ia64; then
16246 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16247 allow_undefined_flag_GCJ="-z nodefs"
16248 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"
16250 # Determine the default libpath from the value encoded in an empty executable.
16251 cat >conftest.$ac_ext <<_ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16268 (eval $ac_link) 2>conftest.er1
16270 grep -v '^ *+' conftest.er1 >conftest.err
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } &&
16281 { ac_try='test -s conftest$ac_exeext'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16290 # Check for a 64-bit object if we didn't find anything.
16291 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; }
16294 echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16298 rm -f conftest.err conftest.$ac_objext \
16299 conftest$ac_exeext conftest.$ac_ext
16300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16302 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16303 # Warning - without using the other run time loading flags,
16304 # -berok will link without error, but may produce a broken library.
16305 no_undefined_flag_GCJ=' ${wl}-bernotok'
16306 allow_undefined_flag_GCJ=' ${wl}-berok'
16307 # -bexpall does not export symbols beginning with underscore (_)
16308 always_export_symbols_GCJ=yes
16309 # Exported symbols can be pulled into shared objects from archives
16310 whole_archive_flag_spec_GCJ=' '
16311 archive_cmds_need_lc_GCJ=yes
16312 # This is similar to how AIX traditionally builds it's shared libraries.
16313 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'
16319 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)'
16320 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16321 hardcode_minus_L_GCJ=yes
16322 # see comment about different semantics on the GNU ld section
16327 export_dynamic_flag_spec_GCJ=-rdynamic
16330 cygwin* | mingw* | pw32*)
16331 # When not using gcc, we currently assume that we are using
16332 # Microsoft Visual C++.
16333 # hardcode_libdir_flag_spec is actually meaningless, as there is
16334 # no search path for DLLs.
16335 hardcode_libdir_flag_spec_GCJ=' '
16336 allow_undefined_flag_GCJ=unsupported
16337 # Tell ltmain to make .lib files, not .a files.
16339 # Tell ltmain to make .dll files, not .so files.
16341 # FIXME: Setting linknames here is a bad hack.
16342 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16343 # The linker will automatically build a .lib file if we build a DLL.
16344 old_archive_From_new_cmds_GCJ='true'
16345 # FIXME: Should let the user specify the lib program.
16346 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16347 fix_srcfile_path='`cygpath -w "$srcfile"`'
16348 enable_shared_with_static_runtimes_GCJ=yes
16351 darwin* | rhapsody*)
16352 if test "$GXX" = yes ; then
16353 archive_cmds_need_lc_GCJ=no
16355 rhapsody* | darwin1.[012])
16356 allow_undefined_flag_GCJ='-undefined suppress'
16359 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16360 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16362 case ${MACOSX_DEPLOYMENT_TARGET} in
16364 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16367 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16373 lt_int_apple_cc_single_mod=no
16374 output_verbose_link_cmd='echo'
16375 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16376 lt_int_apple_cc_single_mod=yes
16378 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16379 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16381 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'
16383 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16384 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16385 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16386 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}'
16388 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}'
16390 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}'
16391 hardcode_direct_GCJ=no
16392 hardcode_automatic_GCJ=yes
16393 hardcode_shlibpath_var_GCJ=unsupported
16394 whole_archive_flag_spec_GCJ='-all_load $convenience'
16395 link_all_deplibs_GCJ=yes
16402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16403 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16404 hardcode_shlibpath_var_GCJ=no
16411 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16412 # support. Future versions do this automatically, but an explicit c++rt0.o
16413 # does not break anything, and helps significantly (at the cost of a little
16416 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16418 hardcode_direct_GCJ=yes
16419 hardcode_shlibpath_var_GCJ=no
16422 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16424 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16425 hardcode_direct_GCJ=yes
16426 hardcode_minus_L_GCJ=yes
16427 hardcode_shlibpath_var_GCJ=no
16430 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16431 freebsd* | kfreebsd*-gnu)
16432 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16433 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16434 hardcode_direct_GCJ=yes
16435 hardcode_shlibpath_var_GCJ=no
16439 if test "$GCC" = yes; then
16440 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'
16442 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'
16444 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16445 hardcode_libdir_separator_GCJ=:
16446 hardcode_direct_GCJ=yes
16448 # hardcode_minus_L: Not really in the search PATH,
16449 # but as the default location of the library.
16450 hardcode_minus_L_GCJ=yes
16451 export_dynamic_flag_spec_GCJ='${wl}-E'
16455 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16456 case "$host_cpu" in
16458 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16461 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16465 case "$host_cpu" in
16467 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16470 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16474 if test "$with_gnu_ld" = no; then
16475 case "$host_cpu" in
16477 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16478 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16479 hardcode_libdir_separator_GCJ=:
16480 hardcode_direct_GCJ=no
16481 hardcode_shlibpath_var_GCJ=no
16484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16485 hardcode_direct_GCJ=no
16486 hardcode_shlibpath_var_GCJ=no
16488 # hardcode_minus_L: Not really in the search PATH,
16489 # but as the default location of the library.
16490 hardcode_minus_L_GCJ=yes
16493 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16494 hardcode_libdir_separator_GCJ=:
16495 hardcode_direct_GCJ=yes
16496 export_dynamic_flag_spec_GCJ='${wl}-E'
16498 # hardcode_minus_L: Not really in the search PATH,
16499 # but as the default location of the library.
16500 hardcode_minus_L_GCJ=yes
16506 irix5* | irix6* | nonstopux*)
16507 if test "$GCC" = yes; then
16508 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'
16510 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'
16511 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16513 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16514 hardcode_libdir_separator_GCJ=:
16515 link_all_deplibs_GCJ=yes
16518 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16520 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16522 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16524 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16525 hardcode_direct_GCJ=yes
16526 hardcode_shlibpath_var_GCJ=no
16530 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16531 hardcode_direct_GCJ=yes
16532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16533 hardcode_libdir_separator_GCJ=:
16534 hardcode_shlibpath_var_GCJ=no
16538 hardcode_direct_GCJ=yes
16539 hardcode_shlibpath_var_GCJ=no
16540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16541 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16542 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16543 export_dynamic_flag_spec_GCJ='${wl}-E'
16546 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16547 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16548 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16551 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16552 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16559 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16560 hardcode_minus_L_GCJ=yes
16561 allow_undefined_flag_GCJ=unsupported
16562 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'
16563 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16567 if test "$GCC" = yes; then
16568 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16569 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'
16571 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16572 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'
16574 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16575 hardcode_libdir_separator_GCJ=:
16578 osf4* | osf5*) # as osf3* with the addition of -msym flag
16579 if test "$GCC" = yes; then
16580 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16581 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16582 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16584 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16585 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'
16586 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~
16587 $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'
16589 # Both c and cxx compiler support -rpath directly
16590 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16592 hardcode_libdir_separator_GCJ=:
16596 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 hardcode_shlibpath_var_GCJ=no
16598 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16599 runpath_var=LD_RUN_PATH
16600 hardcode_runpath_var=yes
16604 no_undefined_flag_GCJ=' -z text'
16605 if test "$GCC" = yes; then
16606 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16607 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16608 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16610 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16611 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16614 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16615 hardcode_shlibpath_var_GCJ=no
16617 solaris2.[0-5] | solaris2.[0-5].*) ;;
16618 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16619 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16621 link_all_deplibs_GCJ=yes
16625 if test "x$host_vendor" = xsequent; then
16626 # Use $CC to link under sequent, because it throws in some extra .o
16627 # files that make .init and .fini sections work.
16628 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16630 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16632 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16633 hardcode_direct_GCJ=yes
16634 hardcode_minus_L_GCJ=yes
16635 hardcode_shlibpath_var_GCJ=no
16639 case $host_vendor in
16641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16642 hardcode_direct_GCJ=yes # is this really true???
16645 ## LD is ld it makes a PLAMLIB
16646 ## CC just makes a GrossModule.
16647 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16648 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16649 hardcode_direct_GCJ=no
16652 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16653 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16656 runpath_var='LD_RUN_PATH'
16657 hardcode_shlibpath_var_GCJ=no
16661 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_shlibpath_var_GCJ=no
16663 export_dynamic_flag_spec_GCJ='-Bexport'
16667 if test -d /usr/nec; then
16668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16669 hardcode_shlibpath_var_GCJ=no
16670 runpath_var=LD_RUN_PATH
16671 hardcode_runpath_var=yes
16677 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16678 hardcode_direct_GCJ=yes
16679 hardcode_minus_L_GCJ=no
16680 hardcode_shlibpath_var_GCJ=no
16681 hardcode_runpath_var=yes
16682 runpath_var=LD_RUN_PATH
16685 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16686 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16687 if test "$GCC" = yes; then
16688 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16690 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 runpath_var='LD_RUN_PATH'
16693 hardcode_shlibpath_var_GCJ=no
16697 no_undefined_flag_GCJ=' -z text'
16698 # $CC -shared without GNU ld will not create a library from C++
16699 # object files and a static libstdc++, better avoid it by now
16700 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16701 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16702 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16703 hardcode_libdir_flag_spec_GCJ=
16704 hardcode_shlibpath_var_GCJ=no
16705 runpath_var='LD_RUN_PATH'
16709 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16711 hardcode_shlibpath_var_GCJ=no
16720 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16721 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16722 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16725 if test "$GCC" = yes; then
16726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16730 # Do we need to explicitly link libc?
16732 case "x$archive_cmds_need_lc_GCJ" in
16734 # Assume -lc should be added
16735 archive_cmds_need_lc_GCJ=yes
16737 if test "$enable_shared" = yes && test "$GCC" = yes; then
16738 case $archive_cmds_GCJ in
16740 # FIXME: we may have to deal with multi-command sequences.
16743 # Test whether the compiler implicitly links with -lc since on some
16744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16745 # to ld, don't add -lc before -lgcc.
16746 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16747 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16752 (eval $ac_compile) 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } 2>conftest.err; then
16758 libobjs=conftest.$ac_objext
16760 wl=$lt_prog_compiler_wl_GCJ
16766 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16767 allow_undefined_flag_GCJ=
16768 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16769 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }
16774 archive_cmds_need_lc_GCJ=no
16776 archive_cmds_need_lc_GCJ=yes
16778 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16780 cat conftest.err 1>&5
16783 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16784 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16791 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16792 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16793 library_names_spec=
16794 libname_spec='lib$name'
16798 postuninstall_cmds=
16802 shlibpath_overrides_runpath=unknown
16804 dynamic_linker="$host_os ld.so"
16805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16806 if test "$GCC" = yes; then
16807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16808 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16809 # if the path contains ";" then we assume it to be the separator
16810 # otherwise default to the standard path separator (i.e. ":") - it is
16811 # assumed that no part of a normal pathname contains ";" but that should
16812 # okay in the real world where ";" in dirpaths is itself problematic.
16813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16818 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16820 need_lib_prefix=unknown
16821 hardcode_into_libs=no
16823 # when you set need_version to no, make sure it does not cause -set_version
16824 # flags to be left without arguments
16825 need_version=unknown
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16831 shlibpath_var=LIBPATH
16833 # AIX 3 has no versioning support, so we append a major version to the name.
16834 soname_spec='${libname}${release}${shared_ext}$major'
16841 hardcode_into_libs=yes
16842 if test "$host_cpu" = ia64; then
16843 # AIX 5 supports IA64
16844 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16845 shlibpath_var=LD_LIBRARY_PATH
16847 # With GCC up to 2.95.x, collect2 would create an import file
16848 # for dependence libraries. The import file would start with
16849 # the line `#! .'. This would cause the generated library to
16850 # depend on `.', always an invalid library. This was fixed in
16851 # development snapshots of GCC prior to 3.0.
16853 aix4 | aix4.[01] | aix4.[01].*)
16854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16856 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16859 can_build_shared=no
16863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16864 # soname into executable. Probably we can add versioning support to
16865 # collect2, so additional links can be useful in future.
16866 if test "$aix_use_runtimelinking" = yes; then
16867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16868 # instead of lib<name>.a to let people know that these are not
16869 # typical AIX shared libraries.
16870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16872 # We preserve .a as extension for shared libraries through AIX4.2
16873 # and later when we are not doing run time linking.
16874 library_names_spec='${libname}${release}.a $libname.a'
16875 soname_spec='${libname}${release}${shared_ext}$major'
16877 shlibpath_var=LIBPATH
16882 library_names_spec='$libname.ixlibrary $libname.a'
16883 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16884 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'
16888 library_names_spec='${libname}${shared_ext}'
16889 dynamic_linker="$host_os ld.so"
16890 shlibpath_var=LIBRARY_PATH
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16897 soname_spec='${libname}${release}${shared_ext}$major'
16898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16899 shlibpath_var=LD_LIBRARY_PATH
16900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16902 # the default ld.so.conf also contains /usr/contrib/lib and
16903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16904 # libtool to hard-code these into programs
16907 cygwin* | mingw* | pw32*)
16908 version_type=windows
16913 case $GCC,$host_os in
16914 yes,cygwin* | yes,mingw* | yes,pw32*)
16915 library_names_spec='$libname.dll.a'
16916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16917 postinstall_cmds='base_file=`basename \${file}`~
16918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16919 dldir=$destdir/`dirname \$dlpath`~
16920 test -d \$dldir || mkdir -p \$dldir~
16921 $install_prog $dir/$dlname \$dldir/$dlname'
16922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16923 dlpath=$dir/\$dldll~
16925 shlibpath_overrides_runpath=yes
16929 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16930 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16931 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16934 # MinGW DLLs use traditional 'lib' prefix
16935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16936 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16937 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16938 # It is most probably a Windows format PATH printed by
16939 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16940 # path with ; separators, and with drive letters. We can handle the
16941 # drive letters (cygwin fileutils understands them), so leave them,
16942 # especially as we might pass files found there to a mingw objdump,
16943 # which wouldn't understand a cygwinified path. Ahh.
16944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16950 # pw32 DLLs use 'pw' prefix rather than 'lib'
16951 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16957 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16960 dynamic_linker='Win32 ld.exe'
16961 # FIXME: first we should search . and the directory the executable is in
16965 darwin* | rhapsody*)
16966 dynamic_linker="$host_os dyld"
16967 version_type=darwin
16970 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16971 soname_spec='${libname}${release}${major}$shared_ext'
16972 shlibpath_overrides_runpath=yes
16973 shlibpath_var=DYLD_LIBRARY_PATH
16974 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16975 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16976 if test "$GCC" = yes; then
16977 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"`
16979 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16981 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16989 soname_spec='${libname}${release}${shared_ext}$major'
16990 shlibpath_var=LD_LIBRARY_PATH
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 shlibpath_overrides_runpath=no
17005 hardcode_into_libs=yes
17006 dynamic_linker='GNU ld.so'
17010 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17011 version_type=freebsd-$objformat
17012 case $version_type in
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17023 shlibpath_var=LD_LIBRARY_PATH
17026 shlibpath_overrides_runpath=yes
17028 freebsd3.01* | freebsdelf3.01*)
17029 shlibpath_overrides_runpath=yes
17030 hardcode_into_libs=yes
17033 shlibpath_overrides_runpath=no
17034 hardcode_into_libs=yes
17043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17044 soname_spec='${libname}${release}${shared_ext}$major'
17045 shlibpath_var=LD_LIBRARY_PATH
17046 hardcode_into_libs=yes
17049 hpux9* | hpux10* | hpux11*)
17050 # Give a soname corresponding to the major version so that dld.sl refuses to
17051 # link against other versions.
17055 case "$host_cpu" in
17058 hardcode_into_libs=yes
17059 dynamic_linker="$host_os dld.so"
17060 shlibpath_var=LD_LIBRARY_PATH
17061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 if test "X$HPUX_IA64_MODE" = X32; then
17065 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17067 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17073 hardcode_into_libs=yes
17074 dynamic_linker="$host_os dld.sl"
17075 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17078 soname_spec='${libname}${release}${shared_ext}$major'
17079 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17084 dynamic_linker="$host_os dld.sl"
17085 shlibpath_var=SHLIB_PATH
17086 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17091 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17092 postinstall_cmds='chmod 555 $lib'
17095 irix5* | irix6* | nonstopux*)
17097 nonstopux*) version_type=nonstopux ;;
17099 if test "$lt_cv_prog_gnu_ld" = yes; then
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17110 irix5* | nonstopux*)
17111 libsuff= shlibsuff=
17114 case $LD in # libtool.m4 will add one of these switches to LD
17115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17116 libsuff= shlibsuff= libmagic=32-bit;;
17117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17118 libsuff=32 shlibsuff=N32 libmagic=N32;;
17119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17120 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17121 *) libsuff= shlibsuff= libmagic=never-match;;
17125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17126 shlibpath_overrides_runpath=no
17127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17129 hardcode_into_libs=yes
17132 # No shared lib support for Linux oldld, aout, or coff.
17133 linux*oldld* | linux*aout* | linux*coff*)
17137 # This must be Linux ELF.
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143 soname_spec='${libname}${release}${shared_ext}$major'
17144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17145 shlibpath_var=LD_LIBRARY_PATH
17146 shlibpath_overrides_runpath=no
17147 # This implies no fast_install, which is unacceptable.
17148 # Some rework will be needed to allow for fast_install
17149 # before this can be enabled.
17150 hardcode_into_libs=yes
17152 # Append ld.so.conf contents to the search path
17153 if test -f /etc/ld.so.conf; then
17154 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17155 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17158 # We used to test for /lib/ld.so.1 and disable shared libraries on
17159 # powerpc, because MkLinux only supported shared libraries with the
17160 # GNU dynamic linker. Since this was broken with cross compilers,
17161 # most powerpc-linux boxes support dynamic linking these days and
17162 # people can always --disable-shared, the test was removed, and we
17163 # assume the GNU/Linux dynamic linker is in use.
17164 dynamic_linker='GNU/Linux ld.so'
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17172 soname_spec='${libname}${release}${shared_ext}$major'
17173 shlibpath_var=LD_LIBRARY_PATH
17174 shlibpath_overrides_runpath=no
17175 hardcode_into_libs=yes
17176 dynamic_linker='NetBSD ld.elf_so'
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 shlibpath_overrides_runpath=no
17187 hardcode_into_libs=yes
17188 dynamic_linker='GNU ld.so'
17195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17198 dynamic_linker='NetBSD (a.out) ld.so'
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17201 soname_spec='${libname}${release}${shared_ext}$major'
17202 dynamic_linker='NetBSD ld.elf_so'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 shlibpath_overrides_runpath=yes
17206 hardcode_into_libs=yes
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 shlibpath_var=LD_LIBRARY_PATH
17213 shlibpath_overrides_runpath=yes
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 shlibpath_overrides_runpath=yes
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17232 shlibpath_var=LD_LIBRARY_PATH
17233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17235 openbsd2.[89] | openbsd2.[89].*)
17236 shlibpath_overrides_runpath=no
17239 shlibpath_overrides_runpath=yes
17243 shlibpath_overrides_runpath=yes
17248 libname_spec='$name'
17251 library_names_spec='$libname${shared_ext} $libname.a'
17252 dynamic_linker='OS/2 ld.exe'
17253 shlibpath_var=LIBPATH
17256 osf3* | osf4* | osf5*)
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17269 soname_spec='${libname}${release}${shared_ext}$major'
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271 shlibpath_var=LD_LIBRARY_PATH
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=yes
17282 hardcode_into_libs=yes
17283 # ldd complains unless libraries are executable
17284 postinstall_cmds='chmod +x $lib'
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=yes
17293 if test "$with_gnu_ld" = yes; then
17299 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 case $host_vendor in
17306 shlibpath_overrides_runpath=no
17308 export_dynamic_flag_spec='${wl}-Blargedynsym'
17309 runpath_var=LD_RUN_PATH
17317 shlibpath_overrides_runpath=no
17318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17324 if test -d /usr/nec ;then
17326 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17327 soname_spec='$libname${shared_ext}.$major'
17328 shlibpath_var=LD_LIBRARY_PATH
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 soname_spec='${libname}${release}${shared_ext}$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17343 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17344 echo "${ECHO_T}$dynamic_linker" >&6
17345 test "$dynamic_linker" = no && can_build_shared=no
17347 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17348 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17349 hardcode_action_GCJ=
17350 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17351 test -n "$runpath_var GCJ" || \
17352 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17354 # We can hardcode non-existant directories.
17355 if test "$hardcode_direct_GCJ" != no &&
17356 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17357 # have to relink, otherwise we might link with an installed library
17358 # when we should be linking with a yet-to-be-installed one
17359 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17360 test "$hardcode_minus_L_GCJ" != no; then
17361 # Linking always hardcodes the temporary library directory.
17362 hardcode_action_GCJ=relink
17364 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17365 hardcode_action_GCJ=immediate
17368 # We cannot hardcode anything, or else we can only hardcode existing
17370 hardcode_action_GCJ=unsupported
17372 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17373 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17375 if test "$hardcode_action_GCJ" = relink; then
17376 # Fast installation is not supported
17377 enable_fast_install=no
17378 elif test "$shlibpath_overrides_runpath" = yes ||
17379 test "$enable_shared" = no; then
17380 # Fast installation is not necessary
17381 enable_fast_install=needless
17386 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17387 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17388 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17389 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17390 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17391 echo "$as_me:$LINENO: result: yes" >&5
17392 echo "${ECHO_T}yes" >&6
17394 # FIXME - insert some real tests, host_os isn't really good enough
17397 if test -n "$STRIP" ; then
17398 striplib="$STRIP -x"
17399 echo "$as_me:$LINENO: result: yes" >&5
17400 echo "${ECHO_T}yes" >&6
17402 echo "$as_me:$LINENO: result: no" >&5
17403 echo "${ECHO_T}no" >&6
17407 echo "$as_me:$LINENO: result: no" >&5
17408 echo "${ECHO_T}no" >&6
17413 if test "x$enable_dlopen" != xyes; then
17414 enable_dlopen=unknown
17415 enable_dlopen_self=unknown
17416 enable_dlopen_self_static=unknown
17423 lt_cv_dlopen="load_add_on"
17425 lt_cv_dlopen_self=yes
17429 lt_cv_dlopen="LoadLibrary"
17434 lt_cv_dlopen="dlopen"
17439 # if libdl is installed we need to link against it
17440 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17441 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17442 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 ac_check_lib_save_LIBS=$LIBS
17447 cat >conftest.$ac_ext <<_ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17454 /* Override any gcc2 internal prototype to avoid an error. */
17458 /* We use char because int might match the return type of a gcc2
17459 builtin and then its argument prototype would still apply. */
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17471 (eval $ac_link) 2>conftest.er1
17473 grep -v '^ *+' conftest.er1 >conftest.err
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
17478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest$ac_exeext'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 ac_cv_lib_dl_dlopen=yes
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17495 ac_cv_lib_dl_dlopen=no
17497 rm -f conftest.err conftest.$ac_objext \
17498 conftest$ac_exeext conftest.$ac_ext
17499 LIBS=$ac_check_lib_save_LIBS
17501 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17502 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17503 if test $ac_cv_lib_dl_dlopen = yes; then
17504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17507 lt_cv_dlopen="dyld"
17509 lt_cv_dlopen_self=yes
17516 echo "$as_me:$LINENO: checking for shl_load" >&5
17517 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17518 if test "${ac_cv_func_shl_load+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 cat >conftest.$ac_ext <<_ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17527 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17529 #define shl_load innocuous_shl_load
17531 /* System header to define __stub macros and hopefully few prototypes,
17532 which can conflict with char shl_load (); below.
17533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534 <limits.h> exists even on freestanding compilers. */
17537 # include <limits.h>
17539 # include <assert.h>
17544 /* Override any gcc2 internal prototype to avoid an error. */
17549 /* We use char because int might match the return type of a gcc2
17550 builtin and then its argument prototype would still apply. */
17552 /* The GNU C library defines this for functions which it implements
17553 to always fail with ENOSYS. Some functions are actually named
17554 something starting with __ and the normal name is an alias. */
17555 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17558 char (*f) () = shl_load;
17567 return f != shl_load;
17572 rm -f conftest.$ac_objext conftest$ac_exeext
17573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574 (eval $ac_link) 2>conftest.er1
17576 grep -v '^ *+' conftest.er1 >conftest.err
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
17581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest$ac_exeext'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 ac_cv_func_shl_load=yes
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 ac_cv_func_shl_load=no
17600 rm -f conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17603 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17604 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17605 if test $ac_cv_func_shl_load = yes; then
17606 lt_cv_dlopen="shl_load"
17608 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17609 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17610 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 ac_check_lib_save_LIBS=$LIBS
17615 cat >conftest.$ac_ext <<_ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17622 /* Override any gcc2 internal prototype to avoid an error. */
17626 /* We use char because int might match the return type of a gcc2
17627 builtin and then its argument prototype would still apply. */
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>conftest.er1
17641 grep -v '^ *+' conftest.er1 >conftest.err
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest$ac_exeext'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_cv_lib_dld_shl_load=yes
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ac_cv_lib_dld_shl_load=no
17665 rm -f conftest.err conftest.$ac_objext \
17666 conftest$ac_exeext conftest.$ac_ext
17667 LIBS=$ac_check_lib_save_LIBS
17669 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17670 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17671 if test $ac_cv_lib_dld_shl_load = yes; then
17672 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17674 echo "$as_me:$LINENO: checking for dlopen" >&5
17675 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17676 if test "${ac_cv_func_dlopen+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 cat >conftest.$ac_ext <<_ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17687 #define dlopen innocuous_dlopen
17689 /* System header to define __stub macros and hopefully few prototypes,
17690 which can conflict with char dlopen (); below.
17691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17692 <limits.h> exists even on freestanding compilers. */
17695 # include <limits.h>
17697 # include <assert.h>
17702 /* Override any gcc2 internal prototype to avoid an error. */
17707 /* We use char because int might match the return type of a gcc2
17708 builtin and then its argument prototype would still apply. */
17710 /* The GNU C library defines this for functions which it implements
17711 to always fail with ENOSYS. Some functions are actually named
17712 something starting with __ and the normal name is an alias. */
17713 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17716 char (*f) () = dlopen;
17725 return f != dlopen;
17730 rm -f conftest.$ac_objext conftest$ac_exeext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17732 (eval $ac_link) 2>conftest.er1
17734 grep -v '^ *+' conftest.er1 >conftest.err
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; } &&
17745 { ac_try='test -s conftest$ac_exeext'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; }; then
17751 ac_cv_func_dlopen=yes
17753 echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17756 ac_cv_func_dlopen=no
17758 rm -f conftest.err conftest.$ac_objext \
17759 conftest$ac_exeext conftest.$ac_ext
17761 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17762 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17763 if test $ac_cv_func_dlopen = yes; then
17764 lt_cv_dlopen="dlopen"
17766 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 ac_check_lib_save_LIBS=$LIBS
17773 cat >conftest.$ac_ext <<_ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17780 /* Override any gcc2 internal prototype to avoid an error. */
17784 /* We use char because int might match the return type of a gcc2
17785 builtin and then its argument prototype would still apply. */
17795 rm -f conftest.$ac_objext conftest$ac_exeext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17797 (eval $ac_link) 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; } &&
17810 { ac_try='test -s conftest$ac_exeext'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 ac_cv_lib_dl_dlopen=yes
17818 echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.$ac_ext >&5
17821 ac_cv_lib_dl_dlopen=no
17823 rm -f conftest.err conftest.$ac_objext \
17824 conftest$ac_exeext conftest.$ac_ext
17825 LIBS=$ac_check_lib_save_LIBS
17827 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17829 if test $ac_cv_lib_dl_dlopen = yes; then
17830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17832 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17833 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17834 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 ac_check_lib_save_LIBS=$LIBS
17838 LIBS="-lsvld $LIBS"
17839 cat >conftest.$ac_ext <<_ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17846 /* Override any gcc2 internal prototype to avoid an error. */
17850 /* We use char because int might match the return type of a gcc2
17851 builtin and then its argument prototype would still apply. */
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17863 (eval $ac_link) 2>conftest.er1
17865 grep -v '^ *+' conftest.er1 >conftest.err
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
17870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try='test -s conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 ac_cv_lib_svld_dlopen=yes
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 ac_cv_lib_svld_dlopen=no
17889 rm -f conftest.err conftest.$ac_objext \
17890 conftest$ac_exeext conftest.$ac_ext
17891 LIBS=$ac_check_lib_save_LIBS
17893 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17894 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17895 if test $ac_cv_lib_svld_dlopen = yes; then
17896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17898 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17899 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17900 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 ac_check_lib_save_LIBS=$LIBS
17905 cat >conftest.$ac_ext <<_ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17912 /* Override any gcc2 internal prototype to avoid an error. */
17916 /* We use char because int might match the return type of a gcc2
17917 builtin and then its argument prototype would still apply. */
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929 (eval $ac_link) 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try='test -s conftest$ac_exeext'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_cv_lib_dld_dld_link=yes
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17953 ac_cv_lib_dld_dld_link=no
17955 rm -f conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext conftest.$ac_ext
17957 LIBS=$ac_check_lib_save_LIBS
17959 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17960 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17961 if test $ac_cv_lib_dld_dld_link = yes; then
17962 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17983 if test "x$lt_cv_dlopen" != xno; then
17989 case $lt_cv_dlopen in
17991 save_CPPFLAGS="$CPPFLAGS"
17992 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17994 save_LDFLAGS="$LDFLAGS"
17995 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17998 LIBS="$lt_cv_dlopen_libs $LIBS"
18000 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18001 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18002 if test "${lt_cv_dlopen_self+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 if test "$cross_compiling" = yes; then :
18006 lt_cv_dlopen_self=cross
18008 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18009 lt_status=$lt_dlunknown
18010 cat > conftest.$ac_ext <<EOF
18011 #line 18011 "configure"
18012 #include "confdefs.h"
18021 # define LT_DLGLOBAL RTLD_GLOBAL
18024 # define LT_DLGLOBAL DL_GLOBAL
18026 # define LT_DLGLOBAL 0
18030 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18031 find out it does not work in some platform. */
18032 #ifndef LT_DLLAZY_OR_NOW
18034 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18037 # define LT_DLLAZY_OR_NOW DL_LAZY
18040 # define LT_DLLAZY_OR_NOW RTLD_NOW
18043 # define LT_DLLAZY_OR_NOW DL_NOW
18045 # define LT_DLLAZY_OR_NOW 0
18053 extern "C" void exit (int);
18056 void fnord() { int i=42;}
18059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18060 int status = $lt_dlunknown;
18064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18065 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18066 /* dlclose (self); */
18072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18073 (eval $ac_link) 2>&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18077 (./conftest; exit; ) 2>/dev/null
18079 case x$lt_status in
18080 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18081 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18082 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18085 # compilation failed
18086 lt_cv_dlopen_self=no
18093 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18094 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18096 if test "x$lt_cv_dlopen_self" = xyes; then
18097 LDFLAGS="$LDFLAGS $link_static_flag"
18098 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18099 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18100 if test "${lt_cv_dlopen_self_static+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 if test "$cross_compiling" = yes; then :
18104 lt_cv_dlopen_self_static=cross
18106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18107 lt_status=$lt_dlunknown
18108 cat > conftest.$ac_ext <<EOF
18109 #line 18109 "configure"
18110 #include "confdefs.h"
18119 # define LT_DLGLOBAL RTLD_GLOBAL
18122 # define LT_DLGLOBAL DL_GLOBAL
18124 # define LT_DLGLOBAL 0
18128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18129 find out it does not work in some platform. */
18130 #ifndef LT_DLLAZY_OR_NOW
18132 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18135 # define LT_DLLAZY_OR_NOW DL_LAZY
18138 # define LT_DLLAZY_OR_NOW RTLD_NOW
18141 # define LT_DLLAZY_OR_NOW DL_NOW
18143 # define LT_DLLAZY_OR_NOW 0
18151 extern "C" void exit (int);
18154 void fnord() { int i=42;}
18157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18158 int status = $lt_dlunknown;
18162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18163 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18164 /* dlclose (self); */
18170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18171 (eval $ac_link) 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18175 (./conftest; exit; ) 2>/dev/null
18177 case x$lt_status in
18178 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18179 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18180 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18183 # compilation failed
18184 lt_cv_dlopen_self_static=no
18191 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18192 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18195 CPPFLAGS="$save_CPPFLAGS"
18196 LDFLAGS="$save_LDFLAGS"
18201 case $lt_cv_dlopen_self in
18202 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18203 *) enable_dlopen_self=unknown ;;
18206 case $lt_cv_dlopen_self_static in
18207 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18208 *) enable_dlopen_self_static=unknown ;;
18213 # The else clause should only fire when bootstrapping the
18214 # libtool distribution, otherwise you forgot to ship ltmain.sh
18215 # with your package, and you will get complaints that there are
18216 # no rules to generate ltmain.sh.
18217 if test -f "$ltmain"; then
18218 # See if we are running on zsh, and set the options which allow our commands through
18219 # without removal of \ escapes.
18220 if test -n "${ZSH_VERSION+set}" ; then
18221 setopt NO_GLOB_SUBST
18223 # Now quote all the things that may contain metacharacters while being
18224 # careful not to overquote the AC_SUBSTed values. We take copies of the
18225 # variables and quote the copies for generation of the libtool script.
18226 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18228 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18229 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18230 deplibs_check_method reload_flag reload_cmds need_locks \
18231 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18232 lt_cv_sys_global_symbol_to_c_name_address \
18233 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18234 old_postinstall_cmds old_postuninstall_cmds \
18238 lt_prog_compiler_wl_GCJ \
18239 lt_prog_compiler_pic_GCJ \
18240 lt_prog_compiler_static_GCJ \
18241 lt_prog_compiler_no_builtin_flag_GCJ \
18242 export_dynamic_flag_spec_GCJ \
18243 thread_safe_flag_spec_GCJ \
18244 whole_archive_flag_spec_GCJ \
18245 enable_shared_with_static_runtimes_GCJ \
18246 old_archive_cmds_GCJ \
18247 old_archive_from_new_cmds_GCJ \
18248 predep_objects_GCJ \
18249 postdep_objects_GCJ \
18252 compiler_lib_search_path_GCJ \
18254 archive_expsym_cmds_GCJ \
18255 postinstall_cmds_GCJ \
18256 postuninstall_cmds_GCJ \
18257 old_archive_from_expsyms_cmds_GCJ \
18258 allow_undefined_flag_GCJ \
18259 no_undefined_flag_GCJ \
18260 export_symbols_cmds_GCJ \
18261 hardcode_libdir_flag_spec_GCJ \
18262 hardcode_libdir_flag_spec_ld_GCJ \
18263 hardcode_libdir_separator_GCJ \
18264 hardcode_automatic_GCJ \
18266 module_expsym_cmds_GCJ \
18267 lt_cv_prog_compiler_c_o_GCJ \
18268 exclude_expsyms_GCJ \
18269 include_expsyms_GCJ; do
18272 old_archive_cmds_GCJ | \
18273 old_archive_from_new_cmds_GCJ | \
18274 archive_cmds_GCJ | \
18275 archive_expsym_cmds_GCJ | \
18276 module_cmds_GCJ | \
18277 module_expsym_cmds_GCJ | \
18278 old_archive_from_expsyms_cmds_GCJ | \
18279 export_symbols_cmds_GCJ | \
18280 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18281 postinstall_cmds | postuninstall_cmds | \
18282 old_postinstall_cmds | old_postuninstall_cmds | \
18283 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18284 # Double-quote double-evaled strings.
18285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18288 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18294 *'\$0 --fallback-echo"')
18295 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18301 cat <<__EOF__ >> "$cfgfile"
18302 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18304 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18306 # Shell to use when invoking shell scripts.
18309 # Whether or not to build shared libraries.
18310 build_libtool_libs=$enable_shared
18312 # Whether or not to build static libraries.
18313 build_old_libs=$enable_static
18315 # Whether or not to add -lc for building shared libraries.
18316 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18318 # Whether or not to disallow shared libs when runtime libs are static
18319 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18321 # Whether or not to optimize for fast installation.
18322 fast_install=$enable_fast_install
18325 host_alias=$host_alias
18328 # An echo program that does not interpret backslashes.
18333 AR_FLAGS=$lt_AR_FLAGS
18338 # A language-specific compiler.
18339 CC=$lt_compiler_GCJ
18341 # Is the compiler the GNU C compiler?
18347 # The linker used to build libraries.
18350 # Whether we need hard or soft links.
18353 # A BSD-compatible nm program.
18356 # A symbol stripping program
18359 # Used to examine libraries when file_magic_cmd begins "file"
18360 MAGIC_CMD=$MAGIC_CMD
18362 # Used on cygwin: DLL creation program.
18365 # Used on cygwin: object dumper.
18368 # Used on cygwin: assembler.
18371 # The name of the directory that contains temporary libtool files.
18374 # How to create reloadable object files.
18375 reload_flag=$lt_reload_flag
18376 reload_cmds=$lt_reload_cmds
18378 # How to pass a linker flag through the compiler.
18379 wl=$lt_lt_prog_compiler_wl_GCJ
18381 # Object file suffix (normally "o").
18382 objext="$ac_objext"
18384 # Old archive suffix (normally "a").
18387 # Shared library suffix (normally ".so").
18388 shrext_cmds='$shrext_cmds'
18390 # Executable file suffix (normally "").
18393 # Additional compiler flags for building library objects.
18394 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18397 # What is the maximum length of a command?
18398 max_cmd_len=$lt_cv_sys_max_cmd_len
18400 # Does compiler simultaneously support -c and -o options?
18401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18403 # Must we lock files when doing compilation ?
18404 need_locks=$lt_need_locks
18406 # Do we need the lib prefix for modules?
18407 need_lib_prefix=$need_lib_prefix
18409 # Do we need a version for libraries?
18410 need_version=$need_version
18412 # Whether dlopen is supported.
18413 dlopen_support=$enable_dlopen
18415 # Whether dlopen of programs is supported.
18416 dlopen_self=$enable_dlopen_self
18418 # Whether dlopen of statically linked programs is supported.
18419 dlopen_self_static=$enable_dlopen_self_static
18421 # Compiler flag to prevent dynamic linking.
18422 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18424 # Compiler flag to turn off builtin functions.
18425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18427 # Compiler flag to allow reflexive dlopens.
18428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18430 # Compiler flag to generate shared objects directly from archives.
18431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18433 # Compiler flag to generate thread-safe objects.
18434 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18436 # Library versioning type.
18437 version_type=$version_type
18439 # Format of library name prefix.
18440 libname_spec=$lt_libname_spec
18442 # List of archive names. First name is the real one, the rest are links.
18443 # The last name is the one that the linker finds with -lNAME.
18444 library_names_spec=$lt_library_names_spec
18446 # The coded name of the library, if different from the real name.
18447 soname_spec=$lt_soname_spec
18449 # Commands used to build and install an old-style archive.
18451 old_archive_cmds=$lt_old_archive_cmds_GCJ
18452 old_postinstall_cmds=$lt_old_postinstall_cmds
18453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18455 # Create an old-style archive from a shared archive.
18456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18458 # Create a temporary old-style archive to link instead of a shared archive.
18459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18461 # Commands used to build and install a shared archive.
18462 archive_cmds=$lt_archive_cmds_GCJ
18463 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18464 postinstall_cmds=$lt_postinstall_cmds
18465 postuninstall_cmds=$lt_postuninstall_cmds
18467 # Commands used to build a loadable module (assumed same as above if empty)
18468 module_cmds=$lt_module_cmds_GCJ
18469 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18471 # Commands to strip libraries.
18472 old_striplib=$lt_old_striplib
18473 striplib=$lt_striplib
18475 # Dependencies to place before the objects being linked to create a
18477 predep_objects=$lt_predep_objects_GCJ
18479 # Dependencies to place after the objects being linked to create a
18481 postdep_objects=$lt_postdep_objects_GCJ
18483 # Dependencies to place before the objects being linked to create a
18485 predeps=$lt_predeps_GCJ
18487 # Dependencies to place after the objects being linked to create a
18489 postdeps=$lt_postdeps_GCJ
18491 # The library search path used internally by the compiler when linking
18492 # a shared library.
18493 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18495 # Method to check whether dependent libraries are shared objects.
18496 deplibs_check_method=$lt_deplibs_check_method
18498 # Command to use when deplibs_check_method == file_magic.
18499 file_magic_cmd=$lt_file_magic_cmd
18501 # Flag that allows shared libraries with undefined symbols to be built.
18502 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18504 # Flag that forces no undefined symbols.
18505 no_undefined_flag=$lt_no_undefined_flag_GCJ
18507 # Commands used to finish a libtool library installation in a directory.
18508 finish_cmds=$lt_finish_cmds
18510 # Same as above, but a single script fragment to be evaled but not shown.
18511 finish_eval=$lt_finish_eval
18513 # Take the output of nm and produce a listing of raw symbols and C names.
18514 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18516 # Transform the output of nm in a proper C declaration
18517 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18519 # Transform the output of nm in a C name address pair
18520 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18522 # This is the shared library runtime path variable.
18523 runpath_var=$runpath_var
18525 # This is the shared library path variable.
18526 shlibpath_var=$shlibpath_var
18528 # Is shlibpath searched before the hard-coded library search path?
18529 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18531 # How to hardcode a shared library path into an executable.
18532 hardcode_action=$hardcode_action_GCJ
18534 # Whether we should hardcode library paths into libraries.
18535 hardcode_into_libs=$hardcode_into_libs
18537 # Flag to hardcode \$libdir into a binary during linking.
18538 # This must work even if \$libdir does not exist.
18539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18541 # If ld is used when linking, flag to hardcode \$libdir into
18542 # a binary during linking. This must work even if \$libdir does
18544 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18546 # Whether we need a single -rpath flag with a separated argument.
18547 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18549 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18550 # resulting binary.
18551 hardcode_direct=$hardcode_direct_GCJ
18553 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18554 # resulting binary.
18555 hardcode_minus_L=$hardcode_minus_L_GCJ
18557 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18558 # the resulting binary.
18559 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18561 # Set to yes if building a shared library automatically hardcodes DIR into the library
18562 # and all subsequent libraries and executables linked against it.
18563 hardcode_automatic=$hardcode_automatic_GCJ
18565 # Variables whose values should be saved in libtool wrapper scripts and
18566 # restored at relink time.
18567 variables_saved_for_relink="$variables_saved_for_relink"
18569 # Whether libtool must link a program against all its dependency libraries.
18570 link_all_deplibs=$link_all_deplibs_GCJ
18572 # Compile-time system search path for libraries
18573 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18575 # Run-time system search path for libraries
18576 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18578 # Fix the shell variable \$srcfile for the compiler.
18579 fix_srcfile_path="$fix_srcfile_path_GCJ"
18581 # Set to yes if exported symbols are required.
18582 always_export_symbols=$always_export_symbols_GCJ
18584 # The commands to list exported symbols.
18585 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18587 # The commands to extract the exported symbol list from a shared archive.
18588 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18590 # Symbols that should not be listed in the preloaded symbols.
18591 exclude_expsyms=$lt_exclude_expsyms_GCJ
18593 # Symbols that must always be exported.
18594 include_expsyms=$lt_include_expsyms_GCJ
18596 # ### END LIBTOOL TAG CONFIG: $tagname
18602 # If there is no Makefile yet, we rely on a make rule to execute
18603 # `config.status --recheck' to rerun these tests and create the
18604 # libtool script then.
18605 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18606 if test -f "$ltmain_in"; then
18607 test -f Makefile && make "$ltmain"
18613 ac_cpp='$CPP $CPPFLAGS'
18614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18629 # Source file extension for RC test sources.
18632 # Object file extension for compiled RC test sources.
18636 # Code to be used in simple compile tests
18637 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18639 # Code to be used in simple link tests
18640 lt_simple_link_test_code="$lt_simple_compile_test_code"
18642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18644 # If no C compiler was specified, use CC.
18647 # Allow CC to be a program name with arguments.
18651 # Allow CC to be a program name with arguments.
18656 lt_cv_prog_compiler_c_o_RC=yes
18658 # The else clause should only fire when bootstrapping the
18659 # libtool distribution, otherwise you forgot to ship ltmain.sh
18660 # with your package, and you will get complaints that there are
18661 # no rules to generate ltmain.sh.
18662 if test -f "$ltmain"; then
18663 # See if we are running on zsh, and set the options which allow our commands through
18664 # without removal of \ escapes.
18665 if test -n "${ZSH_VERSION+set}" ; then
18666 setopt NO_GLOB_SUBST
18668 # Now quote all the things that may contain metacharacters while being
18669 # careful not to overquote the AC_SUBSTed values. We take copies of the
18670 # variables and quote the copies for generation of the libtool script.
18671 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18673 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18674 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18675 deplibs_check_method reload_flag reload_cmds need_locks \
18676 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18677 lt_cv_sys_global_symbol_to_c_name_address \
18678 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18679 old_postinstall_cmds old_postuninstall_cmds \
18683 lt_prog_compiler_wl_RC \
18684 lt_prog_compiler_pic_RC \
18685 lt_prog_compiler_static_RC \
18686 lt_prog_compiler_no_builtin_flag_RC \
18687 export_dynamic_flag_spec_RC \
18688 thread_safe_flag_spec_RC \
18689 whole_archive_flag_spec_RC \
18690 enable_shared_with_static_runtimes_RC \
18691 old_archive_cmds_RC \
18692 old_archive_from_new_cmds_RC \
18693 predep_objects_RC \
18694 postdep_objects_RC \
18697 compiler_lib_search_path_RC \
18699 archive_expsym_cmds_RC \
18700 postinstall_cmds_RC \
18701 postuninstall_cmds_RC \
18702 old_archive_from_expsyms_cmds_RC \
18703 allow_undefined_flag_RC \
18704 no_undefined_flag_RC \
18705 export_symbols_cmds_RC \
18706 hardcode_libdir_flag_spec_RC \
18707 hardcode_libdir_flag_spec_ld_RC \
18708 hardcode_libdir_separator_RC \
18709 hardcode_automatic_RC \
18711 module_expsym_cmds_RC \
18712 lt_cv_prog_compiler_c_o_RC \
18713 exclude_expsyms_RC \
18714 include_expsyms_RC; do
18717 old_archive_cmds_RC | \
18718 old_archive_from_new_cmds_RC | \
18719 archive_cmds_RC | \
18720 archive_expsym_cmds_RC | \
18722 module_expsym_cmds_RC | \
18723 old_archive_from_expsyms_cmds_RC | \
18724 export_symbols_cmds_RC | \
18725 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18726 postinstall_cmds | postuninstall_cmds | \
18727 old_postinstall_cmds | old_postuninstall_cmds | \
18728 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18729 # Double-quote double-evaled strings.
18730 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18739 *'\$0 --fallback-echo"')
18740 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18746 cat <<__EOF__ >> "$cfgfile"
18747 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18751 # Shell to use when invoking shell scripts.
18754 # Whether or not to build shared libraries.
18755 build_libtool_libs=$enable_shared
18757 # Whether or not to build static libraries.
18758 build_old_libs=$enable_static
18760 # Whether or not to add -lc for building shared libraries.
18761 build_libtool_need_lc=$archive_cmds_need_lc_RC
18763 # Whether or not to disallow shared libs when runtime libs are static
18764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18766 # Whether or not to optimize for fast installation.
18767 fast_install=$enable_fast_install
18770 host_alias=$host_alias
18773 # An echo program that does not interpret backslashes.
18778 AR_FLAGS=$lt_AR_FLAGS
18783 # A language-specific compiler.
18786 # Is the compiler the GNU C compiler?
18792 # The linker used to build libraries.
18795 # Whether we need hard or soft links.
18798 # A BSD-compatible nm program.
18801 # A symbol stripping program
18804 # Used to examine libraries when file_magic_cmd begins "file"
18805 MAGIC_CMD=$MAGIC_CMD
18807 # Used on cygwin: DLL creation program.
18810 # Used on cygwin: object dumper.
18813 # Used on cygwin: assembler.
18816 # The name of the directory that contains temporary libtool files.
18819 # How to create reloadable object files.
18820 reload_flag=$lt_reload_flag
18821 reload_cmds=$lt_reload_cmds
18823 # How to pass a linker flag through the compiler.
18824 wl=$lt_lt_prog_compiler_wl_RC
18826 # Object file suffix (normally "o").
18827 objext="$ac_objext"
18829 # Old archive suffix (normally "a").
18832 # Shared library suffix (normally ".so").
18833 shrext_cmds='$shrext_cmds'
18835 # Executable file suffix (normally "").
18838 # Additional compiler flags for building library objects.
18839 pic_flag=$lt_lt_prog_compiler_pic_RC
18842 # What is the maximum length of a command?
18843 max_cmd_len=$lt_cv_sys_max_cmd_len
18845 # Does compiler simultaneously support -c and -o options?
18846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18848 # Must we lock files when doing compilation ?
18849 need_locks=$lt_need_locks
18851 # Do we need the lib prefix for modules?
18852 need_lib_prefix=$need_lib_prefix
18854 # Do we need a version for libraries?
18855 need_version=$need_version
18857 # Whether dlopen is supported.
18858 dlopen_support=$enable_dlopen
18860 # Whether dlopen of programs is supported.
18861 dlopen_self=$enable_dlopen_self
18863 # Whether dlopen of statically linked programs is supported.
18864 dlopen_self_static=$enable_dlopen_self_static
18866 # Compiler flag to prevent dynamic linking.
18867 link_static_flag=$lt_lt_prog_compiler_static_RC
18869 # Compiler flag to turn off builtin functions.
18870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18872 # Compiler flag to allow reflexive dlopens.
18873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18875 # Compiler flag to generate shared objects directly from archives.
18876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18878 # Compiler flag to generate thread-safe objects.
18879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18881 # Library versioning type.
18882 version_type=$version_type
18884 # Format of library name prefix.
18885 libname_spec=$lt_libname_spec
18887 # List of archive names. First name is the real one, the rest are links.
18888 # The last name is the one that the linker finds with -lNAME.
18889 library_names_spec=$lt_library_names_spec
18891 # The coded name of the library, if different from the real name.
18892 soname_spec=$lt_soname_spec
18894 # Commands used to build and install an old-style archive.
18896 old_archive_cmds=$lt_old_archive_cmds_RC
18897 old_postinstall_cmds=$lt_old_postinstall_cmds
18898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18900 # Create an old-style archive from a shared archive.
18901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18903 # Create a temporary old-style archive to link instead of a shared archive.
18904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18906 # Commands used to build and install a shared archive.
18907 archive_cmds=$lt_archive_cmds_RC
18908 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18909 postinstall_cmds=$lt_postinstall_cmds
18910 postuninstall_cmds=$lt_postuninstall_cmds
18912 # Commands used to build a loadable module (assumed same as above if empty)
18913 module_cmds=$lt_module_cmds_RC
18914 module_expsym_cmds=$lt_module_expsym_cmds_RC
18916 # Commands to strip libraries.
18917 old_striplib=$lt_old_striplib
18918 striplib=$lt_striplib
18920 # Dependencies to place before the objects being linked to create a
18922 predep_objects=$lt_predep_objects_RC
18924 # Dependencies to place after the objects being linked to create a
18926 postdep_objects=$lt_postdep_objects_RC
18928 # Dependencies to place before the objects being linked to create a
18930 predeps=$lt_predeps_RC
18932 # Dependencies to place after the objects being linked to create a
18934 postdeps=$lt_postdeps_RC
18936 # The library search path used internally by the compiler when linking
18937 # a shared library.
18938 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18940 # Method to check whether dependent libraries are shared objects.
18941 deplibs_check_method=$lt_deplibs_check_method
18943 # Command to use when deplibs_check_method == file_magic.
18944 file_magic_cmd=$lt_file_magic_cmd
18946 # Flag that allows shared libraries with undefined symbols to be built.
18947 allow_undefined_flag=$lt_allow_undefined_flag_RC
18949 # Flag that forces no undefined symbols.
18950 no_undefined_flag=$lt_no_undefined_flag_RC
18952 # Commands used to finish a libtool library installation in a directory.
18953 finish_cmds=$lt_finish_cmds
18955 # Same as above, but a single script fragment to be evaled but not shown.
18956 finish_eval=$lt_finish_eval
18958 # Take the output of nm and produce a listing of raw symbols and C names.
18959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18961 # Transform the output of nm in a proper C declaration
18962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18964 # Transform the output of nm in a C name address pair
18965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18967 # This is the shared library runtime path variable.
18968 runpath_var=$runpath_var
18970 # This is the shared library path variable.
18971 shlibpath_var=$shlibpath_var
18973 # Is shlibpath searched before the hard-coded library search path?
18974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18976 # How to hardcode a shared library path into an executable.
18977 hardcode_action=$hardcode_action_RC
18979 # Whether we should hardcode library paths into libraries.
18980 hardcode_into_libs=$hardcode_into_libs
18982 # Flag to hardcode \$libdir into a binary during linking.
18983 # This must work even if \$libdir does not exist.
18984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18986 # If ld is used when linking, flag to hardcode \$libdir into
18987 # a binary during linking. This must work even if \$libdir does
18989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18991 # Whether we need a single -rpath flag with a separated argument.
18992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18995 # resulting binary.
18996 hardcode_direct=$hardcode_direct_RC
18998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18999 # resulting binary.
19000 hardcode_minus_L=$hardcode_minus_L_RC
19002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19003 # the resulting binary.
19004 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19006 # Set to yes if building a shared library automatically hardcodes DIR into the library
19007 # and all subsequent libraries and executables linked against it.
19008 hardcode_automatic=$hardcode_automatic_RC
19010 # Variables whose values should be saved in libtool wrapper scripts and
19011 # restored at relink time.
19012 variables_saved_for_relink="$variables_saved_for_relink"
19014 # Whether libtool must link a program against all its dependency libraries.
19015 link_all_deplibs=$link_all_deplibs_RC
19017 # Compile-time system search path for libraries
19018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19020 # Run-time system search path for libraries
19021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19023 # Fix the shell variable \$srcfile for the compiler.
19024 fix_srcfile_path="$fix_srcfile_path_RC"
19026 # Set to yes if exported symbols are required.
19027 always_export_symbols=$always_export_symbols_RC
19029 # The commands to list exported symbols.
19030 export_symbols_cmds=$lt_export_symbols_cmds_RC
19032 # The commands to extract the exported symbol list from a shared archive.
19033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19035 # Symbols that should not be listed in the preloaded symbols.
19036 exclude_expsyms=$lt_exclude_expsyms_RC
19038 # Symbols that must always be exported.
19039 include_expsyms=$lt_include_expsyms_RC
19041 # ### END LIBTOOL TAG CONFIG: $tagname
19047 # If there is no Makefile yet, we rely on a make rule to execute
19048 # `config.status --recheck' to rerun these tests and create the
19049 # libtool script then.
19050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19051 if test -f "$ltmain_in"; then
19052 test -f Makefile && make "$ltmain"
19058 ac_cpp='$CPP $CPPFLAGS'
19059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19068 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19069 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19070 { (exit 1); exit 1; }; }
19074 # Append the new tag name to the list of available tags.
19075 if test -n "$tagname" ; then
19076 available_tags="$available_tags $tagname"
19082 # Now substitute the updated list of available tags.
19083 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19084 mv "${ofile}T" "$ofile"
19088 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19089 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19090 { (exit 1); exit 1; }; }
19096 # This can be used to rebuild libtool when needed
19097 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19099 # Always use our own libtool.
19100 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19102 # Prevent multiple expansion
19124 ac_config_headers="$ac_config_headers src/config.h"
19126 ac_config_files="$ac_config_files aubio.pc"
19129 case "${host_os}" in
19131 mingw32_support="yes"
19132 if test "${ac_cv_header_windows_h+set}" = set; then
19133 echo "$as_me:$LINENO: checking for windows.h" >&5
19134 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19135 if test "${ac_cv_header_windows_h+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19139 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19141 # Is the header compilable?
19142 echo "$as_me:$LINENO: checking windows.h usability" >&5
19143 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19144 cat >conftest.$ac_ext <<_ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h. */
19150 $ac_includes_default
19151 #include <windows.h>
19153 rm -f conftest.$ac_objext
19154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19155 (eval $ac_compile) 2>conftest.er1
19157 grep -v '^ *+' conftest.er1 >conftest.err
19159 cat conftest.err >&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
19162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; } &&
19168 { ac_try='test -s conftest.$ac_objext'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19174 ac_header_compiler=yes
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19179 ac_header_compiler=no
19181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19183 echo "${ECHO_T}$ac_header_compiler" >&6
19185 # Is the header present?
19186 echo "$as_me:$LINENO: checking windows.h presence" >&5
19187 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19188 cat >conftest.$ac_ext <<_ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19194 #include <windows.h>
19196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19199 grep -v '^ *+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } >/dev/null; then
19204 if test -s conftest.err; then
19205 ac_cpp_err=$ac_c_preproc_warn_flag
19206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19213 if test -z "$ac_cpp_err"; then
19214 ac_header_preproc=yes
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 ac_header_preproc=no
19221 rm -f conftest.err conftest.$ac_ext
19222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19223 echo "${ECHO_T}$ac_header_preproc" >&6
19225 # So? What about this header?
19226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19228 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19229 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19230 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
19231 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
19232 ac_header_preproc=yes
19235 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19236 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19237 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19238 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19239 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
19240 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
19241 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
19242 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
19243 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19244 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19245 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
19246 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
19249 ## ------------------------------------------ ##
19250 ## Report this to the AC_PACKAGE_NAME lists. ##
19251 ## ------------------------------------------ ##
19254 sed "s/^/$as_me: WARNING: /" >&2
19257 echo "$as_me:$LINENO: checking for windows.h" >&5
19258 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19259 if test "${ac_cv_header_windows_h+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19262 ac_cv_header_windows_h=$ac_header_preproc
19264 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19265 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19272 LDFLAGS="$LDFLAGS -lmx"
19274 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
19275 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
19276 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
19277 echo $ECHO_N "(cached) $ECHO_C" >&6
19279 ac_check_lib_save_LIBS=$LIBS
19280 LIBS="-lcposix $LIBS"
19281 cat >conftest.$ac_ext <<_ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19288 /* Override any gcc2 internal prototype to avoid an error. */
19292 /* We use char because int might match the return type of a gcc2
19293 builtin and then its argument prototype would still apply. */
19303 rm -f conftest.$ac_objext conftest$ac_exeext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305 (eval $ac_link) 2>conftest.er1
19307 grep -v '^ *+' conftest.er1 >conftest.err
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try='test -s conftest$ac_exeext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 ac_cv_lib_cposix_strerror=yes
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19329 ac_cv_lib_cposix_strerror=no
19331 rm -f conftest.err conftest.$ac_objext \
19332 conftest$ac_exeext conftest.$ac_ext
19333 LIBS=$ac_check_lib_save_LIBS
19335 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
19336 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
19337 if test $ac_cv_lib_cposix_strerror = yes; then
19338 LIBS="$LIBS -lcposix"
19346 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
19347 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
19348 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19351 ac_check_lib_save_LIBS=$LIBS
19352 LIBS="-lcposix $LIBS"
19353 cat >conftest.$ac_ext <<_ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19360 /* Override any gcc2 internal prototype to avoid an error. */
19364 /* We use char because int might match the return type of a gcc2
19365 builtin and then its argument prototype would still apply. */
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19377 (eval $ac_link) 2>conftest.er1
19379 grep -v '^ *+' conftest.er1 >conftest.err
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
19384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest$ac_exeext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_cv_lib_cposix_strerror=yes
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19401 ac_cv_lib_cposix_strerror=no
19403 rm -f conftest.err conftest.$ac_objext \
19404 conftest$ac_exeext conftest.$ac_ext
19405 LIBS=$ac_check_lib_save_LIBS
19407 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
19408 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
19409 if test $ac_cv_lib_cposix_strerror = yes; then
19410 LIBS="$LIBS -lcposix"
19419 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19420 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19421 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 ac_check_lib_save_LIBS=$LIBS
19425 LIBS="-lpthread $LIBS"
19426 cat >conftest.$ac_ext <<_ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19433 /* Override any gcc2 internal prototype to avoid an error. */
19437 /* We use char because int might match the return type of a gcc2
19438 builtin and then its argument prototype would still apply. */
19439 char pthread_create ();
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19450 (eval $ac_link) 2>conftest.er1
19452 grep -v '^ *+' conftest.er1 >conftest.err
19454 cat conftest.err >&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
19457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19463 { ac_try='test -s conftest$ac_exeext'
19464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; }; then
19469 ac_cv_lib_pthread_pthread_create=yes
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_cv_lib_pthread_pthread_create=no
19476 rm -f conftest.err conftest.$ac_objext \
19477 conftest$ac_exeext conftest.$ac_ext
19478 LIBS=$ac_check_lib_save_LIBS
19480 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19481 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19482 if test $ac_cv_lib_pthread_pthread_create = yes; then
19483 cat >>confdefs.h <<_ACEOF
19484 #define HAVE_LIBPTHREAD 1
19487 LIBS="-lpthread $LIBS"
19492 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19493 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19494 if test "${ac_cv_header_stdc+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19497 cat >conftest.$ac_ext <<_ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h. */
19503 #include <stdlib.h>
19504 #include <stdarg.h>
19505 #include <string.h>
19516 rm -f conftest.$ac_objext
19517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518 (eval $ac_compile) 2>conftest.er1
19520 grep -v '^ *+' conftest.er1 >conftest.err
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } &&
19531 { ac_try='test -s conftest.$ac_objext'
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537 ac_cv_header_stdc=yes
19539 echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19542 ac_cv_header_stdc=no
19544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19546 if test $ac_cv_header_stdc = yes; then
19547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19548 cat >conftest.$ac_ext <<_ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19554 #include <string.h>
19557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19558 $EGREP "memchr" >/dev/null 2>&1; then
19561 ac_cv_header_stdc=no
19567 if test $ac_cv_header_stdc = yes; then
19568 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19569 cat >conftest.$ac_ext <<_ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h. */
19575 #include <stdlib.h>
19578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19579 $EGREP "free" >/dev/null 2>&1; then
19582 ac_cv_header_stdc=no
19588 if test $ac_cv_header_stdc = yes; then
19589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19590 if test "$cross_compiling" = yes; then
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19600 #if ((' ' & 0x0FF) == 0x020)
19601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19604 # define ISLOWER(c) \
19605 (('a' <= (c) && (c) <= 'i') \
19606 || ('j' <= (c) && (c) <= 'r') \
19607 || ('s' <= (c) && (c) <= 'z'))
19608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19616 for (i = 0; i < 256; i++)
19617 if (XOR (islower (i), ISLOWER (i))
19618 || toupper (i) != TOUPPER (i))
19623 rm -f conftest$ac_exeext
19624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19625 (eval $ac_link) 2>&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19636 echo "$as_me: program exited with status $ac_status" >&5
19637 echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19640 ( exit $ac_status )
19641 ac_cv_header_stdc=no
19643 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19647 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19648 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19649 if test $ac_cv_header_stdc = yes; then
19651 cat >>confdefs.h <<\_ACEOF
19652 #define STDC_HEADERS 1
19665 for ac_header in string.h stdlib.h stdio.h math.h errno.h stdarg.h unistd.h signal.h
19667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19669 echo "$as_me:$LINENO: checking for $ac_header" >&5
19670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19677 # Is the header compilable?
19678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19680 cat >conftest.$ac_ext <<_ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19686 $ac_includes_default
19687 #include <$ac_header>
19689 rm -f conftest.$ac_objext
19690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19691 (eval $ac_compile) 2>conftest.er1
19693 grep -v '^ *+' conftest.er1 >conftest.err
19695 cat conftest.err >&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } &&
19698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } &&
19704 { ac_try='test -s conftest.$ac_objext'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710 ac_header_compiler=yes
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 ac_header_compiler=no
19717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19719 echo "${ECHO_T}$ac_header_compiler" >&6
19721 # Is the header present?
19722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19724 cat >conftest.$ac_ext <<_ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 #include <$ac_header>
19732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19735 grep -v '^ *+' conftest.er1 >conftest.err
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } >/dev/null; then
19740 if test -s conftest.err; then
19741 ac_cpp_err=$ac_c_preproc_warn_flag
19742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19749 if test -z "$ac_cpp_err"; then
19750 ac_header_preproc=yes
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19755 ac_header_preproc=no
19757 rm -f conftest.err conftest.$ac_ext
19758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19759 echo "${ECHO_T}$ac_header_preproc" >&6
19761 # So? What about this header?
19762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19768 ac_header_preproc=yes
19771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19785 ## ------------------------------------------ ##
19786 ## Report this to the AC_PACKAGE_NAME lists. ##
19787 ## ------------------------------------------ ##
19790 sed "s/^/$as_me: WARNING: /" >&2
19793 echo "$as_me:$LINENO: checking for $ac_header" >&5
19794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19798 eval "$as_ac_Header=\$ac_header_preproc"
19800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19805 cat >>confdefs.h <<_ACEOF
19806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19814 for ac_header in complex.h
19816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19818 echo "$as_me:$LINENO: checking for $ac_header" >&5
19819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19826 # Is the header compilable?
19827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19829 cat >conftest.$ac_ext <<_ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 $ac_includes_default
19836 #include <$ac_header>
19838 rm -f conftest.$ac_objext
19839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19840 (eval $ac_compile) 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; } &&
19853 { ac_try='test -s conftest.$ac_objext'
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; }; then
19859 ac_header_compiler=yes
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 ac_header_compiler=no
19866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19868 echo "${ECHO_T}$ac_header_compiler" >&6
19870 # Is the header present?
19871 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19873 cat >conftest.$ac_ext <<_ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19879 #include <$ac_header>
19881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19884 grep -v '^ *+' conftest.er1 >conftest.err
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } >/dev/null; then
19889 if test -s conftest.err; then
19890 ac_cpp_err=$ac_c_preproc_warn_flag
19891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19898 if test -z "$ac_cpp_err"; then
19899 ac_header_preproc=yes
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19904 ac_header_preproc=no
19906 rm -f conftest.err conftest.$ac_ext
19907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19908 echo "${ECHO_T}$ac_header_preproc" >&6
19910 # So? What about this header?
19911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19917 ac_header_preproc=yes
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19934 ## ------------------------------------------ ##
19935 ## Report this to the AC_PACKAGE_NAME lists. ##
19936 ## ------------------------------------------ ##
19939 sed "s/^/$as_me: WARNING: /" >&2
19942 echo "$as_me:$LINENO: checking for $ac_header" >&5
19943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 eval "$as_ac_Header=\$ac_header_preproc"
19949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19954 cat >>confdefs.h <<_ACEOF
19955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19959 { { echo "$as_me:$LINENO: error: Ouch! missing complex.h header" >&5
19960 echo "$as_me: error: Ouch! missing complex.h header" >&2;}
19961 { (exit 1); exit 1; }; }
19967 for ac_header in fftw3.h
19969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19971 echo "$as_me:$LINENO: checking for $ac_header" >&5
19972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19979 # Is the header compilable?
19980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19982 cat >conftest.$ac_ext <<_ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 $ac_includes_default
19989 #include <$ac_header>
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try='test -s conftest.$ac_objext'
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_header_compiler=yes
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 ac_header_compiler=no
20019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021 echo "${ECHO_T}$ac_header_compiler" >&6
20023 # Is the header present?
20024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <$ac_header>
20034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20037 grep -v '^ *+' conftest.er1 >conftest.err
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } >/dev/null; then
20042 if test -s conftest.err; then
20043 ac_cpp_err=$ac_c_preproc_warn_flag
20044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20051 if test -z "$ac_cpp_err"; then
20052 ac_header_preproc=yes
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20057 ac_header_preproc=no
20059 rm -f conftest.err conftest.$ac_ext
20060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6
20063 # So? What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc=yes
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20087 ## ------------------------------------------ ##
20088 ## Report this to the AC_PACKAGE_NAME lists. ##
20089 ## ------------------------------------------ ##
20092 sed "s/^/$as_me: WARNING: /" >&2
20095 echo "$as_me:$LINENO: checking for $ac_header" >&5
20096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 eval "$as_ac_Header=\$ac_header_preproc"
20102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20107 cat >>confdefs.h <<_ACEOF
20108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20112 { { echo "$as_me:$LINENO: error: Ouch! missing fftw3.h headeri" >&5
20113 echo "$as_me: error: Ouch! missing fftw3.h headeri" >&2;}
20114 { (exit 1); exit 1; }; }
20120 # Extract the first word of "pkg-config", so it can be a program name with args.
20121 set dummy pkg-config; ac_word=$2
20122 echo "$as_me:$LINENO: checking for $ac_word" >&5
20123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 case $PKG_CONFIG in
20129 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20133 for as_dir in $PATH
20136 test -z "$as_dir" && as_dir=.
20137 for ac_exec_ext in '' $ac_executable_extensions; do
20138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20139 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20146 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20150 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20152 if test -n "$PKG_CONFIG"; then
20153 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20154 echo "${ECHO_T}$PKG_CONFIG" >&6
20156 echo "$as_me:$LINENO: result: no" >&5
20157 echo "${ECHO_T}no" >&6
20164 if test -z "$PKG_CONFIG"; then
20165 # Extract the first word of "pkg-config", so it can be a program name with args.
20166 set dummy pkg-config; ac_word=$2
20167 echo "$as_me:$LINENO: checking for $ac_word" >&5
20168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20169 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 case $PKG_CONFIG in
20174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20178 for as_dir in $PATH
20181 test -z "$as_dir" && as_dir=.
20182 for ac_exec_ext in '' $ac_executable_extensions; do
20183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20191 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20195 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20197 if test -n "$PKG_CONFIG"; then
20198 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20199 echo "${ECHO_T}$PKG_CONFIG" >&6
20201 echo "$as_me:$LINENO: result: no" >&5
20202 echo "${ECHO_T}no" >&6
20207 if test "$PKG_CONFIG" = "no" ; then
20208 echo "*** The pkg-config script could not be found. Make sure it is"
20209 echo "*** in your path, or set the PKG_CONFIG environment variable"
20210 echo "*** to the full path to pkg-config."
20211 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20213 PKG_CONFIG_MIN_VERSION=0.9.0
20214 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20215 echo "$as_me:$LINENO: checking for fftw3 >= 3.0.0" >&5
20216 echo $ECHO_N "checking for fftw3 >= 3.0.0... $ECHO_C" >&6
20218 if $PKG_CONFIG --exists "fftw3 >= 3.0.0" ; then
20219 echo "$as_me:$LINENO: result: yes" >&5
20220 echo "${ECHO_T}yes" >&6
20223 echo "$as_me:$LINENO: checking FFTWLIB_CFLAGS" >&5
20224 echo $ECHO_N "checking FFTWLIB_CFLAGS... $ECHO_C" >&6
20225 FFTWLIB_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0"`
20226 echo "$as_me:$LINENO: result: $FFTWLIB_CFLAGS" >&5
20227 echo "${ECHO_T}$FFTWLIB_CFLAGS" >&6
20229 echo "$as_me:$LINENO: checking FFTWLIB_LIBS" >&5
20230 echo $ECHO_N "checking FFTWLIB_LIBS... $ECHO_C" >&6
20231 FFTWLIB_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0"`
20232 echo "$as_me:$LINENO: result: $FFTWLIB_LIBS" >&5
20233 echo "${ECHO_T}$FFTWLIB_LIBS" >&6
20237 ## If we have a custom action on failure, don't print errors, but
20238 ## do set a variable so people can do so.
20239 FFTWLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3 >= 3.0.0"`
20240 echo $FFTWLIB_PKG_ERRORS
20246 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20247 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20251 if test $succeeded = yes; then
20254 { { 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
20255 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;}
20256 { (exit 1); exit 1; }; }
20259 if test "${FFTW3_SUPPORT}" = "1"; then
20261 cat >>confdefs.h <<\_ACEOF
20262 #define FFTW3_SUPPORT 1
20269 if test -z "$PKG_CONFIG"; then
20270 # Extract the first word of "pkg-config", so it can be a program name with args.
20271 set dummy pkg-config; ac_word=$2
20272 echo "$as_me:$LINENO: checking for $ac_word" >&5
20273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20274 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 case $PKG_CONFIG in
20279 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20283 for as_dir in $PATH
20286 test -z "$as_dir" && as_dir=.
20287 for ac_exec_ext in '' $ac_executable_extensions; do
20288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20289 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20296 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20300 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20302 if test -n "$PKG_CONFIG"; then
20303 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20304 echo "${ECHO_T}$PKG_CONFIG" >&6
20306 echo "$as_me:$LINENO: result: no" >&5
20307 echo "${ECHO_T}no" >&6
20312 if test "$PKG_CONFIG" = "no" ; then
20313 echo "*** The pkg-config script could not be found. Make sure it is"
20314 echo "*** in your path, or set the PKG_CONFIG environment variable"
20315 echo "*** to the full path to pkg-config."
20316 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20318 PKG_CONFIG_MIN_VERSION=0.9.0
20319 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20320 echo "$as_me:$LINENO: checking for sndfile >= 1.0.4" >&5
20321 echo $ECHO_N "checking for sndfile >= 1.0.4... $ECHO_C" >&6
20323 if $PKG_CONFIG --exists "sndfile >= 1.0.4" ; then
20324 echo "$as_me:$LINENO: result: yes" >&5
20325 echo "${ECHO_T}yes" >&6
20328 echo "$as_me:$LINENO: checking SNDLIB_CFLAGS" >&5
20329 echo $ECHO_N "checking SNDLIB_CFLAGS... $ECHO_C" >&6
20330 SNDLIB_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.4"`
20331 echo "$as_me:$LINENO: result: $SNDLIB_CFLAGS" >&5
20332 echo "${ECHO_T}$SNDLIB_CFLAGS" >&6
20334 echo "$as_me:$LINENO: checking SNDLIB_LIBS" >&5
20335 echo $ECHO_N "checking SNDLIB_LIBS... $ECHO_C" >&6
20336 SNDLIB_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.4"`
20337 echo "$as_me:$LINENO: result: $SNDLIB_LIBS" >&5
20338 echo "${ECHO_T}$SNDLIB_LIBS" >&6
20342 ## If we have a custom action on failure, don't print errors, but
20343 ## do set a variable so people can do so.
20344 SNDLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sndfile >= 1.0.4"`
20345 echo $SNDLIB_PKG_ERRORS
20351 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20352 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20356 if test $succeeded = yes; then
20359 { { 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
20360 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;}
20361 { (exit 1); exit 1; }; }
20367 if test -z "$PKG_CONFIG"; then
20368 # Extract the first word of "pkg-config", so it can be a program name with args.
20369 set dummy pkg-config; ac_word=$2
20370 echo "$as_me:$LINENO: checking for $ac_word" >&5
20371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20372 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20375 case $PKG_CONFIG in
20377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20381 for as_dir in $PATH
20384 test -z "$as_dir" && as_dir=.
20385 for ac_exec_ext in '' $ac_executable_extensions; do
20386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20394 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20398 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20400 if test -n "$PKG_CONFIG"; then
20401 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20402 echo "${ECHO_T}$PKG_CONFIG" >&6
20404 echo "$as_me:$LINENO: result: no" >&5
20405 echo "${ECHO_T}no" >&6
20410 if test "$PKG_CONFIG" = "no" ; then
20411 echo "*** The pkg-config script could not be found. Make sure it is"
20412 echo "*** in your path, or set the PKG_CONFIG environment variable"
20413 echo "*** to the full path to pkg-config."
20414 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20416 PKG_CONFIG_MIN_VERSION=0.9.0
20417 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20418 echo "$as_me:$LINENO: checking for samplerate >= 0.0.15" >&5
20419 echo $ECHO_N "checking for samplerate >= 0.0.15... $ECHO_C" >&6
20421 if $PKG_CONFIG --exists "samplerate >= 0.0.15" ; then
20422 echo "$as_me:$LINENO: result: yes" >&5
20423 echo "${ECHO_T}yes" >&6
20426 echo "$as_me:$LINENO: checking SAMPLERATE_CFLAGS" >&5
20427 echo $ECHO_N "checking SAMPLERATE_CFLAGS... $ECHO_C" >&6
20428 SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= 0.0.15"`
20429 echo "$as_me:$LINENO: result: $SAMPLERATE_CFLAGS" >&5
20430 echo "${ECHO_T}$SAMPLERATE_CFLAGS" >&6
20432 echo "$as_me:$LINENO: checking SAMPLERATE_LIBS" >&5
20433 echo $ECHO_N "checking SAMPLERATE_LIBS... $ECHO_C" >&6
20434 SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= 0.0.15"`
20435 echo "$as_me:$LINENO: result: $SAMPLERATE_LIBS" >&5
20436 echo "${ECHO_T}$SAMPLERATE_LIBS" >&6
20438 SAMPLERATE_CFLAGS=""
20440 ## If we have a custom action on failure, don't print errors, but
20441 ## do set a variable so people can do so.
20442 SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate >= 0.0.15"`
20443 echo $SAMPLERATE_PKG_ERRORS
20449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20454 if test $succeeded = yes; then
20455 SAMPLERATE_SUPPORT=1
20457 { { 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
20458 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;}
20459 { (exit 1); exit 1; }; }
20463 if test "${SNDLIB_SUPPORT}" = "1"; then
20465 cat >>confdefs.h <<\_ACEOF
20466 #define SNDLIB_SUPPORT 1
20472 # Check whether --enable-fftw3f or --disable-fftw3f was given.
20473 if test "${enable_fftw3f+set}" = set; then
20474 enableval="$enable_fftw3f"
20479 if test "$with_fftw3f" = "yes"; then
20483 if test -z "$PKG_CONFIG"; then
20484 # Extract the first word of "pkg-config", so it can be a program name with args.
20485 set dummy pkg-config; ac_word=$2
20486 echo "$as_me:$LINENO: checking for $ac_word" >&5
20487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20488 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 case $PKG_CONFIG in
20493 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20497 for as_dir in $PATH
20500 test -z "$as_dir" && as_dir=.
20501 for ac_exec_ext in '' $ac_executable_extensions; do
20502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20503 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20510 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20514 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20516 if test -n "$PKG_CONFIG"; then
20517 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20518 echo "${ECHO_T}$PKG_CONFIG" >&6
20520 echo "$as_me:$LINENO: result: no" >&5
20521 echo "${ECHO_T}no" >&6
20526 if test "$PKG_CONFIG" = "no" ; then
20527 echo "*** The pkg-config script could not be found. Make sure it is"
20528 echo "*** in your path, or set the PKG_CONFIG environment variable"
20529 echo "*** to the full path to pkg-config."
20530 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20532 PKG_CONFIG_MIN_VERSION=0.9.0
20533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20534 echo "$as_me:$LINENO: checking for fftw3f >= 3.0.0" >&5
20535 echo $ECHO_N "checking for fftw3f >= 3.0.0... $ECHO_C" >&6
20537 if $PKG_CONFIG --exists "fftw3f >= 3.0.0" ; then
20538 echo "$as_me:$LINENO: result: yes" >&5
20539 echo "${ECHO_T}yes" >&6
20542 echo "$as_me:$LINENO: checking FFTWLIB_CFLAGS" >&5
20543 echo $ECHO_N "checking FFTWLIB_CFLAGS... $ECHO_C" >&6
20544 FFTWLIB_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0.0"`
20545 echo "$as_me:$LINENO: result: $FFTWLIB_CFLAGS" >&5
20546 echo "${ECHO_T}$FFTWLIB_CFLAGS" >&6
20548 echo "$as_me:$LINENO: checking FFTWLIB_LIBS" >&5
20549 echo $ECHO_N "checking FFTWLIB_LIBS... $ECHO_C" >&6
20550 FFTWLIB_LIBS=`$PKG_CONFIG --libs "fftw3f >= 3.0.0"`
20551 echo "$as_me:$LINENO: result: $FFTWLIB_LIBS" >&5
20552 echo "${ECHO_T}$FFTWLIB_LIBS" >&6
20556 ## If we have a custom action on failure, don't print errors, but
20557 ## do set a variable so people can do so.
20558 FFTWLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0.0"`
20559 echo $FFTWLIB_PKG_ERRORS
20565 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20566 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20570 if test $succeeded = yes; then
20573 { { 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
20574 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;}
20575 { (exit 1); exit 1; }; }
20579 if test "${FFTW3F_SUPPORT}" = "1"; then
20581 cat >>confdefs.h <<\_ACEOF
20582 #define FFTW3F_SUPPORT 1
20587 # Check whether --enable-jack or --disable-jack was given.
20588 if test "${enable_jack+set}" = set; then
20589 enableval="$enable_jack"
20594 if test "$with_jack" = "yes"
20599 if test -z "$PKG_CONFIG"; then
20600 # Extract the first word of "pkg-config", so it can be a program name with args.
20601 set dummy pkg-config; ac_word=$2
20602 echo "$as_me:$LINENO: checking for $ac_word" >&5
20603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20604 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 case $PKG_CONFIG in
20609 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20613 for as_dir in $PATH
20616 test -z "$as_dir" && as_dir=.
20617 for ac_exec_ext in '' $ac_executable_extensions; do
20618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20619 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20626 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20630 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20632 if test -n "$PKG_CONFIG"; then
20633 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20634 echo "${ECHO_T}$PKG_CONFIG" >&6
20636 echo "$as_me:$LINENO: result: no" >&5
20637 echo "${ECHO_T}no" >&6
20642 if test "$PKG_CONFIG" = "no" ; then
20643 echo "*** The pkg-config script could not be found. Make sure it is"
20644 echo "*** in your path, or set the PKG_CONFIG environment variable"
20645 echo "*** to the full path to pkg-config."
20646 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20648 PKG_CONFIG_MIN_VERSION=0.9.0
20649 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20650 echo "$as_me:$LINENO: checking for jack >= 0.15.0" >&5
20651 echo $ECHO_N "checking for jack >= 0.15.0... $ECHO_C" >&6
20653 if $PKG_CONFIG --exists "jack >= 0.15.0" ; then
20654 echo "$as_me:$LINENO: result: yes" >&5
20655 echo "${ECHO_T}yes" >&6
20658 echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
20659 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6
20660 JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.15.0"`
20661 echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
20662 echo "${ECHO_T}$JACK_CFLAGS" >&6
20664 echo "$as_me:$LINENO: checking JACK_LIBS" >&5
20665 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6
20666 JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.15.0"`
20667 echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
20668 echo "${ECHO_T}$JACK_LIBS" >&6
20672 ## If we have a custom action on failure, don't print errors, but
20673 ## do set a variable so people can do so.
20674 JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.15.0"`
20675 echo $JACK_PKG_ERRORS
20681 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20682 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20686 if test $succeeded = yes; then
20689 { { 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
20690 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;}
20691 { (exit 1); exit 1; }; }
20694 if test "${JACK_SUPPORT}" = "1"; then
20696 cat >>confdefs.h <<\_ACEOF
20697 #define JACK_SUPPORT 1
20703 # Check whether --enable-alsa or --disable-alsa was given.
20704 if test "${enable_alsa+set}" = set; then
20705 enableval="$enable_alsa"
20710 if test "$with_alsa" = "yes"
20715 if test -z "$PKG_CONFIG"; then
20716 # Extract the first word of "pkg-config", so it can be a program name with args.
20717 set dummy pkg-config; ac_word=$2
20718 echo "$as_me:$LINENO: checking for $ac_word" >&5
20719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20720 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 case $PKG_CONFIG in
20725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20729 for as_dir in $PATH
20732 test -z "$as_dir" && as_dir=.
20733 for ac_exec_ext in '' $ac_executable_extensions; do
20734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20742 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20746 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20748 if test -n "$PKG_CONFIG"; then
20749 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20750 echo "${ECHO_T}$PKG_CONFIG" >&6
20752 echo "$as_me:$LINENO: result: no" >&5
20753 echo "${ECHO_T}no" >&6
20758 if test "$PKG_CONFIG" = "no" ; then
20759 echo "*** The pkg-config script could not be found. Make sure it is"
20760 echo "*** in your path, or set the PKG_CONFIG environment variable"
20761 echo "*** to the full path to pkg-config."
20762 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20764 PKG_CONFIG_MIN_VERSION=0.9.0
20765 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20766 echo "$as_me:$LINENO: checking for alsa >= 0.0.9" >&5
20767 echo $ECHO_N "checking for alsa >= 0.0.9... $ECHO_C" >&6
20769 if $PKG_CONFIG --exists "alsa >= 0.0.9" ; then
20770 echo "$as_me:$LINENO: result: yes" >&5
20771 echo "${ECHO_T}yes" >&6
20774 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
20775 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
20776 ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.0.9"`
20777 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
20778 echo "${ECHO_T}$ALSA_CFLAGS" >&6
20780 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
20781 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
20782 ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.0.9"`
20783 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
20784 echo "${ECHO_T}$ALSA_LIBS" >&6
20788 ## If we have a custom action on failure, don't print errors, but
20789 ## do set a variable so people can do so.
20790 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.0.9"`
20791 echo $ALSA_PKG_ERRORS
20797 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20798 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20802 if test $succeeded = yes; then
20805 { { 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
20806 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;}
20807 { (exit 1); exit 1; }; }
20810 if test "${ALSA_SUPPORT}" = "1"; then
20812 cat >>confdefs.h <<\_ACEOF
20813 #define ALSA_SUPPORT 1
20819 # Check whether --enable-ladcca or --disable-ladcca was given.
20820 if test "${enable_ladcca+set}" = set; then
20821 enableval="$enable_ladcca"
20826 if test "$with_ladcca" = "yes"
20831 if test -z "$PKG_CONFIG"; then
20832 # Extract the first word of "pkg-config", so it can be a program name with args.
20833 set dummy pkg-config; ac_word=$2
20834 echo "$as_me:$LINENO: checking for $ac_word" >&5
20835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20836 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 case $PKG_CONFIG in
20841 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20845 for as_dir in $PATH
20848 test -z "$as_dir" && as_dir=.
20849 for ac_exec_ext in '' $ac_executable_extensions; do
20850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20851 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20858 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20862 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20864 if test -n "$PKG_CONFIG"; then
20865 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20866 echo "${ECHO_T}$PKG_CONFIG" >&6
20868 echo "$as_me:$LINENO: result: no" >&5
20869 echo "${ECHO_T}no" >&6
20874 if test "$PKG_CONFIG" = "no" ; then
20875 echo "*** The pkg-config script could not be found. Make sure it is"
20876 echo "*** in your path, or set the PKG_CONFIG environment variable"
20877 echo "*** to the full path to pkg-config."
20878 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20880 PKG_CONFIG_MIN_VERSION=0.9.0
20881 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20882 echo "$as_me:$LINENO: checking for ladcca-1.0 >= 0.4.0" >&5
20883 echo $ECHO_N "checking for ladcca-1.0 >= 0.4.0... $ECHO_C" >&6
20885 if $PKG_CONFIG --exists "ladcca-1.0 >= 0.4.0" ; then
20886 echo "$as_me:$LINENO: result: yes" >&5
20887 echo "${ECHO_T}yes" >&6
20890 echo "$as_me:$LINENO: checking LADCCA_CFLAGS" >&5
20891 echo $ECHO_N "checking LADCCA_CFLAGS... $ECHO_C" >&6
20892 LADCCA_CFLAGS=`$PKG_CONFIG --cflags "ladcca-1.0 >= 0.4.0"`
20893 echo "$as_me:$LINENO: result: $LADCCA_CFLAGS" >&5
20894 echo "${ECHO_T}$LADCCA_CFLAGS" >&6
20896 echo "$as_me:$LINENO: checking LADCCA_LIBS" >&5
20897 echo $ECHO_N "checking LADCCA_LIBS... $ECHO_C" >&6
20898 LADCCA_LIBS=`$PKG_CONFIG --libs "ladcca-1.0 >= 0.4.0"`
20899 echo "$as_me:$LINENO: result: $LADCCA_LIBS" >&5
20900 echo "${ECHO_T}$LADCCA_LIBS" >&6
20904 ## If we have a custom action on failure, don't print errors, but
20905 ## do set a variable so people can do so.
20906 LADCCA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ladcca-1.0 >= 0.4.0"`
20907 echo $LADCCA_PKG_ERRORS
20913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20918 if test $succeeded = yes; then
20921 { { 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
20922 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;}
20923 { (exit 1); exit 1; }; }
20926 if test "${LADCCA_SUPPORT}" = "1"; then
20928 cat >>confdefs.h <<\_ACEOF
20929 #define LADCCA_SUPPORT 1
20939 # Find any Python interpreter.
20940 for ac_prog in python python2 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
20942 # Extract the first word of "$ac_prog", so it can be a program name with args.
20943 set dummy $ac_prog; ac_word=$2
20944 echo "$as_me:$LINENO: checking for $ac_word" >&5
20945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20946 if test "${ac_cv_path_PYTHON+set}" = set; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20955 for as_dir in $PATH
20958 test -z "$as_dir" && as_dir=.
20959 for ac_exec_ext in '' $ac_executable_extensions; do
20960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20961 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20971 PYTHON=$ac_cv_path_PYTHON
20973 if test -n "$PYTHON"; then
20974 echo "$as_me:$LINENO: result: $PYTHON" >&5
20975 echo "${ECHO_T}$PYTHON" >&6
20977 echo "$as_me:$LINENO: result: no" >&5
20978 echo "${ECHO_T}no" >&6
20981 test -n "$PYTHON" && break
20984 am_display_PYTHON=python
20988 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
20989 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
20990 if test "${am_cv_python_version+set}" = set; then
20991 echo $ECHO_N "(cached) $ECHO_C" >&6
20993 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
20995 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
20996 echo "${ECHO_T}$am_cv_python_version" >&6
20997 PYTHON_VERSION=$am_cv_python_version
21001 PYTHON_PREFIX='${prefix}'
21003 PYTHON_EXEC_PREFIX='${exec_prefix}'
21007 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
21008 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
21009 if test "${am_cv_python_platform+set}" = set; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21012 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
21014 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
21015 echo "${ECHO_T}$am_cv_python_platform" >&6
21016 PYTHON_PLATFORM=$am_cv_python_platform
21021 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
21022 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
21023 if test "${am_cv_python_pythondir+set}" = set; then
21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21026 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
21027 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
21029 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
21030 echo "${ECHO_T}$am_cv_python_pythondir" >&6
21031 pythondir=$am_cv_python_pythondir
21035 pkgpythondir=\${pythondir}/$PACKAGE
21038 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
21039 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
21040 if test "${am_cv_python_pyexecdir+set}" = set; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
21043 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
21044 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
21046 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
21047 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
21048 pyexecdir=$am_cv_python_pyexecdir
21052 pkgpyexecdir=\${pyexecdir}/$PACKAGE
21056 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 plugins/puredata/Makefile swig/Makefile"
21057 cat >confcache <<\_ACEOF
21058 # This file is a shell script that caches the results of configure
21059 # tests run on this system so they can be shared between configure
21060 # scripts and configure runs, see configure's option --config-cache.
21061 # It is not useful on other systems. If it contains results you don't
21062 # want to keep, you may remove or edit it.
21064 # config.status only pays attention to the cache file if you give it
21065 # the --recheck option to rerun configure.
21067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21069 # following values.
21073 # The following way of writing the cache mishandles newlines in values,
21074 # but we know of no workaround that is simple, portable, and efficient.
21075 # So, don't put newlines in cache variables' values.
21076 # Ultrix sh set writes to stderr and can't be redirected directly,
21077 # and sets the high bit in the cache file unless we assign to the vars.
21080 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21082 # `set' does not quote correctly, so add quotes (double-quote
21083 # substitution turns \\\\ into \\, and sed turns \\ into \).
21086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21089 # `set' quotes correctly as required by POSIX, so do not add quotes.
21091 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21100 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21102 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21103 if test -w $cache_file; then
21104 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21105 cat confcache >$cache_file
21107 echo "not updating unwritable cache $cache_file"
21112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21113 # Let make expand exec_prefix.
21114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21116 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21117 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21118 # trailing colons and then remove the whole line if VPATH becomes empty
21119 # (actually we leave an empty line to preserve line numbers).
21120 if test "x$srcdir" = x.; then
21121 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21122 s/:*\$(srcdir):*/:/;
21123 s/:*\${srcdir}:*/:/;
21125 s/^\([^=]*=[ ]*\):*/\1/;
21131 DEFS=-DHAVE_CONFIG_H
21135 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21136 # 1. Remove the extension, and $U if already installed.
21137 ac_i=`echo "$ac_i" |
21138 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21140 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21141 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21143 LIBOBJS=$ac_libobjs
21145 LTLIBOBJS=$ac_ltlibobjs
21148 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21149 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21150 Usually this means the macro was only invoked conditionally." >&5
21151 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21152 Usually this means the macro was only invoked conditionally." >&2;}
21153 { (exit 1); exit 1; }; }
21155 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21156 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21157 Usually this means the macro was only invoked conditionally." >&5
21158 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21159 Usually this means the macro was only invoked conditionally." >&2;}
21160 { (exit 1); exit 1; }; }
21162 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21163 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21164 Usually this means the macro was only invoked conditionally." >&5
21165 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21166 Usually this means the macro was only invoked conditionally." >&2;}
21167 { (exit 1); exit 1; }; }
21170 : ${CONFIG_STATUS=./config.status}
21171 ac_clean_files_save=$ac_clean_files
21172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21175 cat >$CONFIG_STATUS <<_ACEOF
21177 # Generated by $as_me.
21178 # Run this file to recreate the current configuration.
21179 # Compiler output produced by configure, useful for debugging
21180 # configure, is in config.log if it exists.
21183 ac_cs_recheck=false
21185 SHELL=\${CONFIG_SHELL-$SHELL}
21188 cat >>$CONFIG_STATUS <<\_ACEOF
21189 ## --------------------- ##
21190 ## M4sh Initialization. ##
21191 ## --------------------- ##
21193 # Be Bourne compatible
21194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21198 # is contrary to our usage. Disable this feature.
21199 alias -g '${1+"$@"}'='"$@"'
21200 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21203 DUALCASE=1; export DUALCASE # for MKS sh
21205 # Support unset when possible.
21206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21213 # Work around bugs in pre-3.0 UWIN ksh.
21214 $as_unset ENV MAIL MAILPATH
21221 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21222 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21223 LC_TELEPHONE LC_TIME
21225 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21226 eval $as_var=C; export $as_var
21232 # Required to use basename.
21233 if expr a : '\(a\)' >/dev/null 2>&1; then
21239 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21240 as_basename=basename
21246 # Name of the executable.
21247 as_me=`$as_basename "$0" ||
21248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21249 X"$0" : 'X\(//\)$' \| \
21250 X"$0" : 'X\(/\)$' \| \
21251 . : '\(.\)' 2>/dev/null ||
21253 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21254 /^X\/\(\/\/\)$/{ s//\1/; q; }
21255 /^X\/\(\/\).*/{ s//\1/; q; }
21259 # PATH needs CR, and LINENO needs CR and PATH.
21260 # Avoid depending upon Character Ranges.
21261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21264 as_cr_digits='0123456789'
21265 as_cr_alnum=$as_cr_Letters$as_cr_digits
21267 # The user is always right.
21268 if test "${PATH_SEPARATOR+set}" != set; then
21269 echo "#! /bin/sh" >conf$$.sh
21270 echo "exit 0" >>conf$$.sh
21272 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21281 as_lineno_1=$LINENO
21282 as_lineno_2=$LINENO
21283 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21284 test "x$as_lineno_1" != "x$as_lineno_2" &&
21285 test "x$as_lineno_3" = "x$as_lineno_2" || {
21286 # Find who we are. Look in the path if we contain no path at all
21289 *[\\/]* ) as_myself=$0 ;;
21290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21291 for as_dir in $PATH
21294 test -z "$as_dir" && as_dir=.
21295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21300 # We did not find ourselves, most probably we were run as `sh COMMAND'
21301 # in which case we are not to be found in the path.
21302 if test "x$as_myself" = x; then
21305 if test ! -f "$as_myself"; then
21306 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21307 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21308 { (exit 1); exit 1; }; }
21310 case $CONFIG_SHELL in
21312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21313 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21316 test -z "$as_dir" && as_dir=.
21317 for as_base in sh bash ksh sh5; do
21320 if ("$as_dir/$as_base" -c '
21321 as_lineno_1=$LINENO
21322 as_lineno_2=$LINENO
21323 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21324 test "x$as_lineno_1" != "x$as_lineno_2" &&
21325 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21326 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21327 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21328 CONFIG_SHELL=$as_dir/$as_base
21329 export CONFIG_SHELL
21330 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21338 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21339 # uniformly replaced by the line number. The first 'sed' inserts a
21340 # line-number line before each line; the second 'sed' does the real
21341 # work. The second script uses 'N' to pair each line-number line
21342 # with the numbered line, and appends trailing '-' during
21343 # substitution so that $LINENO is not a special case at line end.
21344 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21345 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21346 sed '=' <$as_myself |
21351 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21354 s,^['$as_cr_digits']*\n,,
21355 ' >$as_me.lineno &&
21356 chmod +x $as_me.lineno ||
21357 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21358 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21359 { (exit 1); exit 1; }; }
21361 # Don't try to exec as it changes $[0], causing all sort of problems
21362 # (the dirname of $[0] is not the place where we might find the
21363 # original and so on. Autoconf is especially sensible to this).
21365 # Exit status is that of the last command.
21370 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21371 *c*,-n*) ECHO_N= ECHO_C='
21373 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21374 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21377 if expr a : '\(a\)' >/dev/null 2>&1; then
21383 rm -f conf$$ conf$$.exe conf$$.file
21385 if ln -s conf$$.file conf$$ 2>/dev/null; then
21386 # We could just check for DJGPP; but this test a) works b) is more generic
21387 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21388 if test -f conf$$.exe; then
21389 # Don't use ln at all; we don't have any links
21394 elif ln conf$$.file conf$$ 2>/dev/null; then
21399 rm -f conf$$ conf$$.exe conf$$.file
21401 if mkdir -p . 2>/dev/null; then
21404 test -d ./-p && rmdir ./-p
21408 as_executable_p="test -f"
21410 # Sed expression to map a string onto a valid CPP name.
21411 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21413 # Sed expression to map a string onto a valid variable name.
21414 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21418 # We need space, tab and new line, in precisely that order.
21428 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21429 # report actual input values of CONFIG_FILES etc. instead of their
21430 # values after options handling. Logging --version etc. is OK.
21434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21435 ## Running $as_me. ##
21440 This file was extended by $as_me, which was
21441 generated by GNU Autoconf 2.59. Invocation command line was
21443 CONFIG_FILES = $CONFIG_FILES
21444 CONFIG_HEADERS = $CONFIG_HEADERS
21445 CONFIG_LINKS = $CONFIG_LINKS
21446 CONFIG_COMMANDS = $CONFIG_COMMANDS
21450 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21454 # Files that config.status was made for.
21455 if test -n "$ac_config_files"; then
21456 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21459 if test -n "$ac_config_headers"; then
21460 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21463 if test -n "$ac_config_links"; then
21464 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21467 if test -n "$ac_config_commands"; then
21468 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21471 cat >>$CONFIG_STATUS <<\_ACEOF
21474 \`$as_me' instantiates files from templates according to the
21475 current configuration.
21477 Usage: $0 [OPTIONS] [FILE]...
21479 -h, --help print this help, then exit
21480 -V, --version print version number, then exit
21481 -q, --quiet do not print progress messages
21482 -d, --debug don't remove temporary files
21483 --recheck update $as_me by reconfiguring in the same conditions
21484 --file=FILE[:TEMPLATE]
21485 instantiate the configuration file FILE
21486 --header=FILE[:TEMPLATE]
21487 instantiate the configuration header FILE
21489 Configuration files:
21492 Configuration headers:
21495 Configuration commands:
21498 Report bugs to <bug-autoconf@gnu.org>."
21501 cat >>$CONFIG_STATUS <<_ACEOF
21504 configured by $0, generated by GNU Autoconf 2.59,
21505 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21507 Copyright (C) 2003 Free Software Foundation, Inc.
21508 This config.status script is free software; the Free Software Foundation
21509 gives unlimited permission to copy, distribute and modify it."
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21515 # If no file are specified by the user, then we need to provide default
21516 # value. By we need to know if files were specified by the user.
21522 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21523 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21531 *) # This is not an option, so the user has probably given explicit
21534 ac_need_defaults=false;;
21538 # Handling of the options.
21540 cat >>$CONFIG_STATUS <<\_ACEOF
21541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21543 --version | --vers* | -V )
21544 echo "$ac_cs_version"; exit 0 ;;
21546 # Conflict between --help and --header
21547 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21548 Try \`$0 --help' for more information." >&5
21549 echo "$as_me: error: ambiguous option: $1
21550 Try \`$0 --help' for more information." >&2;}
21551 { (exit 1); exit 1; }; };;
21552 --help | --hel | -h )
21553 echo "$ac_cs_usage"; exit 0 ;;
21554 --debug | --d* | -d )
21556 --file | --fil | --fi | --f )
21558 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21559 ac_need_defaults=false;;
21560 --header | --heade | --head | --hea )
21562 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21563 ac_need_defaults=false;;
21564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21568 # This is an error.
21569 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21570 Try \`$0 --help' for more information." >&5
21571 echo "$as_me: error: unrecognized option: $1
21572 Try \`$0 --help' for more information." >&2;}
21573 { (exit 1); exit 1; }; } ;;
21575 *) ac_config_targets="$ac_config_targets $1" ;;
21581 ac_configure_extra_args=
21583 if $ac_cs_silent; then
21585 ac_configure_extra_args="$ac_configure_extra_args --silent"
21589 cat >>$CONFIG_STATUS <<_ACEOF
21590 if \$ac_cs_recheck; then
21591 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21592 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21597 cat >>$CONFIG_STATUS <<_ACEOF
21599 # INIT-COMMANDS section.
21602 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21608 cat >>$CONFIG_STATUS <<\_ACEOF
21609 for ac_config_target in $ac_config_targets
21611 case "$ac_config_target" in
21612 # Handling of arguments.
21613 "aubio.pc" ) CONFIG_FILES="$CONFIG_FILES aubio.pc" ;;
21614 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21615 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21616 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21617 "sounds/Makefile" ) CONFIG_FILES="$CONFIG_FILES sounds/Makefile" ;;
21618 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21619 "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
21620 "python/aubio/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/aubio/Makefile" ;;
21621 "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
21622 "plugins/audacity/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/audacity/Makefile" ;;
21623 "plugins/audacity/plug-ins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/audacity/plug-ins/Makefile" ;;
21624 "plugins/wavesurfer/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/wavesurfer/Makefile" ;;
21625 "plugins/puredata/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/puredata/Makefile" ;;
21626 "swig/Makefile" ) CONFIG_FILES="$CONFIG_FILES swig/Makefile" ;;
21627 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21628 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21629 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21630 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21631 { (exit 1); exit 1; }; };;
21635 # If the user did not use the arguments to specify the items to instantiate,
21636 # then the envvar interface is used. Set only those that are not.
21637 # We use the long form for the default assignment because of an extremely
21638 # bizarre bug on SunOS 4.1.3.
21639 if $ac_need_defaults; then
21640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21642 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21645 # Have a temporary directory for convenience. Make it in the build tree
21646 # simply because there is no reason to put it here, and in addition,
21647 # creating and moving files from /tmp can sometimes cause problems.
21648 # Create a temporary directory, and hook for its removal unless debugging.
21651 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21652 trap '{ (exit 1); exit 1; }' 1 2 13 15
21655 # Create a (secure) tmp directory for tmp files.
21658 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21659 test -n "$tmp" && test -d "$tmp"
21662 tmp=./confstat$$-$RANDOM
21663 (umask 077 && mkdir $tmp)
21666 echo "$me: cannot create a temporary directory in ." >&2
21667 { (exit 1); exit 1; }
21672 cat >>$CONFIG_STATUS <<_ACEOF
21675 # CONFIG_FILES section.
21678 # No need to generate the scripts if there are no CONFIG_FILES.
21679 # This happens for instance when ./config.status config.h
21680 if test -n "\$CONFIG_FILES"; then
21681 # Protect against being on the right side of a sed subst in config.status.
21682 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21683 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21684 s,@SHELL@,$SHELL,;t t
21685 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21686 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21687 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21688 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21689 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21690 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21691 s,@exec_prefix@,$exec_prefix,;t t
21692 s,@prefix@,$prefix,;t t
21693 s,@program_transform_name@,$program_transform_name,;t t
21694 s,@bindir@,$bindir,;t t
21695 s,@sbindir@,$sbindir,;t t
21696 s,@libexecdir@,$libexecdir,;t t
21697 s,@datadir@,$datadir,;t t
21698 s,@sysconfdir@,$sysconfdir,;t t
21699 s,@sharedstatedir@,$sharedstatedir,;t t
21700 s,@localstatedir@,$localstatedir,;t t
21701 s,@libdir@,$libdir,;t t
21702 s,@includedir@,$includedir,;t t
21703 s,@oldincludedir@,$oldincludedir,;t t
21704 s,@infodir@,$infodir,;t t
21705 s,@mandir@,$mandir,;t t
21706 s,@build_alias@,$build_alias,;t t
21707 s,@host_alias@,$host_alias,;t t
21708 s,@target_alias@,$target_alias,;t t
21709 s,@DEFS@,$DEFS,;t t
21710 s,@ECHO_C@,$ECHO_C,;t t
21711 s,@ECHO_N@,$ECHO_N,;t t
21712 s,@ECHO_T@,$ECHO_T,;t t
21713 s,@LIBS@,$LIBS,;t t
21714 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21715 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21716 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21717 s,@CYGPATH_W@,$CYGPATH_W,;t t
21718 s,@PACKAGE@,$PACKAGE,;t t
21719 s,@VERSION@,$VERSION,;t t
21720 s,@ACLOCAL@,$ACLOCAL,;t t
21721 s,@AUTOCONF@,$AUTOCONF,;t t
21722 s,@AUTOMAKE@,$AUTOMAKE,;t t
21723 s,@AUTOHEADER@,$AUTOHEADER,;t t
21724 s,@MAKEINFO@,$MAKEINFO,;t t
21725 s,@AMTAR@,$AMTAR,;t t
21726 s,@install_sh@,$install_sh,;t t
21727 s,@STRIP@,$STRIP,;t t
21728 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21729 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21731 s,@SET_MAKE@,$SET_MAKE,;t t
21732 s,@am__leading_dot@,$am__leading_dot,;t t
21733 s,@build@,$build,;t t
21734 s,@build_cpu@,$build_cpu,;t t
21735 s,@build_vendor@,$build_vendor,;t t
21736 s,@build_os@,$build_os,;t t
21737 s,@host@,$host,;t t
21738 s,@host_cpu@,$host_cpu,;t t
21739 s,@host_vendor@,$host_vendor,;t t
21740 s,@host_os@,$host_os,;t t
21742 s,@CFLAGS@,$CFLAGS,;t t
21743 s,@LDFLAGS@,$LDFLAGS,;t t
21744 s,@CPPFLAGS@,$CPPFLAGS,;t t
21745 s,@ac_ct_CC@,$ac_ct_CC,;t t
21746 s,@EXEEXT@,$EXEEXT,;t t
21747 s,@OBJEXT@,$OBJEXT,;t t
21748 s,@DEPDIR@,$DEPDIR,;t t
21749 s,@am__include@,$am__include,;t t
21750 s,@am__quote@,$am__quote,;t t
21751 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21752 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21753 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21754 s,@CCDEPMODE@,$CCDEPMODE,;t t
21755 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21756 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21757 s,@EGREP@,$EGREP,;t t
21758 s,@LN_S@,$LN_S,;t t
21759 s,@ECHO@,$ECHO,;t t
21761 s,@ac_ct_AR@,$ac_ct_AR,;t t
21762 s,@RANLIB@,$RANLIB,;t t
21763 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21766 s,@CXXFLAGS@,$CXXFLAGS,;t t
21767 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21768 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21769 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21770 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21771 s,@CXXCPP@,$CXXCPP,;t t
21773 s,@FFLAGS@,$FFLAGS,;t t
21774 s,@ac_ct_F77@,$ac_ct_F77,;t t
21775 s,@LIBTOOL@,$LIBTOOL,;t t
21776 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21777 s,@FFTWLIB_CFLAGS@,$FFTWLIB_CFLAGS,;t t
21778 s,@FFTWLIB_LIBS@,$FFTWLIB_LIBS,;t t
21779 s,@SNDLIB_CFLAGS@,$SNDLIB_CFLAGS,;t t
21780 s,@SNDLIB_LIBS@,$SNDLIB_LIBS,;t t
21781 s,@SAMPLERATE_CFLAGS@,$SAMPLERATE_CFLAGS,;t t
21782 s,@SAMPLERATE_LIBS@,$SAMPLERATE_LIBS,;t t
21783 s,@JACK_CFLAGS@,$JACK_CFLAGS,;t t
21784 s,@JACK_LIBS@,$JACK_LIBS,;t t
21785 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
21786 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
21787 s,@LADCCA_CFLAGS@,$LADCCA_CFLAGS,;t t
21788 s,@LADCCA_LIBS@,$LADCCA_LIBS,;t t
21789 s,@PYTHON@,$PYTHON,;t t
21790 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
21791 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
21792 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
21793 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
21794 s,@pythondir@,$pythondir,;t t
21795 s,@pkgpythondir@,$pkgpythondir,;t t
21796 s,@pyexecdir@,$pyexecdir,;t t
21797 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
21798 s,@LIBOBJS@,$LIBOBJS,;t t
21799 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21804 cat >>$CONFIG_STATUS <<\_ACEOF
21805 # Split the substitutions into bite-sized pieces for seds with
21806 # small command number limits, like on Digital OSF/1 and HP-UX.
21807 ac_max_sed_lines=48
21808 ac_sed_frag=1 # Number of current file.
21809 ac_beg=1 # First line for current file.
21810 ac_end=$ac_max_sed_lines # Line after last line for current file.
21813 while $ac_more_lines; do
21814 if test $ac_beg -gt 1; then
21815 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21817 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21819 if test ! -s $tmp/subs.frag; then
21820 ac_more_lines=false
21822 # The purpose of the label and of the branching condition is to
21823 # speed up the sed processing (if there are no `@' at all, there
21824 # is no need to browse any of the substitutions).
21825 # These are the two extra sed commands mentioned above.
21827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21828 if test -z "$ac_sed_cmds"; then
21829 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21831 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21833 ac_sed_frag=`expr $ac_sed_frag + 1`
21835 ac_end=`expr $ac_end + $ac_max_sed_lines`
21838 if test -z "$ac_sed_cmds"; then
21841 fi # test -n "$CONFIG_FILES"
21844 cat >>$CONFIG_STATUS <<\_ACEOF
21845 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21846 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21848 - | *:- | *:-:* ) # input from stdin
21850 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21851 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21852 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21853 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21854 * ) ac_file_in=$ac_file.in ;;
21857 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21858 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21860 X"$ac_file" : 'X\(//\)[^/]' \| \
21861 X"$ac_file" : 'X\(//\)$' \| \
21862 X"$ac_file" : 'X\(/\)' \| \
21863 . : '\(.\)' 2>/dev/null ||
21865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21867 /^X\(\/\/\)$/{ s//\1/; q; }
21868 /^X\(\/\).*/{ s//\1/; q; }
21870 { if $as_mkdir_p; then
21875 while test ! -d "$as_dir"; do
21876 as_dirs="$as_dir $as_dirs"
21877 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21879 X"$as_dir" : 'X\(//\)[^/]' \| \
21880 X"$as_dir" : 'X\(//\)$' \| \
21881 X"$as_dir" : 'X\(/\)' \| \
21882 . : '\(.\)' 2>/dev/null ||
21884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21886 /^X\(\/\/\)$/{ s//\1/; q; }
21887 /^X\(\/\).*/{ s//\1/; q; }
21890 test ! -n "$as_dirs" || mkdir $as_dirs
21891 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21892 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21893 { (exit 1); exit 1; }; }; }
21897 if test "$ac_dir" != .; then
21898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21899 # A "../" for each directory in $ac_dir_suffix.
21900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21902 ac_dir_suffix= ac_top_builddir=
21906 .) # No --srcdir option. We are building in place.
21908 if test -z "$ac_top_builddir"; then
21911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21913 [\\/]* | ?:[\\/]* ) # Absolute path.
21914 ac_srcdir=$srcdir$ac_dir_suffix;
21915 ac_top_srcdir=$srcdir ;;
21916 *) # Relative path.
21917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21921 # Do not use `cd foo && pwd` to compute absolute paths, because
21922 # the directories may not exist.
21924 .) ac_abs_builddir="$ac_dir";;
21927 .) ac_abs_builddir=`pwd`;;
21928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21932 case $ac_abs_builddir in
21933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21935 case ${ac_top_builddir}. in
21936 .) ac_abs_top_builddir=$ac_abs_builddir;;
21937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21941 case $ac_abs_builddir in
21942 .) ac_abs_srcdir=$ac_srcdir;;
21945 .) ac_abs_srcdir=$ac_abs_builddir;;
21946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21950 case $ac_abs_builddir in
21951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21953 case $ac_top_srcdir in
21954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21962 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21963 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21966 # Let's still pretend it is `configure' which instantiates (i.e., don't
21967 # use $as_me), people would be surprised to read:
21968 # /* config.h. Generated by config.status. */
21969 if test x"$ac_file" = x-; then
21972 configure_input="$ac_file. "
21974 configure_input=$configure_input"Generated from `echo $ac_file_in |
21975 sed 's,.*/,,'` by configure."
21977 # First look for the input files in the build tree, otherwise in the
21979 ac_file_inputs=`IFS=:
21980 for f in $ac_file_in; do
21982 -) echo $tmp/stdin ;;
21984 # Absolute (can't be DOS-style, as IFS=:)
21985 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21986 echo "$as_me: error: cannot find input file: $f" >&2;}
21987 { (exit 1); exit 1; }; }
21990 if test -f "$f"; then
21993 elif test -f "$srcdir/$f"; then
21998 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21999 echo "$as_me: error: cannot find input file: $f" >&2;}
22000 { (exit 1); exit 1; }; }
22003 done` || { (exit 1); exit 1; }
22005 if test x"$ac_file" != x-; then
22006 { echo "$as_me:$LINENO: creating $ac_file" >&5
22007 echo "$as_me: creating $ac_file" >&6;}
22011 cat >>$CONFIG_STATUS <<_ACEOF
22015 cat >>$CONFIG_STATUS <<\_ACEOF
22017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22018 s,@configure_input@,$configure_input,;t t
22019 s,@srcdir@,$ac_srcdir,;t t
22020 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22021 s,@top_srcdir@,$ac_top_srcdir,;t t
22022 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22023 s,@builddir@,$ac_builddir,;t t
22024 s,@abs_builddir@,$ac_abs_builddir,;t t
22025 s,@top_builddir@,$ac_top_builddir,;t t
22026 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22027 s,@INSTALL@,$ac_INSTALL,;t t
22028 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22030 if test x"$ac_file" != x-; then
22031 mv $tmp/out $ac_file
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22042 # CONFIG_HEADER section.
22045 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22046 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22048 # ac_d sets the value in "#define NAME VALUE" lines.
22049 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22050 ac_dB='[ ].*$,\1#\2'
22053 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22054 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22055 ac_uB='$,\1#\2define\3'
22059 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22060 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22062 - | *:- | *:-:* ) # input from stdin
22064 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22065 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22066 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22067 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22068 * ) ac_file_in=$ac_file.in ;;
22071 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22072 echo "$as_me: creating $ac_file" >&6;}
22074 # First look for the input files in the build tree, otherwise in the
22076 ac_file_inputs=`IFS=:
22077 for f in $ac_file_in; do
22079 -) echo $tmp/stdin ;;
22081 # Absolute (can't be DOS-style, as IFS=:)
22082 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22083 echo "$as_me: error: cannot find input file: $f" >&2;}
22084 { (exit 1); exit 1; }; }
22085 # Do quote $f, to prevent DOS paths from being IFS'd.
22088 if test -f "$f"; then
22091 elif test -f "$srcdir/$f"; then
22096 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22097 echo "$as_me: error: cannot find input file: $f" >&2;}
22098 { (exit 1); exit 1; }; }
22101 done` || { (exit 1); exit 1; }
22102 # Remove the trailing spaces.
22103 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22107 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22108 # `conftest.undefs', that substitutes the proper values into
22109 # config.h.in to produce config.h. The first handles `#define'
22110 # templates, and the second `#undef' templates.
22111 # And first: Protect against being on the right side of a sed subst in
22112 # config.status. Protect against being in an unquoted here document
22113 # in config.status.
22114 rm -f conftest.defines conftest.undefs
22115 # Using a here document instead of a string reduces the quoting nightmare.
22116 # Putting comments in sed scripts is not portable.
22118 # `end' is used to avoid that the second main sed command (meant for
22119 # 0-ary CPP macros) applies to n-ary macro definitions.
22120 # See the Autoconf documentation for `clear'.
22121 cat >confdef2sed.sed <<\_ACEOF
22126 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22128 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22131 # If some macros were called several times there might be several times
22132 # the same #defines, which is useless. Nevertheless, we may not want to
22133 # sort them, since we want the *last* AC-DEFINE to be honored.
22134 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22135 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22136 rm -f confdef2sed.sed
22138 # This sed command replaces #undef with comments. This is necessary, for
22139 # example, in the case of _POSIX_SOURCE, which is predefined and required
22140 # on some systems where configure will not decide to define it.
22141 cat >>conftest.undefs <<\_ACEOF
22142 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22145 # Break up conftest.defines because some shells have a limit on the size
22146 # of here documents, and old seds have small limits too (100 cmds).
22147 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22148 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22149 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22150 echo ' :' >>$CONFIG_STATUS
22151 rm -f conftest.tail
22152 while grep . conftest.defines >/dev/null
22154 # Write a limited-size here document to $tmp/defines.sed.
22155 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22156 # Speed up: don't consider the non `#define' lines.
22157 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22158 # Work around the forget-to-reset-the-flag bug.
22159 echo 't clr' >>$CONFIG_STATUS
22160 echo ': clr' >>$CONFIG_STATUS
22161 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22163 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22165 mv $tmp/out $tmp/in
22167 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22168 rm -f conftest.defines
22169 mv conftest.tail conftest.defines
22171 rm -f conftest.defines
22172 echo ' fi # grep' >>$CONFIG_STATUS
22173 echo >>$CONFIG_STATUS
22175 # Break up conftest.undefs because some shells have a limit on the size
22176 # of here documents, and old seds have small limits too (100 cmds).
22177 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22178 rm -f conftest.tail
22179 while grep . conftest.undefs >/dev/null
22181 # Write a limited-size here document to $tmp/undefs.sed.
22182 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22183 # Speed up: don't consider the non `#undef'
22184 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22185 # Work around the forget-to-reset-the-flag bug.
22186 echo 't clr' >>$CONFIG_STATUS
22187 echo ': clr' >>$CONFIG_STATUS
22188 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22190 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22192 mv $tmp/out $tmp/in
22194 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22195 rm -f conftest.undefs
22196 mv conftest.tail conftest.undefs
22198 rm -f conftest.undefs
22200 cat >>$CONFIG_STATUS <<\_ACEOF
22201 # Let's still pretend it is `configure' which instantiates (i.e., don't
22202 # use $as_me), people would be surprised to read:
22203 # /* config.h. Generated by config.status. */
22204 if test x"$ac_file" = x-; then
22205 echo "/* Generated by configure. */" >$tmp/config.h
22207 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22209 cat $tmp/in >>$tmp/config.h
22211 if test x"$ac_file" != x-; then
22212 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22213 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22214 echo "$as_me: $ac_file is unchanged" >&6;}
22216 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22217 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22218 X"$ac_file" : 'X\(//\)[^/]' \| \
22219 X"$ac_file" : 'X\(//\)$' \| \
22220 X"$ac_file" : 'X\(/\)' \| \
22221 . : '\(.\)' 2>/dev/null ||
22223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22225 /^X\(\/\/\)$/{ s//\1/; q; }
22226 /^X\(\/\).*/{ s//\1/; q; }
22228 { if $as_mkdir_p; then
22233 while test ! -d "$as_dir"; do
22234 as_dirs="$as_dir $as_dirs"
22235 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22237 X"$as_dir" : 'X\(//\)[^/]' \| \
22238 X"$as_dir" : 'X\(//\)$' \| \
22239 X"$as_dir" : 'X\(/\)' \| \
22240 . : '\(.\)' 2>/dev/null ||
22242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22244 /^X\(\/\/\)$/{ s//\1/; q; }
22245 /^X\(\/\).*/{ s//\1/; q; }
22248 test ! -n "$as_dirs" || mkdir $as_dirs
22249 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22250 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22251 { (exit 1); exit 1; }; }; }
22254 mv $tmp/config.h $ac_file
22258 rm -f $tmp/config.h
22260 # Compute $ac_file's index in $config_headers.
22262 for _am_header in $config_headers :; do
22263 case $_am_header in
22264 $ac_file | $ac_file:* )
22267 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22270 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22271 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22272 X$ac_file : 'X\(//\)[^/]' \| \
22273 X$ac_file : 'X\(//\)$' \| \
22274 X$ac_file : 'X\(/\)' \| \
22275 . : '\(.\)' 2>/dev/null ||
22277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22279 /^X\(\/\/\)$/{ s//\1/; q; }
22280 /^X\(\/\).*/{ s//\1/; q; }
22281 s/.*/./; q'`/stamp-h$_am_stamp_count
22284 cat >>$CONFIG_STATUS <<\_ACEOF
22287 # CONFIG_COMMANDS section.
22289 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22290 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22291 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22292 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22293 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22294 X"$ac_dest" : 'X\(//\)[^/]' \| \
22295 X"$ac_dest" : 'X\(//\)$' \| \
22296 X"$ac_dest" : 'X\(/\)' \| \
22297 . : '\(.\)' 2>/dev/null ||
22299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22301 /^X\(\/\/\)$/{ s//\1/; q; }
22302 /^X\(\/\).*/{ s//\1/; q; }
22304 { if $as_mkdir_p; then
22309 while test ! -d "$as_dir"; do
22310 as_dirs="$as_dir $as_dirs"
22311 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22313 X"$as_dir" : 'X\(//\)[^/]' \| \
22314 X"$as_dir" : 'X\(//\)$' \| \
22315 X"$as_dir" : 'X\(/\)' \| \
22316 . : '\(.\)' 2>/dev/null ||
22318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22320 /^X\(\/\/\)$/{ s//\1/; q; }
22321 /^X\(\/\).*/{ s//\1/; q; }
22324 test ! -n "$as_dirs" || mkdir $as_dirs
22325 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22326 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22327 { (exit 1); exit 1; }; }; }
22331 if test "$ac_dir" != .; then
22332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22333 # A "../" for each directory in $ac_dir_suffix.
22334 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22336 ac_dir_suffix= ac_top_builddir=
22340 .) # No --srcdir option. We are building in place.
22342 if test -z "$ac_top_builddir"; then
22345 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22347 [\\/]* | ?:[\\/]* ) # Absolute path.
22348 ac_srcdir=$srcdir$ac_dir_suffix;
22349 ac_top_srcdir=$srcdir ;;
22350 *) # Relative path.
22351 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22352 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22355 # Do not use `cd foo && pwd` to compute absolute paths, because
22356 # the directories may not exist.
22358 .) ac_abs_builddir="$ac_dir";;
22361 .) ac_abs_builddir=`pwd`;;
22362 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22363 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22366 case $ac_abs_builddir in
22367 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22369 case ${ac_top_builddir}. in
22370 .) ac_abs_top_builddir=$ac_abs_builddir;;
22371 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22372 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22375 case $ac_abs_builddir in
22376 .) ac_abs_srcdir=$ac_srcdir;;
22379 .) ac_abs_srcdir=$ac_abs_builddir;;
22380 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22381 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22384 case $ac_abs_builddir in
22385 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22387 case $ac_top_srcdir in
22388 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22389 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22390 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22395 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22396 echo "$as_me: executing $ac_dest commands" >&6;}
22398 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22399 # Strip MF so we end up with the name of the file.
22400 mf=`echo "$mf" | sed -e 's/:.*$//'`
22401 # Check whether this is an Automake generated Makefile or not.
22402 # We used to match only the files named `Makefile.in', but
22403 # some people rename them; so instead we look at the file content.
22404 # Grep'ing the first line is not enough: some people post-process
22405 # each Makefile.in and add a new line on top of each file to say so.
22406 # So let's grep whole file.
22407 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22408 dirpart=`(dirname "$mf") 2>/dev/null ||
22409 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22410 X"$mf" : 'X\(//\)[^/]' \| \
22411 X"$mf" : 'X\(//\)$' \| \
22412 X"$mf" : 'X\(/\)' \| \
22413 . : '\(.\)' 2>/dev/null ||
22415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22417 /^X\(\/\/\)$/{ s//\1/; q; }
22418 /^X\(\/\).*/{ s//\1/; q; }
22423 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22424 # Extract the definition of DEP_FILES from the Makefile without
22426 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22427 test -z "$DEPDIR" && continue
22428 # When using ansi2knr, U may be empty or an underscore; expand it
22429 U=`sed -n -e '/^U = / s///p' < "$mf"`
22430 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22431 # We invoke sed twice because it is the simplest approach to
22432 # changing $(DEPDIR) to its actual value in the expansion.
22433 for file in `sed -n -e '
22434 /^DEP_FILES = .*\\\\$/ {
22443 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22444 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22445 # Make sure the directory exists.
22446 test -f "$dirpart/$file" && continue
22447 fdir=`(dirname "$file") 2>/dev/null ||
22448 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22449 X"$file" : 'X\(//\)[^/]' \| \
22450 X"$file" : 'X\(//\)$' \| \
22451 X"$file" : 'X\(/\)' \| \
22452 . : '\(.\)' 2>/dev/null ||
22454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22455 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22456 /^X\(\/\/\)$/{ s//\1/; q; }
22457 /^X\(\/\).*/{ s//\1/; q; }
22459 { if $as_mkdir_p; then
22460 mkdir -p $dirpart/$fdir
22462 as_dir=$dirpart/$fdir
22464 while test ! -d "$as_dir"; do
22465 as_dirs="$as_dir $as_dirs"
22466 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22467 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22468 X"$as_dir" : 'X\(//\)[^/]' \| \
22469 X"$as_dir" : 'X\(//\)$' \| \
22470 X"$as_dir" : 'X\(/\)' \| \
22471 . : '\(.\)' 2>/dev/null ||
22473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22474 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22475 /^X\(\/\/\)$/{ s//\1/; q; }
22476 /^X\(\/\).*/{ s//\1/; q; }
22479 test ! -n "$as_dirs" || mkdir $as_dirs
22480 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22481 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22482 { (exit 1); exit 1; }; }; }
22484 # echo "creating $dirpart/$file"
22485 echo '# dummy' > "$dirpart/$file"
22493 cat >>$CONFIG_STATUS <<\_ACEOF
22495 { (exit 0); exit 0; }
22497 chmod +x $CONFIG_STATUS
22498 ac_clean_files=$ac_clean_files_save
22501 # configure is writing to config.log, and then calls config.status.
22502 # config.status does its own redirection, appending to config.log.
22503 # Unfortunately, on DOS this fails, as config.log is still kept open
22504 # by configure, so config.status won't be able to write to it; its
22505 # output is simply discarded. So we exec the FD to /dev/null,
22506 # effectively closing config.log, so it can be properly (re)opened and
22507 # appended to by config.status. When coming back to configure, we
22508 # need to make the FD available again.
22509 if test "$no_create" != yes; then
22511 ac_config_status_args=
22512 test "$silent" = yes &&
22513 ac_config_status_args="$ac_config_status_args --quiet"
22515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22518 # would make configure fail if this is the last instruction.
22519 $ac_cs_success || { (exit 1); exit 1; }
22524 echo "**************************************************************"
22526 if test "${FFTW3F_SUPPORT}" = "1"; then
22527 echo "Fftw3: yes (fftw3f)"
22529 if test "${FFTW3_SUPPORT}" = "1"; then
22535 if test "${SNDLIB_SUPPORT}" = "1"; then
22536 echo "Libsndfile: yes"
22538 echo "Libsndfile: no"
22540 if test "${SAMPLERATE_SUPPORT}" = "1"; then
22541 echo "Libsamplerate: yes"
22543 echo "Libsamplerate: no"
22545 if test "${JACK_SUPPORT}" = "1"; then
22550 if test "${ALSA_SUPPORT}" = "1"; then
22551 echo "ALSA midi: yes"
22553 echo "ALSA midi: no"
22555 if test "${LADCCA_SUPPORT}" = "1"; then
22560 echo "**************************************************************"
22561 echo Configuration completed successfully. Type \'make\' to build ${PACKAGE}