[svn r52] Added reference to the GSTINTERFACES_LIBS (gst_x_overlay* functions).
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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 # Factoring default headers for most tests.
429 ac_includes_default="\
432 # include <sys/types.h>
435 # include <sys/stat.h>
446 # if !STDC_HEADERS && HAVE_MEMORY_H
452 # include <strings.h>
455 # include <inttypes.h>
465 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GST_PLUGINS_VERSION GST_PLUGINS_VERSION_RELEASE GST_PLUGINS_VERSION_MAJOR GST_PLUGINS_VERSION_MINOR GST_PLUGINS_VERSION_MICRO GST_PLUGINS_VERSION_NANO PACKAGE VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 ACLOCAL_AMFLAGS CCAS CCASFLAGS ERROR_CFLAGS HAVE_CXX HAVE_PKGCONFIG PKG_CONFIG GST_CFLAGS GST_LIBS GST_MAJORMINOR GST_BASE_CFLAGS GST_BASE_LIBS GST_PLUGINS_BASE_CFLAGS GST_PLUGINS_BASE_LIBS plugindir GST_PLUGIN_LDFLAGS LIBOBJS LTLIBOBJS'
468 # Initialize some variables set by options.
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
480 program_transform_name=s,x,x,
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518 # Accept the important Cygnus configure options, so we can diagnose typos.
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
540 cache_file=config.cache ;;
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 datadir=$ac_optarg ;;
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 eval "enable_$ac_feature='$ac_optarg'" ;;
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
583 -help | --help | --hel | --he | -h)
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
607 -libdir | --libdir | --libdi | --libd)
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 # Obsolete; use --without-fp.
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 sbindir=$ac_optarg ;;
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 sharedstatedir=$ac_optarg ;;
711 -site | --site | --sit)
713 -site=* | --site=* | --sit=*)
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 -version | --version | --versio | --versi | --vers | -V)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 eval "with_$ac_package='$ac_optarg'" ;;
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
762 # Obsolete; use --with-x.
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
814 eval ac_val=$`echo $ac_var`
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
826 eval ac_val=$`echo $ac_var`
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855 test "$silent" = yes && exec 6>/dev/null
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
875 if test ! -r $srcdir/$ac_unique_file; then
879 ac_srcdir_defaulted=no
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
946 ac_env_CCAS_set=${CCAS+set}
947 ac_env_CCAS_value=$CCAS
948 ac_cv_env_CCAS_set=${CCAS+set}
949 ac_cv_env_CCAS_value=$CCAS
950 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
951 ac_env_CCASFLAGS_value=$CCASFLAGS
952 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
953 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
956 # Report the --help message.
958 if test "$ac_init_help" = "long"; then
959 # Omit some internal or obsolete options to make the list less imposing.
960 # This message is too long to be a string in the A/UX 3.1 sh.
962 \`configure' configures this package to adapt to many kinds of systems.
964 Usage: $0 [OPTION]... [VAR=VALUE]...
966 To assign environment variables (e.g., CC, CFLAGS...), specify them as
967 VAR=VALUE. See below for descriptions of some of the useful variables.
969 Defaults for the options are specified in brackets.
972 -h, --help display this help and exit
973 --help=short display options specific to this package
974 --help=recursive display the short help of all the included packages
975 -V, --version display version information and exit
976 -q, --quiet, --silent do not print \`checking...' messages
977 --cache-file=FILE cache test results in FILE [disabled]
978 -C, --config-cache alias for \`--cache-file=config.cache'
979 -n, --no-create do not create output files
980 --srcdir=DIR find the sources in DIR [configure dir or \`..']
985 Installation directories:
986 --prefix=PREFIX install architecture-independent files in PREFIX
988 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
991 By default, \`make install' will install all the files in
992 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
993 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
994 for instance \`--prefix=\$HOME'.
996 For better control, use the options below.
998 Fine tuning of the installation directories:
999 --bindir=DIR user executables [EPREFIX/bin]
1000 --sbindir=DIR system admin executables [EPREFIX/sbin]
1001 --libexecdir=DIR program executables [EPREFIX/libexec]
1002 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1003 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1004 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1005 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1006 --libdir=DIR object code libraries [EPREFIX/lib]
1007 --includedir=DIR C header files [PREFIX/include]
1008 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1009 --infodir=DIR info documentation [PREFIX/info]
1010 --mandir=DIR man documentation [PREFIX/man]
1016 --program-prefix=PREFIX prepend PREFIX to installed program names
1017 --program-suffix=SUFFIX append SUFFIX to installed program names
1018 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1021 --build=BUILD configure for building on BUILD [guessed]
1022 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1023 --target=TARGET configure for building compilers for TARGET [HOST]
1027 if test -n "$ac_init_help"; then
1032 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1033 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=no]
1036 --enable-maintainer-mode enable make rules and dependencies not useful
1037 (and sometimes confusing) to the casual installer
1038 --enable-shared[=PKGS]
1039 build shared libraries [default=yes]
1040 --enable-fast-install[=PKGS]
1041 optimize for fast installation [default=yes]
1042 --disable-dependency-tracking speeds up one-time build
1043 --enable-dependency-tracking do not reject slow dependency extractors
1044 --disable-libtool-lock avoid locking (might break parallel builds)
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1050 --with-pic try to use only PIC/non-PIC objects [default=use
1053 include additional configurations [automatic]
1055 Some influential environment variables:
1056 CC C compiler command
1057 CFLAGS C compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1063 CXX C++ compiler command
1064 CXXFLAGS C++ compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1068 CCAS assembler compiler command (defaults to CC)
1069 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1071 Use these variables to override the choices made by `configure' or to help
1072 it to find libraries and programs with nonstandard names/locations.
1077 if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1084 if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089 ac_dir_suffix= ac_top_builddir=
1093 .) # No --srcdir option. We are building in place.
1095 if test -z "$ac_top_builddir"; then
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 # Do not use `cd foo && pwd` to compute absolute paths, because
1109 # the directories may not exist.
1111 .) ac_abs_builddir="$ac_dir";;
1114 .) ac_abs_builddir=`pwd`;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119 case $ac_abs_builddir in
1120 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 case ${ac_top_builddir}. in
1123 .) ac_abs_top_builddir=$ac_abs_builddir;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128 case $ac_abs_builddir in
1129 .) ac_abs_srcdir=$ac_srcdir;;
1132 .) ac_abs_srcdir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137 case $ac_abs_builddir in
1138 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 case $ac_top_srcdir in
1141 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148 # Check for guested configure; otherwise get Cygnus style configure.
1149 if test -f $ac_srcdir/configure.gnu; then
1151 $SHELL $ac_srcdir/configure.gnu --help=recursive
1152 elif test -f $ac_srcdir/configure; then
1154 $SHELL $ac_srcdir/configure --help=recursive
1155 elif test -f $ac_srcdir/configure.ac ||
1156 test -f $ac_srcdir/configure.in; then
1158 $ac_configure --help
1160 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166 test -n "$ac_init_help" && exit 0
1167 if $ac_init_version; then
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1181 It was created by $as_me, which was
1182 generated by GNU Autoconf 2.59. Invocation command line was
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216 test -z "$as_dir" && as_dir=.
1217 echo "PATH: $as_dir"
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1241 ac_must_keep_next=false
1247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258 if test $ac_must_keep_next = true; then
1259 ac_must_keep_next=false # Got value, back to normal.
1262 *=* | --config-cache | -C | -disable-* | --disable-* \
1263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265 | -with-* | --with-* | -without-* | --without-* | --x)
1266 case "$ac_configure_args0 " in
1267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270 -* ) ac_must_keep_next=true ;;
1273 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274 # Get rid of the leading space.
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log. We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289 # Save into config.log some information that might help in debugging.
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1299 # The following way of writing the cache mishandles newlines in values,
1302 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1322 for ac_var in $ac_subst_vars
1324 eval ac_val=$`echo $ac_var`
1325 echo "$ac_var='"'"'$ac_val'"'"'"
1329 if test -n "$ac_subst_files"; then
1336 for ac_var in $ac_subst_files
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1344 if test -s confdefs.h; then
1351 sed "/^$/d" confdefs.h | sort
1354 test "$ac_signal" != 0 &&
1355 echo "$as_me: caught signal $ac_signal"
1356 echo "$as_me: exit $exit_status"
1358 rm -f core *.core &&
1359 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362 for ac_signal in 1 2 13 15; do
1363 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 # Predefined preprocessor variables.
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402 if test "x$prefix" != xNONE; then
1403 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408 for ac_site_file in $CONFIG_SITE; do
1409 if test -r "$ac_site_file"; then
1410 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412 sed 's/^/| /' "$ac_site_file" >&5
1417 if test -r "$cache_file"; then
1418 # Some versions of bash will fail to source /dev/null (special
1419 # files actually), so we avoid doing that.
1420 if test -f "$cache_file"; then
1421 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1424 [\\/]* | ?:[\\/]* ) . $cache_file;;
1425 *) . ./$cache_file;;
1429 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1434 # Check that the precious variables saved in the cache have kept the same
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440 eval ac_new_set=\$ac_env_${ac_var}_set
1441 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442 eval ac_new_val="\$ac_env_${ac_var}_value"
1443 case $ac_old_set,$ac_new_set in
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1449 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451 ac_cache_corrupted=: ;;
1454 if test "x$ac_old_val" != "x$ac_new_val"; then
1455 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1458 echo "$as_me: former value: $ac_old_val" >&2;}
1459 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1460 echo "$as_me: current value: $ac_new_val" >&2;}
1461 ac_cache_corrupted=:
1464 # Pass precious variables to config.status.
1465 if test "$ac_new_set" = set; then
1467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469 *) ac_arg=$ac_var=$ac_new_val ;;
1471 case " $ac_configure_args " in
1472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477 if $ac_cache_corrupted; then
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1511 if test -f $ac_dir/install-sh; then
1513 ac_install_sh="$ac_aux_dir/install-sh -c"
1515 elif test -f $ac_dir/install.sh; then
1517 ac_install_sh="$ac_aux_dir/install.sh -c"
1519 elif test -f $ac_dir/shtool; then
1521 ac_install_sh="$ac_aux_dir/shtool install -c"
1525 if test -z "$ac_aux_dir"; then
1526 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1527 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1528 { (exit 1); exit 1; }; }
1530 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1531 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1532 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1534 # Make sure we can run config.sub.
1535 $ac_config_sub sun4 >/dev/null 2>&1 ||
1536 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1537 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1538 { (exit 1); exit 1; }; }
1540 echo "$as_me:$LINENO: checking build system type" >&5
1541 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1542 if test "${ac_cv_build+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 ac_cv_build_alias=$build_alias
1546 test -z "$ac_cv_build_alias" &&
1547 ac_cv_build_alias=`$ac_config_guess`
1548 test -z "$ac_cv_build_alias" &&
1549 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1551 { (exit 1); exit 1; }; }
1552 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1554 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1555 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1559 echo "${ECHO_T}$ac_cv_build" >&6
1561 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566 echo "$as_me:$LINENO: checking host system type" >&5
1567 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1568 if test "${ac_cv_host+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 ac_cv_host_alias=$host_alias
1572 test -z "$ac_cv_host_alias" &&
1573 ac_cv_host_alias=$ac_cv_build_alias
1574 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1575 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1576 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1577 { (exit 1); exit 1; }; }
1580 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1581 echo "${ECHO_T}$ac_cv_host" >&6
1583 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588 echo "$as_me:$LINENO: checking target system type" >&5
1589 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1590 if test "${ac_cv_target+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 ac_cv_target_alias=$target_alias
1594 test "x$ac_cv_target_alias" = "x" &&
1595 ac_cv_target_alias=$ac_cv_host_alias
1596 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1598 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1602 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1603 echo "${ECHO_T}$ac_cv_target" >&6
1604 target=$ac_cv_target
1605 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610 # The aliases save the names the user supplied, while $host etc.
1611 # will get canonicalized.
1612 test -n "$target_alias" &&
1613 test "$program_prefix$program_suffix$program_transform_name" = \
1615 program_prefix=${target_alias}-
1618 [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;;
1619 *) ac_macro_dir=$srcdir/m4 ;;
1621 if test -d "$ac_macro_dir"; then :
1623 { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
1624 echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
1625 { (exit 1); exit 1; }; }
1628 # Check whether --enable-static or --disable-static was given.
1629 if test "${enable_static+set}" = set; then
1630 enableval="$enable_static"
1631 p=${PACKAGE-default}
1633 yes) enable_static=yes ;;
1634 no) enable_static=no ;;
1637 # Look at the argument we got. We use all the common list separators.
1638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1639 for pkg in $enableval; do
1641 if test "X$pkg" = "X$p"; then
1654 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1655 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1656 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1657 if test "${enable_maintainer_mode+set}" = set; then
1658 enableval="$enable_maintainer_mode"
1659 USE_MAINTAINER_MODE=$enableval
1661 USE_MAINTAINER_MODE=no
1663 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1664 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1667 if test $USE_MAINTAINER_MODE = yes; then
1668 MAINTAINER_MODE_TRUE=
1669 MAINTAINER_MODE_FALSE='#'
1671 MAINTAINER_MODE_TRUE='#'
1672 MAINTAINER_MODE_FALSE=
1675 MAINT=$MAINTAINER_MODE_TRUE
1680 PACKAGE=gst-plugins-nuvdemux
1681 GST_PLUGINS_VERSION_MAJOR=0
1682 GST_PLUGINS_VERSION_MINOR=10
1683 GST_PLUGINS_VERSION_MICRO=0
1685 GST_PLUGINS_VERSION_NANO=$NANO
1686 if test "x$NANO" = "x" || test "x$NANO" = "x0";
1688 { echo "$as_me:$LINENO: configuring gst-plugins-nuvdemux for release" >&5
1689 echo "$as_me: configuring gst-plugins-nuvdemux for release" >&6;}
1691 GST_PLUGINS_VERSION_RELEASE=1
1694 { echo "$as_me:$LINENO: configuring gst-plugins-nuvdemux for development with nano $NANO" >&5
1695 echo "$as_me: configuring gst-plugins-nuvdemux for development with nano $NANO" >&6;}
1696 VERSION=0.10.0.$NANO
1697 GST_PLUGINS_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
1701 GST_PLUGINS_VERSION=$VERSION
1703 cat >>confdefs.h <<_ACEOF
1704 #define GST_PLUGINS_VERSION "$GST_PLUGINS_VERSION"
1709 cat >>confdefs.h <<_ACEOF
1710 #define GST_PLUGINS_VERSION_RELEASE "$GST_PLUGINS_VERSION_RELEASE"
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE "$PACKAGE"
1726 cat >>confdefs.h <<_ACEOF
1727 #define VERSION "$VERSION"
1733 am__api_version="1.8"
1734 # Find a good install program. We prefer a C program (faster),
1735 # so one script is as good as another. But avoid the broken or
1736 # incompatible versions:
1737 # SysV /etc/install, /usr/sbin/install
1738 # SunOS /usr/etc/install
1739 # IRIX /sbin/install
1741 # AmigaOS /C/install, which installs bootblocks on floppy discs
1742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1745 # OS/2's system install, which has a completely different semantic
1746 # ./install, which can be erroneously created by make from ./install.sh.
1747 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1748 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1749 if test -z "$INSTALL"; then
1750 if test "${ac_cv_path_install+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 test -z "$as_dir" && as_dir=.
1758 # Account for people who put trailing slashes in PATH elements.
1760 ./ | .// | /cC/* | \
1761 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1762 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1765 # OSF1 and SCO ODT 3.0 have their own names for install.
1766 # Don't use installbsd from OSF since it installs stuff as root
1768 for ac_prog in ginstall scoinst install; do
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1771 if test $ac_prog = install &&
1772 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1773 # AIX install. It has an incompatible calling convention.
1775 elif test $ac_prog = install &&
1776 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1777 # program-specific install script used by HP pwplus--don't use.
1780 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1792 if test "${ac_cv_path_install+set}" = set; then
1793 INSTALL=$ac_cv_path_install
1795 # As a last resort, use the slow shell script. We don't cache a
1796 # path for INSTALL within a source directory, because that will
1797 # break other packages using the cache if that directory is
1798 # removed, or if the path is relative.
1799 INSTALL=$ac_install_sh
1802 echo "$as_me:$LINENO: result: $INSTALL" >&5
1803 echo "${ECHO_T}$INSTALL" >&6
1805 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1806 # It thinks the first close brace ends the variable substitution.
1807 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1809 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1811 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1813 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1814 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1817 echo timestamp > conftest.file
1818 # Do `set' in a subshell so we don't clobber the current shell's
1819 # arguments. Must try -L first in case configure is actually a
1820 # symlink; some systems play weird games with the mod time of symlinks
1821 # (eg FreeBSD returns the mod time of the symlink's containing
1824 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1825 if test "$*" = "X"; then
1827 set X `ls -t $srcdir/configure conftest.file`
1830 if test "$*" != "X $srcdir/configure conftest.file" \
1831 && test "$*" != "X conftest.file $srcdir/configure"; then
1833 # If neither matched, then we have a broken ls. This can happen
1834 # if, for instance, CONFIG_SHELL is bash and it inherits a
1835 # broken ls alias from the environment. This has actually
1836 # happened. Such a system could not be considered "sane".
1837 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1838 alias in your environment" >&5
1839 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1840 alias in your environment" >&2;}
1841 { (exit 1); exit 1; }; }
1844 test "$2" = conftest.file
1850 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1851 Check your system clock" >&5
1852 echo "$as_me: error: newly created file is older than distributed files!
1853 Check your system clock" >&2;}
1854 { (exit 1); exit 1; }; }
1856 echo "$as_me:$LINENO: result: yes" >&5
1857 echo "${ECHO_T}yes" >&6
1858 test "$program_prefix" != NONE &&
1859 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1860 # Use a double $ so make ignores it.
1861 test "$program_suffix" != NONE &&
1862 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1863 # Double any \ or $. echo might interpret backslashes.
1864 # By default was `s,x,x', remove it if useless.
1865 cat <<\_ACEOF >conftest.sed
1866 s/[\\$]/&&/g;s/;s,x,x,$//
1868 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1871 # expand $ac_aux_dir to an absolute path
1872 am_aux_dir=`cd $ac_aux_dir && pwd`
1874 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1875 # Use eval to expand $SHELL
1876 if eval "$MISSING --run true"; then
1877 am_missing_run="$MISSING --run "
1880 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1881 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1884 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1885 # Keeping the `.' argument allows $(mkdir_p) to be used without
1886 # argument. Indeed, we sometimes output rules like
1887 # $(mkdir_p) $(somedir)
1888 # where $(somedir) is conditionally defined.
1889 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1890 # expensive solution, as it forces Make to start a sub-shell.)
1891 mkdir_p='mkdir -p -- .'
1893 # On NextStep and OpenStep, the `mkdir' command does not
1894 # recognize any option. It will interpret all options as
1895 # directories to create, and then abort because `.' already
1897 for d in ./-p ./--version;
1899 test -d $d && rmdir $d
1901 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1902 if test -f "$ac_aux_dir/mkinstalldirs"; then
1903 mkdir_p='$(mkinstalldirs)'
1905 mkdir_p='$(install_sh) -d'
1909 for ac_prog in gawk mawk nawk awk
1911 # Extract the first word of "$ac_prog", so it can be a program name with args.
1912 set dummy $ac_prog; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_AWK+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$AWK"; then
1919 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_AWK="$ac_prog"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 if test -n "$AWK"; then
1939 echo "$as_me:$LINENO: result: $AWK" >&5
1940 echo "${ECHO_T}$AWK" >&6
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1946 test -n "$AWK" && break
1949 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1950 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1951 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1952 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 cat >conftest.make <<\_ACEOF
1957 @echo 'ac_maketemp="$(MAKE)"'
1959 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1960 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1961 if test -n "$ac_maketemp"; then
1962 eval ac_cv_prog_make_${ac_make}_set=yes
1964 eval ac_cv_prog_make_${ac_make}_set=no
1968 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1969 echo "$as_me:$LINENO: result: yes" >&5
1970 echo "${ECHO_T}yes" >&6
1973 echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1975 SET_MAKE="MAKE=${MAKE-make}"
1978 rm -rf .tst 2>/dev/null
1979 mkdir .tst 2>/dev/null
1980 if test -d .tst; then
1985 rmdir .tst 2>/dev/null
1987 # test to see if srcdir already configured
1988 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1989 test -f $srcdir/config.status; then
1990 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1991 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1992 { (exit 1); exit 1; }; }
1995 # test whether we have cygpath
1996 if test -z "$CYGPATH_W"; then
1997 if (cygpath --version) >/dev/null 2>/dev/null; then
1998 CYGPATH_W='cygpath -w'
2005 # Define the identity of the package.
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE "$PACKAGE"
2015 cat >>confdefs.h <<_ACEOF
2016 #define VERSION "$VERSION"
2019 # Some tools Automake needs.
2021 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2024 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2027 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2030 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2033 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2036 AMTAR=${AMTAR-"${am_missing_run}tar"}
2038 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2040 # Installed binaries are usually stripped using `strip' when the user
2041 # run `make install-strip'. However `strip' might not be the right
2042 # tool to use in cross-compilation environments, therefore Automake
2043 # will honor the `STRIP' environment variable to overrule this program.
2044 if test "$cross_compiling" != no; then
2045 if test -n "$ac_tool_prefix"; then
2046 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2047 set dummy ${ac_tool_prefix}strip; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_STRIP+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$STRIP"; then
2054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 STRIP=$ac_cv_prog_STRIP
2073 if test -n "$STRIP"; then
2074 echo "$as_me:$LINENO: result: $STRIP" >&5
2075 echo "${ECHO_T}$STRIP" >&6
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2082 if test -z "$ac_cv_prog_STRIP"; then
2084 # Extract the first word of "strip", so it can be a program name with args.
2085 set dummy strip; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test -n "$ac_ct_STRIP"; then
2092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101 ac_cv_prog_ac_ct_STRIP="strip"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2112 if test -n "$ac_ct_STRIP"; then
2113 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2114 echo "${ECHO_T}$ac_ct_STRIP" >&6
2116 echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6
2122 STRIP="$ac_cv_prog_STRIP"
2126 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2128 # We need awk for the "check" target. The system "awk" is bad on
2134 # Check whether --enable-shared or --disable-shared was given.
2135 if test "${enable_shared+set}" = set; then
2136 enableval="$enable_shared"
2137 p=${PACKAGE-default}
2139 yes) enable_shared=yes ;;
2140 no) enable_shared=no ;;
2143 # Look at the argument we got. We use all the common list separators.
2144 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2145 for pkg in $enableval; do
2147 if test "X$pkg" = "X$p"; then
2158 # Check whether --enable-fast-install or --disable-fast-install was given.
2159 if test "${enable_fast_install+set}" = set; then
2160 enableval="$enable_fast_install"
2161 p=${PACKAGE-default}
2163 yes) enable_fast_install=yes ;;
2164 no) enable_fast_install=no ;;
2166 enable_fast_install=no
2167 # Look at the argument we got. We use all the common list separators.
2168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2169 for pkg in $enableval; do
2171 if test "X$pkg" = "X$p"; then
2172 enable_fast_install=yes
2179 enable_fast_install=yes
2182 DEPDIR="${am__leading_dot}deps"
2184 ac_config_commands="$ac_config_commands depfiles"
2187 am_make=${MAKE-make}
2188 cat > confinc << 'END'
2193 # If we don't find an include directive, just comment out the code.
2194 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2195 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2199 # First try GNU make style include.
2200 echo "include confinc" > confmf
2201 # We grep out `Entering directory' and `Leaving directory'
2202 # messages which can occur if `w' ends up in MAKEFLAGS.
2203 # In particular we don't look at `^make:' because GNU make might
2204 # be invoked under some other name (usually "gmake"), in which
2205 # case it prints its new name instead of `make'.
2206 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2211 # Now try BSD make style include.
2212 if test "$am__include" = "#"; then
2213 echo '.include "confinc"' > confmf
2214 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2215 am__include=.include
2222 echo "$as_me:$LINENO: result: $_am_result" >&5
2223 echo "${ECHO_T}$_am_result" >&6
2224 rm -f confinc confmf
2226 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2227 if test "${enable_dependency_tracking+set}" = set; then
2228 enableval="$enable_dependency_tracking"
2231 if test "x$enable_dependency_tracking" != xno; then
2232 am_depcomp="$ac_aux_dir/depcomp"
2237 if test "x$enable_dependency_tracking" != xno; then
2248 ac_cpp='$CPP $CPPFLAGS'
2249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2252 if test -n "$ac_tool_prefix"; then
2253 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2254 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2255 echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2257 if test "${ac_cv_prog_CC+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 if test -n "$CC"; then
2261 ac_cv_prog_CC="$CC" # Let the user override the test.
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 if test -n "$CC"; then
2281 echo "$as_me:$LINENO: result: $CC" >&5
2282 echo "${ECHO_T}$CC" >&6
2284 echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2289 if test -z "$ac_cv_prog_CC"; then
2291 # Extract the first word of "gcc", so it can be a program name with args.
2292 set dummy gcc; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test -n "$ac_ct_CC"; then
2299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308 ac_cv_prog_ac_ct_CC="gcc"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318 if test -n "$ac_ct_CC"; then
2319 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2320 echo "${ECHO_T}$ac_ct_CC" >&6
2322 echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6
2331 if test -z "$CC"; then
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}cc; ac_word=$2
2335 echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_CC="${ac_tool_prefix}cc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 if test -n "$CC"; then
2361 echo "$as_me:$LINENO: result: $CC" >&5
2362 echo "${ECHO_T}$CC" >&6
2364 echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6
2369 if test -z "$ac_cv_prog_CC"; then
2371 # Extract the first word of "cc", so it can be a program name with args.
2372 set dummy cc; ac_word=$2
2373 echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 if test -n "$ac_ct_CC"; then
2379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2388 ac_cv_prog_ac_ct_CC="cc"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398 if test -n "$ac_ct_CC"; then
2399 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2400 echo "${ECHO_T}$ac_ct_CC" >&6
2402 echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6
2412 if test -z "$CC"; then
2413 # Extract the first word of "cc", so it can be a program name with args.
2414 set dummy cc; ac_word=$2
2415 echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2417 if test "${ac_cv_prog_CC+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2432 ac_prog_rejected=yes
2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test $ac_prog_rejected = yes; then
2443 # We found a bogon in the path, so make sure we never use it.
2444 set dummy $ac_cv_prog_CC
2446 if test $# != 0; then
2447 # We chose a different compiler from the bogus one.
2448 # However, it has the same basename, so the bogon will be chosen
2449 # first if we set CC to just the basename; use the full file name.
2451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2457 if test -n "$CC"; then
2458 echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2466 if test -z "$CC"; then
2467 if test -n "$ac_tool_prefix"; then
2470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 if test -n "$CC"; then
2498 echo "$as_me:$LINENO: result: $CC" >&5
2499 echo "${ECHO_T}$CC" >&6
2501 echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2505 test -n "$CC" && break
2508 if test -z "$CC"; then
2512 # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$ac_ct_CC"; then
2520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_ac_ct_CC="$ac_prog"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2539 if test -n "$ac_ct_CC"; then
2540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2541 echo "${ECHO_T}$ac_ct_CC" >&6
2543 echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2547 test -n "$ac_ct_CC" && break
2556 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2557 See \`config.log' for more details." >&5
2558 echo "$as_me: error: no acceptable C compiler found in \$PATH
2559 See \`config.log' for more details." >&2;}
2560 { (exit 1); exit 1; }; }
2562 # Provide some information about the compiler.
2563 echo "$as_me:$LINENO:" \
2564 "checking for C compiler version" >&5
2565 ac_compiler=`set X $ac_compile; echo $2`
2566 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2567 (eval $ac_compiler --version </dev/null >&5) 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }
2571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2572 (eval $ac_compiler -v </dev/null >&5) 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }
2576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2577 (eval $ac_compiler -V </dev/null >&5) 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }
2582 cat >conftest.$ac_ext <<_ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2597 ac_clean_files_save=$ac_clean_files
2598 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2599 # Try to create an executable without -o first, disregard a.out.
2600 # It will help us diagnose broken compilers, and finding out an intuition
2602 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2603 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2604 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2605 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2606 (eval $ac_link_default) 2>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; then
2610 # Find the output, starting from the most likely. This scheme is
2611 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2614 # Be careful to initialize this variable, since it used to be cached.
2615 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2617 # b.out is created by i960 compilers.
2618 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2620 test -f "$ac_file" || continue
2622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2625 # This is the source file.
2628 # We found the default executable, but exeext='' is most
2632 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2633 # FIXME: I believe we export ac_cv_exeext for Libtool,
2634 # but it would be cool to find out if it's true. Does anybody
2635 # maintain Libtool? --akim.
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2647 See \`config.log' for more details." >&5
2648 echo "$as_me: error: C compiler cannot create executables
2649 See \`config.log' for more details." >&2;}
2650 { (exit 77); exit 77; }; }
2653 ac_exeext=$ac_cv_exeext
2654 echo "$as_me:$LINENO: result: $ac_file" >&5
2655 echo "${ECHO_T}$ac_file" >&6
2657 # Check the compiler produces executables we can run. If not, either
2658 # the compiler is broken, or we cross compile.
2659 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2660 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2661 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2662 # If not cross compiling, check that we can run a simple program.
2663 if test "$cross_compiling" != yes; then
2664 if { ac_try='./$ac_file'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2672 if test "$cross_compiling" = maybe; then
2675 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2676 If you meant to cross compile, use \`--host'.
2677 See \`config.log' for more details." >&5
2678 echo "$as_me: error: cannot run C compiled programs.
2679 If you meant to cross compile, use \`--host'.
2680 See \`config.log' for more details." >&2;}
2681 { (exit 1); exit 1; }; }
2685 echo "$as_me:$LINENO: result: yes" >&5
2686 echo "${ECHO_T}yes" >&6
2688 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2689 ac_clean_files=$ac_clean_files_save
2690 # Check the compiler produces executables we can run. If not, either
2691 # the compiler is broken, or we cross compile.
2692 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2693 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2694 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2695 echo "${ECHO_T}$cross_compiling" >&6
2697 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2698 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2700 (eval $ac_link) 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2705 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2706 # work properly (i.e., refer to `conftest.exe'), while it won't with
2708 for ac_file in conftest.exe conftest conftest.*; do
2709 test -f "$ac_file" || continue
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2712 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2719 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2720 See \`config.log' for more details." >&5
2721 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2722 See \`config.log' for more details." >&2;}
2723 { (exit 1); exit 1; }; }
2726 rm -f conftest$ac_cv_exeext
2727 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2728 echo "${ECHO_T}$ac_cv_exeext" >&6
2730 rm -f conftest.$ac_ext
2731 EXEEXT=$ac_cv_exeext
2733 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2734 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2735 if test "${ac_cv_objext+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2753 rm -f conftest.o conftest.obj
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755 (eval $ac_compile) 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; then
2759 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2762 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2770 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2771 See \`config.log' for more details." >&5
2772 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2773 See \`config.log' for more details." >&2;}
2774 { (exit 1); exit 1; }; }
2777 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2779 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2780 echo "${ECHO_T}$ac_cv_objext" >&6
2781 OBJEXT=$ac_cv_objext
2783 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2784 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2785 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2806 rm -f conftest.$ac_objext
2807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808 (eval $ac_compile) 2>conftest.er1
2810 grep -v '^ *+' conftest.er1 >conftest.err
2812 cat conftest.err >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2835 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2838 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2839 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2840 GCC=`test $ac_compiler_gnu = yes && echo yes`
2841 ac_test_CFLAGS=${CFLAGS+set}
2842 ac_save_CFLAGS=$CFLAGS
2844 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2845 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2846 if test "${ac_cv_prog_cc_g+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 cat >conftest.$ac_ext <<_ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>conftest.er1
2868 grep -v '^ *+' conftest.er1 >conftest.err
2870 cat conftest.err >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } &&
2873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; } &&
2879 { ac_try='test -s conftest.$ac_objext'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; }; then
2887 echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2894 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2895 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2896 if test "$ac_test_CFLAGS" = set; then
2897 CFLAGS=$ac_save_CFLAGS
2898 elif test $ac_cv_prog_cc_g = yes; then
2899 if test "$GCC" = yes; then
2905 if test "$GCC" = yes; then
2911 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2912 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2913 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 ac_cv_prog_cc_stdc=no
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2926 #include <sys/types.h>
2927 #include <sys/stat.h>
2928 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2929 struct buf { int x; };
2930 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2931 static char *e (p, i)
2937 static char *f (char * (*g) (char **, int), char **p, ...)
2942 s = g (p, va_arg (v,int));
2947 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2948 function prototypes and stuff, but not '\xHH' hex character constants.
2949 These don't provoke an error unfortunately, instead are silently treated
2950 as 'x'. The following induces an error, until -std1 is added to get
2951 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2952 array size at least. It's necessary to write '\x00'==0 to get something
2953 that's true only with -std1. */
2954 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2956 int test (int i, double x);
2957 struct s1 {int (*f) (int a);};
2958 struct s2 {int (*f) (double a);};
2959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2965 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2970 # Don't try gcc -ansi; that turns off useful extensions and
2971 # breaks some systems' header files.
2972 # AIX -qlanglvl=ansi
2973 # Ultrix and OSF/1 -std1
2974 # HP-UX 10.20 and later -Ae
2975 # HP-UX older versions -Aa -D_HPUX_SOURCE
2976 # SVR4 -Xc -D__EXTENSIONS__
2977 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2979 CC="$ac_save_CC $ac_arg"
2980 rm -f conftest.$ac_objext
2981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2982 (eval $ac_compile) 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } &&
2989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 ac_cv_prog_cc_stdc=$ac_arg
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3008 rm -f conftest.err conftest.$ac_objext
3010 rm -f conftest.$ac_ext conftest.$ac_objext
3015 case "x$ac_cv_prog_cc_stdc" in
3017 echo "$as_me:$LINENO: result: none needed" >&5
3018 echo "${ECHO_T}none needed" >&6 ;;
3020 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3021 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3022 CC="$CC $ac_cv_prog_cc_stdc" ;;
3025 # Some people use a C++ compiler to compile C. Since we use `exit',
3026 # in C++ we need to declare it. In case someone uses the same compiler
3027 # for both compiling C and C++ we need to have the C++ compiler decide
3028 # the declaration of exit, since it's the most demanding environment.
3029 cat >conftest.$ac_ext <<_ACEOF
3034 rm -f conftest.$ac_objext
3035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3036 (eval $ac_compile) 2>conftest.er1
3038 grep -v '^ *+' conftest.er1 >conftest.err
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } &&
3043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 for ac_declaration in \
3057 'extern "C" void std::exit (int) throw (); using std::exit;' \
3058 'extern "C" void std::exit (int); using std::exit;' \
3059 'extern "C" void exit (int) throw ();' \
3060 'extern "C" void exit (int);' \
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3079 rm -f conftest.$ac_objext
3080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3081 (eval $ac_compile) 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; } &&
3138 { ac_try='test -s conftest.$ac_objext'
3139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3153 if test -n "$ac_declaration"; then
3154 echo '#ifdef __cplusplus' >>confdefs.h
3155 echo $ac_declaration >>confdefs.h
3156 echo '#endif' >>confdefs.h
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 depcc="$CC" am_compiler_list=
3173 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3174 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3175 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3179 # We make a subdir and do the tests there. Otherwise we can end up
3180 # making bogus files that we don't know about and never remove. For
3181 # instance it was reported that on HP-UX the gcc test will end up
3182 # making a dummy file named `D' -- because `-MD' means `put the output
3185 # Copy depcomp to subdir because otherwise we won't find it if we're
3186 # using a relative directory.
3187 cp "$am_depcomp" conftest.dir
3189 # We will build objects and dependencies in a subdirectory because
3190 # it helps to detect inapplicable dependency modes. For instance
3191 # both Tru64's cc and ICC support -MD to output dependencies as a
3192 # side effect of compilation, but ICC will put the dependencies in
3193 # the current directory while Tru64 will put them in the object
3197 am_cv_CC_dependencies_compiler_type=none
3198 if test "$am_compiler_list" = ""; then
3199 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3201 for depmode in $am_compiler_list; do
3202 # Setup a source with many dependencies, because some compilers
3203 # like to wrap large dependency lists on column 80 (with \), and
3204 # we should not choose a depcomp mode which is confused by this.
3206 # We need to recreate these files for each test, as the compiler may
3207 # overwrite some of them when testing with obscure command lines.
3208 # This happens at least with the AIX C compiler.
3210 for i in 1 2 3 4 5 6; do
3211 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3212 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3213 # Solaris 8's {/usr,}/bin/sh.
3214 touch sub/conftst$i.h
3216 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3220 # after this tag, mechanisms are not by side-effect, so they'll
3221 # only be used when explicitly requested
3222 if test "x$enable_dependency_tracking" = xyes; then
3230 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3231 # mode. It turns out that the SunPro C++ compiler does not properly
3232 # handle `-M -o', and we need to detect this.
3233 if depmode=$depmode \
3234 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3235 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3236 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3237 >/dev/null 2>conftest.err &&
3238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3239 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3241 # icc doesn't choke on unknown options, it will just issue warnings
3242 # or remarks (even with -Werror). So we grep stderr for any message
3243 # that says an option was ignored or not supported.
3244 # When given -MP, icc 7.0 and 7.1 complain thusly:
3245 # icc: Command line warning: ignoring option '-M'; no argument required
3246 # The diagnosis changed in icc 8.0:
3247 # icc: Command line remark: option '-MP' not supported
3248 if (grep 'ignoring option' conftest.err ||
3249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3250 am_cv_CC_dependencies_compiler_type=$depmode
3259 am_cv_CC_dependencies_compiler_type=none
3263 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3264 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3265 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3270 test "x$enable_dependency_tracking" != xno \
3271 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3273 am__fastdepCC_FALSE='#'
3275 am__fastdepCC_TRUE='#'
3276 am__fastdepCC_FALSE=
3280 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3281 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3282 if test "${lt_cv_path_SED+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 # Loop through the user's path and test for sed and gsed.
3286 # Then use that list of sed's as ones to test for truncation.
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir=.
3292 for lt_ac_prog in sed gsed; do
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3295 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3302 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3303 # along with /bin/sed that truncates output.
3304 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3305 test ! -f $lt_ac_sed && continue
3306 cat /dev/null > conftest.in
3308 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3309 # Check for GNU sed and select it if it is found.
3310 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3311 lt_cv_path_SED=$lt_ac_sed
3315 cat conftest.in conftest.in >conftest.tmp
3316 mv conftest.tmp conftest.in
3317 cp conftest.in conftest.nl
3319 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3320 cmp -s conftest.out conftest.nl || break
3321 # 10000 chars as input seems more than enough
3322 test $lt_ac_count -gt 10 && break
3323 lt_ac_count=`expr $lt_ac_count + 1`
3324 if test $lt_ac_count -gt $lt_ac_max; then
3325 lt_ac_max=$lt_ac_count
3326 lt_cv_path_SED=$lt_ac_sed
3334 echo "$as_me:$LINENO: result: $SED" >&5
3335 echo "${ECHO_T}$SED" >&6
3337 echo "$as_me:$LINENO: checking for egrep" >&5
3338 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3339 if test "${ac_cv_prog_egrep+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3343 then ac_cv_prog_egrep='grep -E'
3344 else ac_cv_prog_egrep='egrep'
3347 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3348 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3349 EGREP=$ac_cv_prog_egrep
3353 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3354 if test "${with_gnu_ld+set}" = set; then
3355 withval="$with_gnu_ld"
3356 test "$withval" = no || with_gnu_ld=yes
3361 if test "$GCC" = yes; then
3362 # Check if gcc -print-prog-name=ld gives a path.
3363 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3364 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3367 # gcc leaves a trailing carriage return which upsets mingw
3368 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3370 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3373 # Accept absolute paths.
3375 re_direlt='/[^/][^/]*/\.\./'
3376 # Canonicalize the pathname of ld
3377 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3378 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3379 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3381 test -z "$LD" && LD="$ac_prog"
3384 # If it fails, then pretend we aren't using GCC.
3388 # If it is relative, then search for the first ld in PATH.
3392 elif test "$with_gnu_ld" = yes; then
3393 echo "$as_me:$LINENO: checking for GNU ld" >&5
3394 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3396 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3397 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3399 if test "${lt_cv_path_LD+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 if test -z "$LD"; then
3403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3404 for ac_dir in $PATH; do
3406 test -z "$ac_dir" && ac_dir=.
3407 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3408 lt_cv_path_LD="$ac_dir/$ac_prog"
3409 # Check to see if the program is GNU ld. I'd rather use --version,
3410 # but apparently some variants of GNU ld only accept -v.
3411 # Break only if it was the GNU/non-GNU ld that we prefer.
3412 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3413 *GNU* | *'with BFD'*)
3414 test "$with_gnu_ld" != no && break
3417 test "$with_gnu_ld" != yes && break
3424 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3429 if test -n "$LD"; then
3430 echo "$as_me:$LINENO: result: $LD" >&5
3431 echo "${ECHO_T}$LD" >&6
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3436 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3437 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3438 { (exit 1); exit 1; }; }
3439 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3440 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3441 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3445 case `$LD -v 2>&1 </dev/null` in
3446 *GNU* | *'with BFD'*)
3447 lt_cv_prog_gnu_ld=yes
3450 lt_cv_prog_gnu_ld=no
3454 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3455 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3456 with_gnu_ld=$lt_cv_prog_gnu_ld
3459 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3460 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3461 if test "${lt_cv_ld_reload_flag+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 lt_cv_ld_reload_flag='-r'
3466 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3467 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3468 reload_flag=$lt_cv_ld_reload_flag
3469 case $reload_flag in
3471 *) reload_flag=" $reload_flag" ;;
3473 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3476 if test "$GCC" = yes; then
3477 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3479 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3484 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3485 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3486 if test "${lt_cv_path_NM+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 if test -n "$NM"; then
3490 # Let the user override the test.
3493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3494 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3496 test -z "$ac_dir" && ac_dir=.
3497 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3498 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3499 # Check to see if the nm accepts a BSD-compat flag.
3500 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3501 # nm: unknown option "B" ignored
3502 # Tru64's nm complains that /dev/null is an invalid object file
3503 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3504 */dev/null* | *'Invalid file or object type'*)
3505 lt_cv_path_NM="$tmp_nm -B"
3509 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3511 lt_cv_path_NM="$tmp_nm -p"
3515 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3516 continue # so that we can try to find one that supports BSD flags
3523 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3526 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3527 echo "${ECHO_T}$lt_cv_path_NM" >&6
3530 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3531 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3533 if test "$LN_S" = "ln -s"; then
3534 echo "$as_me:$LINENO: result: yes" >&5
3535 echo "${ECHO_T}yes" >&6
3537 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3538 echo "${ECHO_T}no, using $LN_S" >&6
3541 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3542 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3543 if test "${lt_cv_deplibs_check_method+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 lt_cv_file_magic_cmd='$MAGIC_CMD'
3547 lt_cv_file_magic_test_file=
3548 lt_cv_deplibs_check_method='unknown'
3549 # Need to set the preceding variable on all platforms that support
3550 # interlibrary dependencies.
3551 # 'none' -- dependencies not supported.
3552 # `unknown' -- same as none, but documents that we really don't know.
3553 # 'pass_all' -- all dependencies passed with no checks.
3554 # 'test_compile' -- check by making test program.
3555 # 'file_magic [[regex]]' -- check by looking for files in library path
3556 # which responds to the $file_magic_cmd with a given extended regex.
3557 # If you have `file' or equivalent on your system and you're not sure
3558 # whether `pass_all' will *always* work, you probably want this one.
3562 lt_cv_deplibs_check_method=pass_all
3566 lt_cv_deplibs_check_method=pass_all
3570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3571 lt_cv_file_magic_cmd='/usr/bin/file -L'
3572 lt_cv_file_magic_test_file=/shlib/libc.so
3576 # func_win32_libid is a shell function defined in ltmain.sh
3577 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3578 lt_cv_file_magic_cmd='func_win32_libid'
3582 # Base MSYS/MinGW do not provide the 'file' command needed by
3583 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3584 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3585 lt_cv_file_magic_cmd='$OBJDUMP -f'
3588 darwin* | rhapsody*)
3589 lt_cv_deplibs_check_method=pass_all
3592 freebsd* | kfreebsd*-gnu | dragonfly*)
3593 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3596 # Not sure whether the presence of OpenBSD here was a mistake.
3597 # Let's accept both of them until this is cleared up.
3598 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3599 lt_cv_file_magic_cmd=/usr/bin/file
3600 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3604 lt_cv_deplibs_check_method=pass_all
3609 lt_cv_deplibs_check_method=pass_all
3612 hpux10.20* | hpux11*)
3613 lt_cv_file_magic_cmd=/usr/bin/file
3616 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3617 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3620 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]'
3621 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3624 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3625 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3630 irix5* | irix6* | nonstopux*)
3632 *-32|*"-32 ") libmagic=32-bit;;
3633 *-n32|*"-n32 ") libmagic=N32;;
3634 *-64|*"-64 ") libmagic=64-bit;;
3635 *) libmagic=never-match;;
3637 lt_cv_deplibs_check_method=pass_all
3640 # This must be Linux ELF.
3642 lt_cv_deplibs_check_method=pass_all
3646 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3655 lt_cv_file_magic_cmd=/usr/bin/file
3656 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3660 lt_cv_deplibs_check_method=unknown
3664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3671 osf3* | osf4* | osf5*)
3672 lt_cv_deplibs_check_method=pass_all
3676 lt_cv_deplibs_check_method=pass_all
3680 lt_cv_deplibs_check_method=pass_all
3683 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3684 case $host_vendor in
3686 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]'
3687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3690 lt_cv_deplibs_check_method=pass_all
3693 lt_cv_file_magic_cmd='/bin/file'
3694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3697 lt_cv_file_magic_cmd='/bin/file'
3698 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3699 lt_cv_file_magic_test_file=/lib/libc.so
3702 lt_cv_deplibs_check_method=pass_all
3707 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3708 lt_cv_deplibs_check_method=pass_all
3713 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3714 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3715 file_magic_cmd=$lt_cv_file_magic_cmd
3716 deplibs_check_method=$lt_cv_deplibs_check_method
3717 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3722 # If no C compiler was specified, use CC.
3725 # Allow CC to be a program name with arguments.
3729 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3730 if test "${enable_libtool_lock+set}" = set; then
3731 enableval="$enable_libtool_lock"
3734 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3736 # Some flags need to be propagated to the compiler or linker for good
3740 # Find out which ABI we are using.
3741 echo 'int i;' > conftest.$ac_ext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743 (eval $ac_compile) 2>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; then
3747 case `/usr/bin/file conftest.$ac_objext` in
3759 # Find out which ABI we are using.
3760 echo '#line 3760 "configure"' > conftest.$ac_ext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; then
3766 if test "$lt_cv_prog_gnu_ld" = yes; then
3767 case `/usr/bin/file conftest.$ac_objext` in
3769 LD="${LD-ld} -melf32bsmip"
3772 LD="${LD-ld} -melf32bmipn32"
3775 LD="${LD-ld} -melf64bmip"
3779 case `/usr/bin/file conftest.$ac_objext` in
3795 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3796 # Find out which ABI we are using.
3797 echo 'int i;' > conftest.$ac_ext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799 (eval $ac_compile) 2>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; then
3803 case `/usr/bin/file conftest.o` in
3807 LD="${LD-ld} -m elf_i386"
3809 ppc64-*linux*|powerpc64-*linux*)
3810 LD="${LD-ld} -m elf32ppclinux"
3813 LD="${LD-ld} -m elf_s390"
3816 LD="${LD-ld} -m elf32_sparc"
3823 LD="${LD-ld} -m elf_x86_64"
3825 ppc*-*linux*|powerpc*-*linux*)
3826 LD="${LD-ld} -m elf64ppc"
3829 LD="${LD-ld} -m elf64_s390"
3832 LD="${LD-ld} -m elf64_sparc"
3842 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3843 SAVE_CFLAGS="$CFLAGS"
3844 CFLAGS="$CFLAGS -belf"
3845 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3846 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3847 if test "${lt_cv_cc_needs_belf+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 ac_cpp='$CPP $CPPFLAGS'
3852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856 cat >conftest.$ac_ext <<_ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3871 rm -f conftest.$ac_objext conftest$ac_exeext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3873 (eval $ac_link) 2>conftest.er1
3875 grep -v '^ *+' conftest.er1 >conftest.err
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; } &&
3886 { ac_try='test -s conftest$ac_exeext'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; }; then
3892 lt_cv_cc_needs_belf=yes
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3897 lt_cv_cc_needs_belf=no
3899 rm -f conftest.err conftest.$ac_objext \
3900 conftest$ac_exeext conftest.$ac_ext
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3909 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3910 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3911 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3912 CFLAGS="$SAVE_CFLAGS"
3918 need_locks="$enable_libtool_lock"
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3927 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3928 # On Suns, sometimes $CPP names a directory.
3929 if test -n "$CPP" && test -d "$CPP"; then
3932 if test -z "$CPP"; then
3933 if test "${ac_cv_prog_CPP+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 # Double quotes because CPP needs to be expanded
3937 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3940 for ac_c_preproc_warn_flag in '' yes
3942 # Use a header file that comes with gcc, so configuring glibc
3943 # with a fresh cross-compiler works.
3944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3945 # <limits.h> exists even on freestanding compilers.
3946 # On the NeXT, cc -E runs the code through the compiler's parser,
3947 # not just through cpp. "Syntax error" is here to catch this case.
3948 cat >conftest.$ac_ext <<_ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3955 # include <limits.h>
3957 # include <assert.h>
3961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3964 grep -v '^ *+' conftest.er1 >conftest.err
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } >/dev/null; then
3969 if test -s conftest.err; then
3970 ac_cpp_err=$ac_c_preproc_warn_flag
3971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3978 if test -z "$ac_cpp_err"; then
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 # Broken: fails on valid input.
3987 rm -f conftest.err conftest.$ac_ext
3989 # OK, works on sane cases. Now check whether non-existent headers
3990 # can be detected and how.
3991 cat >conftest.$ac_ext <<_ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3997 #include <ac_nonexistent.h>
3999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4002 grep -v '^ *+' conftest.er1 >conftest.err
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } >/dev/null; then
4007 if test -s conftest.err; then
4008 ac_cpp_err=$ac_c_preproc_warn_flag
4009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4016 if test -z "$ac_cpp_err"; then
4017 # Broken: success on invalid input.
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 # Passes both tests.
4027 rm -f conftest.err conftest.$ac_ext
4030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4031 rm -f conftest.err conftest.$ac_ext
4032 if $ac_preproc_ok; then
4044 echo "$as_me:$LINENO: result: $CPP" >&5
4045 echo "${ECHO_T}$CPP" >&6
4047 for ac_c_preproc_warn_flag in '' yes
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error" is here to catch this case.
4055 cat >conftest.$ac_ext <<_ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4062 # include <limits.h>
4064 # include <assert.h>
4068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } >/dev/null; then
4076 if test -s conftest.err; then
4077 ac_cpp_err=$ac_c_preproc_warn_flag
4078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4085 if test -z "$ac_cpp_err"; then
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 # Broken: fails on valid input.
4094 rm -f conftest.err conftest.$ac_ext
4096 # OK, works on sane cases. Now check whether non-existent headers
4097 # can be detected and how.
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <ac_nonexistent.h>
4106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } >/dev/null; then
4114 if test -s conftest.err; then
4115 ac_cpp_err=$ac_c_preproc_warn_flag
4116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4123 if test -z "$ac_cpp_err"; then
4124 # Broken: success on invalid input.
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 # Passes both tests.
4134 rm -f conftest.err conftest.$ac_ext
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then
4142 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4143 See \`config.log' for more details." >&5
4144 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4145 See \`config.log' for more details." >&2;}
4146 { (exit 1); exit 1; }; }
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4157 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4158 if test "${ac_cv_header_stdc+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>conftest.er1
4184 grep -v '^ *+' conftest.er1 >conftest.err
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_header_stdc=yes
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_header_stdc=no
4208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210 if test $ac_cv_header_stdc = yes; then
4211 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222 $EGREP "memchr" >/dev/null 2>&1; then
4225 ac_cv_header_stdc=no
4231 if test $ac_cv_header_stdc = yes; then
4232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4243 $EGREP "free" >/dev/null 2>&1; then
4246 ac_cv_header_stdc=no
4252 if test $ac_cv_header_stdc = yes; then
4253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4254 if test "$cross_compiling" = yes; then
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4264 #if ((' ' & 0x0FF) == 0x020)
4265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4268 # define ISLOWER(c) \
4269 (('a' <= (c) && (c) <= 'i') \
4270 || ('j' <= (c) && (c) <= 'r') \
4271 || ('s' <= (c) && (c) <= 'z'))
4272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4280 for (i = 0; i < 256; i++)
4281 if (XOR (islower (i), ISLOWER (i))
4282 || toupper (i) != TOUPPER (i))
4287 rm -f conftest$ac_exeext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4289 (eval $ac_link) 2>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4300 echo "$as_me: program exited with status $ac_status" >&5
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4305 ac_cv_header_stdc=no
4307 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4311 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4312 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4313 if test $ac_cv_header_stdc = yes; then
4315 cat >>confdefs.h <<\_ACEOF
4316 #define STDC_HEADERS 1
4321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4332 inttypes.h stdint.h unistd.h
4334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4335 echo "$as_me:$LINENO: checking for $ac_header" >&5
4336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 cat >conftest.$ac_ext <<_ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 $ac_includes_default
4348 #include <$ac_header>
4350 rm -f conftest.$ac_objext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352 (eval $ac_compile) 2>conftest.er1
4354 grep -v '^ *+' conftest.er1 >conftest.err
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 eval "$as_ac_Header=yes"
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 eval "$as_ac_Header=no"
4378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4383 cat >>confdefs.h <<_ACEOF
4384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4393 for ac_header in dlfcn.h
4395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4397 echo "$as_me:$LINENO: checking for $ac_header" >&5
4398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4405 # Is the header compilable?
4406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 $ac_includes_default
4415 #include <$ac_header>
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } &&
4426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; } &&
4432 { ac_try='test -s conftest.$ac_objext'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_header_compiler=yes
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4443 ac_header_compiler=no
4445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4447 echo "${ECHO_T}$ac_header_compiler" >&6
4449 # Is the header present?
4450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <$ac_header>
4460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4463 grep -v '^ *+' conftest.er1 >conftest.err
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev/null; then
4468 if test -s conftest.err; then
4469 ac_cpp_err=$ac_c_preproc_warn_flag
4470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4477 if test -z "$ac_cpp_err"; then
4478 ac_header_preproc=yes
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4483 ac_header_preproc=no
4485 rm -f conftest.err conftest.$ac_ext
4486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4487 echo "${ECHO_T}$ac_header_preproc" >&6
4489 # So? What about this header?
4490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4496 ac_header_preproc=yes
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4513 ## ------------------------------------------ ##
4514 ## Report this to the AC_PACKAGE_NAME lists. ##
4515 ## ------------------------------------------ ##
4518 sed "s/^/$as_me: WARNING: /" >&2
4521 echo "$as_me:$LINENO: checking for $ac_header" >&5
4522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 eval "$as_ac_Header=\$ac_header_preproc"
4528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4533 cat >>confdefs.h <<_ACEOF
4534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4542 ac_cpp='$CXXCPP $CPPFLAGS'
4543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4546 if test -n "$ac_tool_prefix"; then
4547 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4551 echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553 if test "${ac_cv_prog_CXX+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 if test -n "$CXX"; then
4557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 if test -n "$CXX"; then
4577 echo "$as_me:$LINENO: result: $CXX" >&5
4578 echo "${ECHO_T}$CXX" >&6
4580 echo "$as_me:$LINENO: result: no" >&5
4581 echo "${ECHO_T}no" >&6
4584 test -n "$CXX" && break
4587 if test -z "$CXX"; then
4589 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4591 # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy $ac_prog; ac_word=$2
4593 echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4595 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 if test -n "$ac_ct_CXX"; then
4599 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_ac_ct_CXX="$ac_prog"
4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4618 if test -n "$ac_ct_CXX"; then
4619 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4620 echo "${ECHO_T}$ac_ct_CXX" >&6
4622 echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4626 test -n "$ac_ct_CXX" && break
4628 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4634 # Provide some information about the compiler.
4635 echo "$as_me:$LINENO:" \
4636 "checking for C++ compiler version" >&5
4637 ac_compiler=`set X $ac_compile; echo $2`
4638 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4639 (eval $ac_compiler --version </dev/null >&5) 2>&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }
4643 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4644 (eval $ac_compiler -v </dev/null >&5) 2>&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }
4648 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4649 (eval $ac_compiler -V </dev/null >&5) 2>&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }
4654 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4655 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4656 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 cat >conftest.$ac_ext <<_ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>conftest.er1
4681 grep -v '^ *+' conftest.er1 >conftest.err
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try='test -s conftest.$ac_objext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4706 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4709 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4710 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4711 GXX=`test $ac_compiler_gnu = yes && echo yes`
4712 ac_test_CXXFLAGS=${CXXFLAGS+set}
4713 ac_save_CXXFLAGS=$CXXFLAGS
4715 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4716 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4717 if test "${ac_cv_prog_cxx_g+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4735 rm -f conftest.$ac_objext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>conftest.er1
4739 grep -v '^ *+' conftest.er1 >conftest.err
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; } &&
4750 { ac_try='test -s conftest.$ac_objext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 ac_cv_prog_cxx_g=yes
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4765 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4766 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4767 if test "$ac_test_CXXFLAGS" = set; then
4768 CXXFLAGS=$ac_save_CXXFLAGS
4769 elif test $ac_cv_prog_cxx_g = yes; then
4770 if test "$GXX" = yes; then
4776 if test "$GXX" = yes; then
4782 for ac_declaration in \
4784 'extern "C" void std::exit (int) throw (); using std::exit;' \
4785 'extern "C" void std::exit (int); using std::exit;' \
4786 'extern "C" void exit (int) throw ();' \
4787 'extern "C" void exit (int);' \
4790 cat >conftest.$ac_ext <<_ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4806 rm -f conftest.$ac_objext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808 (eval $ac_compile) 2>conftest.er1
4810 grep -v '^ *+' conftest.er1 >conftest.err
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; } &&
4821 { ac_try='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4835 cat >conftest.$ac_ext <<_ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4850 rm -f conftest.$ac_objext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852 (eval $ac_compile) 2>conftest.er1
4854 grep -v '^ *+' conftest.er1 >conftest.err
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; } &&
4865 { ac_try='test -s conftest.$ac_objext'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4880 if test -n "$ac_declaration"; then
4881 echo '#ifdef __cplusplus' >>confdefs.h
4882 echo $ac_declaration >>confdefs.h
4883 echo '#endif' >>confdefs.h
4887 ac_cpp='$CXXCPP $CPPFLAGS'
4888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4892 depcc="$CXX" am_compiler_list=
4894 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4895 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4896 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4900 # We make a subdir and do the tests there. Otherwise we can end up
4901 # making bogus files that we don't know about and never remove. For
4902 # instance it was reported that on HP-UX the gcc test will end up
4903 # making a dummy file named `D' -- because `-MD' means `put the output
4906 # Copy depcomp to subdir because otherwise we won't find it if we're
4907 # using a relative directory.
4908 cp "$am_depcomp" conftest.dir
4910 # We will build objects and dependencies in a subdirectory because
4911 # it helps to detect inapplicable dependency modes. For instance
4912 # both Tru64's cc and ICC support -MD to output dependencies as a
4913 # side effect of compilation, but ICC will put the dependencies in
4914 # the current directory while Tru64 will put them in the object
4918 am_cv_CXX_dependencies_compiler_type=none
4919 if test "$am_compiler_list" = ""; then
4920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4922 for depmode in $am_compiler_list; do
4923 # Setup a source with many dependencies, because some compilers
4924 # like to wrap large dependency lists on column 80 (with \), and
4925 # we should not choose a depcomp mode which is confused by this.
4927 # We need to recreate these files for each test, as the compiler may
4928 # overwrite some of them when testing with obscure command lines.
4929 # This happens at least with the AIX C compiler.
4931 for i in 1 2 3 4 5 6; do
4932 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4933 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4934 # Solaris 8's {/usr,}/bin/sh.
4935 touch sub/conftst$i.h
4937 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4941 # after this tag, mechanisms are not by side-effect, so they'll
4942 # only be used when explicitly requested
4943 if test "x$enable_dependency_tracking" = xyes; then
4951 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4952 # mode. It turns out that the SunPro C++ compiler does not properly
4953 # handle `-M -o', and we need to detect this.
4954 if depmode=$depmode \
4955 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4956 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4957 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4958 >/dev/null 2>conftest.err &&
4959 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4960 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4961 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4962 # icc doesn't choke on unknown options, it will just issue warnings
4963 # or remarks (even with -Werror). So we grep stderr for any message
4964 # that says an option was ignored or not supported.
4965 # When given -MP, icc 7.0 and 7.1 complain thusly:
4966 # icc: Command line warning: ignoring option '-M'; no argument required
4967 # The diagnosis changed in icc 8.0:
4968 # icc: Command line remark: option '-MP' not supported
4969 if (grep 'ignoring option' conftest.err ||
4970 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4971 am_cv_CXX_dependencies_compiler_type=$depmode
4980 am_cv_CXX_dependencies_compiler_type=none
4984 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4985 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4986 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4991 test "x$enable_dependency_tracking" != xno \
4992 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4993 am__fastdepCXX_TRUE=
4994 am__fastdepCXX_FALSE='#'
4996 am__fastdepCXX_TRUE='#'
4997 am__fastdepCXX_FALSE=
5003 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5004 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5005 (test "X$CXX" != "Xg++"))) ; then
5007 ac_cpp='$CXXCPP $CPPFLAGS'
5008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5011 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5012 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5013 if test -z "$CXXCPP"; then
5014 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 # Double quotes because CXXCPP needs to be expanded
5018 for CXXCPP in "$CXX -E" "/lib/cpp"
5021 for ac_cxx_preproc_warn_flag in '' yes
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5036 # include <limits.h>
5038 # include <assert.h>
5042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5045 grep -v '^ *+' conftest.er1 >conftest.err
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } >/dev/null; then
5050 if test -s conftest.err; then
5051 ac_cpp_err=$ac_cxx_preproc_warn_flag
5052 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5059 if test -z "$ac_cpp_err"; then
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 # Broken: fails on valid input.
5068 rm -f conftest.err conftest.$ac_ext
5070 # OK, works on sane cases. Now check whether non-existent headers
5071 # can be detected and how.
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #include <ac_nonexistent.h>
5080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083 grep -v '^ *+' conftest.er1 >conftest.err
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } >/dev/null; then
5088 if test -s conftest.err; then
5089 ac_cpp_err=$ac_cxx_preproc_warn_flag
5090 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5097 if test -z "$ac_cpp_err"; then
5098 # Broken: success on invalid input.
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 # Passes both tests.
5108 rm -f conftest.err conftest.$ac_ext
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.err conftest.$ac_ext
5113 if $ac_preproc_ok; then
5118 ac_cv_prog_CXXCPP=$CXXCPP
5121 CXXCPP=$ac_cv_prog_CXXCPP
5123 ac_cv_prog_CXXCPP=$CXXCPP
5125 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5126 echo "${ECHO_T}$CXXCPP" >&6
5128 for ac_cxx_preproc_warn_flag in '' yes
5130 # Use a header file that comes with gcc, so configuring glibc
5131 # with a fresh cross-compiler works.
5132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 # <limits.h> exists even on freestanding compilers.
5134 # On the NeXT, cc -E runs the code through the compiler's parser,
5135 # not just through cpp. "Syntax error" is here to catch this case.
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5143 # include <limits.h>
5145 # include <assert.h>
5149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5152 grep -v '^ *+' conftest.er1 >conftest.err
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } >/dev/null; then
5157 if test -s conftest.err; then
5158 ac_cpp_err=$ac_cxx_preproc_warn_flag
5159 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5166 if test -z "$ac_cpp_err"; then
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5172 # Broken: fails on valid input.
5175 rm -f conftest.err conftest.$ac_ext
5177 # OK, works on sane cases. Now check whether non-existent headers
5178 # can be detected and how.
5179 cat >conftest.$ac_ext <<_ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 #include <ac_nonexistent.h>
5187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5190 grep -v '^ *+' conftest.er1 >conftest.err
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } >/dev/null; then
5195 if test -s conftest.err; then
5196 ac_cpp_err=$ac_cxx_preproc_warn_flag
5197 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5204 if test -z "$ac_cpp_err"; then
5205 # Broken: success on invalid input.
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 # Passes both tests.
5215 rm -f conftest.err conftest.$ac_ext
5218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5219 rm -f conftest.err conftest.$ac_ext
5220 if $ac_preproc_ok; then
5223 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5224 See \`config.log' for more details." >&5
5225 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5226 See \`config.log' for more details." >&2;}
5227 { (exit 1); exit 1; }; }
5231 ac_cpp='$CXXCPP $CPPFLAGS'
5232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5240 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5241 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5243 if test -n "$ac_tool_prefix"; then
5244 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5248 echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250 if test "${ac_cv_prog_F77+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 if test -n "$F77"; then
5254 ac_cv_prog_F77="$F77" # Let the user override the test.
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 if test -n "$F77"; then
5274 echo "$as_me:$LINENO: result: $F77" >&5
5275 echo "${ECHO_T}$F77" >&6
5277 echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5281 test -n "$F77" && break
5284 if test -z "$F77"; then
5286 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5288 # Extract the first word of "$ac_prog", so it can be a program name with args.
5289 set dummy $ac_prog; ac_word=$2
5290 echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 if test -n "$ac_ct_F77"; then
5296 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_ac_ct_F77="$ac_prog"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5315 if test -n "$ac_ct_F77"; then
5316 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5317 echo "${ECHO_T}$ac_ct_F77" >&6
5319 echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6
5323 test -n "$ac_ct_F77" && break
5330 # Provide some information about the compiler.
5331 echo "$as_me:5331:" \
5332 "checking for Fortran 77 compiler version" >&5
5333 ac_compiler=`set X $ac_compile; echo $2`
5334 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5335 (eval $ac_compiler --version </dev/null >&5) 2>&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }
5339 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5340 (eval $ac_compiler -v </dev/null >&5) 2>&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }
5344 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5345 (eval $ac_compiler -V </dev/null >&5) 2>&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }
5351 # If we don't use `.F' as extension, the preprocessor is not run on the
5352 # input file. (Note that this only needs to work for GNU compilers.)
5355 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5356 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5357 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5368 rm -f conftest.$ac_objext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370 (eval $ac_compile) 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; } &&
5383 { ac_try='test -s conftest.$ac_objext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5397 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5400 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5401 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5403 ac_test_FFLAGS=${FFLAGS+set}
5404 ac_save_FFLAGS=$FFLAGS
5406 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5407 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5408 if test "${ac_cv_prog_f77_g+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 cat >conftest.$ac_ext <<_ACEOF
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419 (eval $ac_compile) 2>conftest.er1
5421 grep -v '^ *+' conftest.er1 >conftest.err
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; } &&
5432 { ac_try='test -s conftest.$ac_objext'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_cv_prog_f77_g=yes
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5448 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5449 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5450 if test "$ac_test_FFLAGS" = set; then
5451 FFLAGS=$ac_save_FFLAGS
5452 elif test $ac_cv_prog_f77_g = yes; then
5453 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5459 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5466 G77=`test $ac_compiler_gnu = yes && echo yes`
5468 ac_cpp='$CPP $CPPFLAGS'
5469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5477 # find the maximum length of command line arguments
5478 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5479 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 # On DJGPP, this test can blow up pretty badly due to problems in libc
5489 # (any single argument exceeding 2000 bytes causes a buffer overrun
5490 # during glob expansion). Even if it were fixed, the result of this
5491 # check would be larger than it should be.
5492 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5496 # Under GNU Hurd, this test is not required because there is
5497 # no limit to the length of command line arguments.
5498 # Libtool will interpret -1 as no limit whatsoever
5499 lt_cv_sys_max_cmd_len=-1;
5503 # On Win9x/ME, this test blows up -- it succeeds, but takes
5504 # about 5 minutes as the teststring grows exponentially.
5505 # Worse, since 9x/ME are not pre-emptively multitasking,
5506 # you end up with a "frozen" computer, even though with patience
5507 # the test eventually succeeds (with a max line length of 256k).
5508 # Instead, let's just punt: use the minimum linelength reported by
5509 # all of the supported platforms: 8192 (on NT/2K/XP).
5510 lt_cv_sys_max_cmd_len=8192;
5514 # On AmigaOS with pdksh, this test takes hours, literally.
5515 # So we just punt and use a minimum line length of 8192.
5516 lt_cv_sys_max_cmd_len=8192;
5519 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5520 # This has been around since 386BSD, at least. Likely further.
5521 if test -x /sbin/sysctl; then
5522 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5523 elif test -x /usr/sbin/sysctl; then
5524 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5526 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5528 # And add a safety zone
5529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5533 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5534 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5535 # nice to cause kernel panics so lets avoid the loop below.
5536 # First set a reasonable default.
5537 lt_cv_sys_max_cmd_len=16384
5539 if test -x /sbin/sysconfig; then
5540 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5541 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5546 # If test is not a shell built-in, we'll probably end up computing a
5547 # maximum length that is only half of the actual maximum length, but
5549 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5550 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5551 = "XX$teststring") >/dev/null 2>&1 &&
5552 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5553 lt_cv_sys_max_cmd_len=$new_result &&
5554 test $i != 17 # 1/2 MB should be enough
5557 teststring=$teststring$teststring
5560 # Add a significant safety factor because C++ compilers can tack on massive
5561 # amounts of additional arguments before passing them to the linker.
5562 # It appears as though 1/2 is a usable value.
5563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5569 if test -n $lt_cv_sys_max_cmd_len ; then
5570 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5571 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5573 echo "$as_me:$LINENO: result: none" >&5
5574 echo "${ECHO_T}none" >&6
5580 # Check for command to grab the raw symbol name followed by C symbol from nm.
5581 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5582 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5583 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 # These are sane defaults that work on at least a few old systems.
5588 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5590 # Character class describing NM global symbol codes.
5591 symcode='[BCDEGRST]'
5593 # Regexp to match symbols that can be accessed directly from C.
5594 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5596 # Transform an extracted symbol line into a proper C declaration
5597 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5599 # Transform an extracted symbol line into symbol name and symbol address
5600 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'"
5602 # Define system-specific variables.
5607 cygwin* | mingw* | pw32*)
5608 symcode='[ABCDGISTW]'
5610 hpux*) # Its linker distinguishes data from code symbols
5611 if test "$host_cpu" = ia64; then
5612 symcode='[ABCDEGRST]'
5614 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5615 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'"
5618 if test "$host_cpu" = ia64; then
5619 symcode='[ABCDGIRSTW]'
5620 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5621 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'"
5625 symcode='[BCDEGRST]'
5628 symcode='[BCDEGQRST]'
5638 # Handle CRLF in mingw tool chain
5642 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5646 # If we're using GNU nm, then use its standard symbol codes.
5647 case `$NM -V 2>&1` in
5648 *GNU* | *'with BFD'*)
5649 symcode='[ABCDGIRSTW]' ;;
5652 # Try without a prefix undercore, then with it.
5653 for ac_symprfx in "" "_"; do
5655 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5656 symxfrm="\\1 $ac_symprfx\\2 \\2"
5658 # Write the raw and C identifiers.
5659 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5661 # Check to see that the pipe works correctly.
5665 cat > conftest.$ac_ext <<EOF
5670 void nm_test_func(){}
5674 int main(){nm_test_var='a';nm_test_func();return(0);}
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; then
5682 # Now try to grab the symbols.
5684 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5685 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } && test -s "$nlist"; then
5689 # Try sorting and uniquifying the output.
5690 if sort "$nlist" | uniq > "$nlist"T; then
5691 mv -f "$nlist"T "$nlist"
5696 # Make sure that we snagged all the symbols we need.
5697 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5698 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5699 cat <<EOF > conftest.$ac_ext
5705 # Now generate the symbol file.
5706 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5708 cat <<EOF >> conftest.$ac_ext
5709 #if defined (__STDC__) && __STDC__
5710 # define lt_ptr_t void *
5712 # define lt_ptr_t char *
5716 /* The mapping between symbol names and symbols. */
5721 lt_preloaded_symbols[] =
5724 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5725 cat <<\EOF >> conftest.$ac_ext
5733 # Now try linking the two files.
5734 mv conftest.$ac_objext conftstm.$ac_objext
5735 lt_save_LIBS="$LIBS"
5736 lt_save_CFLAGS="$CFLAGS"
5737 LIBS="conftstm.$ac_objext"
5738 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5740 (eval $ac_link) 2>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5746 LIBS="$lt_save_LIBS"
5747 CFLAGS="$lt_save_CFLAGS"
5749 echo "cannot find nm_test_func in $nlist" >&5
5752 echo "cannot find nm_test_var in $nlist" >&5
5755 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5758 echo "$progname: failed program was:" >&5
5759 cat conftest.$ac_ext >&5
5761 rm -f conftest* conftst*
5763 # Do not use the global_symbol_pipe unless it works.
5764 if test "$pipe_works" = yes; then
5767 lt_cv_sys_global_symbol_pipe=
5773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5774 lt_cv_sys_global_symbol_to_cdecl=
5776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5777 echo "$as_me:$LINENO: result: failed" >&5
5778 echo "${ECHO_T}failed" >&6
5780 echo "$as_me:$LINENO: result: ok" >&5
5781 echo "${ECHO_T}ok" >&6
5784 echo "$as_me:$LINENO: checking for objdir" >&5
5785 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5786 if test "${lt_cv_objdir+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 rm -f .libs 2>/dev/null
5790 mkdir .libs 2>/dev/null
5791 if test -d .libs; then
5794 # MS-DOS does not allow filenames that begin with a dot.
5797 rmdir .libs 2>/dev/null
5799 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5800 echo "${ECHO_T}$lt_cv_objdir" >&6
5801 objdir=$lt_cv_objdir
5809 # AIX sometimes has problems with the GCC collect2 program. For some
5810 # reason, if we set the COLLECT_NAMES environment variable, the problems
5811 # vanish in a puff of smoke.
5812 if test "X${COLLECT_NAMES+set}" != Xset; then
5814 export COLLECT_NAMES
5819 # Sed substitution that helps us do robust quoting. It backslashifies
5820 # metacharacters that are still active within double-quoted strings.
5821 Xsed='sed -e 1s/^X//'
5822 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5824 # Same as above, but do not quote variable references.
5825 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5827 # Sed substitution to delay expansion of an escaped shell variable in a
5828 # double_quote_subst'ed string.
5829 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5831 # Sed substitution to avoid accidental globbing in evaled expressions
5832 no_glob_subst='s/\*/\\\*/g'
5838 default_ofile=libtool
5839 can_build_shared=yes
5841 # All known linkers require a `.a' archive for static linking (except MSVC,
5842 # which needs '.lib').
5844 ltmain="$ac_aux_dir/ltmain.sh"
5845 ofile="$default_ofile"
5846 with_gnu_ld="$lt_cv_prog_gnu_ld"
5848 if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}ar; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_AR+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if test -n "$AR"; then
5857 ac_cv_prog_AR="$AR" # Let the user override the test.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_AR="${ac_tool_prefix}ar"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 if test -n "$AR"; then
5877 echo "$as_me:$LINENO: result: $AR" >&5
5878 echo "${ECHO_T}$AR" >&6
5880 echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5885 if test -z "$ac_cv_prog_AR"; then
5887 # Extract the first word of "ar", so it can be a program name with args.
5888 set dummy ar; ac_word=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 if test -n "$ac_ct_AR"; then
5895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_ac_ct_AR="ar"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5915 if test -n "$ac_ct_AR"; then
5916 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5917 echo "${ECHO_T}$ac_ct_AR" >&6
5919 echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_prog_RANLIB+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 if test -n "$RANLIB"; then
5937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 RANLIB=$ac_cv_prog_RANLIB
5956 if test -n "$RANLIB"; then
5957 echo "$as_me:$LINENO: result: $RANLIB" >&5
5958 echo "${ECHO_T}$RANLIB" >&6
5960 echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5965 if test -z "$ac_cv_prog_RANLIB"; then
5966 ac_ct_RANLIB=$RANLIB
5967 # Extract the first word of "ranlib", so it can be a program name with args.
5968 set dummy ranlib; ac_word=$2
5969 echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5971 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 if test -n "$ac_ct_RANLIB"; then
5975 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984 ac_cv_prog_ac_ct_RANLIB="ranlib"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5994 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5995 if test -n "$ac_ct_RANLIB"; then
5996 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5997 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5999 echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6
6003 RANLIB=$ac_ct_RANLIB
6005 RANLIB="$ac_cv_prog_RANLIB"
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}strip; ac_word=$2
6011 echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6013 if test "${ac_cv_prog_STRIP+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 if test -n "$STRIP"; then
6017 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 STRIP=$ac_cv_prog_STRIP
6036 if test -n "$STRIP"; then
6037 echo "$as_me:$LINENO: result: $STRIP" >&5
6038 echo "${ECHO_T}$STRIP" >&6
6040 echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6
6045 if test -z "$ac_cv_prog_STRIP"; then
6047 # Extract the first word of "strip", so it can be a program name with args.
6048 set dummy strip; ac_word=$2
6049 echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6051 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 if test -n "$ac_ct_STRIP"; then
6055 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_ac_ct_STRIP="strip"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6075 if test -n "$ac_ct_STRIP"; then
6076 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6077 echo "${ECHO_T}$ac_ct_STRIP" >&6
6079 echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6
6085 STRIP="$ac_cv_prog_STRIP"
6090 old_CFLAGS="$CFLAGS"
6092 # Set sane defaults for various variables
6093 test -z "$AR" && AR=ar
6094 test -z "$AR_FLAGS" && AR_FLAGS=cru
6095 test -z "$AS" && AS=as
6096 test -z "$CC" && CC=cc
6097 test -z "$LTCC" && LTCC=$CC
6098 test -z "$DLLTOOL" && DLLTOOL=dlltool
6099 test -z "$LD" && LD=ld
6100 test -z "$LN_S" && LN_S="ln -s"
6101 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6102 test -z "$NM" && NM=nm
6103 test -z "$SED" && SED=sed
6104 test -z "$OBJDUMP" && OBJDUMP=objdump
6105 test -z "$RANLIB" && RANLIB=:
6106 test -z "$STRIP" && STRIP=:
6107 test -z "$ac_objext" && ac_objext=o
6109 # Determine commands to create old-style static archives.
6110 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6111 old_postinstall_cmds='chmod 644 $oldlib'
6112 old_postuninstall_cmds=
6114 if test -n "$RANLIB"; then
6117 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6120 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6123 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6126 for cc_temp in $compiler""; do
6128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6137 # Only perform the check for file, if the check method requires it
6138 case $deplibs_check_method in
6140 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6141 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6142 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6143 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6151 lt_save_MAGIC_CMD="$MAGIC_CMD"
6152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6154 for ac_dir in $ac_dummy; do
6156 test -z "$ac_dir" && ac_dir=.
6157 if test -f $ac_dir/${ac_tool_prefix}file; then
6158 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6159 if test -n "$file_magic_test_file"; then
6160 case $deplibs_check_method in
6162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6165 $EGREP "$file_magic_regex" > /dev/null; then
6170 *** Warning: the command libtool uses to detect shared libraries,
6171 *** $file_magic_cmd, produces output that libtool cannot recognize.
6172 *** The result is that libtool may fail to recognize shared libraries
6173 *** as such. This will affect the creation of libtool libraries that
6174 *** depend on shared libraries, but programs linked with such libtool
6175 *** libraries will work regardless of this problem. Nevertheless, you
6176 *** may want to report the problem to your system manager and/or to
6177 *** bug-libtool@gnu.org
6187 MAGIC_CMD="$lt_save_MAGIC_CMD"
6192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6193 if test -n "$MAGIC_CMD"; then
6194 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6195 echo "${ECHO_T}$MAGIC_CMD" >&6
6197 echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6
6201 if test -z "$lt_cv_path_MAGIC_CMD"; then
6202 if test -n "$ac_tool_prefix"; then
6203 echo "$as_me:$LINENO: checking for file" >&5
6204 echo $ECHO_N "checking for file... $ECHO_C" >&6
6205 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6213 lt_save_MAGIC_CMD="$MAGIC_CMD"
6214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6216 for ac_dir in $ac_dummy; do
6218 test -z "$ac_dir" && ac_dir=.
6219 if test -f $ac_dir/file; then
6220 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6221 if test -n "$file_magic_test_file"; then
6222 case $deplibs_check_method in
6224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6227 $EGREP "$file_magic_regex" > /dev/null; then
6232 *** Warning: the command libtool uses to detect shared libraries,
6233 *** $file_magic_cmd, produces output that libtool cannot recognize.
6234 *** The result is that libtool may fail to recognize shared libraries
6235 *** as such. This will affect the creation of libtool libraries that
6236 *** depend on shared libraries, but programs linked with such libtool
6237 *** libraries will work regardless of this problem. Nevertheless, you
6238 *** may want to report the problem to your system manager and/or to
6239 *** bug-libtool@gnu.org
6249 MAGIC_CMD="$lt_save_MAGIC_CMD"
6254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6255 if test -n "$MAGIC_CMD"; then
6256 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6257 echo "${ECHO_T}$MAGIC_CMD" >&6
6259 echo "$as_me:$LINENO: result: no" >&5
6260 echo "${ECHO_T}no" >&6
6275 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6276 if test "${enable_libtool_lock+set}" = set; then
6277 enableval="$enable_libtool_lock"
6280 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6283 # Check whether --with-pic or --without-pic was given.
6284 if test "${with_pic+set}" = set; then
6290 test -z "$pic_mode" && pic_mode=default
6292 # Use C for the default configuration in the libtool script
6296 ac_cpp='$CPP $CPPFLAGS'
6297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6302 # Source file extension for C test sources.
6305 # Object file extension for compiled C test sources.
6309 # Code to be used in simple compile tests
6310 lt_simple_compile_test_code="int some_variable = 0;\n"
6312 # Code to be used in simple link tests
6313 lt_simple_link_test_code='int main(){return(0);}\n'
6316 # If no C compiler was specified, use CC.
6319 # Allow CC to be a program name with arguments.
6323 # save warnings/boilerplate of simple test code
6324 ac_outfile=conftest.$ac_objext
6325 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6326 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6327 _lt_compiler_boilerplate=`cat conftest.err`
6330 ac_outfile=conftest.$ac_objext
6331 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6332 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6333 _lt_linker_boilerplate=`cat conftest.err`
6338 # Check for any special shared library compilation flags.
6341 if test "$GCC" = no; then
6344 lt_prog_cc_shlib='-belf'
6348 if test -n "$lt_prog_cc_shlib"; then
6349 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6350 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6351 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6353 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6354 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6355 lt_cv_prog_cc_can_build_shared=no
6361 # Check to make sure the static flag actually works.
6363 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6364 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6365 if test "${lt_prog_compiler_static_works+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 lt_prog_compiler_static_works=no
6369 save_LDFLAGS="$LDFLAGS"
6370 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6371 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6372 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6373 # The linker can only warn and ignore the option if not recognized
6374 # So say no if there are warnings
6375 if test -s conftest.err; then
6376 # Append any errors to the config.log.
6377 cat conftest.err 1>&5
6378 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6379 $SED '/^$/d' conftest.err >conftest.er2
6380 if diff conftest.exp conftest.er2 >/dev/null; then
6381 lt_prog_compiler_static_works=yes
6384 lt_prog_compiler_static_works=yes
6388 LDFLAGS="$save_LDFLAGS"
6391 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6392 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6394 if test x"$lt_prog_compiler_static_works" = xyes; then
6397 lt_prog_compiler_static=
6403 lt_prog_compiler_no_builtin_flag=
6405 if test "$GCC" = yes; then
6406 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6409 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6410 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6411 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 lt_cv_prog_compiler_rtti_exceptions=no
6415 ac_outfile=conftest.$ac_objext
6416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6417 lt_compiler_flag="-fno-rtti -fno-exceptions"
6418 # Insert the option either (1) after the last *FLAGS variable, or
6419 # (2) before a word containing "conftest.", or (3) at the end.
6420 # Note that $ac_compile itself does not contain backslashes and begins
6421 # with a dollar sign (not a hyphen), so the echo should work correctly.
6422 # The option is referenced via a variable to avoid confusing sed.
6423 lt_compile=`echo "$ac_compile" | $SED \
6424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6426 -e 's:$: $lt_compiler_flag:'`
6427 (eval echo "\"\$as_me:6427: $lt_compile\"" >&5)
6428 (eval "$lt_compile" 2>conftest.err)
6430 cat conftest.err >&5
6431 echo "$as_me:6431: \$? = $ac_status" >&5
6432 if (exit $ac_status) && test -s "$ac_outfile"; then
6433 # The compiler can only warn and ignore the option if not recognized
6434 # So say no if there are warnings other than the usual output.
6435 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6436 $SED '/^$/d' conftest.err >conftest.er2
6437 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6438 lt_cv_prog_compiler_rtti_exceptions=yes
6444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6445 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6448 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6455 lt_prog_compiler_wl=
6456 lt_prog_compiler_pic=
6457 lt_prog_compiler_static=
6459 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6462 if test "$GCC" = yes; then
6463 lt_prog_compiler_wl='-Wl,'
6464 lt_prog_compiler_static='-static'
6468 # All AIX code is PIC.
6469 if test "$host_cpu" = ia64; then
6470 # AIX 5 now supports IA64 processor
6471 lt_prog_compiler_static='-Bstatic'
6476 # FIXME: we need at least 68020 code to build shared libraries, but
6477 # adding the `-m68020' flag to GCC prevents building anything better,
6479 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6482 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6483 # PIC is the default for these OSes.
6486 mingw* | pw32* | os2*)
6487 # This hack is so that the source file can tell whether it is being
6488 # built for inclusion in a dll (and should export symbols for example).
6489 lt_prog_compiler_pic='-DDLL_EXPORT'
6492 darwin* | rhapsody*)
6493 # PIC is the default on this platform
6494 # Common symbols not allowed in MH_DYLIB files
6495 lt_prog_compiler_pic='-fno-common'
6499 # Just because we use GCC doesn't mean we suddenly get shared libraries
6500 # on systems that don't support them.
6501 lt_prog_compiler_can_build_shared=no
6506 if test -d /usr/nec; then
6507 lt_prog_compiler_pic=-Kconform_pic
6512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6519 lt_prog_compiler_pic='-fPIC'
6525 lt_prog_compiler_pic='-fPIC'
6529 # PORTME Check for flag to pass linker flags through the system compiler.
6532 lt_prog_compiler_wl='-Wl,'
6533 if test "$host_cpu" = ia64; then
6534 # AIX 5 now supports IA64 processor
6535 lt_prog_compiler_static='-Bstatic'
6537 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6541 # PIC is the default on this platform
6542 # Common symbols not allowed in MH_DYLIB files
6543 case $cc_basename in
6545 lt_prog_compiler_pic='-qnocommon'
6546 lt_prog_compiler_wl='-Wl,'
6551 mingw* | pw32* | os2*)
6552 # This hack is so that the source file can tell whether it is being
6553 # built for inclusion in a dll (and should export symbols for example).
6554 lt_prog_compiler_pic='-DDLL_EXPORT'
6557 hpux9* | hpux10* | hpux11*)
6558 lt_prog_compiler_wl='-Wl,'
6559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6566 lt_prog_compiler_pic='+Z'
6569 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6570 lt_prog_compiler_static='${wl}-a ${wl}archive'
6573 irix5* | irix6* | nonstopux*)
6574 lt_prog_compiler_wl='-Wl,'
6575 # PIC (with -KPIC) is the default.
6576 lt_prog_compiler_static='-non_shared'
6580 lt_prog_compiler_pic='-KPIC'
6581 lt_prog_compiler_static='-Bstatic'
6585 case $cc_basename in
6587 lt_prog_compiler_wl='-Wl,'
6588 lt_prog_compiler_pic='-KPIC'
6589 lt_prog_compiler_static='-static'
6591 pgcc* | pgf77* | pgf90* | pgf95*)
6592 # Portland Group compilers (*not* the Pentium gcc compiler,
6593 # which looks to be a dead project)
6594 lt_prog_compiler_wl='-Wl,'
6595 lt_prog_compiler_pic='-fpic'
6596 lt_prog_compiler_static='-Bstatic'
6599 lt_prog_compiler_wl='-Wl,'
6600 # All Alpha code is PIC.
6601 lt_prog_compiler_static='-non_shared'
6606 osf3* | osf4* | osf5*)
6607 lt_prog_compiler_wl='-Wl,'
6608 # All OSF/1 code is PIC.
6609 lt_prog_compiler_static='-non_shared'
6613 lt_prog_compiler_pic='-Kpic'
6614 lt_prog_compiler_static='-dn'
6618 lt_prog_compiler_pic='-KPIC'
6619 lt_prog_compiler_static='-Bstatic'
6620 case $cc_basename in
6622 lt_prog_compiler_wl='-Qoption ld ';;
6624 lt_prog_compiler_wl='-Wl,';;
6629 lt_prog_compiler_wl='-Qoption ld '
6630 lt_prog_compiler_pic='-PIC'
6631 lt_prog_compiler_static='-Bstatic'
6634 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6635 lt_prog_compiler_wl='-Wl,'
6636 lt_prog_compiler_pic='-KPIC'
6637 lt_prog_compiler_static='-Bstatic'
6641 if test -d /usr/nec ;then
6642 lt_prog_compiler_pic='-Kconform_pic'
6643 lt_prog_compiler_static='-Bstatic'
6648 lt_prog_compiler_wl='-Wl,'
6649 lt_prog_compiler_can_build_shared=no
6653 lt_prog_compiler_pic='-pic'
6654 lt_prog_compiler_static='-Bstatic'
6658 lt_prog_compiler_can_build_shared=no
6663 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6664 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6667 # Check to make sure the PIC flag actually works.
6669 if test -n "$lt_prog_compiler_pic"; then
6671 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6672 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6673 if test "${lt_prog_compiler_pic_works+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 lt_prog_compiler_pic_works=no
6677 ac_outfile=conftest.$ac_objext
6678 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6679 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6680 # Insert the option either (1) after the last *FLAGS variable, or
6681 # (2) before a word containing "conftest.", or (3) at the end.
6682 # Note that $ac_compile itself does not contain backslashes and begins
6683 # with a dollar sign (not a hyphen), so the echo should work correctly.
6684 # The option is referenced via a variable to avoid confusing sed.
6685 lt_compile=`echo "$ac_compile" | $SED \
6686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6688 -e 's:$: $lt_compiler_flag:'`
6689 (eval echo "\"\$as_me:6689: $lt_compile\"" >&5)
6690 (eval "$lt_compile" 2>conftest.err)
6692 cat conftest.err >&5
6693 echo "$as_me:6693: \$? = $ac_status" >&5
6694 if (exit $ac_status) && test -s "$ac_outfile"; then
6695 # The compiler can only warn and ignore the option if not recognized
6696 # So say no if there are warnings other than the usual output.
6697 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6698 $SED '/^$/d' conftest.err >conftest.er2
6699 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6700 lt_prog_compiler_pic_works=yes
6706 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6707 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6709 if test x"$lt_prog_compiler_pic_works" = xyes; then
6710 case $lt_prog_compiler_pic in
6712 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6715 lt_prog_compiler_pic=
6716 lt_prog_compiler_can_build_shared=no
6721 # For platforms which do not support PIC, -DPIC is meaningless:
6723 lt_prog_compiler_pic=
6726 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6730 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6731 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6732 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 lt_cv_prog_compiler_c_o=no
6736 $rm -r conftest 2>/dev/null
6740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6742 lt_compiler_flag="-o out/conftest2.$ac_objext"
6743 # Insert the option either (1) after the last *FLAGS variable, or
6744 # (2) before a word containing "conftest.", or (3) at the end.
6745 # Note that $ac_compile itself does not contain backslashes and begins
6746 # with a dollar sign (not a hyphen), so the echo should work correctly.
6747 lt_compile=`echo "$ac_compile" | $SED \
6748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6750 -e 's:$: $lt_compiler_flag:'`
6751 (eval echo "\"\$as_me:6751: $lt_compile\"" >&5)
6752 (eval "$lt_compile" 2>out/conftest.err)
6754 cat out/conftest.err >&5
6755 echo "$as_me:6755: \$? = $ac_status" >&5
6756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6758 # The compiler can only warn and ignore the option if not recognized
6759 # So say no if there are warnings
6760 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6761 $SED '/^$/d' out/conftest.err >out/conftest.er2
6762 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6763 lt_cv_prog_compiler_c_o=yes
6768 # SGI C++ compiler will create directory out/ii_files/ for
6769 # template instantiation
6770 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6771 $rm out/* && rmdir out
6777 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6778 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6781 hard_links="nottested"
6782 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6783 # do not overwrite the value of need_locks provided by the user
6784 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6785 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6790 ln conftest.a conftest.b 2>&5 || hard_links=no
6791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6792 echo "$as_me:$LINENO: result: $hard_links" >&5
6793 echo "${ECHO_T}$hard_links" >&6
6794 if test "$hard_links" = no; then
6795 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6796 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6803 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6807 allow_undefined_flag=
6808 enable_shared_with_static_runtimes=no
6810 archive_expsym_cmds=
6811 old_archive_From_new_cmds=
6812 old_archive_from_expsyms_cmds=
6813 export_dynamic_flag_spec=
6814 whole_archive_flag_spec=
6815 thread_safe_flag_spec=
6816 hardcode_libdir_flag_spec=
6817 hardcode_libdir_flag_spec_ld=
6818 hardcode_libdir_separator=
6821 hardcode_shlibpath_var=unsupported
6822 link_all_deplibs=unknown
6823 hardcode_automatic=no
6826 always_export_symbols=no
6827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6828 # include_expsyms should be a list of space-separated symbols to be *always*
6829 # included in the symbol list
6831 # exclude_expsyms can be an extended regexp of symbols to exclude
6832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6834 # as well as any symbol that contains `d'.
6835 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6837 # platforms (ab)use it in PIC code, but their linkers get confused if
6838 # the symbol is explicitly referenced. Since portable code cannot
6839 # rely on this symbol name, it's probably fine to never include it in
6840 # preloaded symbol tables.
6841 extract_expsyms_cmds=
6842 # Just being paranoid about ensuring that cc_basename is set.
6843 for cc_temp in $compiler""; do
6845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6851 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6854 cygwin* | mingw* | pw32*)
6855 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6856 # When not using gcc, we currently assume that we are using
6857 # Microsoft Visual C++.
6858 if test "$GCC" != yes; then
6868 if test "$with_gnu_ld" = yes; then
6869 # If archive_cmds runs LD, not CC, wlarc should be empty
6872 # Set some defaults for GNU ld with shared library support. These
6873 # are reset later if shared libraries are not supported. Putting them
6874 # here allows them to be overridden if necessary.
6875 runpath_var=LD_RUN_PATH
6876 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6877 export_dynamic_flag_spec='${wl}--export-dynamic'
6878 # ancient GNU ld didn't support --whole-archive et. al.
6879 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6880 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6882 whole_archive_flag_spec=
6884 supports_anon_versioning=no
6885 case `$LD -v 2>/dev/null` in
6886 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6887 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6888 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6889 *\ 2.11.*) ;; # other 2.11 versions
6890 *) supports_anon_versioning=yes ;;
6893 # See if GNU ld supports shared libraries.
6895 aix3* | aix4* | aix5*)
6896 # On AIX/PPC, the GNU linker is very broken
6897 if test "$host_cpu" != ia64; then
6901 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6902 *** to be unable to reliably create shared libraries on AIX.
6903 *** Therefore, libtool is disabling shared libraries support. If you
6904 *** really care for shared libraries, you may want to modify your PATH
6905 *** so that a non-GNU linker is found, and then restart.
6912 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)'
6913 hardcode_libdir_flag_spec='-L$libdir'
6914 hardcode_minus_L=yes
6916 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6917 # that the semantics of dynamic libraries on AmigaOS, at least up
6918 # to version 4, is to share data among multiple programs linked
6919 # with the same dynamic library. Since this doesn't match the
6920 # behavior of shared libraries on other platforms, we can't use
6926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6927 allow_undefined_flag=unsupported
6928 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6929 # support --undefined. This deserves some investigation. FIXME
6930 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6936 cygwin* | mingw* | pw32*)
6937 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6938 # as there is no search path for DLLs.
6939 hardcode_libdir_flag_spec='-L$libdir'
6940 allow_undefined_flag=unsupported
6941 always_export_symbols=no
6942 enable_shared_with_static_runtimes=yes
6943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6947 # If the export-symbols file already is a .def file (1st line
6948 # is EXPORTS), use it as is; otherwise, prepend...
6949 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6950 cp $export_symbols $output_objdir/$soname.def;
6952 echo EXPORTS > $output_objdir/$soname.def;
6953 cat $export_symbols >> $output_objdir/$soname.def;
6955 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6964 case $cc_basename,$host_cpu in
6965 pgcc*) # Portland Group C compiler
6966 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6967 tmp_addflag=' $pic_flag'
6969 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6970 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6971 tmp_addflag=' $pic_flag -Mnomain' ;;
6972 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6973 tmp_addflag=' -i_dynamic' ;;
6974 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6975 tmp_addflag=' -i_dynamic -nofor_main' ;;
6976 ifc* | ifort*) # Intel Fortran compiler
6977 tmp_addflag=' -nofor_main' ;;
6979 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6981 if test $supports_anon_versioning = yes; then
6982 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6984 $echo "local: *; };" >> $output_objdir/$libname.ver~
6985 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6994 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7003 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7007 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7008 *** create shared libraries on Solaris systems. Therefore, libtool
7009 *** is disabling shared libraries support. We urge you to upgrade GNU
7010 *** binutils to release 2.9.1 or newer. Another option is to modify
7011 *** your PATH or compiler configuration so that the native linker is
7012 *** used, and then restart.
7015 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7024 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7027 hardcode_shlibpath_var=no
7031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7040 if test "$ld_shlibs" = no; then
7042 hardcode_libdir_flag_spec=
7043 export_dynamic_flag_spec=
7044 whole_archive_flag_spec=
7047 # PORTME fill in a description of your system's linker (not GNU ld)
7050 allow_undefined_flag=unsupported
7051 always_export_symbols=yes
7052 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'
7053 # Note: this linker hardcodes the directories in LIBPATH if there
7054 # are no directories specified by -L.
7055 hardcode_minus_L=yes
7056 if test "$GCC" = yes && test -z "$link_static_flag"; then
7057 # Neither direct hardcoding nor static linking is supported with a
7059 hardcode_direct=unsupported
7064 if test "$host_cpu" = ia64; then
7065 # On IA64, the linker does run time linking by default, so we don't
7066 # have to do anything special.
7067 aix_use_runtimelinking=no
7068 exp_sym_flag='-Bexport'
7071 # If we're using GNU nm, then we don't want the "-C" option.
7072 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7073 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7074 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'
7076 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'
7078 aix_use_runtimelinking=no
7080 # Test if we are trying to use run time linking or normal
7081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7082 # need to do runtime linking.
7083 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7084 for ld_flag in $LDFLAGS; do
7085 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7086 aix_use_runtimelinking=yes
7092 exp_sym_flag='-bexport'
7093 no_entry_flag='-bnoentry'
7096 # When large executables or shared objects are built, AIX ld can
7097 # have problems creating the table of contents. If linking a library
7098 # or program results in "error TOC overflow" add -mminimal-toc to
7099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7104 hardcode_libdir_separator=':'
7105 link_all_deplibs=yes
7107 if test "$GCC" = yes; then
7108 case $host_os in aix4.[012]|aix4.[012].*)
7109 # We only want to do this on AIX 4.2 and lower, the check
7110 # below for broken collect2 doesn't work under 4.3+
7111 collect2name=`${CC} -print-prog-name=collect2`
7112 if test -f "$collect2name" && \
7113 strings "$collect2name" | grep resolve_lib_name >/dev/null
7115 # We have reworked collect2
7118 # We have old collect2
7119 hardcode_direct=unsupported
7120 # It fails to find uninstalled libraries when the uninstalled
7121 # path is not listed in the libpath. Setting hardcode_minus_L
7122 # to unsupported forces relinking
7123 hardcode_minus_L=yes
7124 hardcode_libdir_flag_spec='-L$libdir'
7125 hardcode_libdir_separator=
7128 shared_flag='-shared'
7129 if test "$aix_use_runtimelinking" = yes; then
7130 shared_flag="$shared_flag "'${wl}-G'
7134 if test "$host_cpu" = ia64; then
7135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7136 # chokes on -Wl,-G. The following line is correct:
7139 if test "$aix_use_runtimelinking" = yes; then
7140 shared_flag='${wl}-G'
7142 shared_flag='${wl}-bM:SRE'
7147 # It seems that -bexpall does not export symbols beginning with
7148 # underscore (_), so it is better to generate a list of symbols to export.
7149 always_export_symbols=yes
7150 if test "$aix_use_runtimelinking" = yes; then
7151 # Warning - without using the other runtime loading flags (-brtl),
7152 # -berok will link without error, but may produce a broken library.
7153 allow_undefined_flag='-berok'
7154 # Determine the default libpath from the value encoded in an empty executable.
7155 cat >conftest.$ac_ext <<_ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172 (eval $ac_link) 2>conftest.er1
7174 grep -v '^ *+' conftest.er1 >conftest.err
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest$ac_exeext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7194 # Check for a 64-bit object if we didn't find anything.
7195 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; }
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7202 rm -f conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7207 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"
7209 if test "$host_cpu" = ia64; then
7210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7211 allow_undefined_flag="-z nodefs"
7212 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"
7214 # Determine the default libpath from the value encoded in an empty executable.
7215 cat >conftest.$ac_ext <<_ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7230 rm -f conftest.$ac_objext conftest$ac_exeext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7232 (eval $ac_link) 2>conftest.er1
7234 grep -v '^ *+' conftest.er1 >conftest.err
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } &&
7245 { ac_try='test -s conftest$ac_exeext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7254 # Check for a 64-bit object if we didn't find anything.
7255 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; }
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7262 rm -f conftest.err conftest.$ac_objext \
7263 conftest$ac_exeext conftest.$ac_ext
7264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7266 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7267 # Warning - without using the other run time loading flags,
7268 # -berok will link without error, but may produce a broken library.
7269 no_undefined_flag=' ${wl}-bernotok'
7270 allow_undefined_flag=' ${wl}-berok'
7271 # -bexpall does not export symbols beginning with underscore (_)
7272 always_export_symbols=yes
7273 # Exported symbols can be pulled into shared objects from archives
7274 whole_archive_flag_spec=' '
7275 archive_cmds_need_lc=yes
7276 # This is similar to how AIX traditionally builds its shared libraries.
7277 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'
7283 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)'
7284 hardcode_libdir_flag_spec='-L$libdir'
7285 hardcode_minus_L=yes
7286 # see comment about different semantics on the GNU ld section
7291 export_dynamic_flag_spec=-rdynamic
7294 cygwin* | mingw* | pw32*)
7295 # When not using gcc, we currently assume that we are using
7296 # Microsoft Visual C++.
7297 # hardcode_libdir_flag_spec is actually meaningless, as there is
7298 # no search path for DLLs.
7299 hardcode_libdir_flag_spec=' '
7300 allow_undefined_flag=unsupported
7301 # Tell ltmain to make .lib files, not .a files.
7303 # Tell ltmain to make .dll files, not .so files.
7305 # FIXME: Setting linknames here is a bad hack.
7306 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7307 # The linker will automatically build a .lib file if we build a DLL.
7308 old_archive_From_new_cmds='true'
7309 # FIXME: Should let the user specify the lib program.
7310 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7311 fix_srcfile_path='`cygpath -w "$srcfile"`'
7312 enable_shared_with_static_runtimes=yes
7315 darwin* | rhapsody*)
7317 rhapsody* | darwin1.[012])
7318 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7321 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7322 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7324 case ${MACOSX_DEPLOYMENT_TARGET} in
7326 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7329 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7335 archive_cmds_need_lc=no
7337 hardcode_automatic=yes
7338 hardcode_shlibpath_var=unsupported
7339 whole_archive_flag_spec=''
7340 link_all_deplibs=yes
7341 if test "$GCC" = yes ; then
7342 output_verbose_link_cmd='echo'
7343 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7344 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7345 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7346 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}'
7347 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}'
7349 case $cc_basename in
7351 output_verbose_link_cmd='echo'
7352 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7353 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7354 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7355 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7356 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}'
7366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7367 hardcode_libdir_flag_spec='-L$libdir'
7368 hardcode_shlibpath_var=no
7375 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7376 # support. Future versions do this automatically, but an explicit c++rt0.o
7377 # does not break anything, and helps significantly (at the cost of a little
7380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7381 hardcode_libdir_flag_spec='-R$libdir'
7383 hardcode_shlibpath_var=no
7386 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7390 hardcode_minus_L=yes
7391 hardcode_shlibpath_var=no
7394 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7395 freebsd* | kfreebsd*-gnu | dragonfly*)
7396 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7397 hardcode_libdir_flag_spec='-R$libdir'
7399 hardcode_shlibpath_var=no
7403 if test "$GCC" = yes; then
7404 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'
7406 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'
7408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7409 hardcode_libdir_separator=:
7412 # hardcode_minus_L: Not really in the search PATH,
7413 # but as the default location of the library.
7414 hardcode_minus_L=yes
7415 export_dynamic_flag_spec='${wl}-E'
7419 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7422 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7425 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7431 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7434 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7438 if test "$with_gnu_ld" = no; then
7441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7442 hardcode_libdir_flag_spec_ld='+b $libdir'
7443 hardcode_libdir_separator=:
7445 hardcode_shlibpath_var=no
7448 hardcode_libdir_flag_spec='-L$libdir'
7450 hardcode_shlibpath_var=no
7452 # hardcode_minus_L: Not really in the search PATH,
7453 # but as the default location of the library.
7454 hardcode_minus_L=yes
7457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7458 hardcode_libdir_separator=:
7460 export_dynamic_flag_spec='${wl}-E'
7462 # hardcode_minus_L: Not really in the search PATH,
7463 # but as the default location of the library.
7464 hardcode_minus_L=yes
7470 irix5* | irix6* | nonstopux*)
7471 if test "$GCC" = yes; then
7472 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'
7474 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'
7475 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7478 hardcode_libdir_separator=:
7479 link_all_deplibs=yes
7483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7486 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7488 hardcode_libdir_flag_spec='-R$libdir'
7490 hardcode_shlibpath_var=no
7494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7497 hardcode_libdir_separator=:
7498 hardcode_shlibpath_var=no
7503 hardcode_shlibpath_var=no
7504 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7505 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7506 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7507 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7508 export_dynamic_flag_spec='${wl}-E'
7511 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7513 hardcode_libdir_flag_spec='-R$libdir'
7516 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7517 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7524 hardcode_libdir_flag_spec='-L$libdir'
7525 hardcode_minus_L=yes
7526 allow_undefined_flag=unsupported
7527 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'
7528 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7532 if test "$GCC" = yes; then
7533 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7534 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'
7536 allow_undefined_flag=' -expect_unresolved \*'
7537 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'
7539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7540 hardcode_libdir_separator=:
7543 osf4* | osf5*) # as osf3* with the addition of -msym flag
7544 if test "$GCC" = yes; then
7545 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7546 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'
7547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7549 allow_undefined_flag=' -expect_unresolved \*'
7550 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'
7551 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7552 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7554 # Both c and cxx compiler support -rpath directly
7555 hardcode_libdir_flag_spec='-rpath $libdir'
7557 hardcode_libdir_separator=:
7561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7562 hardcode_shlibpath_var=no
7563 export_dynamic_flag_spec='${wl}-Bexport'
7564 runpath_var=LD_RUN_PATH
7565 hardcode_runpath_var=yes
7569 no_undefined_flag=' -z text'
7570 if test "$GCC" = yes; then
7572 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7573 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7574 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7577 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7578 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7581 hardcode_libdir_flag_spec='-R$libdir'
7582 hardcode_shlibpath_var=no
7584 solaris2.[0-5] | solaris2.[0-5].*) ;;
7586 # The compiler driver will combine linker options so we
7587 # cannot just pass the convience library names through
7588 # without $wl, iff we do not link with $LD.
7589 # Luckily, gcc supports the same syntax we need for Sun Studio.
7590 # Supported since Solaris 2.6 (maybe 2.5.1?)
7593 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7595 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7598 link_all_deplibs=yes
7602 if test "x$host_vendor" = xsequent; then
7603 # Use $CC to link under sequent, because it throws in some extra .o
7604 # files that make .init and .fini sections work.
7605 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7607 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7609 hardcode_libdir_flag_spec='-L$libdir'
7611 hardcode_minus_L=yes
7612 hardcode_shlibpath_var=no
7616 case $host_vendor in
7618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7619 hardcode_direct=yes # is this really true???
7622 ## LD is ld it makes a PLAMLIB
7623 ## CC just makes a GrossModule.
7624 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7625 reload_cmds='$CC -r -o $output$reload_objs'
7629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7633 runpath_var='LD_RUN_PATH'
7634 hardcode_shlibpath_var=no
7638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7639 hardcode_shlibpath_var=no
7640 export_dynamic_flag_spec='-Bexport'
7644 if test -d /usr/nec; then
7645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7646 hardcode_shlibpath_var=no
7647 runpath_var=LD_RUN_PATH
7648 hardcode_runpath_var=yes
7654 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7657 hardcode_shlibpath_var=no
7658 hardcode_runpath_var=yes
7659 runpath_var=LD_RUN_PATH
7662 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7663 no_undefined_flag='${wl}-z ${wl}text'
7664 if test "$GCC" = yes; then
7665 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7667 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7669 runpath_var='LD_RUN_PATH'
7670 hardcode_shlibpath_var=no
7674 no_undefined_flag=' -z text'
7675 # $CC -shared without GNU ld will not create a library from C++
7676 # object files and a static libstdc++, better avoid it by now
7677 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7678 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7680 hardcode_libdir_flag_spec=
7681 hardcode_shlibpath_var=no
7682 runpath_var='LD_RUN_PATH'
7686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7687 hardcode_libdir_flag_spec='-L$libdir'
7688 hardcode_shlibpath_var=no
7697 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7698 echo "${ECHO_T}$ld_shlibs" >&6
7699 test "$ld_shlibs" = no && can_build_shared=no
7701 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7702 if test "$GCC" = yes; then
7703 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7707 # Do we need to explicitly link libc?
7709 case "x$archive_cmds_need_lc" in
7711 # Assume -lc should be added
7712 archive_cmds_need_lc=yes
7714 if test "$enable_shared" = yes && test "$GCC" = yes; then
7715 case $archive_cmds in
7717 # FIXME: we may have to deal with multi-command sequences.
7720 # Test whether the compiler implicitly links with -lc since on some
7721 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7722 # to ld, don't add -lc before -lgcc.
7723 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7724 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7729 (eval $ac_compile) 2>&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } 2>conftest.err; then
7735 libobjs=conftest.$ac_objext
7737 wl=$lt_prog_compiler_wl
7743 lt_save_allow_undefined_flag=$allow_undefined_flag
7744 allow_undefined_flag=
7745 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7746 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }
7751 archive_cmds_need_lc=no
7753 archive_cmds_need_lc=yes
7755 allow_undefined_flag=$lt_save_allow_undefined_flag
7757 cat conftest.err 1>&5
7760 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7761 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7768 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7769 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7771 libname_spec='lib$name'
7779 shlibpath_overrides_runpath=unknown
7781 dynamic_linker="$host_os ld.so"
7782 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7783 if test "$GCC" = yes; then
7784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7785 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7786 # if the path contains ";" then we assume it to be the separator
7787 # otherwise default to the standard path separator (i.e. ":") - it is
7788 # assumed that no part of a normal pathname contains ";" but that should
7789 # okay in the real world where ";" in dirpaths is itself problematic.
7790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7797 need_lib_prefix=unknown
7798 hardcode_into_libs=no
7800 # when you set need_version to no, make sure it does not cause -set_version
7801 # flags to be left without arguments
7802 need_version=unknown
7807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7808 shlibpath_var=LIBPATH
7810 # AIX 3 has no versioning support, so we append a major version to the name.
7811 soname_spec='${libname}${release}${shared_ext}$major'
7818 hardcode_into_libs=yes
7819 if test "$host_cpu" = ia64; then
7820 # AIX 5 supports IA64
7821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7822 shlibpath_var=LD_LIBRARY_PATH
7824 # With GCC up to 2.95.x, collect2 would create an import file
7825 # for dependence libraries. The import file would start with
7826 # the line `#! .'. This would cause the generated library to
7827 # depend on `.', always an invalid library. This was fixed in
7828 # development snapshots of GCC prior to 3.0.
7830 aix4 | aix4.[01] | aix4.[01].*)
7831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7833 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7841 # soname into executable. Probably we can add versioning support to
7842 # collect2, so additional links can be useful in future.
7843 if test "$aix_use_runtimelinking" = yes; then
7844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7845 # instead of lib<name>.a to let people know that these are not
7846 # typical AIX shared libraries.
7847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849 # We preserve .a as extension for shared libraries through AIX4.2
7850 # and later when we are not doing run time linking.
7851 library_names_spec='${libname}${release}.a $libname.a'
7852 soname_spec='${libname}${release}${shared_ext}$major'
7854 shlibpath_var=LIBPATH
7859 library_names_spec='$libname.ixlibrary $libname.a'
7860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7861 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'
7865 library_names_spec='${libname}${shared_ext}'
7866 dynamic_linker="$host_os ld.so"
7867 shlibpath_var=LIBRARY_PATH
7873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874 soname_spec='${libname}${release}${shared_ext}$major'
7875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7876 shlibpath_var=LD_LIBRARY_PATH
7877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7879 # the default ld.so.conf also contains /usr/contrib/lib and
7880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7881 # libtool to hard-code these into programs
7884 cygwin* | mingw* | pw32*)
7885 version_type=windows
7890 case $GCC,$host_os in
7891 yes,cygwin* | yes,mingw* | yes,pw32*)
7892 library_names_spec='$libname.dll.a'
7893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7894 postinstall_cmds='base_file=`basename \${file}`~
7895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7896 dldir=$destdir/`dirname \$dlpath`~
7897 test -d \$dldir || mkdir -p \$dldir~
7898 $install_prog $dir/$dlname \$dldir/$dlname~
7899 chmod a+x \$dldir/$dlname'
7900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7901 dlpath=$dir/\$dldll~
7903 shlibpath_overrides_runpath=yes
7907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7909 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7912 # MinGW DLLs use traditional 'lib' prefix
7913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7915 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7916 # It is most probably a Windows format PATH printed by
7917 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7918 # path with ; separators, and with drive letters. We can handle the
7919 # drive letters (cygwin fileutils understands them), so leave them,
7920 # especially as we might pass files found there to a mingw objdump,
7921 # which wouldn't understand a cygwinified path. Ahh.
7922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7928 # pw32 DLLs use 'pw' prefix rather than 'lib'
7929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7935 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7938 dynamic_linker='Win32 ld.exe'
7939 # FIXME: first we should search . and the directory the executable is in
7943 darwin* | rhapsody*)
7944 dynamic_linker="$host_os dyld"
7948 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7949 soname_spec='${libname}${release}${major}$shared_ext'
7950 shlibpath_overrides_runpath=yes
7951 shlibpath_var=DYLD_LIBRARY_PATH
7952 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7953 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7954 if test "$GCC" = yes; then
7955 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"`
7957 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7967 soname_spec='${libname}${release}${shared_ext}$major'
7968 shlibpath_var=LD_LIBRARY_PATH
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7980 soname_spec='${libname}${release}${shared_ext}$major'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 shlibpath_overrides_runpath=no
7983 hardcode_into_libs=yes
7984 dynamic_linker='GNU ld.so'
7987 freebsd* | dragonfly*)
7988 # DragonFly does not have aout. When/if they implement a new
7989 # versioning mechanism, adjust this.
7990 if test -x /usr/bin/objformat; then
7991 objformat=`/usr/bin/objformat`
7994 freebsd[123]*) objformat=aout ;;
7998 version_type=freebsd-$objformat
7999 case $version_type in
8001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8010 shlibpath_var=LD_LIBRARY_PATH
8013 shlibpath_overrides_runpath=yes
8015 freebsd3.[01]* | freebsdelf3.[01]*)
8016 shlibpath_overrides_runpath=yes
8017 hardcode_into_libs=yes
8020 shlibpath_overrides_runpath=no
8021 hardcode_into_libs=yes
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8031 soname_spec='${libname}${release}${shared_ext}$major'
8032 shlibpath_var=LD_LIBRARY_PATH
8033 hardcode_into_libs=yes
8036 hpux9* | hpux10* | hpux11*)
8037 # Give a soname corresponding to the major version so that dld.sl refuses to
8038 # link against other versions.
8045 hardcode_into_libs=yes
8046 dynamic_linker="$host_os dld.so"
8047 shlibpath_var=LD_LIBRARY_PATH
8048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8050 soname_spec='${libname}${release}${shared_ext}$major'
8051 if test "X$HPUX_IA64_MODE" = X32; then
8052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8054 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8060 hardcode_into_libs=yes
8061 dynamic_linker="$host_os dld.sl"
8062 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8065 soname_spec='${libname}${release}${shared_ext}$major'
8066 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8071 dynamic_linker="$host_os dld.sl"
8072 shlibpath_var=SHLIB_PATH
8073 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8075 soname_spec='${libname}${release}${shared_ext}$major'
8078 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8079 postinstall_cmds='chmod 555 $lib'
8082 irix5* | irix6* | nonstopux*)
8084 nonstopux*) version_type=nonstopux ;;
8086 if test "$lt_cv_prog_gnu_ld" = yes; then
8094 soname_spec='${libname}${release}${shared_ext}$major'
8095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8097 irix5* | nonstopux*)
8101 case $LD in # libtool.m4 will add one of these switches to LD
8102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8103 libsuff= shlibsuff= libmagic=32-bit;;
8104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8105 libsuff=32 shlibsuff=N32 libmagic=N32;;
8106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8108 *) libsuff= shlibsuff= libmagic=never-match;;
8112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8113 shlibpath_overrides_runpath=no
8114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8116 hardcode_into_libs=yes
8119 # No shared lib support for Linux oldld, aout, or coff.
8120 linux*oldld* | linux*aout* | linux*coff*)
8124 # This must be Linux ELF.
8129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8130 soname_spec='${libname}${release}${shared_ext}$major'
8131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8132 shlibpath_var=LD_LIBRARY_PATH
8133 shlibpath_overrides_runpath=no
8134 # This implies no fast_install, which is unacceptable.
8135 # Some rework will be needed to allow for fast_install
8136 # before this can be enabled.
8137 hardcode_into_libs=yes
8139 # Append ld.so.conf contents to the search path
8140 if test -f /etc/ld.so.conf; then
8141 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8142 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8145 # We used to test for /lib/ld.so.1 and disable shared libraries on
8146 # powerpc, because MkLinux only supported shared libraries with the
8147 # GNU dynamic linker. Since this was broken with cross compilers,
8148 # most powerpc-linux boxes support dynamic linking these days and
8149 # people can always --disable-shared, the test was removed, and we
8150 # assume the GNU/Linux dynamic linker is in use.
8151 dynamic_linker='GNU/Linux ld.so'
8158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8159 soname_spec='${libname}${release}${shared_ext}$major'
8160 shlibpath_var=LD_LIBRARY_PATH
8161 shlibpath_overrides_runpath=no
8162 hardcode_into_libs=yes
8163 dynamic_linker='GNU ld.so'
8170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8173 dynamic_linker='NetBSD (a.out) ld.so'
8175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8176 soname_spec='${libname}${release}${shared_ext}$major'
8177 dynamic_linker='NetBSD ld.elf_so'
8179 shlibpath_var=LD_LIBRARY_PATH
8180 shlibpath_overrides_runpath=yes
8181 hardcode_into_libs=yes
8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8187 shlibpath_var=LD_LIBRARY_PATH
8188 shlibpath_overrides_runpath=yes
8195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8196 soname_spec='${libname}${release}${shared_ext}$major'
8197 shlibpath_var=LD_LIBRARY_PATH
8198 shlibpath_overrides_runpath=yes
8204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8206 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8207 *) need_version=no ;;
8209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8211 shlibpath_var=LD_LIBRARY_PATH
8212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8214 openbsd2.[89] | openbsd2.[89].*)
8215 shlibpath_overrides_runpath=no
8218 shlibpath_overrides_runpath=yes
8222 shlibpath_overrides_runpath=yes
8227 libname_spec='$name'
8230 library_names_spec='$libname${shared_ext} $libname.a'
8231 dynamic_linker='OS/2 ld.exe'
8232 shlibpath_var=LIBPATH
8235 osf3* | osf4* | osf5*)
8239 soname_spec='${libname}${release}${shared_ext}$major'
8240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8241 shlibpath_var=LD_LIBRARY_PATH
8242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8248 soname_spec='${libname}${release}${shared_ext}$major'
8249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8250 shlibpath_var=LD_LIBRARY_PATH
8257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8258 soname_spec='${libname}${release}${shared_ext}$major'
8259 shlibpath_var=LD_LIBRARY_PATH
8260 shlibpath_overrides_runpath=yes
8261 hardcode_into_libs=yes
8262 # ldd complains unless libraries are executable
8263 postinstall_cmds='chmod +x $lib'
8268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8269 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8270 shlibpath_var=LD_LIBRARY_PATH
8271 shlibpath_overrides_runpath=yes
8272 if test "$with_gnu_ld" = yes; then
8278 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8281 soname_spec='${libname}${release}${shared_ext}$major'
8282 shlibpath_var=LD_LIBRARY_PATH
8283 case $host_vendor in
8285 shlibpath_overrides_runpath=no
8287 export_dynamic_flag_spec='${wl}-Blargedynsym'
8288 runpath_var=LD_RUN_PATH
8296 shlibpath_overrides_runpath=no
8297 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8303 if test -d /usr/nec ;then
8305 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8306 soname_spec='$libname${shared_ext}.$major'
8307 shlibpath_var=LD_LIBRARY_PATH
8313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8314 soname_spec='${libname}${release}${shared_ext}$major'
8315 shlibpath_var=LD_LIBRARY_PATH
8322 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8323 echo "${ECHO_T}$dynamic_linker" >&6
8324 test "$dynamic_linker" = no && can_build_shared=no
8326 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8327 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8329 if test -n "$hardcode_libdir_flag_spec" || \
8330 test -n "$runpath_var" || \
8331 test "X$hardcode_automatic" = "Xyes" ; then
8333 # We can hardcode non-existant directories.
8334 if test "$hardcode_direct" != no &&
8335 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8336 # have to relink, otherwise we might link with an installed library
8337 # when we should be linking with a yet-to-be-installed one
8338 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8339 test "$hardcode_minus_L" != no; then
8340 # Linking always hardcodes the temporary library directory.
8341 hardcode_action=relink
8343 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8344 hardcode_action=immediate
8347 # We cannot hardcode anything, or else we can only hardcode existing
8349 hardcode_action=unsupported
8351 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8352 echo "${ECHO_T}$hardcode_action" >&6
8354 if test "$hardcode_action" = relink; then
8355 # Fast installation is not supported
8356 enable_fast_install=no
8357 elif test "$shlibpath_overrides_runpath" = yes ||
8358 test "$enable_shared" = no; then
8359 # Fast installation is not necessary
8360 enable_fast_install=needless
8365 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8366 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8367 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8368 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8369 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8370 echo "$as_me:$LINENO: result: yes" >&5
8371 echo "${ECHO_T}yes" >&6
8373 # FIXME - insert some real tests, host_os isn't really good enough
8376 if test -n "$STRIP" ; then
8377 striplib="$STRIP -x"
8378 echo "$as_me:$LINENO: result: yes" >&5
8379 echo "${ECHO_T}yes" >&6
8381 echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6
8386 echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6
8392 if test "x$enable_dlopen" != xyes; then
8393 enable_dlopen=unknown
8394 enable_dlopen_self=unknown
8395 enable_dlopen_self_static=unknown
8402 lt_cv_dlopen="load_add_on"
8404 lt_cv_dlopen_self=yes
8408 lt_cv_dlopen="LoadLibrary"
8413 lt_cv_dlopen="dlopen"
8418 # if libdl is installed we need to link against it
8419 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8420 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8421 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 ac_check_lib_save_LIBS=$LIBS
8426 cat >conftest.$ac_ext <<_ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8433 /* Override any gcc2 internal prototype to avoid an error. */
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450 (eval $ac_link) 2>conftest.er1
8452 grep -v '^ *+' conftest.er1 >conftest.err
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest$ac_exeext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_cv_lib_dl_dlopen=yes
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ac_cv_lib_dl_dlopen=no
8476 rm -f conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 LIBS=$ac_check_lib_save_LIBS
8480 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8481 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8482 if test $ac_cv_lib_dl_dlopen = yes; then
8483 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8488 lt_cv_dlopen_self=yes
8495 echo "$as_me:$LINENO: checking for shl_load" >&5
8496 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8497 if test "${ac_cv_func_shl_load+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8508 #define shl_load innocuous_shl_load
8510 /* System header to define __stub macros and hopefully few prototypes,
8511 which can conflict with char shl_load (); below.
8512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8513 <limits.h> exists even on freestanding compilers. */
8516 # include <limits.h>
8518 # include <assert.h>
8523 /* Override any gcc2 internal prototype to avoid an error. */
8528 /* We use char because int might match the return type of a gcc2
8529 builtin and then its argument prototype would still apply. */
8531 /* The GNU C library defines this for functions which it implements
8532 to always fail with ENOSYS. Some functions are actually named
8533 something starting with __ and the normal name is an alias. */
8534 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8537 char (*f) () = shl_load;
8546 return f != shl_load;
8551 rm -f conftest.$ac_objext conftest$ac_exeext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553 (eval $ac_link) 2>conftest.er1
8555 grep -v '^ *+' conftest.er1 >conftest.err
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest$ac_exeext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 ac_cv_func_shl_load=yes
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 ac_cv_func_shl_load=no
8579 rm -f conftest.err conftest.$ac_objext \
8580 conftest$ac_exeext conftest.$ac_ext
8582 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8583 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8584 if test $ac_cv_func_shl_load = yes; then
8585 lt_cv_dlopen="shl_load"
8587 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8588 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8589 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 ac_check_lib_save_LIBS=$LIBS
8594 cat >conftest.$ac_ext <<_ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8601 /* Override any gcc2 internal prototype to avoid an error. */
8605 /* We use char because int might match the return type of a gcc2
8606 builtin and then its argument prototype would still apply. */
8616 rm -f conftest.$ac_objext conftest$ac_exeext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8618 (eval $ac_link) 2>conftest.er1
8620 grep -v '^ *+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest$ac_exeext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_lib_dld_shl_load=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 ac_cv_lib_dld_shl_load=no
8644 rm -f conftest.err conftest.$ac_objext \
8645 conftest$ac_exeext conftest.$ac_ext
8646 LIBS=$ac_check_lib_save_LIBS
8648 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8649 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8650 if test $ac_cv_lib_dld_shl_load = yes; then
8651 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8653 echo "$as_me:$LINENO: checking for dlopen" >&5
8654 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8655 if test "${ac_cv_func_dlopen+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 cat >conftest.$ac_ext <<_ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8664 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8666 #define dlopen innocuous_dlopen
8668 /* System header to define __stub macros and hopefully few prototypes,
8669 which can conflict with char dlopen (); below.
8670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8671 <limits.h> exists even on freestanding compilers. */
8674 # include <limits.h>
8676 # include <assert.h>
8681 /* Override any gcc2 internal prototype to avoid an error. */
8686 /* We use char because int might match the return type of a gcc2
8687 builtin and then its argument prototype would still apply. */
8689 /* The GNU C library defines this for functions which it implements
8690 to always fail with ENOSYS. Some functions are actually named
8691 something starting with __ and the normal name is an alias. */
8692 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8695 char (*f) () = dlopen;
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>conftest.er1
8713 grep -v '^ *+' conftest.er1 >conftest.err
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; } &&
8724 { ac_try='test -s conftest$ac_exeext'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8730 ac_cv_func_dlopen=yes
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8735 ac_cv_func_dlopen=no
8737 rm -f conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8740 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8741 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8742 if test $ac_cv_func_dlopen = yes; then
8743 lt_cv_dlopen="dlopen"
8745 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8746 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8747 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 ac_check_lib_save_LIBS=$LIBS
8752 cat >conftest.$ac_ext <<_ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8759 /* Override any gcc2 internal prototype to avoid an error. */
8763 /* We use char because int might match the return type of a gcc2
8764 builtin and then its argument prototype would still apply. */
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>conftest.er1
8778 grep -v '^ *+' conftest.er1 >conftest.err
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try='test -s conftest$ac_exeext'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 ac_cv_lib_dl_dlopen=yes
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 ac_cv_lib_dl_dlopen=no
8802 rm -f conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8804 LIBS=$ac_check_lib_save_LIBS
8806 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8807 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8808 if test $ac_cv_lib_dl_dlopen = yes; then
8809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8811 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8812 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8813 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 ac_check_lib_save_LIBS=$LIBS
8818 cat >conftest.$ac_ext <<_ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8825 /* Override any gcc2 internal prototype to avoid an error. */
8829 /* We use char because int might match the return type of a gcc2
8830 builtin and then its argument prototype would still apply. */
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>conftest.er1
8844 grep -v '^ *+' conftest.er1 >conftest.err
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; } &&
8855 { ac_try='test -s conftest$ac_exeext'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8861 ac_cv_lib_svld_dlopen=yes
8863 echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8866 ac_cv_lib_svld_dlopen=no
8868 rm -f conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8870 LIBS=$ac_check_lib_save_LIBS
8872 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8873 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8874 if test $ac_cv_lib_svld_dlopen = yes; then
8875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8877 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8878 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8879 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 ac_check_lib_save_LIBS=$LIBS
8884 cat >conftest.$ac_ext <<_ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8891 /* Override any gcc2 internal prototype to avoid an error. */
8895 /* We use char because int might match the return type of a gcc2
8896 builtin and then its argument prototype would still apply. */
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908 (eval $ac_link) 2>conftest.er1
8910 grep -v '^ *+' conftest.er1 >conftest.err
8912 cat conftest.err >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } &&
8915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; } &&
8921 { ac_try='test -s conftest$ac_exeext'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; }; then
8927 ac_cv_lib_dld_dld_link=yes
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8932 ac_cv_lib_dld_dld_link=no
8934 rm -f conftest.err conftest.$ac_objext \
8935 conftest$ac_exeext conftest.$ac_ext
8936 LIBS=$ac_check_lib_save_LIBS
8938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8939 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8940 if test $ac_cv_lib_dld_dld_link = yes; then
8941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8962 if test "x$lt_cv_dlopen" != xno; then
8968 case $lt_cv_dlopen in
8970 save_CPPFLAGS="$CPPFLAGS"
8971 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8973 save_LDFLAGS="$LDFLAGS"
8974 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8977 LIBS="$lt_cv_dlopen_libs $LIBS"
8979 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8980 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8981 if test "${lt_cv_dlopen_self+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 if test "$cross_compiling" = yes; then :
8985 lt_cv_dlopen_self=cross
8987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8988 lt_status=$lt_dlunknown
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8990 "configure"
8991 #include "confdefs.h"
9000 # define LT_DLGLOBAL RTLD_GLOBAL
9003 # define LT_DLGLOBAL DL_GLOBAL
9005 # define LT_DLGLOBAL 0
9009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9010 find out it does not work in some platform. */
9011 #ifndef LT_DLLAZY_OR_NOW
9013 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9016 # define LT_DLLAZY_OR_NOW DL_LAZY
9019 # define LT_DLLAZY_OR_NOW RTLD_NOW
9022 # define LT_DLLAZY_OR_NOW DL_NOW
9024 # define LT_DLLAZY_OR_NOW 0
9032 extern "C" void exit (int);
9035 void fnord() { int i=42;}
9038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9039 int status = $lt_dlunknown;
9043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9044 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9045 /* dlclose (self); */
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9056 (./conftest; exit; ) >&5 2>/dev/null
9059 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9060 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9061 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9064 # compilation failed
9065 lt_cv_dlopen_self=no
9072 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9073 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9075 if test "x$lt_cv_dlopen_self" = xyes; then
9076 LDFLAGS="$LDFLAGS $link_static_flag"
9077 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9078 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9079 if test "${lt_cv_dlopen_self_static+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 if test "$cross_compiling" = yes; then :
9083 lt_cv_dlopen_self_static=cross
9085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9086 lt_status=$lt_dlunknown
9087 cat > conftest.$ac_ext <<EOF
9088 #line 9088 "configure"
9089 #include "confdefs.h"
9098 # define LT_DLGLOBAL RTLD_GLOBAL
9101 # define LT_DLGLOBAL DL_GLOBAL
9103 # define LT_DLGLOBAL 0
9107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9108 find out it does not work in some platform. */
9109 #ifndef LT_DLLAZY_OR_NOW
9111 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9114 # define LT_DLLAZY_OR_NOW DL_LAZY
9117 # define LT_DLLAZY_OR_NOW RTLD_NOW
9120 # define LT_DLLAZY_OR_NOW DL_NOW
9122 # define LT_DLLAZY_OR_NOW 0
9130 extern "C" void exit (int);
9133 void fnord() { int i=42;}
9136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9137 int status = $lt_dlunknown;
9141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9142 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9143 /* dlclose (self); */
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9154 (./conftest; exit; ) >&5 2>/dev/null
9157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9159 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9162 # compilation failed
9163 lt_cv_dlopen_self_static=no
9170 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9171 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9174 CPPFLAGS="$save_CPPFLAGS"
9175 LDFLAGS="$save_LDFLAGS"
9180 case $lt_cv_dlopen_self in
9181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9182 *) enable_dlopen_self=unknown ;;
9185 case $lt_cv_dlopen_self_static in
9186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9187 *) enable_dlopen_self_static=unknown ;;
9192 # Report which librarie types wil actually be built
9193 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9194 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9195 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9196 echo "${ECHO_T}$can_build_shared" >&6
9198 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9199 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9200 test "$can_build_shared" = "no" && enable_shared=no
9202 # On AIX, shared libraries and static libraries use the same namespace, and
9203 # are all built from PIC.
9206 test "$enable_shared" = yes && enable_static=no
9207 if test -n "$RANLIB"; then
9208 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9209 postinstall_cmds='$RANLIB $lib'
9214 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9215 test "$enable_shared" = yes && enable_static=no
9219 echo "$as_me:$LINENO: result: $enable_shared" >&5
9220 echo "${ECHO_T}$enable_shared" >&6
9222 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9223 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9224 # Make sure either enable_shared or enable_static is yes.
9225 test "$enable_shared" = yes || enable_static=yes
9226 echo "$as_me:$LINENO: result: $enable_static" >&5
9227 echo "${ECHO_T}$enable_static" >&6
9229 # The else clause should only fire when bootstrapping the
9230 # libtool distribution, otherwise you forgot to ship ltmain.sh
9231 # with your package, and you will get complaints that there are
9232 # no rules to generate ltmain.sh.
9233 if test -f "$ltmain"; then
9234 # See if we are running on zsh, and set the options which allow our commands through
9235 # without removal of \ escapes.
9236 if test -n "${ZSH_VERSION+set}" ; then
9237 setopt NO_GLOB_SUBST
9239 # Now quote all the things that may contain metacharacters while being
9240 # careful not to overquote the AC_SUBSTed values. We take copies of the
9241 # variables and quote the copies for generation of the libtool script.
9242 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9244 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9245 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9246 deplibs_check_method reload_flag reload_cmds need_locks \
9247 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9248 lt_cv_sys_global_symbol_to_c_name_address \
9249 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9250 old_postinstall_cmds old_postuninstall_cmds \
9254 lt_prog_compiler_wl \
9255 lt_prog_compiler_pic \
9256 lt_prog_compiler_static \
9257 lt_prog_compiler_no_builtin_flag \
9258 export_dynamic_flag_spec \
9259 thread_safe_flag_spec \
9260 whole_archive_flag_spec \
9261 enable_shared_with_static_runtimes \
9263 old_archive_from_new_cmds \
9268 compiler_lib_search_path \
9270 archive_expsym_cmds \
9272 postuninstall_cmds \
9273 old_archive_from_expsyms_cmds \
9274 allow_undefined_flag \
9276 export_symbols_cmds \
9277 hardcode_libdir_flag_spec \
9278 hardcode_libdir_flag_spec_ld \
9279 hardcode_libdir_separator \
9280 hardcode_automatic \
9282 module_expsym_cmds \
9283 lt_cv_prog_compiler_c_o \
9288 old_archive_cmds | \
9289 old_archive_from_new_cmds | \
9291 archive_expsym_cmds | \
9293 module_expsym_cmds | \
9294 old_archive_from_expsyms_cmds | \
9295 export_symbols_cmds | \
9296 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9297 postinstall_cmds | postuninstall_cmds | \
9298 old_postinstall_cmds | old_postuninstall_cmds | \
9299 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9300 # Double-quote double-evaled strings.
9301 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9304 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9310 *'\$0 --fallback-echo"')
9311 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9316 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9318 { echo "$as_me:$LINENO: creating $ofile" >&5
9319 echo "$as_me: creating $ofile" >&6;}
9321 cat <<__EOF__ >> "$cfgfile"
9324 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9325 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9326 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9328 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9329 # Free Software Foundation, Inc.
9331 # This file is part of GNU Libtool:
9332 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9334 # This program is free software; you can redistribute it and/or modify
9335 # it under the terms of the GNU General Public License as published by
9336 # the Free Software Foundation; either version 2 of the License, or
9337 # (at your option) any later version.
9339 # This program is distributed in the hope that it will be useful, but
9340 # WITHOUT ANY WARRANTY; without even the implied warranty of
9341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9342 # General Public License for more details.
9344 # You should have received a copy of the GNU General Public License
9345 # along with this program; if not, write to the Free Software
9346 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9348 # As a special exception to the GNU General Public License, if you
9349 # distribute this file as part of a program that contains a
9350 # configuration script generated by Autoconf, you may include it under
9351 # the same distribution terms that you use for the rest of that program.
9353 # A sed program that does not truncate output.
9356 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9357 Xsed="$SED -e 1s/^X//"
9359 # The HP-UX ksh and POSIX shell print the target directory to stdout
9361 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9363 # The names of the tagged configurations supported by this script.
9366 # ### BEGIN LIBTOOL CONFIG
9368 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9370 # Shell to use when invoking shell scripts.
9373 # Whether or not to build shared libraries.
9374 build_libtool_libs=$enable_shared
9376 # Whether or not to build static libraries.
9377 build_old_libs=$enable_static
9379 # Whether or not to add -lc for building shared libraries.
9380 build_libtool_need_lc=$archive_cmds_need_lc
9382 # Whether or not to disallow shared libs when runtime libs are static
9383 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9385 # Whether or not to optimize for fast installation.
9386 fast_install=$enable_fast_install
9389 host_alias=$host_alias
9394 build_alias=$build_alias
9398 # An echo program that does not interpret backslashes.
9403 AR_FLAGS=$lt_AR_FLAGS
9408 # A language-specific compiler.
9411 # Is the compiler the GNU C compiler?
9417 # The linker used to build libraries.
9420 # Whether we need hard or soft links.
9423 # A BSD-compatible nm program.
9426 # A symbol stripping program
9429 # Used to examine libraries when file_magic_cmd begins "file"
9430 MAGIC_CMD=$MAGIC_CMD
9432 # Used on cygwin: DLL creation program.
9435 # Used on cygwin: object dumper.
9438 # Used on cygwin: assembler.
9441 # The name of the directory that contains temporary libtool files.
9444 # How to create reloadable object files.
9445 reload_flag=$lt_reload_flag
9446 reload_cmds=$lt_reload_cmds
9448 # How to pass a linker flag through the compiler.
9449 wl=$lt_lt_prog_compiler_wl
9451 # Object file suffix (normally "o").
9454 # Old archive suffix (normally "a").
9457 # Shared library suffix (normally ".so").
9458 shrext_cmds='$shrext_cmds'
9460 # Executable file suffix (normally "").
9463 # Additional compiler flags for building library objects.
9464 pic_flag=$lt_lt_prog_compiler_pic
9467 # What is the maximum length of a command?
9468 max_cmd_len=$lt_cv_sys_max_cmd_len
9470 # Does compiler simultaneously support -c and -o options?
9471 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9473 # Must we lock files when doing compilation?
9474 need_locks=$lt_need_locks
9476 # Do we need the lib prefix for modules?
9477 need_lib_prefix=$need_lib_prefix
9479 # Do we need a version for libraries?
9480 need_version=$need_version
9482 # Whether dlopen is supported.
9483 dlopen_support=$enable_dlopen
9485 # Whether dlopen of programs is supported.
9486 dlopen_self=$enable_dlopen_self
9488 # Whether dlopen of statically linked programs is supported.
9489 dlopen_self_static=$enable_dlopen_self_static
9491 # Compiler flag to prevent dynamic linking.
9492 link_static_flag=$lt_lt_prog_compiler_static
9494 # Compiler flag to turn off builtin functions.
9495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9497 # Compiler flag to allow reflexive dlopens.
9498 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9500 # Compiler flag to generate shared objects directly from archives.
9501 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9503 # Compiler flag to generate thread-safe objects.
9504 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9506 # Library versioning type.
9507 version_type=$version_type
9509 # Format of library name prefix.
9510 libname_spec=$lt_libname_spec
9512 # List of archive names. First name is the real one, the rest are links.
9513 # The last name is the one that the linker finds with -lNAME.
9514 library_names_spec=$lt_library_names_spec
9516 # The coded name of the library, if different from the real name.
9517 soname_spec=$lt_soname_spec
9519 # Commands used to build and install an old-style archive.
9521 old_archive_cmds=$lt_old_archive_cmds
9522 old_postinstall_cmds=$lt_old_postinstall_cmds
9523 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9525 # Create an old-style archive from a shared archive.
9526 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9528 # Create a temporary old-style archive to link instead of a shared archive.
9529 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9531 # Commands used to build and install a shared archive.
9532 archive_cmds=$lt_archive_cmds
9533 archive_expsym_cmds=$lt_archive_expsym_cmds
9534 postinstall_cmds=$lt_postinstall_cmds
9535 postuninstall_cmds=$lt_postuninstall_cmds
9537 # Commands used to build a loadable module (assumed same as above if empty)
9538 module_cmds=$lt_module_cmds
9539 module_expsym_cmds=$lt_module_expsym_cmds
9541 # Commands to strip libraries.
9542 old_striplib=$lt_old_striplib
9543 striplib=$lt_striplib
9545 # Dependencies to place before the objects being linked to create a
9547 predep_objects=$lt_predep_objects
9549 # Dependencies to place after the objects being linked to create a
9551 postdep_objects=$lt_postdep_objects
9553 # Dependencies to place before the objects being linked to create a
9557 # Dependencies to place after the objects being linked to create a
9559 postdeps=$lt_postdeps
9561 # The library search path used internally by the compiler when linking
9563 compiler_lib_search_path=$lt_compiler_lib_search_path
9565 # Method to check whether dependent libraries are shared objects.
9566 deplibs_check_method=$lt_deplibs_check_method
9568 # Command to use when deplibs_check_method == file_magic.
9569 file_magic_cmd=$lt_file_magic_cmd
9571 # Flag that allows shared libraries with undefined symbols to be built.
9572 allow_undefined_flag=$lt_allow_undefined_flag
9574 # Flag that forces no undefined symbols.
9575 no_undefined_flag=$lt_no_undefined_flag
9577 # Commands used to finish a libtool library installation in a directory.
9578 finish_cmds=$lt_finish_cmds
9580 # Same as above, but a single script fragment to be evaled but not shown.
9581 finish_eval=$lt_finish_eval
9583 # Take the output of nm and produce a listing of raw symbols and C names.
9584 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9586 # Transform the output of nm in a proper C declaration
9587 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9589 # Transform the output of nm in a C name address pair
9590 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9592 # This is the shared library runtime path variable.
9593 runpath_var=$runpath_var
9595 # This is the shared library path variable.
9596 shlibpath_var=$shlibpath_var
9598 # Is shlibpath searched before the hard-coded library search path?
9599 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9601 # How to hardcode a shared library path into an executable.
9602 hardcode_action=$hardcode_action
9604 # Whether we should hardcode library paths into libraries.
9605 hardcode_into_libs=$hardcode_into_libs
9607 # Flag to hardcode \$libdir into a binary during linking.
9608 # This must work even if \$libdir does not exist.
9609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9611 # If ld is used when linking, flag to hardcode \$libdir into
9612 # a binary during linking. This must work even if \$libdir does
9614 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9616 # Whether we need a single -rpath flag with a separated argument.
9617 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9619 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9621 hardcode_direct=$hardcode_direct
9623 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9625 hardcode_minus_L=$hardcode_minus_L
9627 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9628 # the resulting binary.
9629 hardcode_shlibpath_var=$hardcode_shlibpath_var
9631 # Set to yes if building a shared library automatically hardcodes DIR into the library
9632 # and all subsequent libraries and executables linked against it.
9633 hardcode_automatic=$hardcode_automatic
9635 # Variables whose values should be saved in libtool wrapper scripts and
9636 # restored at relink time.
9637 variables_saved_for_relink="$variables_saved_for_relink"
9639 # Whether libtool must link a program against all its dependency libraries.
9640 link_all_deplibs=$link_all_deplibs
9642 # Compile-time system search path for libraries
9643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9645 # Run-time system search path for libraries
9646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9648 # Fix the shell variable \$srcfile for the compiler.
9649 fix_srcfile_path="$fix_srcfile_path"
9651 # Set to yes if exported symbols are required.
9652 always_export_symbols=$always_export_symbols
9654 # The commands to list exported symbols.
9655 export_symbols_cmds=$lt_export_symbols_cmds
9657 # The commands to extract the exported symbol list from a shared archive.
9658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9660 # Symbols that should not be listed in the preloaded symbols.
9661 exclude_expsyms=$lt_exclude_expsyms
9663 # Symbols that must always be exported.
9664 include_expsyms=$lt_include_expsyms
9666 # ### END LIBTOOL CONFIG
9673 cat <<\EOF >> "$cfgfile"
9675 # AIX sometimes has problems with the GCC collect2 program. For some
9676 # reason, if we set the COLLECT_NAMES environment variable, the problems
9677 # vanish in a puff of smoke.
9678 if test "X${COLLECT_NAMES+set}" != Xset; then
9680 export COLLECT_NAMES
9686 # We use sed instead of cat because bash on DJGPP gets confused if
9687 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9688 # text mode, it properly converts lines to CR/LF. This bash problem
9689 # is reportedly fixed, but why not run on old versions too?
9690 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9692 mv -f "$cfgfile" "$ofile" || \
9693 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9697 # If there is no Makefile yet, we rely on a make rule to execute
9698 # `config.status --recheck' to rerun these tests and create the
9699 # libtool script then.
9700 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9701 if test -f "$ltmain_in"; then
9702 test -f Makefile && make "$ltmain"
9708 ac_cpp='$CPP $CPPFLAGS'
9709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9716 # Check whether --with-tags or --without-tags was given.
9717 if test "${with_tags+set}" = set; then
9718 withval="$with_tags"
9722 if test -f "$ltmain" && test -n "$tagnames"; then
9723 if test ! -f "${ofile}"; then
9724 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9725 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9728 if test -z "$LTCC"; then
9729 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9730 if test -z "$LTCC"; then
9731 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9732 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9734 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9735 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9739 # Extract list of available tagged configurations in $ofile.
9740 # Note that this assumes the entire list is on one line.
9741 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9743 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9744 for tagname in $tagnames; do
9746 # Check whether tagname contains only valid characters
9747 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9749 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9750 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9751 { (exit 1); exit 1; }; }
9755 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9757 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9758 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9759 { (exit 1); exit 1; }; }
9762 # Update the list of available tags.
9763 if test -n "$tagname"; then
9764 echo appending configuration tag \"$tagname\" to $ofile
9768 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9769 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9770 (test "X$CXX" != "Xg++"))) ; then
9772 ac_cpp='$CXXCPP $CPPFLAGS'
9773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9780 archive_cmds_need_lc_CXX=no
9781 allow_undefined_flag_CXX=
9782 always_export_symbols_CXX=no
9783 archive_expsym_cmds_CXX=
9784 export_dynamic_flag_spec_CXX=
9785 hardcode_direct_CXX=no
9786 hardcode_libdir_flag_spec_CXX=
9787 hardcode_libdir_flag_spec_ld_CXX=
9788 hardcode_libdir_separator_CXX=
9789 hardcode_minus_L_CXX=no
9790 hardcode_automatic_CXX=no
9792 module_expsym_cmds_CXX=
9793 link_all_deplibs_CXX=unknown
9794 old_archive_cmds_CXX=$old_archive_cmds
9795 no_undefined_flag_CXX=
9796 whole_archive_flag_spec_CXX=
9797 enable_shared_with_static_runtimes_CXX=no
9799 # Dependencies to place before and after the object being linked:
9801 postdep_objects_CXX=
9804 compiler_lib_search_path_CXX=
9806 # Source file extension for C++ test sources.
9809 # Object file extension for compiled C++ test sources.
9813 # Code to be used in simple compile tests
9814 lt_simple_compile_test_code="int some_variable = 0;\n"
9816 # Code to be used in simple link tests
9817 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9819 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9821 # If no C compiler was specified, use CC.
9824 # Allow CC to be a program name with arguments.
9828 # save warnings/boilerplate of simple test code
9829 ac_outfile=conftest.$ac_objext
9830 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9831 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9832 _lt_compiler_boilerplate=`cat conftest.err`
9835 ac_outfile=conftest.$ac_objext
9836 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9837 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9838 _lt_linker_boilerplate=`cat conftest.err`
9842 # Allow CC to be a program name with arguments.
9847 lt_save_with_gnu_ld=$with_gnu_ld
9848 lt_save_path_LD=$lt_cv_path_LD
9849 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9850 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9852 unset lt_cv_prog_gnu_ld
9854 if test -n "${lt_cv_path_LDCXX+set}"; then
9855 lt_cv_path_LD=$lt_cv_path_LDCXX
9859 test -z "${LDCXX+set}" || LD=$LDCXX
9863 for cc_temp in $compiler""; do
9865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9871 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9874 # We don't want -fno-exception wen compiling C++ code, so set the
9875 # no_builtin_flag separately
9876 if test "$GXX" = yes; then
9877 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9879 lt_prog_compiler_no_builtin_flag_CXX=
9882 if test "$GXX" = yes; then
9883 # Set up default GNU C++ configuration
9886 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9887 if test "${with_gnu_ld+set}" = set; then
9888 withval="$with_gnu_ld"
9889 test "$withval" = no || with_gnu_ld=yes
9894 if test "$GCC" = yes; then
9895 # Check if gcc -print-prog-name=ld gives a path.
9896 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9897 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9900 # gcc leaves a trailing carriage return which upsets mingw
9901 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9903 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9906 # Accept absolute paths.
9908 re_direlt='/[^/][^/]*/\.\./'
9909 # Canonicalize the pathname of ld
9910 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9911 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9912 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9914 test -z "$LD" && LD="$ac_prog"
9917 # If it fails, then pretend we aren't using GCC.
9921 # If it is relative, then search for the first ld in PATH.
9925 elif test "$with_gnu_ld" = yes; then
9926 echo "$as_me:$LINENO: checking for GNU ld" >&5
9927 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9929 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9930 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9932 if test "${lt_cv_path_LD+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 if test -z "$LD"; then
9936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9937 for ac_dir in $PATH; do
9939 test -z "$ac_dir" && ac_dir=.
9940 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9941 lt_cv_path_LD="$ac_dir/$ac_prog"
9942 # Check to see if the program is GNU ld. I'd rather use --version,
9943 # but apparently some variants of GNU ld only accept -v.
9944 # Break only if it was the GNU/non-GNU ld that we prefer.
9945 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9946 *GNU* | *'with BFD'*)
9947 test "$with_gnu_ld" != no && break
9950 test "$with_gnu_ld" != yes && break
9957 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9962 if test -n "$LD"; then
9963 echo "$as_me:$LINENO: result: $LD" >&5
9964 echo "${ECHO_T}$LD" >&6
9966 echo "$as_me:$LINENO: result: no" >&5
9967 echo "${ECHO_T}no" >&6
9969 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9970 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9971 { (exit 1); exit 1; }; }
9972 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9973 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9974 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9978 case `$LD -v 2>&1 </dev/null` in
9979 *GNU* | *'with BFD'*)
9980 lt_cv_prog_gnu_ld=yes
9983 lt_cv_prog_gnu_ld=no
9987 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9988 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9989 with_gnu_ld=$lt_cv_prog_gnu_ld
9993 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9994 # archiving commands below assume that GNU ld is being used.
9995 if test "$with_gnu_ld" = yes; then
9996 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9997 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'
9999 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10000 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10002 # If archive_cmds runs LD, not CC, wlarc should be empty
10003 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10004 # investigate it a little bit more. (MM)
10007 # ancient GNU ld didn't support --whole-archive et. al.
10008 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10009 grep 'no-whole-archive' > /dev/null; then
10010 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10012 whole_archive_flag_spec_CXX=
10018 # A generic and very simple default shared library creation
10019 # command for GNU C++ for the case where it uses the native
10020 # linker, instead of GNU ld. If possible, this setting should
10021 # overridden to take advantage of the native linker features on
10022 # the platform it is being used on.
10023 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10026 # Commands to make compiler produce verbose output that lists
10027 # what "hidden" libraries, object files and flags are used when
10028 # linking a shared library.
10029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10037 # PORTME: fill in a description of your system's C++ link characteristics
10038 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10039 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10043 # FIXME: insert proper C++ library support
10047 if test "$host_cpu" = ia64; then
10048 # On IA64, the linker does run time linking by default, so we don't
10049 # have to do anything special.
10050 aix_use_runtimelinking=no
10051 exp_sym_flag='-Bexport'
10054 aix_use_runtimelinking=no
10056 # Test if we are trying to use run time linking or normal
10057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10058 # need to do runtime linking.
10059 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10060 for ld_flag in $LDFLAGS; do
10063 aix_use_runtimelinking=yes
10070 exp_sym_flag='-bexport'
10071 no_entry_flag='-bnoentry'
10074 # When large executables or shared objects are built, AIX ld can
10075 # have problems creating the table of contents. If linking a library
10076 # or program results in "error TOC overflow" add -mminimal-toc to
10077 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10078 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10080 archive_cmds_CXX=''
10081 hardcode_direct_CXX=yes
10082 hardcode_libdir_separator_CXX=':'
10083 link_all_deplibs_CXX=yes
10085 if test "$GXX" = yes; then
10086 case $host_os in aix4.[012]|aix4.[012].*)
10087 # We only want to do this on AIX 4.2 and lower, the check
10088 # below for broken collect2 doesn't work under 4.3+
10089 collect2name=`${CC} -print-prog-name=collect2`
10090 if test -f "$collect2name" && \
10091 strings "$collect2name" | grep resolve_lib_name >/dev/null
10093 # We have reworked collect2
10094 hardcode_direct_CXX=yes
10096 # We have old collect2
10097 hardcode_direct_CXX=unsupported
10098 # It fails to find uninstalled libraries when the uninstalled
10099 # path is not listed in the libpath. Setting hardcode_minus_L
10100 # to unsupported forces relinking
10101 hardcode_minus_L_CXX=yes
10102 hardcode_libdir_flag_spec_CXX='-L$libdir'
10103 hardcode_libdir_separator_CXX=
10106 shared_flag='-shared'
10107 if test "$aix_use_runtimelinking" = yes; then
10108 shared_flag="$shared_flag "'${wl}-G'
10112 if test "$host_cpu" = ia64; then
10113 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10114 # chokes on -Wl,-G. The following line is correct:
10117 if test "$aix_use_runtimelinking" = yes; then
10118 shared_flag='${wl}-G'
10120 shared_flag='${wl}-bM:SRE'
10125 # It seems that -bexpall does not export symbols beginning with
10126 # underscore (_), so it is better to generate a list of symbols to export.
10127 always_export_symbols_CXX=yes
10128 if test "$aix_use_runtimelinking" = yes; then
10129 # Warning - without using the other runtime loading flags (-brtl),
10130 # -berok will link without error, but may produce a broken library.
10131 allow_undefined_flag_CXX='-berok'
10132 # Determine the default libpath from the value encoded in an empty executable.
10133 cat >conftest.$ac_ext <<_ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; } &&
10163 { ac_try='test -s conftest$ac_exeext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10170 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10172 # Check for a 64-bit object if we didn't find anything.
10173 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; }
10176 echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10180 rm -f conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
10182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10184 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10186 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"
10188 if test "$host_cpu" = ia64; then
10189 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10190 allow_undefined_flag_CXX="-z nodefs"
10191 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"
10193 # Determine the default libpath from the value encoded in an empty executable.
10194 cat >conftest.$ac_ext <<_ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10211 (eval $ac_link) 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10233 # Check for a 64-bit object if we didn't find anything.
10234 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; }
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10241 rm -f conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10245 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10246 # Warning - without using the other run time loading flags,
10247 # -berok will link without error, but may produce a broken library.
10248 no_undefined_flag_CXX=' ${wl}-bernotok'
10249 allow_undefined_flag_CXX=' ${wl}-berok'
10250 # -bexpall does not export symbols beginning with underscore (_)
10251 always_export_symbols_CXX=yes
10252 # Exported symbols can be pulled into shared objects from archives
10253 whole_archive_flag_spec_CXX=' '
10254 archive_cmds_need_lc_CXX=yes
10255 # This is similar to how AIX traditionally builds its shared libraries.
10256 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'
10261 case $cc_basename in
10263 # FIXME: insert proper C++ library support
10270 cygwin* | mingw* | pw32*)
10271 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10272 # as there is no search path for DLLs.
10273 hardcode_libdir_flag_spec_CXX='-L$libdir'
10274 allow_undefined_flag_CXX=unsupported
10275 always_export_symbols_CXX=no
10276 enable_shared_with_static_runtimes_CXX=yes
10278 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10279 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'
10280 # If the export-symbols file already is a .def file (1st line
10281 # is EXPORTS), use it as is; otherwise, prepend...
10282 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10283 cp $export_symbols $output_objdir/$soname.def;
10285 echo EXPORTS > $output_objdir/$soname.def;
10286 cat $export_symbols >> $output_objdir/$soname.def;
10288 $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'
10293 darwin* | rhapsody*)
10295 rhapsody* | darwin1.[012])
10296 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10299 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10300 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10302 case ${MACOSX_DEPLOYMENT_TARGET} in
10304 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10307 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10313 archive_cmds_need_lc_CXX=no
10314 hardcode_direct_CXX=no
10315 hardcode_automatic_CXX=yes
10316 hardcode_shlibpath_var_CXX=unsupported
10317 whole_archive_flag_spec_CXX=''
10318 link_all_deplibs_CXX=yes
10320 if test "$GXX" = yes ; then
10321 lt_int_apple_cc_single_mod=no
10322 output_verbose_link_cmd='echo'
10323 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10324 lt_int_apple_cc_single_mod=yes
10326 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10327 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10329 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10331 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10332 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10333 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10334 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}'
10336 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10338 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}'
10340 case $cc_basename in
10342 output_verbose_link_cmd='echo'
10343 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10344 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10345 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10346 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10347 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}'
10357 case $cc_basename in
10359 # FIXME: insert proper C++ library support
10363 # Green Hills C++ Compiler
10364 # FIXME: insert proper C++ library support
10368 # FIXME: insert proper C++ library support
10374 # C++ shared libraries reported to be fairly broken before switch to ELF
10378 archive_cmds_need_lc_CXX=no
10380 freebsd* | kfreebsd*-gnu | dragonfly*)
10381 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10388 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10389 hardcode_libdir_separator_CXX=:
10390 export_dynamic_flag_spec_CXX='${wl}-E'
10391 hardcode_direct_CXX=yes
10392 hardcode_minus_L_CXX=yes # Not in the search PATH,
10393 # but as the default
10394 # location of the library.
10396 case $cc_basename in
10398 # FIXME: insert proper C++ library support
10402 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'
10403 # Commands to make compiler produce verbose output that lists
10404 # what "hidden" libraries, object files and flags are used when
10405 # linking a shared library.
10407 # There doesn't appear to be a way to prevent this compiler from
10408 # explicitly linking system object files so we need to strip them
10409 # from the output so that they don't get included in the library
10411 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'
10414 if test "$GXX" = yes; then
10415 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'
10417 # FIXME: insert proper C++ library support
10424 if test $with_gnu_ld = no; then
10427 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10428 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10429 hardcode_libdir_separator_CXX=:
10432 hardcode_libdir_flag_spec_CXX='-L$libdir'
10435 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10436 hardcode_libdir_separator_CXX=:
10437 export_dynamic_flag_spec_CXX='${wl}-E'
10443 hardcode_direct_CXX=no
10444 hardcode_shlibpath_var_CXX=no
10447 hardcode_direct_CXX=no
10448 hardcode_shlibpath_var_CXX=no
10449 hardcode_minus_L_CXX=yes # Not in the search PATH,
10450 # but as the default
10451 # location of the library.
10454 hardcode_direct_CXX=yes
10455 hardcode_minus_L_CXX=yes # Not in the search PATH,
10456 # but as the default
10457 # location of the library.
10461 case $cc_basename in
10463 # FIXME: insert proper C++ library support
10469 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10472 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10475 # Commands to make compiler produce verbose output that lists
10476 # what "hidden" libraries, object files and flags are used when
10477 # linking a shared library.
10479 # There doesn't appear to be a way to prevent this compiler from
10480 # explicitly linking system object files so we need to strip them
10481 # from the output so that they don't get included in the library
10483 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'
10486 if test "$GXX" = yes; then
10487 if test $with_gnu_ld = no; then
10490 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10493 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'
10498 # FIXME: insert proper C++ library support
10505 case $cc_basename in
10508 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10510 # Archives containing C++ object files must be created using
10511 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10512 # necessary to make sure instantiated templates are included
10514 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10517 if test "$GXX" = yes; then
10518 if test "$with_gnu_ld" = no; then
10519 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10521 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'
10524 link_all_deplibs_CXX=yes
10527 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10528 hardcode_libdir_separator_CXX=:
10531 case $cc_basename in
10533 # Kuck and Associates, Inc. (KAI) C++ Compiler
10535 # KCC will only create a shared library if the output file
10536 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10537 # to its proper name (with version) after linking.
10538 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'
10539 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'
10540 # Commands to make compiler produce verbose output that lists
10541 # what "hidden" libraries, object files and flags are used when
10542 # linking a shared library.
10544 # There doesn't appear to be a way to prevent this compiler from
10545 # explicitly linking system object files so we need to strip them
10546 # from the output so that they don't get included in the library
10548 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'
10550 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10551 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10553 # Archives containing C++ object files must be created using
10554 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10555 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10560 # version 8.0 and above of icpc choke on multiply defined symbols
10561 # if we add $predep_objects and $postdep_objects, however 7.1 and
10562 # earlier do not add the objects themselves.
10563 case `$CC -V 2>&1` in
10565 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10566 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'
10568 *) # Version 8.0 or newer
10571 ia64*) tmp_idyn=' -i_dynamic';;
10573 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10574 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10577 archive_cmds_need_lc_CXX=no
10578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10580 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10583 # Portland Group C++ compiler
10584 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10585 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10587 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10588 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10589 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594 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'
10596 runpath_var=LD_RUN_PATH
10597 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10598 hardcode_libdir_separator_CXX=:
10600 # Commands to make compiler produce verbose output that lists
10601 # what "hidden" libraries, object files and flags are used when
10602 # linking a shared library.
10604 # There doesn't appear to be a way to prevent this compiler from
10605 # explicitly linking system object files so we need to strip them
10606 # from the output so that they don't get included in the library
10608 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'
10613 # FIXME: insert proper C++ library support
10617 # FIXME: insert proper C++ library support
10621 case $cc_basename in
10623 # FIXME: insert proper C++ library support
10627 # FIXME: insert proper C++ library support
10633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10634 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10636 hardcode_libdir_flag_spec_CXX='-R$libdir'
10637 hardcode_direct_CXX=yes
10638 hardcode_shlibpath_var_CXX=no
10640 # Workaround some broken pre-1.5 toolchains
10641 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10644 # C++ shared libraries are fairly broken
10648 hardcode_direct_CXX=yes
10649 hardcode_shlibpath_var_CXX=no
10650 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10651 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10653 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10654 export_dynamic_flag_spec_CXX='${wl}-E'
10655 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10657 output_verbose_link_cmd='echo'
10660 case $cc_basename in
10662 # Kuck and Associates, Inc. (KAI) C++ Compiler
10664 # KCC will only create a shared library if the output file
10665 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10666 # to its proper name (with version) after linking.
10667 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'
10669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10670 hardcode_libdir_separator_CXX=:
10672 # Archives containing C++ object files must be created using
10673 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10674 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10678 # Rational C++ 2.4.1
10679 # FIXME: insert proper C++ library support
10683 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10684 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10686 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10687 hardcode_libdir_separator_CXX=:
10689 # Commands to make compiler produce verbose output that lists
10690 # what "hidden" libraries, object files and flags are used when
10691 # linking a shared library.
10693 # There doesn't appear to be a way to prevent this compiler from
10694 # explicitly linking system object files so we need to strip them
10695 # from the output so that they don't get included in the library
10697 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'
10700 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10701 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10702 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10704 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10705 hardcode_libdir_separator_CXX=:
10707 # Commands to make compiler produce verbose output that lists
10708 # what "hidden" libraries, object files and flags are used when
10709 # linking a shared library.
10710 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10713 # FIXME: insert proper C++ library support
10720 case $cc_basename in
10722 # Kuck and Associates, Inc. (KAI) C++ Compiler
10724 # KCC will only create a shared library if the output file
10725 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10726 # to its proper name (with version) after linking.
10727 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'
10729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10730 hardcode_libdir_separator_CXX=:
10732 # Archives containing C++ object files must be created using
10733 # the KAI C++ compiler.
10734 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10737 # Rational C++ 2.4.1
10738 # FIXME: insert proper C++ library support
10742 allow_undefined_flag_CXX=' -expect_unresolved \*'
10743 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10744 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10745 echo "-hidden">> $lib.exp~
10746 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10749 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10750 hardcode_libdir_separator_CXX=:
10752 # Commands to make compiler produce verbose output that lists
10753 # what "hidden" libraries, object files and flags are used when
10754 # linking a shared library.
10756 # There doesn't appear to be a way to prevent this compiler from
10757 # explicitly linking system object files so we need to strip them
10758 # from the output so that they don't get included in the library
10760 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'
10763 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10764 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10765 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10768 hardcode_libdir_separator_CXX=:
10770 # Commands to make compiler produce verbose output that lists
10771 # what "hidden" libraries, object files and flags are used when
10772 # linking a shared library.
10773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10776 # FIXME: insert proper C++ library support
10783 # FIXME: insert proper C++ library support
10787 archive_cmds_need_lc_CXX=no
10788 case $cc_basename in
10790 # FIXME: insert proper C++ library support
10794 # FIXME: insert proper C++ library support
10800 case $cc_basename in
10803 # FIXME: insert proper C++ library support
10808 # FIXME: insert proper C++ library support
10812 # FIXME: insert proper C++ library support
10818 case $cc_basename in
10820 # Sun C++ 4.2, 5.x and Centerline C++
10821 archive_cmds_need_lc_CXX=yes
10822 no_undefined_flag_CXX=' -zdefs'
10823 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10824 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10825 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10827 hardcode_libdir_flag_spec_CXX='-R$libdir'
10828 hardcode_shlibpath_var_CXX=no
10830 solaris2.[0-5] | solaris2.[0-5].*) ;;
10832 # The C++ compiler is used as linker so we must use $wl
10833 # flag to pass the commands to the underlying system
10834 # linker. We must also pass each convience library through
10835 # to the system linker between allextract/defaultextract.
10836 # The C++ compiler will combine linker options so we
10837 # cannot just pass the convience library names through
10839 # Supported since Solaris 2.6 (maybe 2.5.1?)
10840 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10843 link_all_deplibs_CXX=yes
10845 output_verbose_link_cmd='echo'
10847 # Archives containing C++ object files must be created using
10848 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10849 # necessary to make sure instantiated templates are included
10851 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10854 # Green Hills C++ Compiler
10855 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10857 # The C++ compiler must be used to create the archive.
10858 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10861 # GNU C++ compiler with Solaris linker
10862 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10863 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10864 if $CC --version | grep -v '^2\.7' > /dev/null; then
10865 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10866 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10867 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10869 # Commands to make compiler produce verbose output that lists
10870 # what "hidden" libraries, object files and flags are used when
10871 # linking a shared library.
10872 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10874 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10876 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10877 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10878 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10880 # Commands to make compiler produce verbose output that lists
10881 # what "hidden" libraries, object files and flags are used when
10882 # linking a shared library.
10883 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10886 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10891 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10892 archive_cmds_need_lc_CXX=no
10895 case $cc_basename in
10897 # NonStop-UX NCC 3.20
10898 # FIXME: insert proper C++ library support
10902 # FIXME: insert proper C++ library support
10908 # FIXME: insert proper C++ library support
10912 # FIXME: insert proper C++ library support
10916 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10917 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10918 test "$ld_shlibs_CXX" = no && can_build_shared=no
10924 cat > conftest.$ac_ext <<EOF
10928 Foo (void) { a = 0; }
10934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10935 (eval $ac_compile) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; then
10939 # Parse the compiler output and extract the necessary
10940 # objects, libraries and library flags.
10942 # Sentinel used to keep track of whether or not we are before
10943 # the conftest object file.
10944 pre_test_object_deps_done=no
10946 # The `*' in the case matches for architectures that use `case' in
10947 # $output_verbose_cmd can trigger glob expansion during the loop
10948 # eval without this substitution.
10949 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10951 for p in `eval $output_verbose_link_cmd`; do
10955 # Some compilers place space between "-{L,R}" and the path.
10956 # Remove the space.
10957 if test $p = "-L" \
10958 || test $p = "-R"; then
10965 if test "$pre_test_object_deps_done" = no; then
10968 # Internal compiler library paths should come after those
10969 # provided the user. The postdeps already come after the
10970 # user supplied libs so there is no need to process them.
10971 if test -z "$compiler_lib_search_path_CXX"; then
10972 compiler_lib_search_path_CXX="${prev}${p}"
10974 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10977 # The "-l" case would never come before the object being
10978 # linked, so don't bother handling this case.
10981 if test -z "$postdeps_CXX"; then
10982 postdeps_CXX="${prev}${p}"
10984 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10990 # This assumes that the test object file only shows up
10991 # once in the compiler output.
10992 if test "$p" = "conftest.$objext"; then
10993 pre_test_object_deps_done=yes
10997 if test "$pre_test_object_deps_done" = no; then
10998 if test -z "$predep_objects_CXX"; then
10999 predep_objects_CXX="$p"
11001 predep_objects_CXX="$predep_objects_CXX $p"
11004 if test -z "$postdep_objects_CXX"; then
11005 postdep_objects_CXX="$p"
11007 postdep_objects_CXX="$postdep_objects_CXX $p"
11012 *) ;; # Ignore the rest.
11020 echo "libtool.m4: error: problem compiling CXX test program"
11023 $rm -f confest.$objext
11025 # PORTME: override above test on systems where it is broken
11028 case $cc_basename in
11030 # Adding this requires a known-good setup of shared libraries for
11031 # Sun compiler versions before 5.6, else PIC objects from an old
11032 # archive will be linked into the output, leading to subtle bugs.
11033 postdeps_CXX='-lCstd -lCrun'
11039 case " $postdeps_CXX " in
11040 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11043 lt_prog_compiler_wl_CXX=
11044 lt_prog_compiler_pic_CXX=
11045 lt_prog_compiler_static_CXX=
11047 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11048 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11050 # C++ specific cases for pic, static, wl, etc.
11051 if test "$GXX" = yes; then
11052 lt_prog_compiler_wl_CXX='-Wl,'
11053 lt_prog_compiler_static_CXX='-static'
11057 # All AIX code is PIC.
11058 if test "$host_cpu" = ia64; then
11059 # AIX 5 now supports IA64 processor
11060 lt_prog_compiler_static_CXX='-Bstatic'
11064 # FIXME: we need at least 68020 code to build shared libraries, but
11065 # adding the `-m68020' flag to GCC prevents building anything better,
11067 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11069 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11070 # PIC is the default for these OSes.
11072 mingw* | os2* | pw32*)
11073 # This hack is so that the source file can tell whether it is being
11074 # built for inclusion in a dll (and should export symbols for example).
11075 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11077 darwin* | rhapsody*)
11078 # PIC is the default on this platform
11079 # Common symbols not allowed in MH_DYLIB files
11080 lt_prog_compiler_pic_CXX='-fno-common'
11083 # DJGPP does not support shared libraries at all
11084 lt_prog_compiler_pic_CXX=
11087 if test -d /usr/nec; then
11088 lt_prog_compiler_pic_CXX=-Kconform_pic
11092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11093 # not for PA HP-UX.
11098 lt_prog_compiler_pic_CXX='-fPIC'
11103 lt_prog_compiler_pic_CXX='-fPIC'
11109 # All AIX code is PIC.
11110 if test "$host_cpu" = ia64; then
11111 # AIX 5 now supports IA64 processor
11112 lt_prog_compiler_static_CXX='-Bstatic'
11114 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11118 case $cc_basename in
11120 # Green Hills C++ Compiler
11121 # _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"
11126 # PIC is the default on this platform
11127 # Common symbols not allowed in MH_DYLIB files
11128 case $cc_basename in
11130 lt_prog_compiler_pic_CXX='-qnocommon'
11131 lt_prog_compiler_wl_CXX='-Wl,'
11136 case $cc_basename in
11138 lt_prog_compiler_pic_CXX='-KPIC'
11141 # Green Hills C++ Compiler
11142 lt_prog_compiler_pic_CXX='-pic'
11148 freebsd* | kfreebsd*-gnu | dragonfly*)
11149 # FreeBSD uses GNU C++
11151 hpux9* | hpux10* | hpux11*)
11152 case $cc_basename in
11154 lt_prog_compiler_wl_CXX='-Wl,'
11155 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11156 if test "$host_cpu" != ia64; then
11157 lt_prog_compiler_pic_CXX='+Z'
11161 lt_prog_compiler_wl_CXX='-Wl,'
11162 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11168 lt_prog_compiler_pic_CXX='+Z'
11176 irix5* | irix6* | nonstopux*)
11177 case $cc_basename in
11179 lt_prog_compiler_wl_CXX='-Wl,'
11180 lt_prog_compiler_static_CXX='-non_shared'
11181 # CC pic flag -KPIC is the default.
11188 case $cc_basename in
11191 lt_prog_compiler_wl_CXX='--backend -Wl,'
11192 lt_prog_compiler_pic_CXX='-fPIC'
11196 lt_prog_compiler_wl_CXX='-Wl,'
11197 lt_prog_compiler_pic_CXX='-KPIC'
11198 lt_prog_compiler_static_CXX='-static'
11201 # Portland Group C++ compiler.
11202 lt_prog_compiler_wl_CXX='-Wl,'
11203 lt_prog_compiler_pic_CXX='-fpic'
11204 lt_prog_compiler_static_CXX='-Bstatic'
11208 # Make sure the PIC flag is empty. It appears that all Alpha
11209 # Linux and Compaq Tru64 Unix objects are PIC.
11210 lt_prog_compiler_pic_CXX=
11211 lt_prog_compiler_static_CXX='-non_shared'
11222 case $cc_basename in
11224 lt_prog_compiler_pic_CXX='-W c,exportall'
11232 osf3* | osf4* | osf5*)
11233 case $cc_basename in
11235 lt_prog_compiler_wl_CXX='--backend -Wl,'
11238 # Rational C++ 2.4.1
11239 lt_prog_compiler_pic_CXX='-pic'
11242 # Digital/Compaq C++
11243 lt_prog_compiler_wl_CXX='-Wl,'
11244 # Make sure the PIC flag is empty. It appears that all Alpha
11245 # Linux and Compaq Tru64 Unix objects are PIC.
11246 lt_prog_compiler_pic_CXX=
11247 lt_prog_compiler_static_CXX='-non_shared'
11256 case $cc_basename in
11258 lt_prog_compiler_pic_CXX='-fPIC'
11265 case $cc_basename in
11267 # Sun C++ 4.2, 5.x and Centerline C++
11268 lt_prog_compiler_pic_CXX='-KPIC'
11269 lt_prog_compiler_static_CXX='-Bstatic'
11270 lt_prog_compiler_wl_CXX='-Qoption ld '
11273 # Green Hills C++ Compiler
11274 lt_prog_compiler_pic_CXX='-PIC'
11281 case $cc_basename in
11284 lt_prog_compiler_pic_CXX='-pic'
11285 lt_prog_compiler_static_CXX='-Bstatic'
11289 lt_prog_compiler_pic_CXX='-pic'
11296 case $cc_basename in
11298 # NonStop-UX NCC 3.20
11299 lt_prog_compiler_pic_CXX='-KPIC'
11310 lt_prog_compiler_can_build_shared_CXX=no
11315 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11316 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11319 # Check to make sure the PIC flag actually works.
11321 if test -n "$lt_prog_compiler_pic_CXX"; then
11323 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11324 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11325 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 lt_prog_compiler_pic_works_CXX=no
11329 ac_outfile=conftest.$ac_objext
11330 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11331 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11332 # Insert the option either (1) after the last *FLAGS variable, or
11333 # (2) before a word containing "conftest.", or (3) at the end.
11334 # Note that $ac_compile itself does not contain backslashes and begins
11335 # with a dollar sign (not a hyphen), so the echo should work correctly.
11336 # The option is referenced via a variable to avoid confusing sed.
11337 lt_compile=`echo "$ac_compile" | $SED \
11338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11340 -e 's:$: $lt_compiler_flag:'`
11341 (eval echo "\"\$as_me:11341: $lt_compile\"" >&5)
11342 (eval "$lt_compile" 2>conftest.err)
11344 cat conftest.err >&5
11345 echo "$as_me:11345: \$? = $ac_status" >&5
11346 if (exit $ac_status) && test -s "$ac_outfile"; then
11347 # The compiler can only warn and ignore the option if not recognized
11348 # So say no if there are warnings other than the usual output.
11349 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11350 $SED '/^$/d' conftest.err >conftest.er2
11351 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11352 lt_prog_compiler_pic_works_CXX=yes
11358 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11359 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11361 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11362 case $lt_prog_compiler_pic_CXX in
11364 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11367 lt_prog_compiler_pic_CXX=
11368 lt_prog_compiler_can_build_shared_CXX=no
11373 # For platforms which do not support PIC, -DPIC is meaningless:
11375 lt_prog_compiler_pic_CXX=
11378 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11382 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11383 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11384 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 lt_cv_prog_compiler_c_o_CXX=no
11388 $rm -r conftest 2>/dev/null
11392 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11394 lt_compiler_flag="-o out/conftest2.$ac_objext"
11395 # Insert the option either (1) after the last *FLAGS variable, or
11396 # (2) before a word containing "conftest.", or (3) at the end.
11397 # Note that $ac_compile itself does not contain backslashes and begins
11398 # with a dollar sign (not a hyphen), so the echo should work correctly.
11399 lt_compile=`echo "$ac_compile" | $SED \
11400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11402 -e 's:$: $lt_compiler_flag:'`
11403 (eval echo "\"\$as_me:11403: $lt_compile\"" >&5)
11404 (eval "$lt_compile" 2>out/conftest.err)
11406 cat out/conftest.err >&5
11407 echo "$as_me:11407: \$? = $ac_status" >&5
11408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11410 # The compiler can only warn and ignore the option if not recognized
11411 # So say no if there are warnings
11412 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11413 $SED '/^$/d' out/conftest.err >out/conftest.er2
11414 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11415 lt_cv_prog_compiler_c_o_CXX=yes
11420 # SGI C++ compiler will create directory out/ii_files/ for
11421 # template instantiation
11422 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11423 $rm out/* && rmdir out
11429 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11430 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11433 hard_links="nottested"
11434 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11435 # do not overwrite the value of need_locks provided by the user
11436 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11437 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11442 ln conftest.a conftest.b 2>&5 || hard_links=no
11443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11444 echo "$as_me:$LINENO: result: $hard_links" >&5
11445 echo "${ECHO_T}$hard_links" >&6
11446 if test "$hard_links" = no; then
11447 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11448 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11455 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11456 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11458 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11461 # If we're using GNU nm, then we don't want the "-C" option.
11462 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11463 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11464 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'
11466 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'
11470 export_symbols_cmds_CXX="$ltdll_cmds"
11473 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11476 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11480 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11481 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11482 test "$ld_shlibs_CXX" = no && can_build_shared=no
11484 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11485 if test "$GCC" = yes; then
11486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11490 # Do we need to explicitly link libc?
11492 case "x$archive_cmds_need_lc_CXX" in
11494 # Assume -lc should be added
11495 archive_cmds_need_lc_CXX=yes
11497 if test "$enable_shared" = yes && test "$GCC" = yes; then
11498 case $archive_cmds_CXX in
11500 # FIXME: we may have to deal with multi-command sequences.
11503 # Test whether the compiler implicitly links with -lc since on some
11504 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11505 # to ld, don't add -lc before -lgcc.
11506 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11507 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11512 (eval $ac_compile) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } 2>conftest.err; then
11518 libobjs=conftest.$ac_objext
11520 wl=$lt_prog_compiler_wl_CXX
11526 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11527 allow_undefined_flag_CXX=
11528 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11529 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }
11534 archive_cmds_need_lc_CXX=no
11536 archive_cmds_need_lc_CXX=yes
11538 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11540 cat conftest.err 1>&5
11543 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11544 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11551 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11552 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11553 library_names_spec=
11554 libname_spec='lib$name'
11558 postuninstall_cmds=
11562 shlibpath_overrides_runpath=unknown
11564 dynamic_linker="$host_os ld.so"
11565 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11566 if test "$GCC" = yes; then
11567 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11568 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11569 # if the path contains ";" then we assume it to be the separator
11570 # otherwise default to the standard path separator (i.e. ":") - it is
11571 # assumed that no part of a normal pathname contains ";" but that should
11572 # okay in the real world where ";" in dirpaths is itself problematic.
11573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11578 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11580 need_lib_prefix=unknown
11581 hardcode_into_libs=no
11583 # when you set need_version to no, make sure it does not cause -set_version
11584 # flags to be left without arguments
11585 need_version=unknown
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11591 shlibpath_var=LIBPATH
11593 # AIX 3 has no versioning support, so we append a major version to the name.
11594 soname_spec='${libname}${release}${shared_ext}$major'
11601 hardcode_into_libs=yes
11602 if test "$host_cpu" = ia64; then
11603 # AIX 5 supports IA64
11604 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11605 shlibpath_var=LD_LIBRARY_PATH
11607 # With GCC up to 2.95.x, collect2 would create an import file
11608 # for dependence libraries. The import file would start with
11609 # the line `#! .'. This would cause the generated library to
11610 # depend on `.', always an invalid library. This was fixed in
11611 # development snapshots of GCC prior to 3.0.
11613 aix4 | aix4.[01] | aix4.[01].*)
11614 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11616 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11619 can_build_shared=no
11623 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11624 # soname into executable. Probably we can add versioning support to
11625 # collect2, so additional links can be useful in future.
11626 if test "$aix_use_runtimelinking" = yes; then
11627 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11628 # instead of lib<name>.a to let people know that these are not
11629 # typical AIX shared libraries.
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 # We preserve .a as extension for shared libraries through AIX4.2
11633 # and later when we are not doing run time linking.
11634 library_names_spec='${libname}${release}.a $libname.a'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11637 shlibpath_var=LIBPATH
11642 library_names_spec='$libname.ixlibrary $libname.a'
11643 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11644 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'
11648 library_names_spec='${libname}${shared_ext}'
11649 dynamic_linker="$host_os ld.so"
11650 shlibpath_var=LIBRARY_PATH
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11657 soname_spec='${libname}${release}${shared_ext}$major'
11658 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11661 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11662 # the default ld.so.conf also contains /usr/contrib/lib and
11663 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11664 # libtool to hard-code these into programs
11667 cygwin* | mingw* | pw32*)
11668 version_type=windows
11673 case $GCC,$host_os in
11674 yes,cygwin* | yes,mingw* | yes,pw32*)
11675 library_names_spec='$libname.dll.a'
11676 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11677 postinstall_cmds='base_file=`basename \${file}`~
11678 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11679 dldir=$destdir/`dirname \$dlpath`~
11680 test -d \$dldir || mkdir -p \$dldir~
11681 $install_prog $dir/$dlname \$dldir/$dlname~
11682 chmod a+x \$dldir/$dlname'
11683 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11684 dlpath=$dir/\$dldll~
11686 shlibpath_overrides_runpath=yes
11690 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11691 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11692 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11695 # MinGW DLLs use traditional 'lib' prefix
11696 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11698 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11699 # It is most probably a Windows format PATH printed by
11700 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11701 # path with ; separators, and with drive letters. We can handle the
11702 # drive letters (cygwin fileutils understands them), so leave them,
11703 # especially as we might pass files found there to a mingw objdump,
11704 # which wouldn't understand a cygwinified path. Ahh.
11705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11711 # pw32 DLLs use 'pw' prefix rather than 'lib'
11712 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11718 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11721 dynamic_linker='Win32 ld.exe'
11722 # FIXME: first we should search . and the directory the executable is in
11726 darwin* | rhapsody*)
11727 dynamic_linker="$host_os dyld"
11728 version_type=darwin
11731 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11732 soname_spec='${libname}${release}${major}$shared_ext'
11733 shlibpath_overrides_runpath=yes
11734 shlibpath_var=DYLD_LIBRARY_PATH
11735 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11736 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11737 if test "$GCC" = yes; then
11738 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"`
11740 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11742 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11750 soname_spec='${libname}${release}${shared_ext}$major'
11751 shlibpath_var=LD_LIBRARY_PATH
11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11763 soname_spec='${libname}${release}${shared_ext}$major'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 shlibpath_overrides_runpath=no
11766 hardcode_into_libs=yes
11767 dynamic_linker='GNU ld.so'
11770 freebsd* | dragonfly*)
11771 # DragonFly does not have aout. When/if they implement a new
11772 # versioning mechanism, adjust this.
11773 if test -x /usr/bin/objformat; then
11774 objformat=`/usr/bin/objformat`
11777 freebsd[123]*) objformat=aout ;;
11778 *) objformat=elf ;;
11781 version_type=freebsd-$objformat
11782 case $version_type in
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11793 shlibpath_var=LD_LIBRARY_PATH
11796 shlibpath_overrides_runpath=yes
11798 freebsd3.[01]* | freebsdelf3.[01]*)
11799 shlibpath_overrides_runpath=yes
11800 hardcode_into_libs=yes
11803 shlibpath_overrides_runpath=no
11804 hardcode_into_libs=yes
11813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11814 soname_spec='${libname}${release}${shared_ext}$major'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 hardcode_into_libs=yes
11819 hpux9* | hpux10* | hpux11*)
11820 # Give a soname corresponding to the major version so that dld.sl refuses to
11821 # link against other versions.
11828 hardcode_into_libs=yes
11829 dynamic_linker="$host_os dld.so"
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833 soname_spec='${libname}${release}${shared_ext}$major'
11834 if test "X$HPUX_IA64_MODE" = X32; then
11835 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11843 hardcode_into_libs=yes
11844 dynamic_linker="$host_os dld.sl"
11845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848 soname_spec='${libname}${release}${shared_ext}$major'
11849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11854 dynamic_linker="$host_os dld.sl"
11855 shlibpath_var=SHLIB_PATH
11856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858 soname_spec='${libname}${release}${shared_ext}$major'
11861 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11862 postinstall_cmds='chmod 555 $lib'
11865 irix5* | irix6* | nonstopux*)
11867 nonstopux*) version_type=nonstopux ;;
11869 if test "$lt_cv_prog_gnu_ld" = yes; then
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11880 irix5* | nonstopux*)
11881 libsuff= shlibsuff=
11884 case $LD in # libtool.m4 will add one of these switches to LD
11885 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11886 libsuff= shlibsuff= libmagic=32-bit;;
11887 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11888 libsuff=32 shlibsuff=N32 libmagic=N32;;
11889 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11890 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11891 *) libsuff= shlibsuff= libmagic=never-match;;
11895 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11896 shlibpath_overrides_runpath=no
11897 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11898 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11899 hardcode_into_libs=yes
11902 # No shared lib support for Linux oldld, aout, or coff.
11903 linux*oldld* | linux*aout* | linux*coff*)
11907 # This must be Linux ELF.
11912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11913 soname_spec='${libname}${release}${shared_ext}$major'
11914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11915 shlibpath_var=LD_LIBRARY_PATH
11916 shlibpath_overrides_runpath=no
11917 # This implies no fast_install, which is unacceptable.
11918 # Some rework will be needed to allow for fast_install
11919 # before this can be enabled.
11920 hardcode_into_libs=yes
11922 # Append ld.so.conf contents to the search path
11923 if test -f /etc/ld.so.conf; then
11924 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11928 # We used to test for /lib/ld.so.1 and disable shared libraries on
11929 # powerpc, because MkLinux only supported shared libraries with the
11930 # GNU dynamic linker. Since this was broken with cross compilers,
11931 # most powerpc-linux boxes support dynamic linking these days and
11932 # people can always --disable-shared, the test was removed, and we
11933 # assume the GNU/Linux dynamic linker is in use.
11934 dynamic_linker='GNU/Linux ld.so'
11941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11942 soname_spec='${libname}${release}${shared_ext}$major'
11943 shlibpath_var=LD_LIBRARY_PATH
11944 shlibpath_overrides_runpath=no
11945 hardcode_into_libs=yes
11946 dynamic_linker='GNU ld.so'
11953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11956 dynamic_linker='NetBSD (a.out) ld.so'
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11959 soname_spec='${libname}${release}${shared_ext}$major'
11960 dynamic_linker='NetBSD ld.elf_so'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=yes
11964 hardcode_into_libs=yes
11969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11970 shlibpath_var=LD_LIBRARY_PATH
11971 shlibpath_overrides_runpath=yes
11978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11979 soname_spec='${libname}${release}${shared_ext}$major'
11980 shlibpath_var=LD_LIBRARY_PATH
11981 shlibpath_overrides_runpath=yes
11987 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11989 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11990 *) need_version=no ;;
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11994 shlibpath_var=LD_LIBRARY_PATH
11995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11997 openbsd2.[89] | openbsd2.[89].*)
11998 shlibpath_overrides_runpath=no
12001 shlibpath_overrides_runpath=yes
12005 shlibpath_overrides_runpath=yes
12010 libname_spec='$name'
12013 library_names_spec='$libname${shared_ext} $libname.a'
12014 dynamic_linker='OS/2 ld.exe'
12015 shlibpath_var=LIBPATH
12018 osf3* | osf4* | osf5*)
12022 soname_spec='${libname}${release}${shared_ext}$major'
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12024 shlibpath_var=LD_LIBRARY_PATH
12025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12026 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12031 soname_spec='${libname}${release}${shared_ext}$major'
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12033 shlibpath_var=LD_LIBRARY_PATH
12040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12041 soname_spec='${libname}${release}${shared_ext}$major'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 shlibpath_overrides_runpath=yes
12044 hardcode_into_libs=yes
12045 # ldd complains unless libraries are executable
12046 postinstall_cmds='chmod +x $lib'
12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12053 shlibpath_var=LD_LIBRARY_PATH
12054 shlibpath_overrides_runpath=yes
12055 if test "$with_gnu_ld" = yes; then
12061 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12064 soname_spec='${libname}${release}${shared_ext}$major'
12065 shlibpath_var=LD_LIBRARY_PATH
12066 case $host_vendor in
12068 shlibpath_overrides_runpath=no
12070 export_dynamic_flag_spec='${wl}-Blargedynsym'
12071 runpath_var=LD_RUN_PATH
12079 shlibpath_overrides_runpath=no
12080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12086 if test -d /usr/nec ;then
12088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12089 soname_spec='$libname${shared_ext}.$major'
12090 shlibpath_var=LD_LIBRARY_PATH
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 soname_spec='${libname}${release}${shared_ext}$major'
12098 shlibpath_var=LD_LIBRARY_PATH
12105 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12106 echo "${ECHO_T}$dynamic_linker" >&6
12107 test "$dynamic_linker" = no && can_build_shared=no
12109 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12110 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12111 hardcode_action_CXX=
12112 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12113 test -n "$runpath_var_CXX" || \
12114 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12116 # We can hardcode non-existant directories.
12117 if test "$hardcode_direct_CXX" != no &&
12118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12119 # have to relink, otherwise we might link with an installed library
12120 # when we should be linking with a yet-to-be-installed one
12121 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12122 test "$hardcode_minus_L_CXX" != no; then
12123 # Linking always hardcodes the temporary library directory.
12124 hardcode_action_CXX=relink
12126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12127 hardcode_action_CXX=immediate
12130 # We cannot hardcode anything, or else we can only hardcode existing
12132 hardcode_action_CXX=unsupported
12134 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12135 echo "${ECHO_T}$hardcode_action_CXX" >&6
12137 if test "$hardcode_action_CXX" = relink; then
12138 # Fast installation is not supported
12139 enable_fast_install=no
12140 elif test "$shlibpath_overrides_runpath" = yes ||
12141 test "$enable_shared" = no; then
12142 # Fast installation is not necessary
12143 enable_fast_install=needless
12148 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12149 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12150 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12151 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12152 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12153 echo "$as_me:$LINENO: result: yes" >&5
12154 echo "${ECHO_T}yes" >&6
12156 # FIXME - insert some real tests, host_os isn't really good enough
12159 if test -n "$STRIP" ; then
12160 striplib="$STRIP -x"
12161 echo "$as_me:$LINENO: result: yes" >&5
12162 echo "${ECHO_T}yes" >&6
12164 echo "$as_me:$LINENO: result: no" >&5
12165 echo "${ECHO_T}no" >&6
12169 echo "$as_me:$LINENO: result: no" >&5
12170 echo "${ECHO_T}no" >&6
12175 if test "x$enable_dlopen" != xyes; then
12176 enable_dlopen=unknown
12177 enable_dlopen_self=unknown
12178 enable_dlopen_self_static=unknown
12185 lt_cv_dlopen="load_add_on"
12187 lt_cv_dlopen_self=yes
12191 lt_cv_dlopen="LoadLibrary"
12196 lt_cv_dlopen="dlopen"
12201 # if libdl is installed we need to link against it
12202 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12203 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12204 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 ac_check_lib_save_LIBS=$LIBS
12209 cat >conftest.$ac_ext <<_ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12216 /* Override any gcc2 internal prototype to avoid an error. */
12220 /* We use char because int might match the return type of a gcc2
12221 builtin and then its argument prototype would still apply. */
12231 rm -f conftest.$ac_objext conftest$ac_exeext
12232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12233 (eval $ac_link) 2>conftest.er1
12235 grep -v '^ *+' conftest.er1 >conftest.err
12237 cat conftest.err >&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } &&
12240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; } &&
12246 { ac_try='test -s conftest$ac_exeext'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12252 ac_cv_lib_dl_dlopen=yes
12254 echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12257 ac_cv_lib_dl_dlopen=no
12259 rm -f conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12261 LIBS=$ac_check_lib_save_LIBS
12263 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12264 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12265 if test $ac_cv_lib_dl_dlopen = yes; then
12266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12269 lt_cv_dlopen="dyld"
12271 lt_cv_dlopen_self=yes
12278 echo "$as_me:$LINENO: checking for shl_load" >&5
12279 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12280 if test "${ac_cv_func_shl_load+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12291 #define shl_load innocuous_shl_load
12293 /* System header to define __stub macros and hopefully few prototypes,
12294 which can conflict with char shl_load (); below.
12295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12296 <limits.h> exists even on freestanding compilers. */
12299 # include <limits.h>
12301 # include <assert.h>
12306 /* Override any gcc2 internal prototype to avoid an error. */
12311 /* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12314 /* The GNU C library defines this for functions which it implements
12315 to always fail with ENOSYS. Some functions are actually named
12316 something starting with __ and the normal name is an alias. */
12317 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12320 char (*f) () = shl_load;
12329 return f != shl_load;
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>conftest.er1
12338 grep -v '^ *+' conftest.er1 >conftest.err
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; } &&
12349 { ac_try='test -s conftest$ac_exeext'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; }; then
12355 ac_cv_func_shl_load=yes
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12360 ac_cv_func_shl_load=no
12362 rm -f conftest.err conftest.$ac_objext \
12363 conftest$ac_exeext conftest.$ac_ext
12365 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12366 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12367 if test $ac_cv_func_shl_load = yes; then
12368 lt_cv_dlopen="shl_load"
12370 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12371 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12372 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 ac_check_lib_save_LIBS=$LIBS
12377 cat >conftest.$ac_ext <<_ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12384 /* Override any gcc2 internal prototype to avoid an error. */
12388 /* We use char because int might match the return type of a gcc2
12389 builtin and then its argument prototype would still apply. */
12399 rm -f conftest.$ac_objext conftest$ac_exeext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12401 (eval $ac_link) 2>conftest.er1
12403 grep -v '^ *+' conftest.er1 >conftest.err
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest$ac_exeext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 ac_cv_lib_dld_shl_load=yes
12422 echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12425 ac_cv_lib_dld_shl_load=no
12427 rm -f conftest.err conftest.$ac_objext \
12428 conftest$ac_exeext conftest.$ac_ext
12429 LIBS=$ac_check_lib_save_LIBS
12431 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12432 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12433 if test $ac_cv_lib_dld_shl_load = yes; then
12434 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12436 echo "$as_me:$LINENO: checking for dlopen" >&5
12437 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12438 if test "${ac_cv_func_dlopen+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 cat >conftest.$ac_ext <<_ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12449 #define dlopen innocuous_dlopen
12451 /* System header to define __stub macros and hopefully few prototypes,
12452 which can conflict with char dlopen (); below.
12453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12454 <limits.h> exists even on freestanding compilers. */
12457 # include <limits.h>
12459 # include <assert.h>
12464 /* Override any gcc2 internal prototype to avoid an error. */
12469 /* We use char because int might match the return type of a gcc2
12470 builtin and then its argument prototype would still apply. */
12472 /* The GNU C library defines this for functions which it implements
12473 to always fail with ENOSYS. Some functions are actually named
12474 something starting with __ and the normal name is an alias. */
12475 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12478 char (*f) () = dlopen;
12487 return f != dlopen;
12492 rm -f conftest.$ac_objext conftest$ac_exeext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12494 (eval $ac_link) 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest$ac_exeext'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 ac_cv_func_dlopen=yes
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 ac_cv_func_dlopen=no
12520 rm -f conftest.err conftest.$ac_objext \
12521 conftest$ac_exeext conftest.$ac_ext
12523 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12524 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12525 if test $ac_cv_func_dlopen = yes; then
12526 lt_cv_dlopen="dlopen"
12528 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12529 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12530 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 ac_check_lib_save_LIBS=$LIBS
12535 cat >conftest.$ac_ext <<_ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12542 /* Override any gcc2 internal prototype to avoid an error. */
12546 /* We use char because int might match the return type of a gcc2
12547 builtin and then its argument prototype would still apply. */
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12559 (eval $ac_link) 2>conftest.er1
12561 grep -v '^ *+' conftest.er1 >conftest.err
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; } &&
12572 { ac_try='test -s conftest$ac_exeext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 ac_cv_lib_dl_dlopen=yes
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 ac_cv_lib_dl_dlopen=no
12585 rm -f conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
12587 LIBS=$ac_check_lib_save_LIBS
12589 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12590 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12591 if test $ac_cv_lib_dl_dlopen = yes; then
12592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12594 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12595 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12596 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 ac_check_lib_save_LIBS=$LIBS
12600 LIBS="-lsvld $LIBS"
12601 cat >conftest.$ac_ext <<_ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12608 /* Override any gcc2 internal prototype to avoid an error. */
12612 /* We use char because int might match the return type of a gcc2
12613 builtin and then its argument prototype would still apply. */
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625 (eval $ac_link) 2>conftest.er1
12627 grep -v '^ *+' conftest.er1 >conftest.err
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest$ac_exeext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_cv_lib_svld_dlopen=yes
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_cv_lib_svld_dlopen=no
12651 rm -f conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653 LIBS=$ac_check_lib_save_LIBS
12655 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12656 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12657 if test $ac_cv_lib_svld_dlopen = yes; then
12658 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12660 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12661 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12662 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 ac_check_lib_save_LIBS=$LIBS
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12674 /* Override any gcc2 internal prototype to avoid an error. */
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691 (eval $ac_link) 2>conftest.er1
12693 grep -v '^ *+' conftest.er1 >conftest.err
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_lib_dld_dld_link=yes
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12715 ac_cv_lib_dld_dld_link=no
12717 rm -f conftest.err conftest.$ac_objext \
12718 conftest$ac_exeext conftest.$ac_ext
12719 LIBS=$ac_check_lib_save_LIBS
12721 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12722 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12723 if test $ac_cv_lib_dld_dld_link = yes; then
12724 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12745 if test "x$lt_cv_dlopen" != xno; then
12751 case $lt_cv_dlopen in
12753 save_CPPFLAGS="$CPPFLAGS"
12754 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12756 save_LDFLAGS="$LDFLAGS"
12757 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12760 LIBS="$lt_cv_dlopen_libs $LIBS"
12762 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12763 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12764 if test "${lt_cv_dlopen_self+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 if test "$cross_compiling" = yes; then :
12768 lt_cv_dlopen_self=cross
12770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12771 lt_status=$lt_dlunknown
12772 cat > conftest.$ac_ext <<EOF
12773 #line 12773 "configure"
12774 #include "confdefs.h"
12783 # define LT_DLGLOBAL RTLD_GLOBAL
12786 # define LT_DLGLOBAL DL_GLOBAL
12788 # define LT_DLGLOBAL 0
12792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12793 find out it does not work in some platform. */
12794 #ifndef LT_DLLAZY_OR_NOW
12796 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12799 # define LT_DLLAZY_OR_NOW DL_LAZY
12802 # define LT_DLLAZY_OR_NOW RTLD_NOW
12805 # define LT_DLLAZY_OR_NOW DL_NOW
12807 # define LT_DLLAZY_OR_NOW 0
12815 extern "C" void exit (int);
12818 void fnord() { int i=42;}
12821 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12822 int status = $lt_dlunknown;
12826 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12827 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12828 /* dlclose (self); */
12834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12835 (eval $ac_link) 2>&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12839 (./conftest; exit; ) >&5 2>/dev/null
12841 case x$lt_status in
12842 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12843 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12844 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12847 # compilation failed
12848 lt_cv_dlopen_self=no
12855 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12856 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12858 if test "x$lt_cv_dlopen_self" = xyes; then
12859 LDFLAGS="$LDFLAGS $link_static_flag"
12860 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12861 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12862 if test "${lt_cv_dlopen_self_static+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 if test "$cross_compiling" = yes; then :
12866 lt_cv_dlopen_self_static=cross
12868 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12869 lt_status=$lt_dlunknown
12870 cat > conftest.$ac_ext <<EOF
12871 #line 12871 "configure"
12872 #include "confdefs.h"
12881 # define LT_DLGLOBAL RTLD_GLOBAL
12884 # define LT_DLGLOBAL DL_GLOBAL
12886 # define LT_DLGLOBAL 0
12890 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12891 find out it does not work in some platform. */
12892 #ifndef LT_DLLAZY_OR_NOW
12894 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12897 # define LT_DLLAZY_OR_NOW DL_LAZY
12900 # define LT_DLLAZY_OR_NOW RTLD_NOW
12903 # define LT_DLLAZY_OR_NOW DL_NOW
12905 # define LT_DLLAZY_OR_NOW 0
12913 extern "C" void exit (int);
12916 void fnord() { int i=42;}
12919 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12920 int status = $lt_dlunknown;
12924 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12925 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12926 /* dlclose (self); */
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12937 (./conftest; exit; ) >&5 2>/dev/null
12939 case x$lt_status in
12940 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12941 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12942 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12945 # compilation failed
12946 lt_cv_dlopen_self_static=no
12953 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12954 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12957 CPPFLAGS="$save_CPPFLAGS"
12958 LDFLAGS="$save_LDFLAGS"
12963 case $lt_cv_dlopen_self in
12964 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12965 *) enable_dlopen_self=unknown ;;
12968 case $lt_cv_dlopen_self_static in
12969 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12970 *) enable_dlopen_self_static=unknown ;;
12975 # The else clause should only fire when bootstrapping the
12976 # libtool distribution, otherwise you forgot to ship ltmain.sh
12977 # with your package, and you will get complaints that there are
12978 # no rules to generate ltmain.sh.
12979 if test -f "$ltmain"; then
12980 # See if we are running on zsh, and set the options which allow our commands through
12981 # without removal of \ escapes.
12982 if test -n "${ZSH_VERSION+set}" ; then
12983 setopt NO_GLOB_SUBST
12985 # Now quote all the things that may contain metacharacters while being
12986 # careful not to overquote the AC_SUBSTed values. We take copies of the
12987 # variables and quote the copies for generation of the libtool script.
12988 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12990 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12991 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12992 deplibs_check_method reload_flag reload_cmds need_locks \
12993 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12994 lt_cv_sys_global_symbol_to_c_name_address \
12995 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12996 old_postinstall_cmds old_postuninstall_cmds \
13000 lt_prog_compiler_wl_CXX \
13001 lt_prog_compiler_pic_CXX \
13002 lt_prog_compiler_static_CXX \
13003 lt_prog_compiler_no_builtin_flag_CXX \
13004 export_dynamic_flag_spec_CXX \
13005 thread_safe_flag_spec_CXX \
13006 whole_archive_flag_spec_CXX \
13007 enable_shared_with_static_runtimes_CXX \
13008 old_archive_cmds_CXX \
13009 old_archive_from_new_cmds_CXX \
13010 predep_objects_CXX \
13011 postdep_objects_CXX \
13014 compiler_lib_search_path_CXX \
13016 archive_expsym_cmds_CXX \
13017 postinstall_cmds_CXX \
13018 postuninstall_cmds_CXX \
13019 old_archive_from_expsyms_cmds_CXX \
13020 allow_undefined_flag_CXX \
13021 no_undefined_flag_CXX \
13022 export_symbols_cmds_CXX \
13023 hardcode_libdir_flag_spec_CXX \
13024 hardcode_libdir_flag_spec_ld_CXX \
13025 hardcode_libdir_separator_CXX \
13026 hardcode_automatic_CXX \
13028 module_expsym_cmds_CXX \
13029 lt_cv_prog_compiler_c_o_CXX \
13030 exclude_expsyms_CXX \
13031 include_expsyms_CXX; do
13034 old_archive_cmds_CXX | \
13035 old_archive_from_new_cmds_CXX | \
13036 archive_cmds_CXX | \
13037 archive_expsym_cmds_CXX | \
13038 module_cmds_CXX | \
13039 module_expsym_cmds_CXX | \
13040 old_archive_from_expsyms_cmds_CXX | \
13041 export_symbols_cmds_CXX | \
13042 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13043 postinstall_cmds | postuninstall_cmds | \
13044 old_postinstall_cmds | old_postuninstall_cmds | \
13045 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13046 # Double-quote double-evaled strings.
13047 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13050 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13056 *'\$0 --fallback-echo"')
13057 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13063 cat <<__EOF__ >> "$cfgfile"
13064 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13066 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13068 # Shell to use when invoking shell scripts.
13071 # Whether or not to build shared libraries.
13072 build_libtool_libs=$enable_shared
13074 # Whether or not to build static libraries.
13075 build_old_libs=$enable_static
13077 # Whether or not to add -lc for building shared libraries.
13078 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13080 # Whether or not to disallow shared libs when runtime libs are static
13081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13083 # Whether or not to optimize for fast installation.
13084 fast_install=$enable_fast_install
13087 host_alias=$host_alias
13091 # The build system.
13092 build_alias=$build_alias
13096 # An echo program that does not interpret backslashes.
13101 AR_FLAGS=$lt_AR_FLAGS
13106 # A language-specific compiler.
13107 CC=$lt_compiler_CXX
13109 # Is the compiler the GNU C compiler?
13115 # The linker used to build libraries.
13118 # Whether we need hard or soft links.
13121 # A BSD-compatible nm program.
13124 # A symbol stripping program
13127 # Used to examine libraries when file_magic_cmd begins "file"
13128 MAGIC_CMD=$MAGIC_CMD
13130 # Used on cygwin: DLL creation program.
13133 # Used on cygwin: object dumper.
13136 # Used on cygwin: assembler.
13139 # The name of the directory that contains temporary libtool files.
13142 # How to create reloadable object files.
13143 reload_flag=$lt_reload_flag
13144 reload_cmds=$lt_reload_cmds
13146 # How to pass a linker flag through the compiler.
13147 wl=$lt_lt_prog_compiler_wl_CXX
13149 # Object file suffix (normally "o").
13150 objext="$ac_objext"
13152 # Old archive suffix (normally "a").
13155 # Shared library suffix (normally ".so").
13156 shrext_cmds='$shrext_cmds'
13158 # Executable file suffix (normally "").
13161 # Additional compiler flags for building library objects.
13162 pic_flag=$lt_lt_prog_compiler_pic_CXX
13165 # What is the maximum length of a command?
13166 max_cmd_len=$lt_cv_sys_max_cmd_len
13168 # Does compiler simultaneously support -c and -o options?
13169 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13171 # Must we lock files when doing compilation?
13172 need_locks=$lt_need_locks
13174 # Do we need the lib prefix for modules?
13175 need_lib_prefix=$need_lib_prefix
13177 # Do we need a version for libraries?
13178 need_version=$need_version
13180 # Whether dlopen is supported.
13181 dlopen_support=$enable_dlopen
13183 # Whether dlopen of programs is supported.
13184 dlopen_self=$enable_dlopen_self
13186 # Whether dlopen of statically linked programs is supported.
13187 dlopen_self_static=$enable_dlopen_self_static
13189 # Compiler flag to prevent dynamic linking.
13190 link_static_flag=$lt_lt_prog_compiler_static_CXX
13192 # Compiler flag to turn off builtin functions.
13193 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13195 # Compiler flag to allow reflexive dlopens.
13196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13198 # Compiler flag to generate shared objects directly from archives.
13199 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13201 # Compiler flag to generate thread-safe objects.
13202 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13204 # Library versioning type.
13205 version_type=$version_type
13207 # Format of library name prefix.
13208 libname_spec=$lt_libname_spec
13210 # List of archive names. First name is the real one, the rest are links.
13211 # The last name is the one that the linker finds with -lNAME.
13212 library_names_spec=$lt_library_names_spec
13214 # The coded name of the library, if different from the real name.
13215 soname_spec=$lt_soname_spec
13217 # Commands used to build and install an old-style archive.
13219 old_archive_cmds=$lt_old_archive_cmds_CXX
13220 old_postinstall_cmds=$lt_old_postinstall_cmds
13221 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13223 # Create an old-style archive from a shared archive.
13224 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13226 # Create a temporary old-style archive to link instead of a shared archive.
13227 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13229 # Commands used to build and install a shared archive.
13230 archive_cmds=$lt_archive_cmds_CXX
13231 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13232 postinstall_cmds=$lt_postinstall_cmds
13233 postuninstall_cmds=$lt_postuninstall_cmds
13235 # Commands used to build a loadable module (assumed same as above if empty)
13236 module_cmds=$lt_module_cmds_CXX
13237 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13239 # Commands to strip libraries.
13240 old_striplib=$lt_old_striplib
13241 striplib=$lt_striplib
13243 # Dependencies to place before the objects being linked to create a
13245 predep_objects=$lt_predep_objects_CXX
13247 # Dependencies to place after the objects being linked to create a
13249 postdep_objects=$lt_postdep_objects_CXX
13251 # Dependencies to place before the objects being linked to create a
13253 predeps=$lt_predeps_CXX
13255 # Dependencies to place after the objects being linked to create a
13257 postdeps=$lt_postdeps_CXX
13259 # The library search path used internally by the compiler when linking
13260 # a shared library.
13261 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13263 # Method to check whether dependent libraries are shared objects.
13264 deplibs_check_method=$lt_deplibs_check_method
13266 # Command to use when deplibs_check_method == file_magic.
13267 file_magic_cmd=$lt_file_magic_cmd
13269 # Flag that allows shared libraries with undefined symbols to be built.
13270 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13272 # Flag that forces no undefined symbols.
13273 no_undefined_flag=$lt_no_undefined_flag_CXX
13275 # Commands used to finish a libtool library installation in a directory.
13276 finish_cmds=$lt_finish_cmds
13278 # Same as above, but a single script fragment to be evaled but not shown.
13279 finish_eval=$lt_finish_eval
13281 # Take the output of nm and produce a listing of raw symbols and C names.
13282 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13284 # Transform the output of nm in a proper C declaration
13285 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13287 # Transform the output of nm in a C name address pair
13288 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13290 # This is the shared library runtime path variable.
13291 runpath_var=$runpath_var
13293 # This is the shared library path variable.
13294 shlibpath_var=$shlibpath_var
13296 # Is shlibpath searched before the hard-coded library search path?
13297 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13299 # How to hardcode a shared library path into an executable.
13300 hardcode_action=$hardcode_action_CXX
13302 # Whether we should hardcode library paths into libraries.
13303 hardcode_into_libs=$hardcode_into_libs
13305 # Flag to hardcode \$libdir into a binary during linking.
13306 # This must work even if \$libdir does not exist.
13307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13309 # If ld is used when linking, flag to hardcode \$libdir into
13310 # a binary during linking. This must work even if \$libdir does
13312 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13314 # Whether we need a single -rpath flag with a separated argument.
13315 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13317 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13318 # resulting binary.
13319 hardcode_direct=$hardcode_direct_CXX
13321 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13322 # resulting binary.
13323 hardcode_minus_L=$hardcode_minus_L_CXX
13325 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13326 # the resulting binary.
13327 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13329 # Set to yes if building a shared library automatically hardcodes DIR into the library
13330 # and all subsequent libraries and executables linked against it.
13331 hardcode_automatic=$hardcode_automatic_CXX
13333 # Variables whose values should be saved in libtool wrapper scripts and
13334 # restored at relink time.
13335 variables_saved_for_relink="$variables_saved_for_relink"
13337 # Whether libtool must link a program against all its dependency libraries.
13338 link_all_deplibs=$link_all_deplibs_CXX
13340 # Compile-time system search path for libraries
13341 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13343 # Run-time system search path for libraries
13344 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13346 # Fix the shell variable \$srcfile for the compiler.
13347 fix_srcfile_path="$fix_srcfile_path_CXX"
13349 # Set to yes if exported symbols are required.
13350 always_export_symbols=$always_export_symbols_CXX
13352 # The commands to list exported symbols.
13353 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13355 # The commands to extract the exported symbol list from a shared archive.
13356 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13358 # Symbols that should not be listed in the preloaded symbols.
13359 exclude_expsyms=$lt_exclude_expsyms_CXX
13361 # Symbols that must always be exported.
13362 include_expsyms=$lt_include_expsyms_CXX
13364 # ### END LIBTOOL TAG CONFIG: $tagname
13370 # If there is no Makefile yet, we rely on a make rule to execute
13371 # `config.status --recheck' to rerun these tests and create the
13372 # libtool script then.
13373 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13374 if test -f "$ltmain_in"; then
13375 test -f Makefile && make "$ltmain"
13381 ac_cpp='$CPP $CPPFLAGS'
13382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13390 with_gnu_ldcxx=$with_gnu_ld
13391 with_gnu_ld=$lt_save_with_gnu_ld
13392 lt_cv_path_LDCXX=$lt_cv_path_LD
13393 lt_cv_path_LD=$lt_save_path_LD
13394 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13395 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13403 if test -n "$F77" && test "X$F77" != "Xno"; then
13406 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13407 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13408 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13411 archive_cmds_need_lc_F77=no
13412 allow_undefined_flag_F77=
13413 always_export_symbols_F77=no
13414 archive_expsym_cmds_F77=
13415 export_dynamic_flag_spec_F77=
13416 hardcode_direct_F77=no
13417 hardcode_libdir_flag_spec_F77=
13418 hardcode_libdir_flag_spec_ld_F77=
13419 hardcode_libdir_separator_F77=
13420 hardcode_minus_L_F77=no
13421 hardcode_automatic_F77=no
13423 module_expsym_cmds_F77=
13424 link_all_deplibs_F77=unknown
13425 old_archive_cmds_F77=$old_archive_cmds
13426 no_undefined_flag_F77=
13427 whole_archive_flag_spec_F77=
13428 enable_shared_with_static_runtimes_F77=no
13430 # Source file extension for f77 test sources.
13433 # Object file extension for compiled f77 test sources.
13437 # Code to be used in simple compile tests
13438 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13440 # Code to be used in simple link tests
13441 lt_simple_link_test_code=" program t\n end\n"
13443 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13445 # If no C compiler was specified, use CC.
13448 # Allow CC to be a program name with arguments.
13452 # save warnings/boilerplate of simple test code
13453 ac_outfile=conftest.$ac_objext
13454 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13455 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13456 _lt_compiler_boilerplate=`cat conftest.err`
13459 ac_outfile=conftest.$ac_objext
13460 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13461 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13462 _lt_linker_boilerplate=`cat conftest.err`
13466 # Allow CC to be a program name with arguments.
13471 for cc_temp in $compiler""; do
13473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13479 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13482 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13483 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13484 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13485 echo "${ECHO_T}$can_build_shared" >&6
13487 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13488 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13489 test "$can_build_shared" = "no" && enable_shared=no
13491 # On AIX, shared libraries and static libraries use the same namespace, and
13492 # are all built from PIC.
13495 test "$enable_shared" = yes && enable_static=no
13496 if test -n "$RANLIB"; then
13497 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13498 postinstall_cmds='$RANLIB $lib'
13502 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13503 test "$enable_shared" = yes && enable_static=no
13507 echo "$as_me:$LINENO: result: $enable_shared" >&5
13508 echo "${ECHO_T}$enable_shared" >&6
13510 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13511 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13512 # Make sure either enable_shared or enable_static is yes.
13513 test "$enable_shared" = yes || enable_static=yes
13514 echo "$as_me:$LINENO: result: $enable_static" >&5
13515 echo "${ECHO_T}$enable_static" >&6
13517 test "$ld_shlibs_F77" = no && can_build_shared=no
13522 lt_prog_compiler_wl_F77=
13523 lt_prog_compiler_pic_F77=
13524 lt_prog_compiler_static_F77=
13526 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13527 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13529 if test "$GCC" = yes; then
13530 lt_prog_compiler_wl_F77='-Wl,'
13531 lt_prog_compiler_static_F77='-static'
13535 # All AIX code is PIC.
13536 if test "$host_cpu" = ia64; then
13537 # AIX 5 now supports IA64 processor
13538 lt_prog_compiler_static_F77='-Bstatic'
13543 # FIXME: we need at least 68020 code to build shared libraries, but
13544 # adding the `-m68020' flag to GCC prevents building anything better,
13546 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13549 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13550 # PIC is the default for these OSes.
13553 mingw* | pw32* | os2*)
13554 # This hack is so that the source file can tell whether it is being
13555 # built for inclusion in a dll (and should export symbols for example).
13556 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13559 darwin* | rhapsody*)
13560 # PIC is the default on this platform
13561 # Common symbols not allowed in MH_DYLIB files
13562 lt_prog_compiler_pic_F77='-fno-common'
13566 # Just because we use GCC doesn't mean we suddenly get shared libraries
13567 # on systems that don't support them.
13568 lt_prog_compiler_can_build_shared_F77=no
13573 if test -d /usr/nec; then
13574 lt_prog_compiler_pic_F77=-Kconform_pic
13579 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13580 # not for PA HP-UX.
13586 lt_prog_compiler_pic_F77='-fPIC'
13592 lt_prog_compiler_pic_F77='-fPIC'
13596 # PORTME Check for flag to pass linker flags through the system compiler.
13599 lt_prog_compiler_wl_F77='-Wl,'
13600 if test "$host_cpu" = ia64; then
13601 # AIX 5 now supports IA64 processor
13602 lt_prog_compiler_static_F77='-Bstatic'
13604 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13608 # PIC is the default on this platform
13609 # Common symbols not allowed in MH_DYLIB files
13610 case $cc_basename in
13612 lt_prog_compiler_pic_F77='-qnocommon'
13613 lt_prog_compiler_wl_F77='-Wl,'
13618 mingw* | pw32* | os2*)
13619 # This hack is so that the source file can tell whether it is being
13620 # built for inclusion in a dll (and should export symbols for example).
13621 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13624 hpux9* | hpux10* | hpux11*)
13625 lt_prog_compiler_wl_F77='-Wl,'
13626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13627 # not for PA HP-UX.
13633 lt_prog_compiler_pic_F77='+Z'
13636 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13637 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13640 irix5* | irix6* | nonstopux*)
13641 lt_prog_compiler_wl_F77='-Wl,'
13642 # PIC (with -KPIC) is the default.
13643 lt_prog_compiler_static_F77='-non_shared'
13647 lt_prog_compiler_pic_F77='-KPIC'
13648 lt_prog_compiler_static_F77='-Bstatic'
13652 case $cc_basename in
13654 lt_prog_compiler_wl_F77='-Wl,'
13655 lt_prog_compiler_pic_F77='-KPIC'
13656 lt_prog_compiler_static_F77='-static'
13658 pgcc* | pgf77* | pgf90* | pgf95*)
13659 # Portland Group compilers (*not* the Pentium gcc compiler,
13660 # which looks to be a dead project)
13661 lt_prog_compiler_wl_F77='-Wl,'
13662 lt_prog_compiler_pic_F77='-fpic'
13663 lt_prog_compiler_static_F77='-Bstatic'
13666 lt_prog_compiler_wl_F77='-Wl,'
13667 # All Alpha code is PIC.
13668 lt_prog_compiler_static_F77='-non_shared'
13673 osf3* | osf4* | osf5*)
13674 lt_prog_compiler_wl_F77='-Wl,'
13675 # All OSF/1 code is PIC.
13676 lt_prog_compiler_static_F77='-non_shared'
13680 lt_prog_compiler_pic_F77='-Kpic'
13681 lt_prog_compiler_static_F77='-dn'
13685 lt_prog_compiler_pic_F77='-KPIC'
13686 lt_prog_compiler_static_F77='-Bstatic'
13687 case $cc_basename in
13688 f77* | f90* | f95*)
13689 lt_prog_compiler_wl_F77='-Qoption ld ';;
13691 lt_prog_compiler_wl_F77='-Wl,';;
13696 lt_prog_compiler_wl_F77='-Qoption ld '
13697 lt_prog_compiler_pic_F77='-PIC'
13698 lt_prog_compiler_static_F77='-Bstatic'
13701 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13702 lt_prog_compiler_wl_F77='-Wl,'
13703 lt_prog_compiler_pic_F77='-KPIC'
13704 lt_prog_compiler_static_F77='-Bstatic'
13708 if test -d /usr/nec ;then
13709 lt_prog_compiler_pic_F77='-Kconform_pic'
13710 lt_prog_compiler_static_F77='-Bstatic'
13715 lt_prog_compiler_wl_F77='-Wl,'
13716 lt_prog_compiler_can_build_shared_F77=no
13720 lt_prog_compiler_pic_F77='-pic'
13721 lt_prog_compiler_static_F77='-Bstatic'
13725 lt_prog_compiler_can_build_shared_F77=no
13730 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13731 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13734 # Check to make sure the PIC flag actually works.
13736 if test -n "$lt_prog_compiler_pic_F77"; then
13738 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13739 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13740 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 lt_prog_compiler_pic_works_F77=no
13744 ac_outfile=conftest.$ac_objext
13745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13746 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13747 # Insert the option either (1) after the last *FLAGS variable, or
13748 # (2) before a word containing "conftest.", or (3) at the end.
13749 # Note that $ac_compile itself does not contain backslashes and begins
13750 # with a dollar sign (not a hyphen), so the echo should work correctly.
13751 # The option is referenced via a variable to avoid confusing sed.
13752 lt_compile=`echo "$ac_compile" | $SED \
13753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13755 -e 's:$: $lt_compiler_flag:'`
13756 (eval echo "\"\$as_me:13756: $lt_compile\"" >&5)
13757 (eval "$lt_compile" 2>conftest.err)
13759 cat conftest.err >&5
13760 echo "$as_me:13760: \$? = $ac_status" >&5
13761 if (exit $ac_status) && test -s "$ac_outfile"; then
13762 # The compiler can only warn and ignore the option if not recognized
13763 # So say no if there are warnings other than the usual output.
13764 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13765 $SED '/^$/d' conftest.err >conftest.er2
13766 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13767 lt_prog_compiler_pic_works_F77=yes
13773 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13774 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13776 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13777 case $lt_prog_compiler_pic_F77 in
13779 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13782 lt_prog_compiler_pic_F77=
13783 lt_prog_compiler_can_build_shared_F77=no
13788 # For platforms which do not support PIC, -DPIC is meaningless:
13790 lt_prog_compiler_pic_F77=
13793 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13797 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13798 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13799 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 lt_cv_prog_compiler_c_o_F77=no
13803 $rm -r conftest 2>/dev/null
13807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13809 lt_compiler_flag="-o out/conftest2.$ac_objext"
13810 # Insert the option either (1) after the last *FLAGS variable, or
13811 # (2) before a word containing "conftest.", or (3) at the end.
13812 # Note that $ac_compile itself does not contain backslashes and begins
13813 # with a dollar sign (not a hyphen), so the echo should work correctly.
13814 lt_compile=`echo "$ac_compile" | $SED \
13815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13817 -e 's:$: $lt_compiler_flag:'`
13818 (eval echo "\"\$as_me:13818: $lt_compile\"" >&5)
13819 (eval "$lt_compile" 2>out/conftest.err)
13821 cat out/conftest.err >&5
13822 echo "$as_me:13822: \$? = $ac_status" >&5
13823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13825 # The compiler can only warn and ignore the option if not recognized
13826 # So say no if there are warnings
13827 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13828 $SED '/^$/d' out/conftest.err >out/conftest.er2
13829 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13830 lt_cv_prog_compiler_c_o_F77=yes
13835 # SGI C++ compiler will create directory out/ii_files/ for
13836 # template instantiation
13837 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13838 $rm out/* && rmdir out
13844 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13845 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13848 hard_links="nottested"
13849 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13850 # do not overwrite the value of need_locks provided by the user
13851 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13852 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13857 ln conftest.a conftest.b 2>&5 || hard_links=no
13858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13859 echo "$as_me:$LINENO: result: $hard_links" >&5
13860 echo "${ECHO_T}$hard_links" >&6
13861 if test "$hard_links" = no; then
13862 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13863 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13870 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13871 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13874 allow_undefined_flag_F77=
13875 enable_shared_with_static_runtimes_F77=no
13877 archive_expsym_cmds_F77=
13878 old_archive_From_new_cmds_F77=
13879 old_archive_from_expsyms_cmds_F77=
13880 export_dynamic_flag_spec_F77=
13881 whole_archive_flag_spec_F77=
13882 thread_safe_flag_spec_F77=
13883 hardcode_libdir_flag_spec_F77=
13884 hardcode_libdir_flag_spec_ld_F77=
13885 hardcode_libdir_separator_F77=
13886 hardcode_direct_F77=no
13887 hardcode_minus_L_F77=no
13888 hardcode_shlibpath_var_F77=unsupported
13889 link_all_deplibs_F77=unknown
13890 hardcode_automatic_F77=no
13892 module_expsym_cmds_F77=
13893 always_export_symbols_F77=no
13894 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13895 # include_expsyms should be a list of space-separated symbols to be *always*
13896 # included in the symbol list
13897 include_expsyms_F77=
13898 # exclude_expsyms can be an extended regexp of symbols to exclude
13899 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13900 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13901 # as well as any symbol that contains `d'.
13902 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13903 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13904 # platforms (ab)use it in PIC code, but their linkers get confused if
13905 # the symbol is explicitly referenced. Since portable code cannot
13906 # rely on this symbol name, it's probably fine to never include it in
13907 # preloaded symbol tables.
13908 extract_expsyms_cmds=
13909 # Just being paranoid about ensuring that cc_basename is set.
13910 for cc_temp in $compiler""; do
13912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13918 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13921 cygwin* | mingw* | pw32*)
13922 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13923 # When not using gcc, we currently assume that we are using
13924 # Microsoft Visual C++.
13925 if test "$GCC" != yes; then
13935 if test "$with_gnu_ld" = yes; then
13936 # If archive_cmds runs LD, not CC, wlarc should be empty
13939 # Set some defaults for GNU ld with shared library support. These
13940 # are reset later if shared libraries are not supported. Putting them
13941 # here allows them to be overridden if necessary.
13942 runpath_var=LD_RUN_PATH
13943 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13944 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13945 # ancient GNU ld didn't support --whole-archive et. al.
13946 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13947 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13949 whole_archive_flag_spec_F77=
13951 supports_anon_versioning=no
13952 case `$LD -v 2>/dev/null` in
13953 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13954 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13955 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13956 *\ 2.11.*) ;; # other 2.11 versions
13957 *) supports_anon_versioning=yes ;;
13960 # See if GNU ld supports shared libraries.
13962 aix3* | aix4* | aix5*)
13963 # On AIX/PPC, the GNU linker is very broken
13964 if test "$host_cpu" != ia64; then
13968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13969 *** to be unable to reliably create shared libraries on AIX.
13970 *** Therefore, libtool is disabling shared libraries support. If you
13971 *** really care for shared libraries, you may want to modify your PATH
13972 *** so that a non-GNU linker is found, and then restart.
13979 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)'
13980 hardcode_libdir_flag_spec_F77='-L$libdir'
13981 hardcode_minus_L_F77=yes
13983 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13984 # that the semantics of dynamic libraries on AmigaOS, at least up
13985 # to version 4, is to share data among multiple programs linked
13986 # with the same dynamic library. Since this doesn't match the
13987 # behavior of shared libraries on other platforms, we can't use
13993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13994 allow_undefined_flag_F77=unsupported
13995 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13996 # support --undefined. This deserves some investigation. FIXME
13997 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14003 cygwin* | mingw* | pw32*)
14004 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14005 # as there is no search path for DLLs.
14006 hardcode_libdir_flag_spec_F77='-L$libdir'
14007 allow_undefined_flag_F77=unsupported
14008 always_export_symbols_F77=no
14009 enable_shared_with_static_runtimes_F77=yes
14010 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14012 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14013 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14014 # If the export-symbols file already is a .def file (1st line
14015 # is EXPORTS), use it as is; otherwise, prepend...
14016 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14017 cp $export_symbols $output_objdir/$soname.def;
14019 echo EXPORTS > $output_objdir/$soname.def;
14020 cat $export_symbols >> $output_objdir/$soname.def;
14022 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14031 case $cc_basename,$host_cpu in
14032 pgcc*) # Portland Group C compiler
14033 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14034 tmp_addflag=' $pic_flag'
14036 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14037 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14038 tmp_addflag=' $pic_flag -Mnomain' ;;
14039 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14040 tmp_addflag=' -i_dynamic' ;;
14041 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14042 tmp_addflag=' -i_dynamic -nofor_main' ;;
14043 ifc* | ifort*) # Intel Fortran compiler
14044 tmp_addflag=' -nofor_main' ;;
14046 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048 if test $supports_anon_versioning = yes; then
14049 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14051 $echo "local: *; };" >> $output_objdir/$libname.ver~
14052 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14061 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14064 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14065 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14070 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14074 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14075 *** create shared libraries on Solaris systems. Therefore, libtool
14076 *** is disabling shared libraries support. We urge you to upgrade GNU
14077 *** binutils to release 2.9.1 or newer. Another option is to modify
14078 *** your PATH or compiler configuration so that the native linker is
14079 *** used, and then restart.
14082 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14083 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14084 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14091 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14093 hardcode_direct_F77=yes
14094 hardcode_shlibpath_var_F77=no
14098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14099 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14100 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14107 if test "$ld_shlibs_F77" = no; then
14109 hardcode_libdir_flag_spec_F77=
14110 export_dynamic_flag_spec_F77=
14111 whole_archive_flag_spec_F77=
14114 # PORTME fill in a description of your system's linker (not GNU ld)
14117 allow_undefined_flag_F77=unsupported
14118 always_export_symbols_F77=yes
14119 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'
14120 # Note: this linker hardcodes the directories in LIBPATH if there
14121 # are no directories specified by -L.
14122 hardcode_minus_L_F77=yes
14123 if test "$GCC" = yes && test -z "$link_static_flag"; then
14124 # Neither direct hardcoding nor static linking is supported with a
14126 hardcode_direct_F77=unsupported
14131 if test "$host_cpu" = ia64; then
14132 # On IA64, the linker does run time linking by default, so we don't
14133 # have to do anything special.
14134 aix_use_runtimelinking=no
14135 exp_sym_flag='-Bexport'
14138 # If we're using GNU nm, then we don't want the "-C" option.
14139 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14140 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14141 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'
14143 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'
14145 aix_use_runtimelinking=no
14147 # Test if we are trying to use run time linking or normal
14148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14149 # need to do runtime linking.
14150 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14151 for ld_flag in $LDFLAGS; do
14152 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14153 aix_use_runtimelinking=yes
14159 exp_sym_flag='-bexport'
14160 no_entry_flag='-bnoentry'
14163 # When large executables or shared objects are built, AIX ld can
14164 # have problems creating the table of contents. If linking a library
14165 # or program results in "error TOC overflow" add -mminimal-toc to
14166 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14167 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14169 archive_cmds_F77=''
14170 hardcode_direct_F77=yes
14171 hardcode_libdir_separator_F77=':'
14172 link_all_deplibs_F77=yes
14174 if test "$GCC" = yes; then
14175 case $host_os in aix4.[012]|aix4.[012].*)
14176 # We only want to do this on AIX 4.2 and lower, the check
14177 # below for broken collect2 doesn't work under 4.3+
14178 collect2name=`${CC} -print-prog-name=collect2`
14179 if test -f "$collect2name" && \
14180 strings "$collect2name" | grep resolve_lib_name >/dev/null
14182 # We have reworked collect2
14183 hardcode_direct_F77=yes
14185 # We have old collect2
14186 hardcode_direct_F77=unsupported
14187 # It fails to find uninstalled libraries when the uninstalled
14188 # path is not listed in the libpath. Setting hardcode_minus_L
14189 # to unsupported forces relinking
14190 hardcode_minus_L_F77=yes
14191 hardcode_libdir_flag_spec_F77='-L$libdir'
14192 hardcode_libdir_separator_F77=
14195 shared_flag='-shared'
14196 if test "$aix_use_runtimelinking" = yes; then
14197 shared_flag="$shared_flag "'${wl}-G'
14201 if test "$host_cpu" = ia64; then
14202 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14203 # chokes on -Wl,-G. The following line is correct:
14206 if test "$aix_use_runtimelinking" = yes; then
14207 shared_flag='${wl}-G'
14209 shared_flag='${wl}-bM:SRE'
14214 # It seems that -bexpall does not export symbols beginning with
14215 # underscore (_), so it is better to generate a list of symbols to export.
14216 always_export_symbols_F77=yes
14217 if test "$aix_use_runtimelinking" = yes; then
14218 # Warning - without using the other runtime loading flags (-brtl),
14219 # -berok will link without error, but may produce a broken library.
14220 allow_undefined_flag_F77='-berok'
14221 # Determine the default libpath from the value encoded in an empty executable.
14222 cat >conftest.$ac_ext <<_ACEOF
14227 rm -f conftest.$ac_objext conftest$ac_exeext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14229 (eval $ac_link) 2>conftest.er1
14231 grep -v '^ *+' conftest.er1 >conftest.err
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; } &&
14242 { ac_try='test -s conftest$ac_exeext'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; }; then
14249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14251 # Check for a 64-bit object if we didn't find anything.
14252 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; }
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14259 rm -f conftest.err conftest.$ac_objext \
14260 conftest$ac_exeext conftest.$ac_ext
14261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14263 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14264 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"
14266 if test "$host_cpu" = ia64; then
14267 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14268 allow_undefined_flag_F77="-z nodefs"
14269 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"
14271 # Determine the default libpath from the value encoded in an empty executable.
14272 cat >conftest.$ac_ext <<_ACEOF
14277 rm -f conftest.$ac_objext conftest$ac_exeext
14278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14279 (eval $ac_link) 2>conftest.er1
14281 grep -v '^ *+' conftest.er1 >conftest.err
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
14286 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; } &&
14292 { ac_try='test -s conftest$ac_exeext'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
14299 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14301 # Check for a 64-bit object if we didn't find anything.
14302 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; }
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14309 rm -f conftest.err conftest.$ac_objext \
14310 conftest$ac_exeext conftest.$ac_ext
14311 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14313 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14314 # Warning - without using the other run time loading flags,
14315 # -berok will link without error, but may produce a broken library.
14316 no_undefined_flag_F77=' ${wl}-bernotok'
14317 allow_undefined_flag_F77=' ${wl}-berok'
14318 # -bexpall does not export symbols beginning with underscore (_)
14319 always_export_symbols_F77=yes
14320 # Exported symbols can be pulled into shared objects from archives
14321 whole_archive_flag_spec_F77=' '
14322 archive_cmds_need_lc_F77=yes
14323 # This is similar to how AIX traditionally builds its shared libraries.
14324 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'
14330 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)'
14331 hardcode_libdir_flag_spec_F77='-L$libdir'
14332 hardcode_minus_L_F77=yes
14333 # see comment about different semantics on the GNU ld section
14338 export_dynamic_flag_spec_F77=-rdynamic
14341 cygwin* | mingw* | pw32*)
14342 # When not using gcc, we currently assume that we are using
14343 # Microsoft Visual C++.
14344 # hardcode_libdir_flag_spec is actually meaningless, as there is
14345 # no search path for DLLs.
14346 hardcode_libdir_flag_spec_F77=' '
14347 allow_undefined_flag_F77=unsupported
14348 # Tell ltmain to make .lib files, not .a files.
14350 # Tell ltmain to make .dll files, not .so files.
14352 # FIXME: Setting linknames here is a bad hack.
14353 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14354 # The linker will automatically build a .lib file if we build a DLL.
14355 old_archive_From_new_cmds_F77='true'
14356 # FIXME: Should let the user specify the lib program.
14357 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14358 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14359 enable_shared_with_static_runtimes_F77=yes
14362 darwin* | rhapsody*)
14364 rhapsody* | darwin1.[012])
14365 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14368 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14369 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14371 case ${MACOSX_DEPLOYMENT_TARGET} in
14373 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14376 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14382 archive_cmds_need_lc_F77=no
14383 hardcode_direct_F77=no
14384 hardcode_automatic_F77=yes
14385 hardcode_shlibpath_var_F77=unsupported
14386 whole_archive_flag_spec_F77=''
14387 link_all_deplibs_F77=yes
14388 if test "$GCC" = yes ; then
14389 output_verbose_link_cmd='echo'
14390 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14391 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14392 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14393 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14394 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}'
14396 case $cc_basename in
14398 output_verbose_link_cmd='echo'
14399 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14400 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14401 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14402 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14403 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}'
14413 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14414 hardcode_libdir_flag_spec_F77='-L$libdir'
14415 hardcode_shlibpath_var_F77=no
14422 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14423 # support. Future versions do this automatically, but an explicit c++rt0.o
14424 # does not break anything, and helps significantly (at the cost of a little
14427 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14428 hardcode_libdir_flag_spec_F77='-R$libdir'
14429 hardcode_direct_F77=yes
14430 hardcode_shlibpath_var_F77=no
14433 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14435 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14436 hardcode_direct_F77=yes
14437 hardcode_minus_L_F77=yes
14438 hardcode_shlibpath_var_F77=no
14441 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14442 freebsd* | kfreebsd*-gnu | dragonfly*)
14443 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14444 hardcode_libdir_flag_spec_F77='-R$libdir'
14445 hardcode_direct_F77=yes
14446 hardcode_shlibpath_var_F77=no
14450 if test "$GCC" = yes; then
14451 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'
14453 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'
14455 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14456 hardcode_libdir_separator_F77=:
14457 hardcode_direct_F77=yes
14459 # hardcode_minus_L: Not really in the search PATH,
14460 # but as the default location of the library.
14461 hardcode_minus_L_F77=yes
14462 export_dynamic_flag_spec_F77='${wl}-E'
14466 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14469 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14472 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14478 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14481 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14485 if test "$with_gnu_ld" = no; then
14488 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14489 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14490 hardcode_libdir_separator_F77=:
14491 hardcode_direct_F77=no
14492 hardcode_shlibpath_var_F77=no
14495 hardcode_libdir_flag_spec_F77='-L$libdir'
14496 hardcode_direct_F77=no
14497 hardcode_shlibpath_var_F77=no
14499 # hardcode_minus_L: Not really in the search PATH,
14500 # but as the default location of the library.
14501 hardcode_minus_L_F77=yes
14504 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14505 hardcode_libdir_separator_F77=:
14506 hardcode_direct_F77=yes
14507 export_dynamic_flag_spec_F77='${wl}-E'
14509 # hardcode_minus_L: Not really in the search PATH,
14510 # but as the default location of the library.
14511 hardcode_minus_L_F77=yes
14517 irix5* | irix6* | nonstopux*)
14518 if test "$GCC" = yes; then
14519 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'
14521 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'
14522 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14524 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14525 hardcode_libdir_separator_F77=:
14526 link_all_deplibs_F77=yes
14530 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14531 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14533 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14535 hardcode_libdir_flag_spec_F77='-R$libdir'
14536 hardcode_direct_F77=yes
14537 hardcode_shlibpath_var_F77=no
14541 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14542 hardcode_direct_F77=yes
14543 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14544 hardcode_libdir_separator_F77=:
14545 hardcode_shlibpath_var_F77=no
14549 hardcode_direct_F77=yes
14550 hardcode_shlibpath_var_F77=no
14551 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14552 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14553 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14554 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14555 export_dynamic_flag_spec_F77='${wl}-E'
14558 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14559 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14560 hardcode_libdir_flag_spec_F77='-R$libdir'
14563 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14564 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14571 hardcode_libdir_flag_spec_F77='-L$libdir'
14572 hardcode_minus_L_F77=yes
14573 allow_undefined_flag_F77=unsupported
14574 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'
14575 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14579 if test "$GCC" = yes; then
14580 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14581 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'
14583 allow_undefined_flag_F77=' -expect_unresolved \*'
14584 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'
14586 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14587 hardcode_libdir_separator_F77=:
14590 osf4* | osf5*) # as osf3* with the addition of -msym flag
14591 if test "$GCC" = yes; then
14592 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14593 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'
14594 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14596 allow_undefined_flag_F77=' -expect_unresolved \*'
14597 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'
14598 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~
14599 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14601 # Both c and cxx compiler support -rpath directly
14602 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14604 hardcode_libdir_separator_F77=:
14608 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14609 hardcode_shlibpath_var_F77=no
14610 export_dynamic_flag_spec_F77='${wl}-Bexport'
14611 runpath_var=LD_RUN_PATH
14612 hardcode_runpath_var=yes
14616 no_undefined_flag_F77=' -z text'
14617 if test "$GCC" = yes; then
14619 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14620 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14621 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14624 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14625 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14626 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14628 hardcode_libdir_flag_spec_F77='-R$libdir'
14629 hardcode_shlibpath_var_F77=no
14631 solaris2.[0-5] | solaris2.[0-5].*) ;;
14633 # The compiler driver will combine linker options so we
14634 # cannot just pass the convience library names through
14635 # without $wl, iff we do not link with $LD.
14636 # Luckily, gcc supports the same syntax we need for Sun Studio.
14637 # Supported since Solaris 2.6 (maybe 2.5.1?)
14640 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14642 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14645 link_all_deplibs_F77=yes
14649 if test "x$host_vendor" = xsequent; then
14650 # Use $CC to link under sequent, because it throws in some extra .o
14651 # files that make .init and .fini sections work.
14652 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14654 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14656 hardcode_libdir_flag_spec_F77='-L$libdir'
14657 hardcode_direct_F77=yes
14658 hardcode_minus_L_F77=yes
14659 hardcode_shlibpath_var_F77=no
14663 case $host_vendor in
14665 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14666 hardcode_direct_F77=yes # is this really true???
14669 ## LD is ld it makes a PLAMLIB
14670 ## CC just makes a GrossModule.
14671 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14672 reload_cmds_F77='$CC -r -o $output$reload_objs'
14673 hardcode_direct_F77=no
14676 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14677 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14680 runpath_var='LD_RUN_PATH'
14681 hardcode_shlibpath_var_F77=no
14685 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14686 hardcode_shlibpath_var_F77=no
14687 export_dynamic_flag_spec_F77='-Bexport'
14691 if test -d /usr/nec; then
14692 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14693 hardcode_shlibpath_var_F77=no
14694 runpath_var=LD_RUN_PATH
14695 hardcode_runpath_var=yes
14701 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14702 hardcode_direct_F77=yes
14703 hardcode_minus_L_F77=no
14704 hardcode_shlibpath_var_F77=no
14705 hardcode_runpath_var=yes
14706 runpath_var=LD_RUN_PATH
14709 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14710 no_undefined_flag_F77='${wl}-z ${wl}text'
14711 if test "$GCC" = yes; then
14712 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14714 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14716 runpath_var='LD_RUN_PATH'
14717 hardcode_shlibpath_var_F77=no
14721 no_undefined_flag_F77=' -z text'
14722 # $CC -shared without GNU ld will not create a library from C++
14723 # object files and a static libstdc++, better avoid it by now
14724 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14725 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14726 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14727 hardcode_libdir_flag_spec_F77=
14728 hardcode_shlibpath_var_F77=no
14729 runpath_var='LD_RUN_PATH'
14733 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14734 hardcode_libdir_flag_spec_F77='-L$libdir'
14735 hardcode_shlibpath_var_F77=no
14744 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14745 echo "${ECHO_T}$ld_shlibs_F77" >&6
14746 test "$ld_shlibs_F77" = no && can_build_shared=no
14748 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14749 if test "$GCC" = yes; then
14750 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14754 # Do we need to explicitly link libc?
14756 case "x$archive_cmds_need_lc_F77" in
14758 # Assume -lc should be added
14759 archive_cmds_need_lc_F77=yes
14761 if test "$enable_shared" = yes && test "$GCC" = yes; then
14762 case $archive_cmds_F77 in
14764 # FIXME: we may have to deal with multi-command sequences.
14767 # Test whether the compiler implicitly links with -lc since on some
14768 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14769 # to ld, don't add -lc before -lgcc.
14770 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14771 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14773 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776 (eval $ac_compile) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } 2>conftest.err; then
14782 libobjs=conftest.$ac_objext
14784 wl=$lt_prog_compiler_wl_F77
14790 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14791 allow_undefined_flag_F77=
14792 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14793 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }
14798 archive_cmds_need_lc_F77=no
14800 archive_cmds_need_lc_F77=yes
14802 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14804 cat conftest.err 1>&5
14807 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14808 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14815 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14816 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14817 library_names_spec=
14818 libname_spec='lib$name'
14822 postuninstall_cmds=
14826 shlibpath_overrides_runpath=unknown
14828 dynamic_linker="$host_os ld.so"
14829 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14830 if test "$GCC" = yes; then
14831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14832 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14833 # if the path contains ";" then we assume it to be the separator
14834 # otherwise default to the standard path separator (i.e. ":") - it is
14835 # assumed that no part of a normal pathname contains ";" but that should
14836 # okay in the real world where ";" in dirpaths is itself problematic.
14837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14842 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14844 need_lib_prefix=unknown
14845 hardcode_into_libs=no
14847 # when you set need_version to no, make sure it does not cause -set_version
14848 # flags to be left without arguments
14849 need_version=unknown
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14855 shlibpath_var=LIBPATH
14857 # AIX 3 has no versioning support, so we append a major version to the name.
14858 soname_spec='${libname}${release}${shared_ext}$major'
14865 hardcode_into_libs=yes
14866 if test "$host_cpu" = ia64; then
14867 # AIX 5 supports IA64
14868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14869 shlibpath_var=LD_LIBRARY_PATH
14871 # With GCC up to 2.95.x, collect2 would create an import file
14872 # for dependence libraries. The import file would start with
14873 # the line `#! .'. This would cause the generated library to
14874 # depend on `.', always an invalid library. This was fixed in
14875 # development snapshots of GCC prior to 3.0.
14877 aix4 | aix4.[01] | aix4.[01].*)
14878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14880 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14883 can_build_shared=no
14887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14888 # soname into executable. Probably we can add versioning support to
14889 # collect2, so additional links can be useful in future.
14890 if test "$aix_use_runtimelinking" = yes; then
14891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14892 # instead of lib<name>.a to let people know that these are not
14893 # typical AIX shared libraries.
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896 # We preserve .a as extension for shared libraries through AIX4.2
14897 # and later when we are not doing run time linking.
14898 library_names_spec='${libname}${release}.a $libname.a'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14901 shlibpath_var=LIBPATH
14906 library_names_spec='$libname.ixlibrary $libname.a'
14907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14908 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'
14912 library_names_spec='${libname}${shared_ext}'
14913 dynamic_linker="$host_os ld.so"
14914 shlibpath_var=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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14926 # the default ld.so.conf also contains /usr/contrib/lib and
14927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14928 # libtool to hard-code these into programs
14931 cygwin* | mingw* | pw32*)
14932 version_type=windows
14937 case $GCC,$host_os in
14938 yes,cygwin* | yes,mingw* | yes,pw32*)
14939 library_names_spec='$libname.dll.a'
14940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14941 postinstall_cmds='base_file=`basename \${file}`~
14942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14943 dldir=$destdir/`dirname \$dlpath`~
14944 test -d \$dldir || mkdir -p \$dldir~
14945 $install_prog $dir/$dlname \$dldir/$dlname~
14946 chmod a+x \$dldir/$dlname'
14947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14948 dlpath=$dir/\$dldll~
14950 shlibpath_overrides_runpath=yes
14954 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14955 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14956 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14959 # MinGW DLLs use traditional 'lib' prefix
14960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14962 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14963 # It is most probably a Windows format PATH printed by
14964 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14965 # path with ; separators, and with drive letters. We can handle the
14966 # drive letters (cygwin fileutils understands them), so leave them,
14967 # especially as we might pass files found there to a mingw objdump,
14968 # which wouldn't understand a cygwinified path. Ahh.
14969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14975 # pw32 DLLs use 'pw' prefix rather than 'lib'
14976 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14982 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14985 dynamic_linker='Win32 ld.exe'
14986 # FIXME: first we should search . and the directory the executable is in
14990 darwin* | rhapsody*)
14991 dynamic_linker="$host_os dyld"
14992 version_type=darwin
14995 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14996 soname_spec='${libname}${release}${major}$shared_ext'
14997 shlibpath_overrides_runpath=yes
14998 shlibpath_var=DYLD_LIBRARY_PATH
14999 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15000 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15001 if test "$GCC" = yes; then
15002 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"`
15004 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 shlibpath_var=LD_LIBRARY_PATH
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15027 soname_spec='${libname}${release}${shared_ext}$major'
15028 shlibpath_var=LD_LIBRARY_PATH
15029 shlibpath_overrides_runpath=no
15030 hardcode_into_libs=yes
15031 dynamic_linker='GNU ld.so'
15034 freebsd* | dragonfly*)
15035 # DragonFly does not have aout. When/if they implement a new
15036 # versioning mechanism, adjust this.
15037 if test -x /usr/bin/objformat; then
15038 objformat=`/usr/bin/objformat`
15041 freebsd[123]*) objformat=aout ;;
15042 *) objformat=elf ;;
15045 version_type=freebsd-$objformat
15046 case $version_type in
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15057 shlibpath_var=LD_LIBRARY_PATH
15060 shlibpath_overrides_runpath=yes
15062 freebsd3.[01]* | freebsdelf3.[01]*)
15063 shlibpath_overrides_runpath=yes
15064 hardcode_into_libs=yes
15067 shlibpath_overrides_runpath=no
15068 hardcode_into_libs=yes
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 hardcode_into_libs=yes
15083 hpux9* | hpux10* | hpux11*)
15084 # Give a soname corresponding to the major version so that dld.sl refuses to
15085 # link against other versions.
15092 hardcode_into_libs=yes
15093 dynamic_linker="$host_os dld.so"
15094 shlibpath_var=LD_LIBRARY_PATH
15095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 if test "X$HPUX_IA64_MODE" = X32; then
15099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15101 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15107 hardcode_into_libs=yes
15108 dynamic_linker="$host_os dld.sl"
15109 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15118 dynamic_linker="$host_os dld.sl"
15119 shlibpath_var=SHLIB_PATH
15120 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15125 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15126 postinstall_cmds='chmod 555 $lib'
15129 irix5* | irix6* | nonstopux*)
15131 nonstopux*) version_type=nonstopux ;;
15133 if test "$lt_cv_prog_gnu_ld" = yes; then
15141 soname_spec='${libname}${release}${shared_ext}$major'
15142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15144 irix5* | nonstopux*)
15145 libsuff= shlibsuff=
15148 case $LD in # libtool.m4 will add one of these switches to LD
15149 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15150 libsuff= shlibsuff= libmagic=32-bit;;
15151 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15152 libsuff=32 shlibsuff=N32 libmagic=N32;;
15153 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15154 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15155 *) libsuff= shlibsuff= libmagic=never-match;;
15159 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15160 shlibpath_overrides_runpath=no
15161 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15162 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15163 hardcode_into_libs=yes
15166 # No shared lib support for Linux oldld, aout, or coff.
15167 linux*oldld* | linux*aout* | linux*coff*)
15171 # This must be Linux ELF.
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177 soname_spec='${libname}${release}${shared_ext}$major'
15178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15179 shlibpath_var=LD_LIBRARY_PATH
15180 shlibpath_overrides_runpath=no
15181 # This implies no fast_install, which is unacceptable.
15182 # Some rework will be needed to allow for fast_install
15183 # before this can be enabled.
15184 hardcode_into_libs=yes
15186 # Append ld.so.conf contents to the search path
15187 if test -f /etc/ld.so.conf; then
15188 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15189 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15192 # We used to test for /lib/ld.so.1 and disable shared libraries on
15193 # powerpc, because MkLinux only supported shared libraries with the
15194 # GNU dynamic linker. Since this was broken with cross compilers,
15195 # most powerpc-linux boxes support dynamic linking these days and
15196 # people can always --disable-shared, the test was removed, and we
15197 # assume the GNU/Linux dynamic linker is in use.
15198 dynamic_linker='GNU/Linux ld.so'
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 shlibpath_var=LD_LIBRARY_PATH
15208 shlibpath_overrides_runpath=no
15209 hardcode_into_libs=yes
15210 dynamic_linker='GNU ld.so'
15217 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15220 dynamic_linker='NetBSD (a.out) ld.so'
15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15223 soname_spec='${libname}${release}${shared_ext}$major'
15224 dynamic_linker='NetBSD ld.elf_so'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 shlibpath_overrides_runpath=yes
15228 hardcode_into_libs=yes
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 shlibpath_var=LD_LIBRARY_PATH
15235 shlibpath_overrides_runpath=yes
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243 soname_spec='${libname}${release}${shared_ext}$major'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 shlibpath_overrides_runpath=yes
15251 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15253 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15254 *) need_version=no ;;
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15261 openbsd2.[89] | openbsd2.[89].*)
15262 shlibpath_overrides_runpath=no
15265 shlibpath_overrides_runpath=yes
15269 shlibpath_overrides_runpath=yes
15274 libname_spec='$name'
15277 library_names_spec='$libname${shared_ext} $libname.a'
15278 dynamic_linker='OS/2 ld.exe'
15279 shlibpath_var=LIBPATH
15282 osf3* | osf4* | osf5*)
15286 soname_spec='${libname}${release}${shared_ext}$major'
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288 shlibpath_var=LD_LIBRARY_PATH
15289 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15290 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15295 soname_spec='${libname}${release}${shared_ext}$major'
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297 shlibpath_var=LD_LIBRARY_PATH
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 shlibpath_overrides_runpath=yes
15308 hardcode_into_libs=yes
15309 # ldd complains unless libraries are executable
15310 postinstall_cmds='chmod +x $lib'
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15317 shlibpath_var=LD_LIBRARY_PATH
15318 shlibpath_overrides_runpath=yes
15319 if test "$with_gnu_ld" = yes; then
15325 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328 soname_spec='${libname}${release}${shared_ext}$major'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 case $host_vendor in
15332 shlibpath_overrides_runpath=no
15334 export_dynamic_flag_spec='${wl}-Blargedynsym'
15335 runpath_var=LD_RUN_PATH
15343 shlibpath_overrides_runpath=no
15344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15350 if test -d /usr/nec ;then
15352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15353 soname_spec='$libname${shared_ext}.$major'
15354 shlibpath_var=LD_LIBRARY_PATH
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 shlibpath_var=LD_LIBRARY_PATH
15369 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15370 echo "${ECHO_T}$dynamic_linker" >&6
15371 test "$dynamic_linker" = no && can_build_shared=no
15373 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15374 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15375 hardcode_action_F77=
15376 if test -n "$hardcode_libdir_flag_spec_F77" || \
15377 test -n "$runpath_var_F77" || \
15378 test "X$hardcode_automatic_F77" = "Xyes" ; then
15380 # We can hardcode non-existant directories.
15381 if test "$hardcode_direct_F77" != no &&
15382 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15383 # have to relink, otherwise we might link with an installed library
15384 # when we should be linking with a yet-to-be-installed one
15385 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15386 test "$hardcode_minus_L_F77" != no; then
15387 # Linking always hardcodes the temporary library directory.
15388 hardcode_action_F77=relink
15390 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15391 hardcode_action_F77=immediate
15394 # We cannot hardcode anything, or else we can only hardcode existing
15396 hardcode_action_F77=unsupported
15398 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15399 echo "${ECHO_T}$hardcode_action_F77" >&6
15401 if test "$hardcode_action_F77" = relink; then
15402 # Fast installation is not supported
15403 enable_fast_install=no
15404 elif test "$shlibpath_overrides_runpath" = yes ||
15405 test "$enable_shared" = no; then
15406 # Fast installation is not necessary
15407 enable_fast_install=needless
15412 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15413 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15414 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15415 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15416 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15417 echo "$as_me:$LINENO: result: yes" >&5
15418 echo "${ECHO_T}yes" >&6
15420 # FIXME - insert some real tests, host_os isn't really good enough
15423 if test -n "$STRIP" ; then
15424 striplib="$STRIP -x"
15425 echo "$as_me:$LINENO: result: yes" >&5
15426 echo "${ECHO_T}yes" >&6
15428 echo "$as_me:$LINENO: result: no" >&5
15429 echo "${ECHO_T}no" >&6
15433 echo "$as_me:$LINENO: result: no" >&5
15434 echo "${ECHO_T}no" >&6
15441 # The else clause should only fire when bootstrapping the
15442 # libtool distribution, otherwise you forgot to ship ltmain.sh
15443 # with your package, and you will get complaints that there are
15444 # no rules to generate ltmain.sh.
15445 if test -f "$ltmain"; then
15446 # See if we are running on zsh, and set the options which allow our commands through
15447 # without removal of \ escapes.
15448 if test -n "${ZSH_VERSION+set}" ; then
15449 setopt NO_GLOB_SUBST
15451 # Now quote all the things that may contain metacharacters while being
15452 # careful not to overquote the AC_SUBSTed values. We take copies of the
15453 # variables and quote the copies for generation of the libtool script.
15454 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15456 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15457 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15458 deplibs_check_method reload_flag reload_cmds need_locks \
15459 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15460 lt_cv_sys_global_symbol_to_c_name_address \
15461 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15462 old_postinstall_cmds old_postuninstall_cmds \
15466 lt_prog_compiler_wl_F77 \
15467 lt_prog_compiler_pic_F77 \
15468 lt_prog_compiler_static_F77 \
15469 lt_prog_compiler_no_builtin_flag_F77 \
15470 export_dynamic_flag_spec_F77 \
15471 thread_safe_flag_spec_F77 \
15472 whole_archive_flag_spec_F77 \
15473 enable_shared_with_static_runtimes_F77 \
15474 old_archive_cmds_F77 \
15475 old_archive_from_new_cmds_F77 \
15476 predep_objects_F77 \
15477 postdep_objects_F77 \
15480 compiler_lib_search_path_F77 \
15482 archive_expsym_cmds_F77 \
15483 postinstall_cmds_F77 \
15484 postuninstall_cmds_F77 \
15485 old_archive_from_expsyms_cmds_F77 \
15486 allow_undefined_flag_F77 \
15487 no_undefined_flag_F77 \
15488 export_symbols_cmds_F77 \
15489 hardcode_libdir_flag_spec_F77 \
15490 hardcode_libdir_flag_spec_ld_F77 \
15491 hardcode_libdir_separator_F77 \
15492 hardcode_automatic_F77 \
15494 module_expsym_cmds_F77 \
15495 lt_cv_prog_compiler_c_o_F77 \
15496 exclude_expsyms_F77 \
15497 include_expsyms_F77; do
15500 old_archive_cmds_F77 | \
15501 old_archive_from_new_cmds_F77 | \
15502 archive_cmds_F77 | \
15503 archive_expsym_cmds_F77 | \
15504 module_cmds_F77 | \
15505 module_expsym_cmds_F77 | \
15506 old_archive_from_expsyms_cmds_F77 | \
15507 export_symbols_cmds_F77 | \
15508 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15509 postinstall_cmds | postuninstall_cmds | \
15510 old_postinstall_cmds | old_postuninstall_cmds | \
15511 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15512 # Double-quote double-evaled strings.
15513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15522 *'\$0 --fallback-echo"')
15523 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15529 cat <<__EOF__ >> "$cfgfile"
15530 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15532 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15534 # Shell to use when invoking shell scripts.
15537 # Whether or not to build shared libraries.
15538 build_libtool_libs=$enable_shared
15540 # Whether or not to build static libraries.
15541 build_old_libs=$enable_static
15543 # Whether or not to add -lc for building shared libraries.
15544 build_libtool_need_lc=$archive_cmds_need_lc_F77
15546 # Whether or not to disallow shared libs when runtime libs are static
15547 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15549 # Whether or not to optimize for fast installation.
15550 fast_install=$enable_fast_install
15553 host_alias=$host_alias
15557 # The build system.
15558 build_alias=$build_alias
15562 # An echo program that does not interpret backslashes.
15567 AR_FLAGS=$lt_AR_FLAGS
15572 # A language-specific compiler.
15573 CC=$lt_compiler_F77
15575 # Is the compiler the GNU C compiler?
15581 # The linker used to build libraries.
15584 # Whether we need hard or soft links.
15587 # A BSD-compatible nm program.
15590 # A symbol stripping program
15593 # Used to examine libraries when file_magic_cmd begins "file"
15594 MAGIC_CMD=$MAGIC_CMD
15596 # Used on cygwin: DLL creation program.
15599 # Used on cygwin: object dumper.
15602 # Used on cygwin: assembler.
15605 # The name of the directory that contains temporary libtool files.
15608 # How to create reloadable object files.
15609 reload_flag=$lt_reload_flag
15610 reload_cmds=$lt_reload_cmds
15612 # How to pass a linker flag through the compiler.
15613 wl=$lt_lt_prog_compiler_wl_F77
15615 # Object file suffix (normally "o").
15616 objext="$ac_objext"
15618 # Old archive suffix (normally "a").
15621 # Shared library suffix (normally ".so").
15622 shrext_cmds='$shrext_cmds'
15624 # Executable file suffix (normally "").
15627 # Additional compiler flags for building library objects.
15628 pic_flag=$lt_lt_prog_compiler_pic_F77
15631 # What is the maximum length of a command?
15632 max_cmd_len=$lt_cv_sys_max_cmd_len
15634 # Does compiler simultaneously support -c and -o options?
15635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15637 # Must we lock files when doing compilation?
15638 need_locks=$lt_need_locks
15640 # Do we need the lib prefix for modules?
15641 need_lib_prefix=$need_lib_prefix
15643 # Do we need a version for libraries?
15644 need_version=$need_version
15646 # Whether dlopen is supported.
15647 dlopen_support=$enable_dlopen
15649 # Whether dlopen of programs is supported.
15650 dlopen_self=$enable_dlopen_self
15652 # Whether dlopen of statically linked programs is supported.
15653 dlopen_self_static=$enable_dlopen_self_static
15655 # Compiler flag to prevent dynamic linking.
15656 link_static_flag=$lt_lt_prog_compiler_static_F77
15658 # Compiler flag to turn off builtin functions.
15659 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15661 # Compiler flag to allow reflexive dlopens.
15662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15664 # Compiler flag to generate shared objects directly from archives.
15665 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15667 # Compiler flag to generate thread-safe objects.
15668 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15670 # Library versioning type.
15671 version_type=$version_type
15673 # Format of library name prefix.
15674 libname_spec=$lt_libname_spec
15676 # List of archive names. First name is the real one, the rest are links.
15677 # The last name is the one that the linker finds with -lNAME.
15678 library_names_spec=$lt_library_names_spec
15680 # The coded name of the library, if different from the real name.
15681 soname_spec=$lt_soname_spec
15683 # Commands used to build and install an old-style archive.
15685 old_archive_cmds=$lt_old_archive_cmds_F77
15686 old_postinstall_cmds=$lt_old_postinstall_cmds
15687 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15689 # Create an old-style archive from a shared archive.
15690 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15692 # Create a temporary old-style archive to link instead of a shared archive.
15693 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15695 # Commands used to build and install a shared archive.
15696 archive_cmds=$lt_archive_cmds_F77
15697 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15698 postinstall_cmds=$lt_postinstall_cmds
15699 postuninstall_cmds=$lt_postuninstall_cmds
15701 # Commands used to build a loadable module (assumed same as above if empty)
15702 module_cmds=$lt_module_cmds_F77
15703 module_expsym_cmds=$lt_module_expsym_cmds_F77
15705 # Commands to strip libraries.
15706 old_striplib=$lt_old_striplib
15707 striplib=$lt_striplib
15709 # Dependencies to place before the objects being linked to create a
15711 predep_objects=$lt_predep_objects_F77
15713 # Dependencies to place after the objects being linked to create a
15715 postdep_objects=$lt_postdep_objects_F77
15717 # Dependencies to place before the objects being linked to create a
15719 predeps=$lt_predeps_F77
15721 # Dependencies to place after the objects being linked to create a
15723 postdeps=$lt_postdeps_F77
15725 # The library search path used internally by the compiler when linking
15726 # a shared library.
15727 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15729 # Method to check whether dependent libraries are shared objects.
15730 deplibs_check_method=$lt_deplibs_check_method
15732 # Command to use when deplibs_check_method == file_magic.
15733 file_magic_cmd=$lt_file_magic_cmd
15735 # Flag that allows shared libraries with undefined symbols to be built.
15736 allow_undefined_flag=$lt_allow_undefined_flag_F77
15738 # Flag that forces no undefined symbols.
15739 no_undefined_flag=$lt_no_undefined_flag_F77
15741 # Commands used to finish a libtool library installation in a directory.
15742 finish_cmds=$lt_finish_cmds
15744 # Same as above, but a single script fragment to be evaled but not shown.
15745 finish_eval=$lt_finish_eval
15747 # Take the output of nm and produce a listing of raw symbols and C names.
15748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15750 # Transform the output of nm in a proper C declaration
15751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15753 # Transform the output of nm in a C name address pair
15754 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15756 # This is the shared library runtime path variable.
15757 runpath_var=$runpath_var
15759 # This is the shared library path variable.
15760 shlibpath_var=$shlibpath_var
15762 # Is shlibpath searched before the hard-coded library search path?
15763 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15765 # How to hardcode a shared library path into an executable.
15766 hardcode_action=$hardcode_action_F77
15768 # Whether we should hardcode library paths into libraries.
15769 hardcode_into_libs=$hardcode_into_libs
15771 # Flag to hardcode \$libdir into a binary during linking.
15772 # This must work even if \$libdir does not exist.
15773 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15775 # If ld is used when linking, flag to hardcode \$libdir into
15776 # a binary during linking. This must work even if \$libdir does
15778 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15780 # Whether we need a single -rpath flag with a separated argument.
15781 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15783 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15784 # resulting binary.
15785 hardcode_direct=$hardcode_direct_F77
15787 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15788 # resulting binary.
15789 hardcode_minus_L=$hardcode_minus_L_F77
15791 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15792 # the resulting binary.
15793 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15795 # Set to yes if building a shared library automatically hardcodes DIR into the library
15796 # and all subsequent libraries and executables linked against it.
15797 hardcode_automatic=$hardcode_automatic_F77
15799 # Variables whose values should be saved in libtool wrapper scripts and
15800 # restored at relink time.
15801 variables_saved_for_relink="$variables_saved_for_relink"
15803 # Whether libtool must link a program against all its dependency libraries.
15804 link_all_deplibs=$link_all_deplibs_F77
15806 # Compile-time system search path for libraries
15807 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15809 # Run-time system search path for libraries
15810 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15812 # Fix the shell variable \$srcfile for the compiler.
15813 fix_srcfile_path="$fix_srcfile_path_F77"
15815 # Set to yes if exported symbols are required.
15816 always_export_symbols=$always_export_symbols_F77
15818 # The commands to list exported symbols.
15819 export_symbols_cmds=$lt_export_symbols_cmds_F77
15821 # The commands to extract the exported symbol list from a shared archive.
15822 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15824 # Symbols that should not be listed in the preloaded symbols.
15825 exclude_expsyms=$lt_exclude_expsyms_F77
15827 # Symbols that must always be exported.
15828 include_expsyms=$lt_include_expsyms_F77
15830 # ### END LIBTOOL TAG CONFIG: $tagname
15836 # If there is no Makefile yet, we rely on a make rule to execute
15837 # `config.status --recheck' to rerun these tests and create the
15838 # libtool script then.
15839 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15840 if test -f "$ltmain_in"; then
15841 test -f Makefile && make "$ltmain"
15847 ac_cpp='$CPP $CPPFLAGS'
15848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15860 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15864 # Source file extension for Java test sources.
15867 # Object file extension for compiled Java test sources.
15871 # Code to be used in simple compile tests
15872 lt_simple_compile_test_code="class foo {}\n"
15874 # Code to be used in simple link tests
15875 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15879 # If no C compiler was specified, use CC.
15882 # Allow CC to be a program name with arguments.
15886 # save warnings/boilerplate of simple test code
15887 ac_outfile=conftest.$ac_objext
15888 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15890 _lt_compiler_boilerplate=`cat conftest.err`
15893 ac_outfile=conftest.$ac_objext
15894 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15896 _lt_linker_boilerplate=`cat conftest.err`
15900 # Allow CC to be a program name with arguments.
15905 for cc_temp in $compiler""; do
15907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15913 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15916 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15917 archive_cmds_need_lc_GCJ=no
15919 old_archive_cmds_GCJ=$old_archive_cmds
15922 lt_prog_compiler_no_builtin_flag_GCJ=
15924 if test "$GCC" = yes; then
15925 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15928 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15929 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15930 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 lt_cv_prog_compiler_rtti_exceptions=no
15934 ac_outfile=conftest.$ac_objext
15935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15936 lt_compiler_flag="-fno-rtti -fno-exceptions"
15937 # Insert the option either (1) after the last *FLAGS variable, or
15938 # (2) before a word containing "conftest.", or (3) at the end.
15939 # Note that $ac_compile itself does not contain backslashes and begins
15940 # with a dollar sign (not a hyphen), so the echo should work correctly.
15941 # The option is referenced via a variable to avoid confusing sed.
15942 lt_compile=`echo "$ac_compile" | $SED \
15943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15945 -e 's:$: $lt_compiler_flag:'`
15946 (eval echo "\"\$as_me:15946: $lt_compile\"" >&5)
15947 (eval "$lt_compile" 2>conftest.err)
15949 cat conftest.err >&5
15950 echo "$as_me:15950: \$? = $ac_status" >&5
15951 if (exit $ac_status) && test -s "$ac_outfile"; then
15952 # The compiler can only warn and ignore the option if not recognized
15953 # So say no if there are warnings other than the usual output.
15954 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15955 $SED '/^$/d' conftest.err >conftest.er2
15956 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15957 lt_cv_prog_compiler_rtti_exceptions=yes
15963 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15964 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15966 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15967 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15974 lt_prog_compiler_wl_GCJ=
15975 lt_prog_compiler_pic_GCJ=
15976 lt_prog_compiler_static_GCJ=
15978 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15979 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15981 if test "$GCC" = yes; then
15982 lt_prog_compiler_wl_GCJ='-Wl,'
15983 lt_prog_compiler_static_GCJ='-static'
15987 # All AIX code is PIC.
15988 if test "$host_cpu" = ia64; then
15989 # AIX 5 now supports IA64 processor
15990 lt_prog_compiler_static_GCJ='-Bstatic'
15995 # FIXME: we need at least 68020 code to build shared libraries, but
15996 # adding the `-m68020' flag to GCC prevents building anything better,
15998 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16001 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16002 # PIC is the default for these OSes.
16005 mingw* | pw32* | os2*)
16006 # This hack is so that the source file can tell whether it is being
16007 # built for inclusion in a dll (and should export symbols for example).
16008 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16011 darwin* | rhapsody*)
16012 # PIC is the default on this platform
16013 # Common symbols not allowed in MH_DYLIB files
16014 lt_prog_compiler_pic_GCJ='-fno-common'
16018 # Just because we use GCC doesn't mean we suddenly get shared libraries
16019 # on systems that don't support them.
16020 lt_prog_compiler_can_build_shared_GCJ=no
16025 if test -d /usr/nec; then
16026 lt_prog_compiler_pic_GCJ=-Kconform_pic
16031 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16032 # not for PA HP-UX.
16038 lt_prog_compiler_pic_GCJ='-fPIC'
16044 lt_prog_compiler_pic_GCJ='-fPIC'
16048 # PORTME Check for flag to pass linker flags through the system compiler.
16051 lt_prog_compiler_wl_GCJ='-Wl,'
16052 if test "$host_cpu" = ia64; then
16053 # AIX 5 now supports IA64 processor
16054 lt_prog_compiler_static_GCJ='-Bstatic'
16056 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16060 # PIC is the default on this platform
16061 # Common symbols not allowed in MH_DYLIB files
16062 case $cc_basename in
16064 lt_prog_compiler_pic_GCJ='-qnocommon'
16065 lt_prog_compiler_wl_GCJ='-Wl,'
16070 mingw* | pw32* | os2*)
16071 # This hack is so that the source file can tell whether it is being
16072 # built for inclusion in a dll (and should export symbols for example).
16073 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16076 hpux9* | hpux10* | hpux11*)
16077 lt_prog_compiler_wl_GCJ='-Wl,'
16078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16079 # not for PA HP-UX.
16085 lt_prog_compiler_pic_GCJ='+Z'
16088 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16089 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16092 irix5* | irix6* | nonstopux*)
16093 lt_prog_compiler_wl_GCJ='-Wl,'
16094 # PIC (with -KPIC) is the default.
16095 lt_prog_compiler_static_GCJ='-non_shared'
16099 lt_prog_compiler_pic_GCJ='-KPIC'
16100 lt_prog_compiler_static_GCJ='-Bstatic'
16104 case $cc_basename in
16106 lt_prog_compiler_wl_GCJ='-Wl,'
16107 lt_prog_compiler_pic_GCJ='-KPIC'
16108 lt_prog_compiler_static_GCJ='-static'
16110 pgcc* | pgf77* | pgf90* | pgf95*)
16111 # Portland Group compilers (*not* the Pentium gcc compiler,
16112 # which looks to be a dead project)
16113 lt_prog_compiler_wl_GCJ='-Wl,'
16114 lt_prog_compiler_pic_GCJ='-fpic'
16115 lt_prog_compiler_static_GCJ='-Bstatic'
16118 lt_prog_compiler_wl_GCJ='-Wl,'
16119 # All Alpha code is PIC.
16120 lt_prog_compiler_static_GCJ='-non_shared'
16125 osf3* | osf4* | osf5*)
16126 lt_prog_compiler_wl_GCJ='-Wl,'
16127 # All OSF/1 code is PIC.
16128 lt_prog_compiler_static_GCJ='-non_shared'
16132 lt_prog_compiler_pic_GCJ='-Kpic'
16133 lt_prog_compiler_static_GCJ='-dn'
16137 lt_prog_compiler_pic_GCJ='-KPIC'
16138 lt_prog_compiler_static_GCJ='-Bstatic'
16139 case $cc_basename in
16140 f77* | f90* | f95*)
16141 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16143 lt_prog_compiler_wl_GCJ='-Wl,';;
16148 lt_prog_compiler_wl_GCJ='-Qoption ld '
16149 lt_prog_compiler_pic_GCJ='-PIC'
16150 lt_prog_compiler_static_GCJ='-Bstatic'
16153 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16154 lt_prog_compiler_wl_GCJ='-Wl,'
16155 lt_prog_compiler_pic_GCJ='-KPIC'
16156 lt_prog_compiler_static_GCJ='-Bstatic'
16160 if test -d /usr/nec ;then
16161 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16162 lt_prog_compiler_static_GCJ='-Bstatic'
16167 lt_prog_compiler_wl_GCJ='-Wl,'
16168 lt_prog_compiler_can_build_shared_GCJ=no
16172 lt_prog_compiler_pic_GCJ='-pic'
16173 lt_prog_compiler_static_GCJ='-Bstatic'
16177 lt_prog_compiler_can_build_shared_GCJ=no
16182 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16183 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16186 # Check to make sure the PIC flag actually works.
16188 if test -n "$lt_prog_compiler_pic_GCJ"; then
16190 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16191 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16192 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
16195 lt_prog_compiler_pic_works_GCJ=no
16196 ac_outfile=conftest.$ac_objext
16197 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16198 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16199 # Insert the option either (1) after the last *FLAGS variable, or
16200 # (2) before a word containing "conftest.", or (3) at the end.
16201 # Note that $ac_compile itself does not contain backslashes and begins
16202 # with a dollar sign (not a hyphen), so the echo should work correctly.
16203 # The option is referenced via a variable to avoid confusing sed.
16204 lt_compile=`echo "$ac_compile" | $SED \
16205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16207 -e 's:$: $lt_compiler_flag:'`
16208 (eval echo "\"\$as_me:16208: $lt_compile\"" >&5)
16209 (eval "$lt_compile" 2>conftest.err)
16211 cat conftest.err >&5
16212 echo "$as_me:16212: \$? = $ac_status" >&5
16213 if (exit $ac_status) && test -s "$ac_outfile"; then
16214 # The compiler can only warn and ignore the option if not recognized
16215 # So say no if there are warnings other than the usual output.
16216 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16217 $SED '/^$/d' conftest.err >conftest.er2
16218 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16219 lt_prog_compiler_pic_works_GCJ=yes
16225 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16226 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16228 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16229 case $lt_prog_compiler_pic_GCJ in
16231 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16234 lt_prog_compiler_pic_GCJ=
16235 lt_prog_compiler_can_build_shared_GCJ=no
16240 # For platforms which do not support PIC, -DPIC is meaningless:
16242 lt_prog_compiler_pic_GCJ=
16245 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16249 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16250 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16251 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16254 lt_cv_prog_compiler_c_o_GCJ=no
16255 $rm -r conftest 2>/dev/null
16259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16261 lt_compiler_flag="-o out/conftest2.$ac_objext"
16262 # Insert the option either (1) after the last *FLAGS variable, or
16263 # (2) before a word containing "conftest.", or (3) at the end.
16264 # Note that $ac_compile itself does not contain backslashes and begins
16265 # with a dollar sign (not a hyphen), so the echo should work correctly.
16266 lt_compile=`echo "$ac_compile" | $SED \
16267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16269 -e 's:$: $lt_compiler_flag:'`
16270 (eval echo "\"\$as_me:16270: $lt_compile\"" >&5)
16271 (eval "$lt_compile" 2>out/conftest.err)
16273 cat out/conftest.err >&5
16274 echo "$as_me:16274: \$? = $ac_status" >&5
16275 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16277 # The compiler can only warn and ignore the option if not recognized
16278 # So say no if there are warnings
16279 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16280 $SED '/^$/d' out/conftest.err >out/conftest.er2
16281 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16282 lt_cv_prog_compiler_c_o_GCJ=yes
16287 # SGI C++ compiler will create directory out/ii_files/ for
16288 # template instantiation
16289 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16290 $rm out/* && rmdir out
16296 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16297 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16300 hard_links="nottested"
16301 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16302 # do not overwrite the value of need_locks provided by the user
16303 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16304 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16307 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16309 ln conftest.a conftest.b 2>&5 || hard_links=no
16310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16311 echo "$as_me:$LINENO: result: $hard_links" >&5
16312 echo "${ECHO_T}$hard_links" >&6
16313 if test "$hard_links" = no; then
16314 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16315 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16322 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16323 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16326 allow_undefined_flag_GCJ=
16327 enable_shared_with_static_runtimes_GCJ=no
16329 archive_expsym_cmds_GCJ=
16330 old_archive_From_new_cmds_GCJ=
16331 old_archive_from_expsyms_cmds_GCJ=
16332 export_dynamic_flag_spec_GCJ=
16333 whole_archive_flag_spec_GCJ=
16334 thread_safe_flag_spec_GCJ=
16335 hardcode_libdir_flag_spec_GCJ=
16336 hardcode_libdir_flag_spec_ld_GCJ=
16337 hardcode_libdir_separator_GCJ=
16338 hardcode_direct_GCJ=no
16339 hardcode_minus_L_GCJ=no
16340 hardcode_shlibpath_var_GCJ=unsupported
16341 link_all_deplibs_GCJ=unknown
16342 hardcode_automatic_GCJ=no
16344 module_expsym_cmds_GCJ=
16345 always_export_symbols_GCJ=no
16346 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16347 # include_expsyms should be a list of space-separated symbols to be *always*
16348 # included in the symbol list
16349 include_expsyms_GCJ=
16350 # exclude_expsyms can be an extended regexp of symbols to exclude
16351 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16352 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16353 # as well as any symbol that contains `d'.
16354 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16355 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16356 # platforms (ab)use it in PIC code, but their linkers get confused if
16357 # the symbol is explicitly referenced. Since portable code cannot
16358 # rely on this symbol name, it's probably fine to never include it in
16359 # preloaded symbol tables.
16360 extract_expsyms_cmds=
16361 # Just being paranoid about ensuring that cc_basename is set.
16362 for cc_temp in $compiler""; do
16364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16370 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16373 cygwin* | mingw* | pw32*)
16374 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16375 # When not using gcc, we currently assume that we are using
16376 # Microsoft Visual C++.
16377 if test "$GCC" != yes; then
16387 if test "$with_gnu_ld" = yes; then
16388 # If archive_cmds runs LD, not CC, wlarc should be empty
16391 # Set some defaults for GNU ld with shared library support. These
16392 # are reset later if shared libraries are not supported. Putting them
16393 # here allows them to be overridden if necessary.
16394 runpath_var=LD_RUN_PATH
16395 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16396 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16397 # ancient GNU ld didn't support --whole-archive et. al.
16398 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16399 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16401 whole_archive_flag_spec_GCJ=
16403 supports_anon_versioning=no
16404 case `$LD -v 2>/dev/null` in
16405 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16406 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16407 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16408 *\ 2.11.*) ;; # other 2.11 versions
16409 *) supports_anon_versioning=yes ;;
16412 # See if GNU ld supports shared libraries.
16414 aix3* | aix4* | aix5*)
16415 # On AIX/PPC, the GNU linker is very broken
16416 if test "$host_cpu" != ia64; then
16420 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16421 *** to be unable to reliably create shared libraries on AIX.
16422 *** Therefore, libtool is disabling shared libraries support. If you
16423 *** really care for shared libraries, you may want to modify your PATH
16424 *** so that a non-GNU linker is found, and then restart.
16431 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)'
16432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16433 hardcode_minus_L_GCJ=yes
16435 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16436 # that the semantics of dynamic libraries on AmigaOS, at least up
16437 # to version 4, is to share data among multiple programs linked
16438 # with the same dynamic library. Since this doesn't match the
16439 # behavior of shared libraries on other platforms, we can't use
16445 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16446 allow_undefined_flag_GCJ=unsupported
16447 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16448 # support --undefined. This deserves some investigation. FIXME
16449 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16455 cygwin* | mingw* | pw32*)
16456 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16457 # as there is no search path for DLLs.
16458 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16459 allow_undefined_flag_GCJ=unsupported
16460 always_export_symbols_GCJ=no
16461 enable_shared_with_static_runtimes_GCJ=yes
16462 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16464 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16466 # If the export-symbols file already is a .def file (1st line
16467 # is EXPORTS), use it as is; otherwise, prepend...
16468 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16469 cp $export_symbols $output_objdir/$soname.def;
16471 echo EXPORTS > $output_objdir/$soname.def;
16472 cat $export_symbols >> $output_objdir/$soname.def;
16474 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16483 case $cc_basename,$host_cpu in
16484 pgcc*) # Portland Group C compiler
16485 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16486 tmp_addflag=' $pic_flag'
16488 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16489 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16490 tmp_addflag=' $pic_flag -Mnomain' ;;
16491 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16492 tmp_addflag=' -i_dynamic' ;;
16493 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16494 tmp_addflag=' -i_dynamic -nofor_main' ;;
16495 ifc* | ifort*) # Intel Fortran compiler
16496 tmp_addflag=' -nofor_main' ;;
16498 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16500 if test $supports_anon_versioning = yes; then
16501 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16503 $echo "local: *; };" >> $output_objdir/$libname.ver~
16504 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16513 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16517 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16522 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16526 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16527 *** create shared libraries on Solaris systems. Therefore, libtool
16528 *** is disabling shared libraries support. We urge you to upgrade GNU
16529 *** binutils to release 2.9.1 or newer. Another option is to modify
16530 *** your PATH or compiler configuration so that the native linker is
16531 *** used, and then restart.
16534 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16535 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16536 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16543 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16545 hardcode_direct_GCJ=yes
16546 hardcode_shlibpath_var_GCJ=no
16550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16551 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16552 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16559 if test "$ld_shlibs_GCJ" = no; then
16561 hardcode_libdir_flag_spec_GCJ=
16562 export_dynamic_flag_spec_GCJ=
16563 whole_archive_flag_spec_GCJ=
16566 # PORTME fill in a description of your system's linker (not GNU ld)
16569 allow_undefined_flag_GCJ=unsupported
16570 always_export_symbols_GCJ=yes
16571 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'
16572 # Note: this linker hardcodes the directories in LIBPATH if there
16573 # are no directories specified by -L.
16574 hardcode_minus_L_GCJ=yes
16575 if test "$GCC" = yes && test -z "$link_static_flag"; then
16576 # Neither direct hardcoding nor static linking is supported with a
16578 hardcode_direct_GCJ=unsupported
16583 if test "$host_cpu" = ia64; then
16584 # On IA64, the linker does run time linking by default, so we don't
16585 # have to do anything special.
16586 aix_use_runtimelinking=no
16587 exp_sym_flag='-Bexport'
16590 # If we're using GNU nm, then we don't want the "-C" option.
16591 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16592 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16593 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'
16595 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'
16597 aix_use_runtimelinking=no
16599 # Test if we are trying to use run time linking or normal
16600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16601 # need to do runtime linking.
16602 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16603 for ld_flag in $LDFLAGS; do
16604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16605 aix_use_runtimelinking=yes
16611 exp_sym_flag='-bexport'
16612 no_entry_flag='-bnoentry'
16615 # When large executables or shared objects are built, AIX ld can
16616 # have problems creating the table of contents. If linking a library
16617 # or program results in "error TOC overflow" add -mminimal-toc to
16618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16621 archive_cmds_GCJ=''
16622 hardcode_direct_GCJ=yes
16623 hardcode_libdir_separator_GCJ=':'
16624 link_all_deplibs_GCJ=yes
16626 if test "$GCC" = yes; then
16627 case $host_os in aix4.[012]|aix4.[012].*)
16628 # We only want to do this on AIX 4.2 and lower, the check
16629 # below for broken collect2 doesn't work under 4.3+
16630 collect2name=`${CC} -print-prog-name=collect2`
16631 if test -f "$collect2name" && \
16632 strings "$collect2name" | grep resolve_lib_name >/dev/null
16634 # We have reworked collect2
16635 hardcode_direct_GCJ=yes
16637 # We have old collect2
16638 hardcode_direct_GCJ=unsupported
16639 # It fails to find uninstalled libraries when the uninstalled
16640 # path is not listed in the libpath. Setting hardcode_minus_L
16641 # to unsupported forces relinking
16642 hardcode_minus_L_GCJ=yes
16643 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16644 hardcode_libdir_separator_GCJ=
16647 shared_flag='-shared'
16648 if test "$aix_use_runtimelinking" = yes; then
16649 shared_flag="$shared_flag "'${wl}-G'
16653 if test "$host_cpu" = ia64; then
16654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16655 # chokes on -Wl,-G. The following line is correct:
16658 if test "$aix_use_runtimelinking" = yes; then
16659 shared_flag='${wl}-G'
16661 shared_flag='${wl}-bM:SRE'
16666 # It seems that -bexpall does not export symbols beginning with
16667 # underscore (_), so it is better to generate a list of symbols to export.
16668 always_export_symbols_GCJ=yes
16669 if test "$aix_use_runtimelinking" = yes; then
16670 # Warning - without using the other runtime loading flags (-brtl),
16671 # -berok will link without error, but may produce a broken library.
16672 allow_undefined_flag_GCJ='-berok'
16673 # Determine the default libpath from the value encoded in an empty executable.
16674 cat >conftest.$ac_ext <<_ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16689 rm -f conftest.$ac_objext conftest$ac_exeext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16691 (eval $ac_link) 2>conftest.er1
16693 grep -v '^ *+' conftest.er1 >conftest.err
16695 cat conftest.err >&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } &&
16698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try='test -s conftest$ac_exeext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16711 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16713 # Check for a 64-bit object if we didn't find anything.
16714 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; }
16717 echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16721 rm -f conftest.err conftest.$ac_objext \
16722 conftest$ac_exeext conftest.$ac_ext
16723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16725 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16726 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"
16728 if test "$host_cpu" = ia64; then
16729 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16730 allow_undefined_flag_GCJ="-z nodefs"
16731 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"
16733 # Determine the default libpath from the value encoded in an empty executable.
16734 cat >conftest.$ac_ext <<_ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16749 rm -f conftest.$ac_objext conftest$ac_exeext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16751 (eval $ac_link) 2>conftest.er1
16753 grep -v '^ *+' conftest.er1 >conftest.err
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } &&
16764 { ac_try='test -s conftest$ac_exeext'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16773 # Check for a 64-bit object if we didn't find anything.
16774 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; }
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16781 rm -f conftest.err conftest.$ac_objext \
16782 conftest$ac_exeext conftest.$ac_ext
16783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16785 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16786 # Warning - without using the other run time loading flags,
16787 # -berok will link without error, but may produce a broken library.
16788 no_undefined_flag_GCJ=' ${wl}-bernotok'
16789 allow_undefined_flag_GCJ=' ${wl}-berok'
16790 # -bexpall does not export symbols beginning with underscore (_)
16791 always_export_symbols_GCJ=yes
16792 # Exported symbols can be pulled into shared objects from archives
16793 whole_archive_flag_spec_GCJ=' '
16794 archive_cmds_need_lc_GCJ=yes
16795 # This is similar to how AIX traditionally builds its shared libraries.
16796 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'
16802 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)'
16803 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16804 hardcode_minus_L_GCJ=yes
16805 # see comment about different semantics on the GNU ld section
16810 export_dynamic_flag_spec_GCJ=-rdynamic
16813 cygwin* | mingw* | pw32*)
16814 # When not using gcc, we currently assume that we are using
16815 # Microsoft Visual C++.
16816 # hardcode_libdir_flag_spec is actually meaningless, as there is
16817 # no search path for DLLs.
16818 hardcode_libdir_flag_spec_GCJ=' '
16819 allow_undefined_flag_GCJ=unsupported
16820 # Tell ltmain to make .lib files, not .a files.
16822 # Tell ltmain to make .dll files, not .so files.
16824 # FIXME: Setting linknames here is a bad hack.
16825 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16826 # The linker will automatically build a .lib file if we build a DLL.
16827 old_archive_From_new_cmds_GCJ='true'
16828 # FIXME: Should let the user specify the lib program.
16829 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16830 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16831 enable_shared_with_static_runtimes_GCJ=yes
16834 darwin* | rhapsody*)
16836 rhapsody* | darwin1.[012])
16837 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16840 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16841 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16843 case ${MACOSX_DEPLOYMENT_TARGET} in
16845 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16848 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16854 archive_cmds_need_lc_GCJ=no
16855 hardcode_direct_GCJ=no
16856 hardcode_automatic_GCJ=yes
16857 hardcode_shlibpath_var_GCJ=unsupported
16858 whole_archive_flag_spec_GCJ=''
16859 link_all_deplibs_GCJ=yes
16860 if test "$GCC" = yes ; then
16861 output_verbose_link_cmd='echo'
16862 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16863 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16864 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16865 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16866 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}'
16868 case $cc_basename in
16870 output_verbose_link_cmd='echo'
16871 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16872 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16873 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16874 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16875 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}'
16885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16886 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16887 hardcode_shlibpath_var_GCJ=no
16894 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16895 # support. Future versions do this automatically, but an explicit c++rt0.o
16896 # does not break anything, and helps significantly (at the cost of a little
16899 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16901 hardcode_direct_GCJ=yes
16902 hardcode_shlibpath_var_GCJ=no
16905 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16907 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16908 hardcode_direct_GCJ=yes
16909 hardcode_minus_L_GCJ=yes
16910 hardcode_shlibpath_var_GCJ=no
16913 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16914 freebsd* | kfreebsd*-gnu | dragonfly*)
16915 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16916 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16917 hardcode_direct_GCJ=yes
16918 hardcode_shlibpath_var_GCJ=no
16922 if test "$GCC" = yes; then
16923 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'
16925 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'
16927 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16928 hardcode_libdir_separator_GCJ=:
16929 hardcode_direct_GCJ=yes
16931 # hardcode_minus_L: Not really in the search PATH,
16932 # but as the default location of the library.
16933 hardcode_minus_L_GCJ=yes
16934 export_dynamic_flag_spec_GCJ='${wl}-E'
16938 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16941 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16950 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16953 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16957 if test "$with_gnu_ld" = no; then
16960 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16961 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16962 hardcode_libdir_separator_GCJ=:
16963 hardcode_direct_GCJ=no
16964 hardcode_shlibpath_var_GCJ=no
16967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16968 hardcode_direct_GCJ=no
16969 hardcode_shlibpath_var_GCJ=no
16971 # hardcode_minus_L: Not really in the search PATH,
16972 # but as the default location of the library.
16973 hardcode_minus_L_GCJ=yes
16976 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16977 hardcode_libdir_separator_GCJ=:
16978 hardcode_direct_GCJ=yes
16979 export_dynamic_flag_spec_GCJ='${wl}-E'
16981 # hardcode_minus_L: Not really in the search PATH,
16982 # but as the default location of the library.
16983 hardcode_minus_L_GCJ=yes
16989 irix5* | irix6* | nonstopux*)
16990 if test "$GCC" = yes; then
16991 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'
16993 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'
16994 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16997 hardcode_libdir_separator_GCJ=:
16998 link_all_deplibs_GCJ=yes
17002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17003 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17005 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17007 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17008 hardcode_direct_GCJ=yes
17009 hardcode_shlibpath_var_GCJ=no
17013 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17014 hardcode_direct_GCJ=yes
17015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17016 hardcode_libdir_separator_GCJ=:
17017 hardcode_shlibpath_var_GCJ=no
17021 hardcode_direct_GCJ=yes
17022 hardcode_shlibpath_var_GCJ=no
17023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17024 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17025 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17026 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17027 export_dynamic_flag_spec_GCJ='${wl}-E'
17030 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17031 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17035 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17043 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17044 hardcode_minus_L_GCJ=yes
17045 allow_undefined_flag_GCJ=unsupported
17046 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'
17047 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17051 if test "$GCC" = yes; then
17052 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17053 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'
17055 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17056 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'
17058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17059 hardcode_libdir_separator_GCJ=:
17062 osf4* | osf5*) # as osf3* with the addition of -msym flag
17063 if test "$GCC" = yes; then
17064 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17065 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'
17066 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17068 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17069 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'
17070 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~
17071 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17073 # Both c and cxx compiler support -rpath directly
17074 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17076 hardcode_libdir_separator_GCJ=:
17080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17081 hardcode_shlibpath_var_GCJ=no
17082 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17083 runpath_var=LD_RUN_PATH
17084 hardcode_runpath_var=yes
17088 no_undefined_flag_GCJ=' -z text'
17089 if test "$GCC" = yes; then
17091 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17092 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17093 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17096 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17097 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17098 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17100 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17101 hardcode_shlibpath_var_GCJ=no
17103 solaris2.[0-5] | solaris2.[0-5].*) ;;
17105 # The compiler driver will combine linker options so we
17106 # cannot just pass the convience library names through
17107 # without $wl, iff we do not link with $LD.
17108 # Luckily, gcc supports the same syntax we need for Sun Studio.
17109 # Supported since Solaris 2.6 (maybe 2.5.1?)
17112 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17114 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17117 link_all_deplibs_GCJ=yes
17121 if test "x$host_vendor" = xsequent; then
17122 # Use $CC to link under sequent, because it throws in some extra .o
17123 # files that make .init and .fini sections work.
17124 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17126 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17128 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17129 hardcode_direct_GCJ=yes
17130 hardcode_minus_L_GCJ=yes
17131 hardcode_shlibpath_var_GCJ=no
17135 case $host_vendor in
17137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17138 hardcode_direct_GCJ=yes # is this really true???
17141 ## LD is ld it makes a PLAMLIB
17142 ## CC just makes a GrossModule.
17143 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17144 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17145 hardcode_direct_GCJ=no
17148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17149 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17152 runpath_var='LD_RUN_PATH'
17153 hardcode_shlibpath_var_GCJ=no
17157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17158 hardcode_shlibpath_var_GCJ=no
17159 export_dynamic_flag_spec_GCJ='-Bexport'
17163 if test -d /usr/nec; then
17164 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17165 hardcode_shlibpath_var_GCJ=no
17166 runpath_var=LD_RUN_PATH
17167 hardcode_runpath_var=yes
17173 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17174 hardcode_direct_GCJ=yes
17175 hardcode_minus_L_GCJ=no
17176 hardcode_shlibpath_var_GCJ=no
17177 hardcode_runpath_var=yes
17178 runpath_var=LD_RUN_PATH
17181 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17182 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17183 if test "$GCC" = yes; then
17184 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17186 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17188 runpath_var='LD_RUN_PATH'
17189 hardcode_shlibpath_var_GCJ=no
17193 no_undefined_flag_GCJ=' -z text'
17194 # $CC -shared without GNU ld will not create a library from C++
17195 # object files and a static libstdc++, better avoid it by now
17196 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17197 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17198 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17199 hardcode_libdir_flag_spec_GCJ=
17200 hardcode_shlibpath_var_GCJ=no
17201 runpath_var='LD_RUN_PATH'
17205 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17207 hardcode_shlibpath_var_GCJ=no
17216 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17217 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17218 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17220 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17221 if test "$GCC" = yes; then
17222 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17226 # Do we need to explicitly link libc?
17228 case "x$archive_cmds_need_lc_GCJ" in
17230 # Assume -lc should be added
17231 archive_cmds_need_lc_GCJ=yes
17233 if test "$enable_shared" = yes && test "$GCC" = yes; then
17234 case $archive_cmds_GCJ in
17236 # FIXME: we may have to deal with multi-command sequences.
17239 # Test whether the compiler implicitly links with -lc since on some
17240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17241 # to ld, don't add -lc before -lgcc.
17242 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17243 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17248 (eval $ac_compile) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } 2>conftest.err; then
17254 libobjs=conftest.$ac_objext
17256 wl=$lt_prog_compiler_wl_GCJ
17262 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17263 allow_undefined_flag_GCJ=
17264 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17265 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }
17270 archive_cmds_need_lc_GCJ=no
17272 archive_cmds_need_lc_GCJ=yes
17274 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17276 cat conftest.err 1>&5
17279 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17280 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17287 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17288 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17289 library_names_spec=
17290 libname_spec='lib$name'
17294 postuninstall_cmds=
17298 shlibpath_overrides_runpath=unknown
17300 dynamic_linker="$host_os ld.so"
17301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17302 if test "$GCC" = yes; then
17303 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17304 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17305 # if the path contains ";" then we assume it to be the separator
17306 # otherwise default to the standard path separator (i.e. ":") - it is
17307 # assumed that no part of a normal pathname contains ";" but that should
17308 # okay in the real world where ";" in dirpaths is itself problematic.
17309 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17314 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17316 need_lib_prefix=unknown
17317 hardcode_into_libs=no
17319 # when you set need_version to no, make sure it does not cause -set_version
17320 # flags to be left without arguments
17321 need_version=unknown
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17327 shlibpath_var=LIBPATH
17329 # AIX 3 has no versioning support, so we append a major version to the name.
17330 soname_spec='${libname}${release}${shared_ext}$major'
17337 hardcode_into_libs=yes
17338 if test "$host_cpu" = ia64; then
17339 # AIX 5 supports IA64
17340 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17341 shlibpath_var=LD_LIBRARY_PATH
17343 # With GCC up to 2.95.x, collect2 would create an import file
17344 # for dependence libraries. The import file would start with
17345 # the line `#! .'. This would cause the generated library to
17346 # depend on `.', always an invalid library. This was fixed in
17347 # development snapshots of GCC prior to 3.0.
17349 aix4 | aix4.[01] | aix4.[01].*)
17350 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17352 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17355 can_build_shared=no
17359 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17360 # soname into executable. Probably we can add versioning support to
17361 # collect2, so additional links can be useful in future.
17362 if test "$aix_use_runtimelinking" = yes; then
17363 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17364 # instead of lib<name>.a to let people know that these are not
17365 # typical AIX shared libraries.
17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 # We preserve .a as extension for shared libraries through AIX4.2
17369 # and later when we are not doing run time linking.
17370 library_names_spec='${libname}${release}.a $libname.a'
17371 soname_spec='${libname}${release}${shared_ext}$major'
17373 shlibpath_var=LIBPATH
17378 library_names_spec='$libname.ixlibrary $libname.a'
17379 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17380 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'
17384 library_names_spec='${libname}${shared_ext}'
17385 dynamic_linker="$host_os ld.so"
17386 shlibpath_var=LIBRARY_PATH
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393 soname_spec='${libname}${release}${shared_ext}$major'
17394 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17397 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17398 # the default ld.so.conf also contains /usr/contrib/lib and
17399 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17400 # libtool to hard-code these into programs
17403 cygwin* | mingw* | pw32*)
17404 version_type=windows
17409 case $GCC,$host_os in
17410 yes,cygwin* | yes,mingw* | yes,pw32*)
17411 library_names_spec='$libname.dll.a'
17412 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17413 postinstall_cmds='base_file=`basename \${file}`~
17414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17415 dldir=$destdir/`dirname \$dlpath`~
17416 test -d \$dldir || mkdir -p \$dldir~
17417 $install_prog $dir/$dlname \$dldir/$dlname~
17418 chmod a+x \$dldir/$dlname'
17419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17420 dlpath=$dir/\$dldll~
17422 shlibpath_overrides_runpath=yes
17426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17428 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17431 # MinGW DLLs use traditional 'lib' prefix
17432 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17433 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17434 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17435 # It is most probably a Windows format PATH printed by
17436 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17437 # path with ; separators, and with drive letters. We can handle the
17438 # drive letters (cygwin fileutils understands them), so leave them,
17439 # especially as we might pass files found there to a mingw objdump,
17440 # which wouldn't understand a cygwinified path. Ahh.
17441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17447 # pw32 DLLs use 'pw' prefix rather than 'lib'
17448 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17454 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17457 dynamic_linker='Win32 ld.exe'
17458 # FIXME: first we should search . and the directory the executable is in
17462 darwin* | rhapsody*)
17463 dynamic_linker="$host_os dyld"
17464 version_type=darwin
17467 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17468 soname_spec='${libname}${release}${major}$shared_ext'
17469 shlibpath_overrides_runpath=yes
17470 shlibpath_var=DYLD_LIBRARY_PATH
17471 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17472 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17473 if test "$GCC" = yes; then
17474 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"`
17476 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17478 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17486 soname_spec='${libname}${release}${shared_ext}$major'
17487 shlibpath_var=LD_LIBRARY_PATH
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath=no
17502 hardcode_into_libs=yes
17503 dynamic_linker='GNU ld.so'
17506 freebsd* | dragonfly*)
17507 # DragonFly does not have aout. When/if they implement a new
17508 # versioning mechanism, adjust this.
17509 if test -x /usr/bin/objformat; then
17510 objformat=`/usr/bin/objformat`
17513 freebsd[123]*) objformat=aout ;;
17514 *) objformat=elf ;;
17517 version_type=freebsd-$objformat
17518 case $version_type in
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17529 shlibpath_var=LD_LIBRARY_PATH
17532 shlibpath_overrides_runpath=yes
17534 freebsd3.[01]* | freebsdelf3.[01]*)
17535 shlibpath_overrides_runpath=yes
17536 hardcode_into_libs=yes
17539 shlibpath_overrides_runpath=no
17540 hardcode_into_libs=yes
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 hardcode_into_libs=yes
17555 hpux9* | hpux10* | hpux11*)
17556 # Give a soname corresponding to the major version so that dld.sl refuses to
17557 # link against other versions.
17564 hardcode_into_libs=yes
17565 dynamic_linker="$host_os dld.so"
17566 shlibpath_var=LD_LIBRARY_PATH
17567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 if test "X$HPUX_IA64_MODE" = X32; then
17571 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17579 hardcode_into_libs=yes
17580 dynamic_linker="$host_os dld.sl"
17581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584 soname_spec='${libname}${release}${shared_ext}$major'
17585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17590 dynamic_linker="$host_os dld.sl"
17591 shlibpath_var=SHLIB_PATH
17592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594 soname_spec='${libname}${release}${shared_ext}$major'
17597 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17598 postinstall_cmds='chmod 555 $lib'
17601 irix5* | irix6* | nonstopux*)
17603 nonstopux*) version_type=nonstopux ;;
17605 if test "$lt_cv_prog_gnu_ld" = yes; then
17613 soname_spec='${libname}${release}${shared_ext}$major'
17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17616 irix5* | nonstopux*)
17617 libsuff= shlibsuff=
17620 case $LD in # libtool.m4 will add one of these switches to LD
17621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17622 libsuff= shlibsuff= libmagic=32-bit;;
17623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17624 libsuff=32 shlibsuff=N32 libmagic=N32;;
17625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17626 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17627 *) libsuff= shlibsuff= libmagic=never-match;;
17631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17632 shlibpath_overrides_runpath=no
17633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17635 hardcode_into_libs=yes
17638 # No shared lib support for Linux oldld, aout, or coff.
17639 linux*oldld* | linux*aout* | linux*coff*)
17643 # This must be Linux ELF.
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17649 soname_spec='${libname}${release}${shared_ext}$major'
17650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 shlibpath_overrides_runpath=no
17653 # This implies no fast_install, which is unacceptable.
17654 # Some rework will be needed to allow for fast_install
17655 # before this can be enabled.
17656 hardcode_into_libs=yes
17658 # Append ld.so.conf contents to the search path
17659 if test -f /etc/ld.so.conf; then
17660 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17661 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17664 # We used to test for /lib/ld.so.1 and disable shared libraries on
17665 # powerpc, because MkLinux only supported shared libraries with the
17666 # GNU dynamic linker. Since this was broken with cross compilers,
17667 # most powerpc-linux boxes support dynamic linking these days and
17668 # people can always --disable-shared, the test was removed, and we
17669 # assume the GNU/Linux dynamic linker is in use.
17670 dynamic_linker='GNU/Linux ld.so'
17677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17678 soname_spec='${libname}${release}${shared_ext}$major'
17679 shlibpath_var=LD_LIBRARY_PATH
17680 shlibpath_overrides_runpath=no
17681 hardcode_into_libs=yes
17682 dynamic_linker='GNU ld.so'
17689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17692 dynamic_linker='NetBSD (a.out) ld.so'
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17695 soname_spec='${libname}${release}${shared_ext}$major'
17696 dynamic_linker='NetBSD ld.elf_so'
17698 shlibpath_var=LD_LIBRARY_PATH
17699 shlibpath_overrides_runpath=yes
17700 hardcode_into_libs=yes
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706 shlibpath_var=LD_LIBRARY_PATH
17707 shlibpath_overrides_runpath=yes
17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17715 soname_spec='${libname}${release}${shared_ext}$major'
17716 shlibpath_var=LD_LIBRARY_PATH
17717 shlibpath_overrides_runpath=yes
17723 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17725 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17726 *) need_version=no ;;
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17730 shlibpath_var=LD_LIBRARY_PATH
17731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17733 openbsd2.[89] | openbsd2.[89].*)
17734 shlibpath_overrides_runpath=no
17737 shlibpath_overrides_runpath=yes
17741 shlibpath_overrides_runpath=yes
17746 libname_spec='$name'
17749 library_names_spec='$libname${shared_ext} $libname.a'
17750 dynamic_linker='OS/2 ld.exe'
17751 shlibpath_var=LIBPATH
17754 osf3* | osf4* | osf5*)
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17760 shlibpath_var=LD_LIBRARY_PATH
17761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17762 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17767 soname_spec='${libname}${release}${shared_ext}$major'
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769 shlibpath_var=LD_LIBRARY_PATH
17776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17777 soname_spec='${libname}${release}${shared_ext}$major'
17778 shlibpath_var=LD_LIBRARY_PATH
17779 shlibpath_overrides_runpath=yes
17780 hardcode_into_libs=yes
17781 # ldd complains unless libraries are executable
17782 postinstall_cmds='chmod +x $lib'
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17789 shlibpath_var=LD_LIBRARY_PATH
17790 shlibpath_overrides_runpath=yes
17791 if test "$with_gnu_ld" = yes; then
17797 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800 soname_spec='${libname}${release}${shared_ext}$major'
17801 shlibpath_var=LD_LIBRARY_PATH
17802 case $host_vendor in
17804 shlibpath_overrides_runpath=no
17806 export_dynamic_flag_spec='${wl}-Blargedynsym'
17807 runpath_var=LD_RUN_PATH
17815 shlibpath_overrides_runpath=no
17816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17822 if test -d /usr/nec ;then
17824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17825 soname_spec='$libname${shared_ext}.$major'
17826 shlibpath_var=LD_LIBRARY_PATH
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17833 soname_spec='${libname}${release}${shared_ext}$major'
17834 shlibpath_var=LD_LIBRARY_PATH
17841 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17842 echo "${ECHO_T}$dynamic_linker" >&6
17843 test "$dynamic_linker" = no && can_build_shared=no
17845 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17846 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17847 hardcode_action_GCJ=
17848 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17849 test -n "$runpath_var_GCJ" || \
17850 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17852 # We can hardcode non-existant directories.
17853 if test "$hardcode_direct_GCJ" != no &&
17854 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17855 # have to relink, otherwise we might link with an installed library
17856 # when we should be linking with a yet-to-be-installed one
17857 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17858 test "$hardcode_minus_L_GCJ" != no; then
17859 # Linking always hardcodes the temporary library directory.
17860 hardcode_action_GCJ=relink
17862 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17863 hardcode_action_GCJ=immediate
17866 # We cannot hardcode anything, or else we can only hardcode existing
17868 hardcode_action_GCJ=unsupported
17870 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17871 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17873 if test "$hardcode_action_GCJ" = relink; then
17874 # Fast installation is not supported
17875 enable_fast_install=no
17876 elif test "$shlibpath_overrides_runpath" = yes ||
17877 test "$enable_shared" = no; then
17878 # Fast installation is not necessary
17879 enable_fast_install=needless
17884 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17885 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17886 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17887 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17888 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17889 echo "$as_me:$LINENO: result: yes" >&5
17890 echo "${ECHO_T}yes" >&6
17892 # FIXME - insert some real tests, host_os isn't really good enough
17895 if test -n "$STRIP" ; then
17896 striplib="$STRIP -x"
17897 echo "$as_me:$LINENO: result: yes" >&5
17898 echo "${ECHO_T}yes" >&6
17900 echo "$as_me:$LINENO: result: no" >&5
17901 echo "${ECHO_T}no" >&6
17905 echo "$as_me:$LINENO: result: no" >&5
17906 echo "${ECHO_T}no" >&6
17911 if test "x$enable_dlopen" != xyes; then
17912 enable_dlopen=unknown
17913 enable_dlopen_self=unknown
17914 enable_dlopen_self_static=unknown
17921 lt_cv_dlopen="load_add_on"
17923 lt_cv_dlopen_self=yes
17927 lt_cv_dlopen="LoadLibrary"
17932 lt_cv_dlopen="dlopen"
17937 # if libdl is installed we need to link against it
17938 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17939 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17940 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17941 echo $ECHO_N "(cached) $ECHO_C" >&6
17943 ac_check_lib_save_LIBS=$LIBS
17945 cat >conftest.$ac_ext <<_ACEOF
17948 cat confdefs.h >>conftest.$ac_ext
17949 cat >>conftest.$ac_ext <<_ACEOF
17950 /* end confdefs.h. */
17952 /* Override any gcc2 internal prototype to avoid an error. */
17956 /* We use char because int might match the return type of a gcc2
17957 builtin and then its argument prototype would still apply. */
17967 rm -f conftest.$ac_objext conftest$ac_exeext
17968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17969 (eval $ac_link) 2>conftest.er1
17971 grep -v '^ *+' conftest.er1 >conftest.err
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } &&
17976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; } &&
17982 { ac_try='test -s conftest$ac_exeext'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; }; then
17988 ac_cv_lib_dl_dlopen=yes
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 ac_cv_lib_dl_dlopen=no
17995 rm -f conftest.err conftest.$ac_objext \
17996 conftest$ac_exeext conftest.$ac_ext
17997 LIBS=$ac_check_lib_save_LIBS
17999 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18000 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18001 if test $ac_cv_lib_dl_dlopen = yes; then
18002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18005 lt_cv_dlopen="dyld"
18007 lt_cv_dlopen_self=yes
18014 echo "$as_me:$LINENO: checking for shl_load" >&5
18015 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18016 if test "${ac_cv_func_shl_load+set}" = set; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18019 cat >conftest.$ac_ext <<_ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18025 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18027 #define shl_load innocuous_shl_load
18029 /* System header to define __stub macros and hopefully few prototypes,
18030 which can conflict with char shl_load (); below.
18031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18032 <limits.h> exists even on freestanding compilers. */
18035 # include <limits.h>
18037 # include <assert.h>
18042 /* Override any gcc2 internal prototype to avoid an error. */
18047 /* We use char because int might match the return type of a gcc2
18048 builtin and then its argument prototype would still apply. */
18050 /* The GNU C library defines this for functions which it implements
18051 to always fail with ENOSYS. Some functions are actually named
18052 something starting with __ and the normal name is an alias. */
18053 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18056 char (*f) () = shl_load;
18065 return f != shl_load;
18070 rm -f conftest.$ac_objext conftest$ac_exeext
18071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18072 (eval $ac_link) 2>conftest.er1
18074 grep -v '^ *+' conftest.er1 >conftest.err
18076 cat conftest.err >&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } &&
18079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; } &&
18085 { ac_try='test -s conftest$ac_exeext'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 ac_cv_func_shl_load=yes
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 ac_cv_func_shl_load=no
18098 rm -f conftest.err conftest.$ac_objext \
18099 conftest$ac_exeext conftest.$ac_ext
18101 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18102 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18103 if test $ac_cv_func_shl_load = yes; then
18104 lt_cv_dlopen="shl_load"
18106 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18107 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18108 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 ac_check_lib_save_LIBS=$LIBS
18113 cat >conftest.$ac_ext <<_ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18120 /* Override any gcc2 internal prototype to avoid an error. */
18124 /* We use char because int might match the return type of a gcc2
18125 builtin and then its argument prototype would still apply. */
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18137 (eval $ac_link) 2>conftest.er1
18139 grep -v '^ *+' conftest.er1 >conftest.err
18141 cat conftest.err >&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } &&
18144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest$ac_exeext'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 ac_cv_lib_dld_shl_load=yes
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 ac_cv_lib_dld_shl_load=no
18163 rm -f conftest.err conftest.$ac_objext \
18164 conftest$ac_exeext conftest.$ac_ext
18165 LIBS=$ac_check_lib_save_LIBS
18167 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18168 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18169 if test $ac_cv_lib_dld_shl_load = yes; then
18170 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18172 echo "$as_me:$LINENO: checking for dlopen" >&5
18173 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18174 if test "${ac_cv_func_dlopen+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 cat >conftest.$ac_ext <<_ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18183 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18185 #define dlopen innocuous_dlopen
18187 /* System header to define __stub macros and hopefully few prototypes,
18188 which can conflict with char dlopen (); below.
18189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18190 <limits.h> exists even on freestanding compilers. */
18193 # include <limits.h>
18195 # include <assert.h>
18200 /* Override any gcc2 internal prototype to avoid an error. */
18205 /* We use char because int might match the return type of a gcc2
18206 builtin and then its argument prototype would still apply. */
18208 /* The GNU C library defines this for functions which it implements
18209 to always fail with ENOSYS. Some functions are actually named
18210 something starting with __ and the normal name is an alias. */
18211 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18214 char (*f) () = dlopen;
18223 return f != dlopen;
18228 rm -f conftest.$ac_objext conftest$ac_exeext
18229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18230 (eval $ac_link) 2>conftest.er1
18232 grep -v '^ *+' conftest.er1 >conftest.err
18234 cat conftest.err >&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); } &&
18237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest$ac_exeext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_func_dlopen=yes
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_cv_func_dlopen=no
18256 rm -f conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18259 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18260 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18261 if test $ac_cv_func_dlopen = yes; then
18262 lt_cv_dlopen="dlopen"
18264 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 ac_check_lib_save_LIBS=$LIBS
18271 cat >conftest.$ac_ext <<_ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18278 /* Override any gcc2 internal prototype to avoid an error. */
18282 /* We use char because int might match the return type of a gcc2
18283 builtin and then its argument prototype would still apply. */
18293 rm -f conftest.$ac_objext conftest$ac_exeext
18294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18295 (eval $ac_link) 2>conftest.er1
18297 grep -v '^ *+' conftest.er1 >conftest.err
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest$ac_exeext'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
18314 ac_cv_lib_dl_dlopen=yes
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 ac_cv_lib_dl_dlopen=no
18321 rm -f conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_check_lib_save_LIBS
18325 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18326 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18327 if test $ac_cv_lib_dl_dlopen = yes; then
18328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18330 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18331 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18332 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 ac_check_lib_save_LIBS=$LIBS
18336 LIBS="-lsvld $LIBS"
18337 cat >conftest.$ac_ext <<_ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18344 /* Override any gcc2 internal prototype to avoid an error. */
18348 /* We use char because int might match the return type of a gcc2
18349 builtin and then its argument prototype would still apply. */
18359 rm -f conftest.$ac_objext conftest$ac_exeext
18360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18361 (eval $ac_link) 2>conftest.er1
18363 grep -v '^ *+' conftest.er1 >conftest.err
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
18368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest$ac_exeext'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 ac_cv_lib_svld_dlopen=yes
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 ac_cv_lib_svld_dlopen=no
18387 rm -f conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18389 LIBS=$ac_check_lib_save_LIBS
18391 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18392 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18393 if test $ac_cv_lib_svld_dlopen = yes; then
18394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18396 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18397 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18398 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 ac_check_lib_save_LIBS=$LIBS
18403 cat >conftest.$ac_ext <<_ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18410 /* Override any gcc2 internal prototype to avoid an error. */
18414 /* We use char because int might match the return type of a gcc2
18415 builtin and then its argument prototype would still apply. */
18425 rm -f conftest.$ac_objext conftest$ac_exeext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18427 (eval $ac_link) 2>conftest.er1
18429 grep -v '^ *+' conftest.er1 >conftest.err
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; } &&
18440 { ac_try='test -s conftest$ac_exeext'
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; }; then
18446 ac_cv_lib_dld_dld_link=yes
18448 echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18451 ac_cv_lib_dld_dld_link=no
18453 rm -f conftest.err conftest.$ac_objext \
18454 conftest$ac_exeext conftest.$ac_ext
18455 LIBS=$ac_check_lib_save_LIBS
18457 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18458 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18459 if test $ac_cv_lib_dld_dld_link = yes; then
18460 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18481 if test "x$lt_cv_dlopen" != xno; then
18487 case $lt_cv_dlopen in
18489 save_CPPFLAGS="$CPPFLAGS"
18490 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18492 save_LDFLAGS="$LDFLAGS"
18493 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18496 LIBS="$lt_cv_dlopen_libs $LIBS"
18498 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18499 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18500 if test "${lt_cv_dlopen_self+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 if test "$cross_compiling" = yes; then :
18504 lt_cv_dlopen_self=cross
18506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18507 lt_status=$lt_dlunknown
18508 cat > conftest.$ac_ext <<EOF
18509 #line 18509 "configure"
18510 #include "confdefs.h"
18519 # define LT_DLGLOBAL RTLD_GLOBAL
18522 # define LT_DLGLOBAL DL_GLOBAL
18524 # define LT_DLGLOBAL 0
18528 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18529 find out it does not work in some platform. */
18530 #ifndef LT_DLLAZY_OR_NOW
18532 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18535 # define LT_DLLAZY_OR_NOW DL_LAZY
18538 # define LT_DLLAZY_OR_NOW RTLD_NOW
18541 # define LT_DLLAZY_OR_NOW DL_NOW
18543 # define LT_DLLAZY_OR_NOW 0
18551 extern "C" void exit (int);
18554 void fnord() { int i=42;}
18557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18558 int status = $lt_dlunknown;
18562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18563 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18564 /* dlclose (self); */
18570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18571 (eval $ac_link) 2>&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18575 (./conftest; exit; ) >&5 2>/dev/null
18577 case x$lt_status in
18578 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18579 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18580 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18583 # compilation failed
18584 lt_cv_dlopen_self=no
18591 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18592 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18594 if test "x$lt_cv_dlopen_self" = xyes; then
18595 LDFLAGS="$LDFLAGS $link_static_flag"
18596 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18597 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18598 if test "${lt_cv_dlopen_self_static+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18601 if test "$cross_compiling" = yes; then :
18602 lt_cv_dlopen_self_static=cross
18604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18605 lt_status=$lt_dlunknown
18606 cat > conftest.$ac_ext <<EOF
18607 #line 18607 "configure"
18608 #include "confdefs.h"
18617 # define LT_DLGLOBAL RTLD_GLOBAL
18620 # define LT_DLGLOBAL DL_GLOBAL
18622 # define LT_DLGLOBAL 0
18626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18627 find out it does not work in some platform. */
18628 #ifndef LT_DLLAZY_OR_NOW
18630 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18633 # define LT_DLLAZY_OR_NOW DL_LAZY
18636 # define LT_DLLAZY_OR_NOW RTLD_NOW
18639 # define LT_DLLAZY_OR_NOW DL_NOW
18641 # define LT_DLLAZY_OR_NOW 0
18649 extern "C" void exit (int);
18652 void fnord() { int i=42;}
18655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18656 int status = $lt_dlunknown;
18660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18661 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18662 /* dlclose (self); */
18668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18669 (eval $ac_link) 2>&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18673 (./conftest; exit; ) >&5 2>/dev/null
18675 case x$lt_status in
18676 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18677 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18678 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18681 # compilation failed
18682 lt_cv_dlopen_self_static=no
18689 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18690 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18693 CPPFLAGS="$save_CPPFLAGS"
18694 LDFLAGS="$save_LDFLAGS"
18699 case $lt_cv_dlopen_self in
18700 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18701 *) enable_dlopen_self=unknown ;;
18704 case $lt_cv_dlopen_self_static in
18705 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18706 *) enable_dlopen_self_static=unknown ;;
18711 # The else clause should only fire when bootstrapping the
18712 # libtool distribution, otherwise you forgot to ship ltmain.sh
18713 # with your package, and you will get complaints that there are
18714 # no rules to generate ltmain.sh.
18715 if test -f "$ltmain"; then
18716 # See if we are running on zsh, and set the options which allow our commands through
18717 # without removal of \ escapes.
18718 if test -n "${ZSH_VERSION+set}" ; then
18719 setopt NO_GLOB_SUBST
18721 # Now quote all the things that may contain metacharacters while being
18722 # careful not to overquote the AC_SUBSTed values. We take copies of the
18723 # variables and quote the copies for generation of the libtool script.
18724 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18726 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18727 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18728 deplibs_check_method reload_flag reload_cmds need_locks \
18729 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18730 lt_cv_sys_global_symbol_to_c_name_address \
18731 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18732 old_postinstall_cmds old_postuninstall_cmds \
18736 lt_prog_compiler_wl_GCJ \
18737 lt_prog_compiler_pic_GCJ \
18738 lt_prog_compiler_static_GCJ \
18739 lt_prog_compiler_no_builtin_flag_GCJ \
18740 export_dynamic_flag_spec_GCJ \
18741 thread_safe_flag_spec_GCJ \
18742 whole_archive_flag_spec_GCJ \
18743 enable_shared_with_static_runtimes_GCJ \
18744 old_archive_cmds_GCJ \
18745 old_archive_from_new_cmds_GCJ \
18746 predep_objects_GCJ \
18747 postdep_objects_GCJ \
18750 compiler_lib_search_path_GCJ \
18752 archive_expsym_cmds_GCJ \
18753 postinstall_cmds_GCJ \
18754 postuninstall_cmds_GCJ \
18755 old_archive_from_expsyms_cmds_GCJ \
18756 allow_undefined_flag_GCJ \
18757 no_undefined_flag_GCJ \
18758 export_symbols_cmds_GCJ \
18759 hardcode_libdir_flag_spec_GCJ \
18760 hardcode_libdir_flag_spec_ld_GCJ \
18761 hardcode_libdir_separator_GCJ \
18762 hardcode_automatic_GCJ \
18764 module_expsym_cmds_GCJ \
18765 lt_cv_prog_compiler_c_o_GCJ \
18766 exclude_expsyms_GCJ \
18767 include_expsyms_GCJ; do
18770 old_archive_cmds_GCJ | \
18771 old_archive_from_new_cmds_GCJ | \
18772 archive_cmds_GCJ | \
18773 archive_expsym_cmds_GCJ | \
18774 module_cmds_GCJ | \
18775 module_expsym_cmds_GCJ | \
18776 old_archive_from_expsyms_cmds_GCJ | \
18777 export_symbols_cmds_GCJ | \
18778 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18779 postinstall_cmds | postuninstall_cmds | \
18780 old_postinstall_cmds | old_postuninstall_cmds | \
18781 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18782 # Double-quote double-evaled strings.
18783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18792 *'\$0 --fallback-echo"')
18793 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18799 cat <<__EOF__ >> "$cfgfile"
18800 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18802 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18804 # Shell to use when invoking shell scripts.
18807 # Whether or not to build shared libraries.
18808 build_libtool_libs=$enable_shared
18810 # Whether or not to build static libraries.
18811 build_old_libs=$enable_static
18813 # Whether or not to add -lc for building shared libraries.
18814 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18816 # Whether or not to disallow shared libs when runtime libs are static
18817 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18819 # Whether or not to optimize for fast installation.
18820 fast_install=$enable_fast_install
18823 host_alias=$host_alias
18827 # The build system.
18828 build_alias=$build_alias
18832 # An echo program that does not interpret backslashes.
18837 AR_FLAGS=$lt_AR_FLAGS
18842 # A language-specific compiler.
18843 CC=$lt_compiler_GCJ
18845 # Is the compiler the GNU C compiler?
18851 # The linker used to build libraries.
18854 # Whether we need hard or soft links.
18857 # A BSD-compatible nm program.
18860 # A symbol stripping program
18863 # Used to examine libraries when file_magic_cmd begins "file"
18864 MAGIC_CMD=$MAGIC_CMD
18866 # Used on cygwin: DLL creation program.
18869 # Used on cygwin: object dumper.
18872 # Used on cygwin: assembler.
18875 # The name of the directory that contains temporary libtool files.
18878 # How to create reloadable object files.
18879 reload_flag=$lt_reload_flag
18880 reload_cmds=$lt_reload_cmds
18882 # How to pass a linker flag through the compiler.
18883 wl=$lt_lt_prog_compiler_wl_GCJ
18885 # Object file suffix (normally "o").
18886 objext="$ac_objext"
18888 # Old archive suffix (normally "a").
18891 # Shared library suffix (normally ".so").
18892 shrext_cmds='$shrext_cmds'
18894 # Executable file suffix (normally "").
18897 # Additional compiler flags for building library objects.
18898 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18901 # What is the maximum length of a command?
18902 max_cmd_len=$lt_cv_sys_max_cmd_len
18904 # Does compiler simultaneously support -c and -o options?
18905 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18907 # Must we lock files when doing compilation?
18908 need_locks=$lt_need_locks
18910 # Do we need the lib prefix for modules?
18911 need_lib_prefix=$need_lib_prefix
18913 # Do we need a version for libraries?
18914 need_version=$need_version
18916 # Whether dlopen is supported.
18917 dlopen_support=$enable_dlopen
18919 # Whether dlopen of programs is supported.
18920 dlopen_self=$enable_dlopen_self
18922 # Whether dlopen of statically linked programs is supported.
18923 dlopen_self_static=$enable_dlopen_self_static
18925 # Compiler flag to prevent dynamic linking.
18926 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18928 # Compiler flag to turn off builtin functions.
18929 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18931 # Compiler flag to allow reflexive dlopens.
18932 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18934 # Compiler flag to generate shared objects directly from archives.
18935 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18937 # Compiler flag to generate thread-safe objects.
18938 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18940 # Library versioning type.
18941 version_type=$version_type
18943 # Format of library name prefix.
18944 libname_spec=$lt_libname_spec
18946 # List of archive names. First name is the real one, the rest are links.
18947 # The last name is the one that the linker finds with -lNAME.
18948 library_names_spec=$lt_library_names_spec
18950 # The coded name of the library, if different from the real name.
18951 soname_spec=$lt_soname_spec
18953 # Commands used to build and install an old-style archive.
18955 old_archive_cmds=$lt_old_archive_cmds_GCJ
18956 old_postinstall_cmds=$lt_old_postinstall_cmds
18957 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18959 # Create an old-style archive from a shared archive.
18960 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18962 # Create a temporary old-style archive to link instead of a shared archive.
18963 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18965 # Commands used to build and install a shared archive.
18966 archive_cmds=$lt_archive_cmds_GCJ
18967 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18968 postinstall_cmds=$lt_postinstall_cmds
18969 postuninstall_cmds=$lt_postuninstall_cmds
18971 # Commands used to build a loadable module (assumed same as above if empty)
18972 module_cmds=$lt_module_cmds_GCJ
18973 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18975 # Commands to strip libraries.
18976 old_striplib=$lt_old_striplib
18977 striplib=$lt_striplib
18979 # Dependencies to place before the objects being linked to create a
18981 predep_objects=$lt_predep_objects_GCJ
18983 # Dependencies to place after the objects being linked to create a
18985 postdep_objects=$lt_postdep_objects_GCJ
18987 # Dependencies to place before the objects being linked to create a
18989 predeps=$lt_predeps_GCJ
18991 # Dependencies to place after the objects being linked to create a
18993 postdeps=$lt_postdeps_GCJ
18995 # The library search path used internally by the compiler when linking
18996 # a shared library.
18997 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18999 # Method to check whether dependent libraries are shared objects.
19000 deplibs_check_method=$lt_deplibs_check_method
19002 # Command to use when deplibs_check_method == file_magic.
19003 file_magic_cmd=$lt_file_magic_cmd
19005 # Flag that allows shared libraries with undefined symbols to be built.
19006 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19008 # Flag that forces no undefined symbols.
19009 no_undefined_flag=$lt_no_undefined_flag_GCJ
19011 # Commands used to finish a libtool library installation in a directory.
19012 finish_cmds=$lt_finish_cmds
19014 # Same as above, but a single script fragment to be evaled but not shown.
19015 finish_eval=$lt_finish_eval
19017 # Take the output of nm and produce a listing of raw symbols and C names.
19018 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19020 # Transform the output of nm in a proper C declaration
19021 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19023 # Transform the output of nm in a C name address pair
19024 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19026 # This is the shared library runtime path variable.
19027 runpath_var=$runpath_var
19029 # This is the shared library path variable.
19030 shlibpath_var=$shlibpath_var
19032 # Is shlibpath searched before the hard-coded library search path?
19033 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19035 # How to hardcode a shared library path into an executable.
19036 hardcode_action=$hardcode_action_GCJ
19038 # Whether we should hardcode library paths into libraries.
19039 hardcode_into_libs=$hardcode_into_libs
19041 # Flag to hardcode \$libdir into a binary during linking.
19042 # This must work even if \$libdir does not exist.
19043 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19045 # If ld is used when linking, flag to hardcode \$libdir into
19046 # a binary during linking. This must work even if \$libdir does
19048 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19050 # Whether we need a single -rpath flag with a separated argument.
19051 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19053 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19054 # resulting binary.
19055 hardcode_direct=$hardcode_direct_GCJ
19057 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19058 # resulting binary.
19059 hardcode_minus_L=$hardcode_minus_L_GCJ
19061 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19062 # the resulting binary.
19063 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19065 # Set to yes if building a shared library automatically hardcodes DIR into the library
19066 # and all subsequent libraries and executables linked against it.
19067 hardcode_automatic=$hardcode_automatic_GCJ
19069 # Variables whose values should be saved in libtool wrapper scripts and
19070 # restored at relink time.
19071 variables_saved_for_relink="$variables_saved_for_relink"
19073 # Whether libtool must link a program against all its dependency libraries.
19074 link_all_deplibs=$link_all_deplibs_GCJ
19076 # Compile-time system search path for libraries
19077 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19079 # Run-time system search path for libraries
19080 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19082 # Fix the shell variable \$srcfile for the compiler.
19083 fix_srcfile_path="$fix_srcfile_path_GCJ"
19085 # Set to yes if exported symbols are required.
19086 always_export_symbols=$always_export_symbols_GCJ
19088 # The commands to list exported symbols.
19089 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19091 # The commands to extract the exported symbol list from a shared archive.
19092 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19094 # Symbols that should not be listed in the preloaded symbols.
19095 exclude_expsyms=$lt_exclude_expsyms_GCJ
19097 # Symbols that must always be exported.
19098 include_expsyms=$lt_include_expsyms_GCJ
19100 # ### END LIBTOOL TAG CONFIG: $tagname
19106 # If there is no Makefile yet, we rely on a make rule to execute
19107 # `config.status --recheck' to rerun these tests and create the
19108 # libtool script then.
19109 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19110 if test -f "$ltmain_in"; then
19111 test -f Makefile && make "$ltmain"
19117 ac_cpp='$CPP $CPPFLAGS'
19118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19133 # Source file extension for RC test sources.
19136 # Object file extension for compiled RC test sources.
19140 # Code to be used in simple compile tests
19141 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19143 # Code to be used in simple link tests
19144 lt_simple_link_test_code="$lt_simple_compile_test_code"
19146 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19148 # If no C compiler was specified, use CC.
19151 # Allow CC to be a program name with arguments.
19155 # save warnings/boilerplate of simple test code
19156 ac_outfile=conftest.$ac_objext
19157 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19158 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19159 _lt_compiler_boilerplate=`cat conftest.err`
19162 ac_outfile=conftest.$ac_objext
19163 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19164 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19165 _lt_linker_boilerplate=`cat conftest.err`
19169 # Allow CC to be a program name with arguments.
19174 for cc_temp in $compiler""; do
19176 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19177 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19182 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19184 lt_cv_prog_compiler_c_o_RC=yes
19186 # The else clause should only fire when bootstrapping the
19187 # libtool distribution, otherwise you forgot to ship ltmain.sh
19188 # with your package, and you will get complaints that there are
19189 # no rules to generate ltmain.sh.
19190 if test -f "$ltmain"; then
19191 # See if we are running on zsh, and set the options which allow our commands through
19192 # without removal of \ escapes.
19193 if test -n "${ZSH_VERSION+set}" ; then
19194 setopt NO_GLOB_SUBST
19196 # Now quote all the things that may contain metacharacters while being
19197 # careful not to overquote the AC_SUBSTed values. We take copies of the
19198 # variables and quote the copies for generation of the libtool script.
19199 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19201 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19202 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19203 deplibs_check_method reload_flag reload_cmds need_locks \
19204 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19205 lt_cv_sys_global_symbol_to_c_name_address \
19206 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19207 old_postinstall_cmds old_postuninstall_cmds \
19211 lt_prog_compiler_wl_RC \
19212 lt_prog_compiler_pic_RC \
19213 lt_prog_compiler_static_RC \
19214 lt_prog_compiler_no_builtin_flag_RC \
19215 export_dynamic_flag_spec_RC \
19216 thread_safe_flag_spec_RC \
19217 whole_archive_flag_spec_RC \
19218 enable_shared_with_static_runtimes_RC \
19219 old_archive_cmds_RC \
19220 old_archive_from_new_cmds_RC \
19221 predep_objects_RC \
19222 postdep_objects_RC \
19225 compiler_lib_search_path_RC \
19227 archive_expsym_cmds_RC \
19228 postinstall_cmds_RC \
19229 postuninstall_cmds_RC \
19230 old_archive_from_expsyms_cmds_RC \
19231 allow_undefined_flag_RC \
19232 no_undefined_flag_RC \
19233 export_symbols_cmds_RC \
19234 hardcode_libdir_flag_spec_RC \
19235 hardcode_libdir_flag_spec_ld_RC \
19236 hardcode_libdir_separator_RC \
19237 hardcode_automatic_RC \
19239 module_expsym_cmds_RC \
19240 lt_cv_prog_compiler_c_o_RC \
19241 exclude_expsyms_RC \
19242 include_expsyms_RC; do
19245 old_archive_cmds_RC | \
19246 old_archive_from_new_cmds_RC | \
19247 archive_cmds_RC | \
19248 archive_expsym_cmds_RC | \
19250 module_expsym_cmds_RC | \
19251 old_archive_from_expsyms_cmds_RC | \
19252 export_symbols_cmds_RC | \
19253 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19254 postinstall_cmds | postuninstall_cmds | \
19255 old_postinstall_cmds | old_postuninstall_cmds | \
19256 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19257 # Double-quote double-evaled strings.
19258 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19267 *'\$0 --fallback-echo"')
19268 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19274 cat <<__EOF__ >> "$cfgfile"
19275 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19277 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19279 # Shell to use when invoking shell scripts.
19282 # Whether or not to build shared libraries.
19283 build_libtool_libs=$enable_shared
19285 # Whether or not to build static libraries.
19286 build_old_libs=$enable_static
19288 # Whether or not to add -lc for building shared libraries.
19289 build_libtool_need_lc=$archive_cmds_need_lc_RC
19291 # Whether or not to disallow shared libs when runtime libs are static
19292 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19294 # Whether or not to optimize for fast installation.
19295 fast_install=$enable_fast_install
19298 host_alias=$host_alias
19302 # The build system.
19303 build_alias=$build_alias
19307 # An echo program that does not interpret backslashes.
19312 AR_FLAGS=$lt_AR_FLAGS
19317 # A language-specific compiler.
19320 # Is the compiler the GNU C compiler?
19326 # The linker used to build libraries.
19329 # Whether we need hard or soft links.
19332 # A BSD-compatible nm program.
19335 # A symbol stripping program
19338 # Used to examine libraries when file_magic_cmd begins "file"
19339 MAGIC_CMD=$MAGIC_CMD
19341 # Used on cygwin: DLL creation program.
19344 # Used on cygwin: object dumper.
19347 # Used on cygwin: assembler.
19350 # The name of the directory that contains temporary libtool files.
19353 # How to create reloadable object files.
19354 reload_flag=$lt_reload_flag
19355 reload_cmds=$lt_reload_cmds
19357 # How to pass a linker flag through the compiler.
19358 wl=$lt_lt_prog_compiler_wl_RC
19360 # Object file suffix (normally "o").
19361 objext="$ac_objext"
19363 # Old archive suffix (normally "a").
19366 # Shared library suffix (normally ".so").
19367 shrext_cmds='$shrext_cmds'
19369 # Executable file suffix (normally "").
19372 # Additional compiler flags for building library objects.
19373 pic_flag=$lt_lt_prog_compiler_pic_RC
19376 # What is the maximum length of a command?
19377 max_cmd_len=$lt_cv_sys_max_cmd_len
19379 # Does compiler simultaneously support -c and -o options?
19380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19382 # Must we lock files when doing compilation?
19383 need_locks=$lt_need_locks
19385 # Do we need the lib prefix for modules?
19386 need_lib_prefix=$need_lib_prefix
19388 # Do we need a version for libraries?
19389 need_version=$need_version
19391 # Whether dlopen is supported.
19392 dlopen_support=$enable_dlopen
19394 # Whether dlopen of programs is supported.
19395 dlopen_self=$enable_dlopen_self
19397 # Whether dlopen of statically linked programs is supported.
19398 dlopen_self_static=$enable_dlopen_self_static
19400 # Compiler flag to prevent dynamic linking.
19401 link_static_flag=$lt_lt_prog_compiler_static_RC
19403 # Compiler flag to turn off builtin functions.
19404 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19406 # Compiler flag to allow reflexive dlopens.
19407 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19409 # Compiler flag to generate shared objects directly from archives.
19410 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19412 # Compiler flag to generate thread-safe objects.
19413 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19415 # Library versioning type.
19416 version_type=$version_type
19418 # Format of library name prefix.
19419 libname_spec=$lt_libname_spec
19421 # List of archive names. First name is the real one, the rest are links.
19422 # The last name is the one that the linker finds with -lNAME.
19423 library_names_spec=$lt_library_names_spec
19425 # The coded name of the library, if different from the real name.
19426 soname_spec=$lt_soname_spec
19428 # Commands used to build and install an old-style archive.
19430 old_archive_cmds=$lt_old_archive_cmds_RC
19431 old_postinstall_cmds=$lt_old_postinstall_cmds
19432 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19434 # Create an old-style archive from a shared archive.
19435 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19437 # Create a temporary old-style archive to link instead of a shared archive.
19438 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19440 # Commands used to build and install a shared archive.
19441 archive_cmds=$lt_archive_cmds_RC
19442 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19443 postinstall_cmds=$lt_postinstall_cmds
19444 postuninstall_cmds=$lt_postuninstall_cmds
19446 # Commands used to build a loadable module (assumed same as above if empty)
19447 module_cmds=$lt_module_cmds_RC
19448 module_expsym_cmds=$lt_module_expsym_cmds_RC
19450 # Commands to strip libraries.
19451 old_striplib=$lt_old_striplib
19452 striplib=$lt_striplib
19454 # Dependencies to place before the objects being linked to create a
19456 predep_objects=$lt_predep_objects_RC
19458 # Dependencies to place after the objects being linked to create a
19460 postdep_objects=$lt_postdep_objects_RC
19462 # Dependencies to place before the objects being linked to create a
19464 predeps=$lt_predeps_RC
19466 # Dependencies to place after the objects being linked to create a
19468 postdeps=$lt_postdeps_RC
19470 # The library search path used internally by the compiler when linking
19471 # a shared library.
19472 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19474 # Method to check whether dependent libraries are shared objects.
19475 deplibs_check_method=$lt_deplibs_check_method
19477 # Command to use when deplibs_check_method == file_magic.
19478 file_magic_cmd=$lt_file_magic_cmd
19480 # Flag that allows shared libraries with undefined symbols to be built.
19481 allow_undefined_flag=$lt_allow_undefined_flag_RC
19483 # Flag that forces no undefined symbols.
19484 no_undefined_flag=$lt_no_undefined_flag_RC
19486 # Commands used to finish a libtool library installation in a directory.
19487 finish_cmds=$lt_finish_cmds
19489 # Same as above, but a single script fragment to be evaled but not shown.
19490 finish_eval=$lt_finish_eval
19492 # Take the output of nm and produce a listing of raw symbols and C names.
19493 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19495 # Transform the output of nm in a proper C declaration
19496 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19498 # Transform the output of nm in a C name address pair
19499 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19501 # This is the shared library runtime path variable.
19502 runpath_var=$runpath_var
19504 # This is the shared library path variable.
19505 shlibpath_var=$shlibpath_var
19507 # Is shlibpath searched before the hard-coded library search path?
19508 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19510 # How to hardcode a shared library path into an executable.
19511 hardcode_action=$hardcode_action_RC
19513 # Whether we should hardcode library paths into libraries.
19514 hardcode_into_libs=$hardcode_into_libs
19516 # Flag to hardcode \$libdir into a binary during linking.
19517 # This must work even if \$libdir does not exist.
19518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19520 # If ld is used when linking, flag to hardcode \$libdir into
19521 # a binary during linking. This must work even if \$libdir does
19523 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19525 # Whether we need a single -rpath flag with a separated argument.
19526 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19528 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19529 # resulting binary.
19530 hardcode_direct=$hardcode_direct_RC
19532 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19533 # resulting binary.
19534 hardcode_minus_L=$hardcode_minus_L_RC
19536 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19537 # the resulting binary.
19538 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19540 # Set to yes if building a shared library automatically hardcodes DIR into the library
19541 # and all subsequent libraries and executables linked against it.
19542 hardcode_automatic=$hardcode_automatic_RC
19544 # Variables whose values should be saved in libtool wrapper scripts and
19545 # restored at relink time.
19546 variables_saved_for_relink="$variables_saved_for_relink"
19548 # Whether libtool must link a program against all its dependency libraries.
19549 link_all_deplibs=$link_all_deplibs_RC
19551 # Compile-time system search path for libraries
19552 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19554 # Run-time system search path for libraries
19555 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19557 # Fix the shell variable \$srcfile for the compiler.
19558 fix_srcfile_path="$fix_srcfile_path_RC"
19560 # Set to yes if exported symbols are required.
19561 always_export_symbols=$always_export_symbols_RC
19563 # The commands to list exported symbols.
19564 export_symbols_cmds=$lt_export_symbols_cmds_RC
19566 # The commands to extract the exported symbol list from a shared archive.
19567 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19569 # Symbols that should not be listed in the preloaded symbols.
19570 exclude_expsyms=$lt_exclude_expsyms_RC
19572 # Symbols that must always be exported.
19573 include_expsyms=$lt_include_expsyms_RC
19575 # ### END LIBTOOL TAG CONFIG: $tagname
19581 # If there is no Makefile yet, we rely on a make rule to execute
19582 # `config.status --recheck' to rerun these tests and create the
19583 # libtool script then.
19584 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19585 if test -f "$ltmain_in"; then
19586 test -f Makefile && make "$ltmain"
19592 ac_cpp='$CPP $CPPFLAGS'
19593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19602 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19603 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19604 { (exit 1); exit 1; }; }
19608 # Append the new tag name to the list of available tags.
19609 if test -n "$tagname" ; then
19610 available_tags="$available_tags $tagname"
19616 # Now substitute the updated list of available tags.
19617 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19618 mv "${ofile}T" "$ofile"
19622 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19623 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19624 { (exit 1); exit 1; }; }
19630 # This can be used to rebuild libtool when needed
19631 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19633 # Always use our own libtool.
19634 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19636 # Prevent multiple expansion
19658 ac_config_headers="$ac_config_headers config.h"
19661 ACLOCAL_AMFLAGS="-I m4"
19665 ac_cpp='$CPP $CPPFLAGS'
19666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669 if test -n "$ac_tool_prefix"; then
19670 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19671 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19672 echo "$as_me:$LINENO: checking for $ac_word" >&5
19673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19674 if test "${ac_cv_prog_CC+set}" = set; then
19675 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 if test -n "$CC"; then
19678 ac_cv_prog_CC="$CC" # Let the user override the test.
19680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19681 for as_dir in $PATH
19684 test -z "$as_dir" && as_dir=.
19685 for ac_exec_ext in '' $ac_executable_extensions; do
19686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19687 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19697 if test -n "$CC"; then
19698 echo "$as_me:$LINENO: result: $CC" >&5
19699 echo "${ECHO_T}$CC" >&6
19701 echo "$as_me:$LINENO: result: no" >&5
19702 echo "${ECHO_T}no" >&6
19706 if test -z "$ac_cv_prog_CC"; then
19708 # Extract the first word of "gcc", so it can be a program name with args.
19709 set dummy gcc; ac_word=$2
19710 echo "$as_me:$LINENO: checking for $ac_word" >&5
19711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 if test -n "$ac_ct_CC"; then
19716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19719 for as_dir in $PATH
19722 test -z "$as_dir" && as_dir=.
19723 for ac_exec_ext in '' $ac_executable_extensions; do
19724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19725 ac_cv_prog_ac_ct_CC="gcc"
19726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19735 if test -n "$ac_ct_CC"; then
19736 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19737 echo "${ECHO_T}$ac_ct_CC" >&6
19739 echo "$as_me:$LINENO: result: no" >&5
19740 echo "${ECHO_T}no" >&6
19745 CC="$ac_cv_prog_CC"
19748 if test -z "$CC"; then
19749 if test -n "$ac_tool_prefix"; then
19750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19751 set dummy ${ac_tool_prefix}cc; ac_word=$2
19752 echo "$as_me:$LINENO: checking for $ac_word" >&5
19753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19754 if test "${ac_cv_prog_CC+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 if test -n "$CC"; then
19758 ac_cv_prog_CC="$CC" # Let the user override the test.
19760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761 for as_dir in $PATH
19764 test -z "$as_dir" && as_dir=.
19765 for ac_exec_ext in '' $ac_executable_extensions; do
19766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19767 ac_cv_prog_CC="${ac_tool_prefix}cc"
19768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19777 if test -n "$CC"; then
19778 echo "$as_me:$LINENO: result: $CC" >&5
19779 echo "${ECHO_T}$CC" >&6
19781 echo "$as_me:$LINENO: result: no" >&5
19782 echo "${ECHO_T}no" >&6
19786 if test -z "$ac_cv_prog_CC"; then
19788 # Extract the first word of "cc", so it can be a program name with args.
19789 set dummy cc; ac_word=$2
19790 echo "$as_me:$LINENO: checking for $ac_word" >&5
19791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19795 if test -n "$ac_ct_CC"; then
19796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19799 for as_dir in $PATH
19802 test -z "$as_dir" && as_dir=.
19803 for ac_exec_ext in '' $ac_executable_extensions; do
19804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19805 ac_cv_prog_ac_ct_CC="cc"
19806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19815 if test -n "$ac_ct_CC"; then
19816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19817 echo "${ECHO_T}$ac_ct_CC" >&6
19819 echo "$as_me:$LINENO: result: no" >&5
19820 echo "${ECHO_T}no" >&6
19825 CC="$ac_cv_prog_CC"
19829 if test -z "$CC"; then
19830 # Extract the first word of "cc", so it can be a program name with args.
19831 set dummy cc; ac_word=$2
19832 echo "$as_me:$LINENO: checking for $ac_word" >&5
19833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19834 if test "${ac_cv_prog_CC+set}" = set; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 if test -n "$CC"; then
19838 ac_cv_prog_CC="$CC" # Let the user override the test.
19840 ac_prog_rejected=no
19841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19842 for as_dir in $PATH
19845 test -z "$as_dir" && as_dir=.
19846 for ac_exec_ext in '' $ac_executable_extensions; do
19847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19848 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19849 ac_prog_rejected=yes
19853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19859 if test $ac_prog_rejected = yes; then
19860 # We found a bogon in the path, so make sure we never use it.
19861 set dummy $ac_cv_prog_CC
19863 if test $# != 0; then
19864 # We chose a different compiler from the bogus one.
19865 # However, it has the same basename, so the bogon will be chosen
19866 # first if we set CC to just the basename; use the full file name.
19868 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19874 if test -n "$CC"; then
19875 echo "$as_me:$LINENO: result: $CC" >&5
19876 echo "${ECHO_T}$CC" >&6
19878 echo "$as_me:$LINENO: result: no" >&5
19879 echo "${ECHO_T}no" >&6
19883 if test -z "$CC"; then
19884 if test -n "$ac_tool_prefix"; then
19887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19889 echo "$as_me:$LINENO: checking for $ac_word" >&5
19890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19891 if test "${ac_cv_prog_CC+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19894 if test -n "$CC"; then
19895 ac_cv_prog_CC="$CC" # Let the user override the test.
19897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19898 for as_dir in $PATH
19901 test -z "$as_dir" && as_dir=.
19902 for ac_exec_ext in '' $ac_executable_extensions; do
19903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19914 if test -n "$CC"; then
19915 echo "$as_me:$LINENO: result: $CC" >&5
19916 echo "${ECHO_T}$CC" >&6
19918 echo "$as_me:$LINENO: result: no" >&5
19919 echo "${ECHO_T}no" >&6
19922 test -n "$CC" && break
19925 if test -z "$CC"; then
19929 # Extract the first word of "$ac_prog", so it can be a program name with args.
19930 set dummy $ac_prog; ac_word=$2
19931 echo "$as_me:$LINENO: checking for $ac_word" >&5
19932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
19936 if test -n "$ac_ct_CC"; then
19937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19940 for as_dir in $PATH
19943 test -z "$as_dir" && as_dir=.
19944 for ac_exec_ext in '' $ac_executable_extensions; do
19945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19946 ac_cv_prog_ac_ct_CC="$ac_prog"
19947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19956 if test -n "$ac_ct_CC"; then
19957 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19958 echo "${ECHO_T}$ac_ct_CC" >&6
19960 echo "$as_me:$LINENO: result: no" >&5
19961 echo "${ECHO_T}no" >&6
19964 test -n "$ac_ct_CC" && break
19973 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19974 See \`config.log' for more details." >&5
19975 echo "$as_me: error: no acceptable C compiler found in \$PATH
19976 See \`config.log' for more details." >&2;}
19977 { (exit 1); exit 1; }; }
19979 # Provide some information about the compiler.
19980 echo "$as_me:$LINENO:" \
19981 "checking for C compiler version" >&5
19982 ac_compiler=`set X $ac_compile; echo $2`
19983 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19984 (eval $ac_compiler --version </dev/null >&5) 2>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }
19988 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19989 (eval $ac_compiler -v </dev/null >&5) 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }
19993 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19994 (eval $ac_compiler -V </dev/null >&5) 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }
19999 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20000 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
20001 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20022 rm -f conftest.$ac_objext
20023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20024 (eval $ac_compile) 2>conftest.er1
20026 grep -v '^ *+' conftest.er1 >conftest.err
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } &&
20031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; } &&
20037 { ac_try='test -s conftest.$ac_objext'
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; }; then
20043 ac_compiler_gnu=yes
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20054 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20055 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
20056 GCC=`test $ac_compiler_gnu = yes && echo yes`
20057 ac_test_CFLAGS=${CFLAGS+set}
20058 ac_save_CFLAGS=$CFLAGS
20060 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
20062 if test "${ac_cv_prog_cc_g+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 cat >conftest.$ac_ext <<_ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20080 rm -f conftest.$ac_objext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082 (eval $ac_compile) 2>conftest.er1
20084 grep -v '^ *+' conftest.er1 >conftest.err
20086 cat conftest.err >&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } &&
20089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; } &&
20095 { ac_try='test -s conftest.$ac_objext'
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 ac_cv_prog_cc_g=yes
20103 echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20111 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
20112 if test "$ac_test_CFLAGS" = set; then
20113 CFLAGS=$ac_save_CFLAGS
20114 elif test $ac_cv_prog_cc_g = yes; then
20115 if test "$GCC" = yes; then
20121 if test "$GCC" = yes; then
20127 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
20128 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
20129 if test "${ac_cv_prog_cc_stdc+set}" = set; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 ac_cv_prog_cc_stdc=no
20134 cat >conftest.$ac_ext <<_ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20140 #include <stdarg.h>
20142 #include <sys/types.h>
20143 #include <sys/stat.h>
20144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20145 struct buf { int x; };
20146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20147 static char *e (p, i)
20153 static char *f (char * (*g) (char **, int), char **p, ...)
20158 s = g (p, va_arg (v,int));
20163 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20164 function prototypes and stuff, but not '\xHH' hex character constants.
20165 These don't provoke an error unfortunately, instead are silently treated
20166 as 'x'. The following induces an error, until -std1 is added to get
20167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20168 array size at least. It's necessary to write '\x00'==0 to get something
20169 that's true only with -std1. */
20170 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20172 int test (int i, double x);
20173 struct s1 {int (*f) (int a);};
20174 struct s2 {int (*f) (double a);};
20175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20186 # Don't try gcc -ansi; that turns off useful extensions and
20187 # breaks some systems' header files.
20188 # AIX -qlanglvl=ansi
20189 # Ultrix and OSF/1 -std1
20190 # HP-UX 10.20 and later -Ae
20191 # HP-UX older versions -Aa -D_HPUX_SOURCE
20192 # SVR4 -Xc -D__EXTENSIONS__
20193 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20195 CC="$ac_save_CC $ac_arg"
20196 rm -f conftest.$ac_objext
20197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20198 (eval $ac_compile) 2>conftest.er1
20200 grep -v '^ *+' conftest.er1 >conftest.err
20202 cat conftest.err >&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } &&
20205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; } &&
20211 { ac_try='test -s conftest.$ac_objext'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; }; then
20217 ac_cv_prog_cc_stdc=$ac_arg
20220 echo "$as_me: failed program was:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20224 rm -f conftest.err conftest.$ac_objext
20226 rm -f conftest.$ac_ext conftest.$ac_objext
20231 case "x$ac_cv_prog_cc_stdc" in
20233 echo "$as_me:$LINENO: result: none needed" >&5
20234 echo "${ECHO_T}none needed" >&6 ;;
20236 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
20237 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
20238 CC="$CC $ac_cv_prog_cc_stdc" ;;
20241 # Some people use a C++ compiler to compile C. Since we use `exit',
20242 # in C++ we need to declare it. In case someone uses the same compiler
20243 # for both compiling C and C++ we need to have the C++ compiler decide
20244 # the declaration of exit, since it's the most demanding environment.
20245 cat >conftest.$ac_ext <<_ACEOF
20246 #ifndef __cplusplus
20250 rm -f conftest.$ac_objext
20251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20252 (eval $ac_compile) 2>conftest.er1
20254 grep -v '^ *+' conftest.er1 >conftest.err
20256 cat conftest.err >&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } &&
20259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; } &&
20265 { ac_try='test -s conftest.$ac_objext'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; }; then
20271 for ac_declaration in \
20273 'extern "C" void std::exit (int) throw (); using std::exit;' \
20274 'extern "C" void std::exit (int); using std::exit;' \
20275 'extern "C" void exit (int) throw ();' \
20276 'extern "C" void exit (int);' \
20279 cat >conftest.$ac_ext <<_ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20286 #include <stdlib.h>
20295 rm -f conftest.$ac_objext
20296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20297 (eval $ac_compile) 2>conftest.er1
20299 grep -v '^ *+' conftest.er1 >conftest.err
20301 cat conftest.err >&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } &&
20304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; } &&
20310 { ac_try='test -s conftest.$ac_objext'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; }; then
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20324 cat >conftest.$ac_ext <<_ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h. */
20339 rm -f conftest.$ac_objext
20340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20341 (eval $ac_compile) 2>conftest.er1
20343 grep -v '^ *+' conftest.er1 >conftest.err
20345 cat conftest.err >&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); } &&
20348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350 (eval $ac_try) 2>&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; } &&
20354 { ac_try='test -s conftest.$ac_objext'
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; }; then
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20369 if test -n "$ac_declaration"; then
20370 echo '#ifdef __cplusplus' >>confdefs.h
20371 echo $ac_declaration >>confdefs.h
20372 echo '#endif' >>confdefs.h
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20382 ac_cpp='$CPP $CPPFLAGS'
20383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20387 depcc="$CC" am_compiler_list=
20389 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20390 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20391 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20392 echo $ECHO_N "(cached) $ECHO_C" >&6
20394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20395 # We make a subdir and do the tests there. Otherwise we can end up
20396 # making bogus files that we don't know about and never remove. For
20397 # instance it was reported that on HP-UX the gcc test will end up
20398 # making a dummy file named `D' -- because `-MD' means `put the output
20401 # Copy depcomp to subdir because otherwise we won't find it if we're
20402 # using a relative directory.
20403 cp "$am_depcomp" conftest.dir
20405 # We will build objects and dependencies in a subdirectory because
20406 # it helps to detect inapplicable dependency modes. For instance
20407 # both Tru64's cc and ICC support -MD to output dependencies as a
20408 # side effect of compilation, but ICC will put the dependencies in
20409 # the current directory while Tru64 will put them in the object
20413 am_cv_CC_dependencies_compiler_type=none
20414 if test "$am_compiler_list" = ""; then
20415 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20417 for depmode in $am_compiler_list; do
20418 # Setup a source with many dependencies, because some compilers
20419 # like to wrap large dependency lists on column 80 (with \), and
20420 # we should not choose a depcomp mode which is confused by this.
20422 # We need to recreate these files for each test, as the compiler may
20423 # overwrite some of them when testing with obscure command lines.
20424 # This happens at least with the AIX C compiler.
20426 for i in 1 2 3 4 5 6; do
20427 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20428 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20429 # Solaris 8's {/usr,}/bin/sh.
20430 touch sub/conftst$i.h
20432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20436 # after this tag, mechanisms are not by side-effect, so they'll
20437 # only be used when explicitly requested
20438 if test "x$enable_dependency_tracking" = xyes; then
20446 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20447 # mode. It turns out that the SunPro C++ compiler does not properly
20448 # handle `-M -o', and we need to detect this.
20449 if depmode=$depmode \
20450 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20451 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20452 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20453 >/dev/null 2>conftest.err &&
20454 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20455 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20456 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20457 # icc doesn't choke on unknown options, it will just issue warnings
20458 # or remarks (even with -Werror). So we grep stderr for any message
20459 # that says an option was ignored or not supported.
20460 # When given -MP, icc 7.0 and 7.1 complain thusly:
20461 # icc: Command line warning: ignoring option '-M'; no argument required
20462 # The diagnosis changed in icc 8.0:
20463 # icc: Command line remark: option '-MP' not supported
20464 if (grep 'ignoring option' conftest.err ||
20465 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20466 am_cv_CC_dependencies_compiler_type=$depmode
20473 rm -rf conftest.dir
20475 am_cv_CC_dependencies_compiler_type=none
20479 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20480 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20481 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20486 test "x$enable_dependency_tracking" != xno \
20487 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20488 am__fastdepCC_TRUE=
20489 am__fastdepCC_FALSE='#'
20491 am__fastdepCC_TRUE='#'
20492 am__fastdepCC_FALSE=
20497 # By default we simply use the C compiler to build assembly code.
20499 test "${CCAS+set}" = set || CCAS=$CC
20500 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
20506 echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
20507 echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6
20509 save_CFLAGS="$CFLAGS"
20510 CFLAGS="$CFLAGS -Wall"
20512 cat >conftest.$ac_ext <<_ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20527 rm -f conftest.$ac_objext
20528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20529 (eval $ac_compile) 2>conftest.er1
20531 grep -v '^ *+' conftest.er1 >conftest.err
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
20536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; } &&
20542 { ac_try='test -s conftest.$ac_objext'
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20556 CFLAGS="$save_CFLAGS"
20558 if test "X$flag_ok" = Xyes ; then
20565 echo "$as_me:$LINENO: result: $flag_ok" >&5
20566 echo "${ECHO_T}$flag_ok" >&6
20569 if test "x$GST_WALL" = "xyes"; then
20570 ERROR_CFLAGS="$GST_ERROR -Wall"
20572 if test "x$GST_CVS" = "xyes"; then
20574 echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5
20575 echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6
20577 save_CFLAGS="$CFLAGS"
20578 CFLAGS="$CFLAGS -Werror"
20580 cat >conftest.$ac_ext <<_ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20595 rm -f conftest.$ac_objext
20596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20597 (eval $ac_compile) 2>conftest.er1
20599 grep -v '^ *+' conftest.er1 >conftest.err
20601 cat conftest.err >&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); } &&
20604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try='test -s conftest.$ac_objext'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20624 CFLAGS="$save_CFLAGS"
20626 if test "X$flag_ok" = Xyes ; then
20627 ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
20630 ERROR_CFLAGS="$ERROR_CFLAGS"
20633 echo "$as_me:$LINENO: result: $flag_ok" >&5
20634 echo "${ECHO_T}$flag_ok" >&6
20642 ac_cpp='$CXXCPP $CPPFLAGS'
20643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20646 if test -n "$ac_tool_prefix"; then
20647 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20651 echo "$as_me:$LINENO: checking for $ac_word" >&5
20652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20653 if test "${ac_cv_prog_CXX+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 if test -n "$CXX"; then
20657 ac_cv_prog_CXX="$CXX" # Let the user override the test.
20659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20660 for as_dir in $PATH
20663 test -z "$as_dir" && as_dir=.
20664 for ac_exec_ext in '' $ac_executable_extensions; do
20665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20666 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20675 CXX=$ac_cv_prog_CXX
20676 if test -n "$CXX"; then
20677 echo "$as_me:$LINENO: result: $CXX" >&5
20678 echo "${ECHO_T}$CXX" >&6
20680 echo "$as_me:$LINENO: result: no" >&5
20681 echo "${ECHO_T}no" >&6
20684 test -n "$CXX" && break
20687 if test -z "$CXX"; then
20689 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20691 # Extract the first word of "$ac_prog", so it can be a program name with args.
20692 set dummy $ac_prog; ac_word=$2
20693 echo "$as_me:$LINENO: checking for $ac_word" >&5
20694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20695 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 if test -n "$ac_ct_CXX"; then
20699 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20702 for as_dir in $PATH
20705 test -z "$as_dir" && as_dir=.
20706 for ac_exec_ext in '' $ac_executable_extensions; do
20707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20708 ac_cv_prog_ac_ct_CXX="$ac_prog"
20709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20717 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20718 if test -n "$ac_ct_CXX"; then
20719 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20720 echo "${ECHO_T}$ac_ct_CXX" >&6
20722 echo "$as_me:$LINENO: result: no" >&5
20723 echo "${ECHO_T}no" >&6
20726 test -n "$ac_ct_CXX" && break
20728 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
20734 # Provide some information about the compiler.
20735 echo "$as_me:$LINENO:" \
20736 "checking for C++ compiler version" >&5
20737 ac_compiler=`set X $ac_compile; echo $2`
20738 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20739 (eval $ac_compiler --version </dev/null >&5) 2>&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }
20743 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20744 (eval $ac_compiler -v </dev/null >&5) 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }
20748 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20749 (eval $ac_compiler -V </dev/null >&5) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }
20754 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20755 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
20756 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20757 echo $ECHO_N "(cached) $ECHO_C" >&6
20759 cat >conftest.$ac_ext <<_ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20777 rm -f conftest.$ac_objext
20778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20779 (eval $ac_compile) 2>conftest.er1
20781 grep -v '^ *+' conftest.er1 >conftest.err
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } &&
20786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; } &&
20792 { ac_try='test -s conftest.$ac_objext'
20793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794 (eval $ac_try) 2>&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; }; then
20798 ac_compiler_gnu=yes
20800 echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20806 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20809 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20810 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
20811 GXX=`test $ac_compiler_gnu = yes && echo yes`
20812 ac_test_CXXFLAGS=${CXXFLAGS+set}
20813 ac_save_CXXFLAGS=$CXXFLAGS
20815 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20816 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
20817 if test "${ac_cv_prog_cxx_g+set}" = set; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20820 cat >conftest.$ac_ext <<_ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20835 rm -f conftest.$ac_objext
20836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20837 (eval $ac_compile) 2>conftest.er1
20839 grep -v '^ *+' conftest.er1 >conftest.err
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest.$ac_objext'
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20856 ac_cv_prog_cxx_g=yes
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ac_cv_prog_cxx_g=no
20863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20865 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20866 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
20867 if test "$ac_test_CXXFLAGS" = set; then
20868 CXXFLAGS=$ac_save_CXXFLAGS
20869 elif test $ac_cv_prog_cxx_g = yes; then
20870 if test "$GXX" = yes; then
20876 if test "$GXX" = yes; then
20882 for ac_declaration in \
20884 'extern "C" void std::exit (int) throw (); using std::exit;' \
20885 'extern "C" void std::exit (int); using std::exit;' \
20886 'extern "C" void exit (int) throw ();' \
20887 'extern "C" void exit (int);' \
20890 cat >conftest.$ac_ext <<_ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20897 #include <stdlib.h>
20906 rm -f conftest.$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908 (eval $ac_compile) 2>conftest.er1
20910 grep -v '^ *+' conftest.er1 >conftest.err
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; } &&
20921 { ac_try='test -s conftest.$ac_objext'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20950 rm -f conftest.$ac_objext
20951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20952 (eval $ac_compile) 2>conftest.er1
20954 grep -v '^ *+' conftest.er1 >conftest.err
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest.$ac_objext'
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }; then
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20980 if test -n "$ac_declaration"; then
20981 echo '#ifdef __cplusplus' >>confdefs.h
20982 echo $ac_declaration >>confdefs.h
20983 echo '#endif' >>confdefs.h
20987 ac_cpp='$CPP $CPPFLAGS'
20988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20992 depcc="$CXX" am_compiler_list=
20994 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20995 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20996 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21000 # We make a subdir and do the tests there. Otherwise we can end up
21001 # making bogus files that we don't know about and never remove. For
21002 # instance it was reported that on HP-UX the gcc test will end up
21003 # making a dummy file named `D' -- because `-MD' means `put the output
21006 # Copy depcomp to subdir because otherwise we won't find it if we're
21007 # using a relative directory.
21008 cp "$am_depcomp" conftest.dir
21010 # We will build objects and dependencies in a subdirectory because
21011 # it helps to detect inapplicable dependency modes. For instance
21012 # both Tru64's cc and ICC support -MD to output dependencies as a
21013 # side effect of compilation, but ICC will put the dependencies in
21014 # the current directory while Tru64 will put them in the object
21018 am_cv_CXX_dependencies_compiler_type=none
21019 if test "$am_compiler_list" = ""; then
21020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21022 for depmode in $am_compiler_list; do
21023 # Setup a source with many dependencies, because some compilers
21024 # like to wrap large dependency lists on column 80 (with \), and
21025 # we should not choose a depcomp mode which is confused by this.
21027 # We need to recreate these files for each test, as the compiler may
21028 # overwrite some of them when testing with obscure command lines.
21029 # This happens at least with the AIX C compiler.
21031 for i in 1 2 3 4 5 6; do
21032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
21033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21034 # Solaris 8's {/usr,}/bin/sh.
21035 touch sub/conftst$i.h
21037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21041 # after this tag, mechanisms are not by side-effect, so they'll
21042 # only be used when explicitly requested
21043 if test "x$enable_dependency_tracking" = xyes; then
21051 # We check with `-c' and `-o' for the sake of the "dashmstdout"
21052 # mode. It turns out that the SunPro C++ compiler does not properly
21053 # handle `-M -o', and we need to detect this.
21054 if depmode=$depmode \
21055 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21057 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21058 >/dev/null 2>conftest.err &&
21059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21060 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
21061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21062 # icc doesn't choke on unknown options, it will just issue warnings
21063 # or remarks (even with -Werror). So we grep stderr for any message
21064 # that says an option was ignored or not supported.
21065 # When given -MP, icc 7.0 and 7.1 complain thusly:
21066 # icc: Command line warning: ignoring option '-M'; no argument required
21067 # The diagnosis changed in icc 8.0:
21068 # icc: Command line remark: option '-MP' not supported
21069 if (grep 'ignoring option' conftest.err ||
21070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21071 am_cv_CXX_dependencies_compiler_type=$depmode
21078 rm -rf conftest.dir
21080 am_cv_CXX_dependencies_compiler_type=none
21084 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
21085 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
21086 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
21091 test "x$enable_dependency_tracking" != xno \
21092 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
21093 am__fastdepCXX_TRUE=
21094 am__fastdepCXX_FALSE='#'
21096 am__fastdepCXX_TRUE='#'
21097 am__fastdepCXX_FALSE=
21101 # Extract the first word of "$CXX", so it can be a program name with args.
21102 set dummy $CXX; ac_word=$2
21103 echo "$as_me:$LINENO: checking for $ac_word" >&5
21104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21105 if test "${ac_cv_prog_HAVE_CXX+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 if test -n "$HAVE_CXX"; then
21109 ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
21111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21112 for as_dir in $PATH
21115 test -z "$as_dir" && as_dir=.
21116 for ac_exec_ext in '' $ac_executable_extensions; do
21117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21118 ac_cv_prog_HAVE_CXX="yes"
21119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21125 test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
21128 HAVE_CXX=$ac_cv_prog_HAVE_CXX
21129 if test -n "$HAVE_CXX"; then
21130 echo "$as_me:$LINENO: result: $HAVE_CXX" >&5
21131 echo "${ECHO_T}$HAVE_CXX" >&6
21133 echo "$as_me:$LINENO: result: no" >&5
21134 echo "${ECHO_T}no" >&6
21138 ac_cpp='$CXXCPP $CPPFLAGS'
21139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21142 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21143 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21144 if test -z "$CXXCPP"; then
21145 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21148 # Double quotes because CXXCPP needs to be expanded
21149 for CXXCPP in "$CXX -E" "/lib/cpp"
21151 ac_preproc_ok=false
21152 for ac_cxx_preproc_warn_flag in '' yes
21154 # Use a header file that comes with gcc, so configuring glibc
21155 # with a fresh cross-compiler works.
21156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21157 # <limits.h> exists even on freestanding compilers.
21158 # On the NeXT, cc -E runs the code through the compiler's parser,
21159 # not just through cpp. "Syntax error" is here to catch this case.
21160 cat >conftest.$ac_ext <<_ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21167 # include <limits.h>
21169 # include <assert.h>
21173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21176 grep -v '^ *+' conftest.er1 >conftest.err
21178 cat conftest.err >&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } >/dev/null; then
21181 if test -s conftest.err; then
21182 ac_cpp_err=$ac_cxx_preproc_warn_flag
21183 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21190 if test -z "$ac_cpp_err"; then
21193 echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21196 # Broken: fails on valid input.
21199 rm -f conftest.err conftest.$ac_ext
21201 # OK, works on sane cases. Now check whether non-existent headers
21202 # can be detected and how.
21203 cat >conftest.$ac_ext <<_ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 #include <ac_nonexistent.h>
21211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21214 grep -v '^ *+' conftest.er1 >conftest.err
21216 cat conftest.err >&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); } >/dev/null; then
21219 if test -s conftest.err; then
21220 ac_cpp_err=$ac_cxx_preproc_warn_flag
21221 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21228 if test -z "$ac_cpp_err"; then
21229 # Broken: success on invalid input.
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21235 # Passes both tests.
21239 rm -f conftest.err conftest.$ac_ext
21242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21243 rm -f conftest.err conftest.$ac_ext
21244 if $ac_preproc_ok; then
21249 ac_cv_prog_CXXCPP=$CXXCPP
21252 CXXCPP=$ac_cv_prog_CXXCPP
21254 ac_cv_prog_CXXCPP=$CXXCPP
21256 echo "$as_me:$LINENO: result: $CXXCPP" >&5
21257 echo "${ECHO_T}$CXXCPP" >&6
21258 ac_preproc_ok=false
21259 for ac_cxx_preproc_warn_flag in '' yes
21261 # Use a header file that comes with gcc, so configuring glibc
21262 # with a fresh cross-compiler works.
21263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21264 # <limits.h> exists even on freestanding compilers.
21265 # On the NeXT, cc -E runs the code through the compiler's parser,
21266 # not just through cpp. "Syntax error" is here to catch this case.
21267 cat >conftest.$ac_ext <<_ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21274 # include <limits.h>
21276 # include <assert.h>
21280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21283 grep -v '^ *+' conftest.er1 >conftest.err
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } >/dev/null; then
21288 if test -s conftest.err; then
21289 ac_cpp_err=$ac_cxx_preproc_warn_flag
21290 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21297 if test -z "$ac_cpp_err"; then
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21303 # Broken: fails on valid input.
21306 rm -f conftest.err conftest.$ac_ext
21308 # OK, works on sane cases. Now check whether non-existent headers
21309 # can be detected and how.
21310 cat >conftest.$ac_ext <<_ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21316 #include <ac_nonexistent.h>
21318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21321 grep -v '^ *+' conftest.er1 >conftest.err
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } >/dev/null; then
21326 if test -s conftest.err; then
21327 ac_cpp_err=$ac_cxx_preproc_warn_flag
21328 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21335 if test -z "$ac_cpp_err"; then
21336 # Broken: success on invalid input.
21339 echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21342 # Passes both tests.
21346 rm -f conftest.err conftest.$ac_ext
21349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21350 rm -f conftest.err conftest.$ac_ext
21351 if $ac_preproc_ok; then
21354 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21355 See \`config.log' for more details." >&5
21356 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21357 See \`config.log' for more details." >&2;}
21358 { (exit 1); exit 1; }; }
21362 ac_cpp='$CPP $CPPFLAGS'
21363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21367 echo "$as_me:$LINENO: checking for library containing strerror" >&5
21368 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
21369 if test "${ac_cv_search_strerror+set}" = set; then
21370 echo $ECHO_N "(cached) $ECHO_C" >&6
21372 ac_func_search_save_LIBS=$LIBS
21373 ac_cv_search_strerror=no
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21381 /* Override any gcc2 internal prototype to avoid an error. */
21385 /* We use char because int might match the return type of a gcc2
21386 builtin and then its argument prototype would still apply. */
21396 rm -f conftest.$ac_objext conftest$ac_exeext
21397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21398 (eval $ac_link) 2>conftest.er1
21400 grep -v '^ *+' conftest.er1 >conftest.err
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } &&
21405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; } &&
21411 { ac_try='test -s conftest$ac_exeext'
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; }; then
21417 ac_cv_search_strerror="none required"
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21423 rm -f conftest.err conftest.$ac_objext \
21424 conftest$ac_exeext conftest.$ac_ext
21425 if test "$ac_cv_search_strerror" = no; then
21426 for ac_lib in cposix; do
21427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21428 cat >conftest.$ac_ext <<_ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21435 /* Override any gcc2 internal prototype to avoid an error. */
21439 /* We use char because int might match the return type of a gcc2
21440 builtin and then its argument prototype would still apply. */
21450 rm -f conftest.$ac_objext conftest$ac_exeext
21451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21452 (eval $ac_link) 2>conftest.er1
21454 grep -v '^ *+' conftest.er1 >conftest.err
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } &&
21459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; } &&
21465 { ac_try='test -s conftest$ac_exeext'
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; }; then
21471 ac_cv_search_strerror="-l$ac_lib"
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21478 rm -f conftest.err conftest.$ac_objext \
21479 conftest$ac_exeext conftest.$ac_ext
21482 LIBS=$ac_func_search_save_LIBS
21484 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
21485 echo "${ECHO_T}$ac_cv_search_strerror" >&6
21486 if test "$ac_cv_search_strerror" != no; then
21487 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
21492 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21493 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21494 if test "${ac_cv_header_stdc+set}" = set; then
21495 echo $ECHO_N "(cached) $ECHO_C" >&6
21497 cat >conftest.$ac_ext <<_ACEOF
21500 cat confdefs.h >>conftest.$ac_ext
21501 cat >>conftest.$ac_ext <<_ACEOF
21502 /* end confdefs.h. */
21503 #include <stdlib.h>
21504 #include <stdarg.h>
21505 #include <string.h>
21516 rm -f conftest.$ac_objext
21517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21518 (eval $ac_compile) 2>conftest.er1
21520 grep -v '^ *+' conftest.er1 >conftest.err
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } &&
21525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527 (eval $ac_try) 2>&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); }; } &&
21531 { ac_try='test -s conftest.$ac_objext'
21532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; }; then
21537 ac_cv_header_stdc=yes
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21542 ac_cv_header_stdc=no
21544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21546 if test $ac_cv_header_stdc = yes; then
21547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21548 cat >conftest.$ac_ext <<_ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 #include <string.h>
21557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21558 $EGREP "memchr" >/dev/null 2>&1; then
21561 ac_cv_header_stdc=no
21567 if test $ac_cv_header_stdc = yes; then
21568 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21569 cat >conftest.$ac_ext <<_ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 #include <stdlib.h>
21578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21579 $EGREP "free" >/dev/null 2>&1; then
21582 ac_cv_header_stdc=no
21588 if test $ac_cv_header_stdc = yes; then
21589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21590 if test "$cross_compiling" = yes; then
21593 cat >conftest.$ac_ext <<_ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21600 #if ((' ' & 0x0FF) == 0x020)
21601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21604 # define ISLOWER(c) \
21605 (('a' <= (c) && (c) <= 'i') \
21606 || ('j' <= (c) && (c) <= 'r') \
21607 || ('s' <= (c) && (c) <= 'z'))
21608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21616 for (i = 0; i < 256; i++)
21617 if (XOR (islower (i), ISLOWER (i))
21618 || toupper (i) != TOUPPER (i))
21623 rm -f conftest$ac_exeext
21624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21625 (eval $ac_link) 2>&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; }; then
21636 echo "$as_me: program exited with status $ac_status" >&5
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21640 ( exit $ac_status )
21641 ac_cv_header_stdc=no
21643 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21647 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21648 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21649 if test $ac_cv_header_stdc = yes; then
21651 cat >>confdefs.h <<\_ACEOF
21652 #define STDC_HEADERS 1
21657 echo "$as_me:$LINENO: checking for inline" >&5
21658 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21659 if test "${ac_cv_c_inline+set}" = set; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 for ac_kw in inline __inline__ __inline; do
21664 cat >conftest.$ac_ext <<_ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h. */
21670 #ifndef __cplusplus
21672 static $ac_kw foo_t static_foo () {return 0; }
21673 $ac_kw foo_t foo () {return 0; }
21677 rm -f conftest.$ac_objext
21678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21679 (eval $ac_compile) 2>conftest.er1
21681 grep -v '^ *+' conftest.er1 >conftest.err
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } &&
21686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; } &&
21692 { ac_try='test -s conftest.$ac_objext'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21698 ac_cv_c_inline=$ac_kw; break
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21708 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21709 echo "${ECHO_T}$ac_cv_c_inline" >&6
21712 case $ac_cv_c_inline in
21715 case $ac_cv_c_inline in
21717 *) ac_val=$ac_cv_c_inline;;
21719 cat >>confdefs.h <<_ACEOF
21720 #ifndef __cplusplus
21721 #define inline $ac_val
21728 # Extract the first word of "pkg-config", so it can be a program name with args.
21729 set dummy pkg-config; ac_word=$2
21730 echo "$as_me:$LINENO: checking for $ac_word" >&5
21731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21732 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
21733 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 if test -n "$HAVE_PKGCONFIG"; then
21736 ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
21738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21739 for as_dir in $PATH
21742 test -z "$as_dir" && as_dir=.
21743 for ac_exec_ext in '' $ac_executable_extensions; do
21744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21745 ac_cv_prog_HAVE_PKGCONFIG="yes"
21746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21752 test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
21755 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
21756 if test -n "$HAVE_PKGCONFIG"; then
21757 echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
21758 echo "${ECHO_T}$HAVE_PKGCONFIG" >&6
21760 echo "$as_me:$LINENO: result: no" >&5
21761 echo "${ECHO_T}no" >&6
21765 if test "x$HAVE_PKGCONFIG" = "xno"; then
21766 { { echo "$as_me:$LINENO: error: you need to have pkgconfig installed !" >&5
21767 echo "$as_me: error: you need to have pkgconfig installed !" >&2;}
21768 { (exit 1); exit 1; }; }
21772 GST_REQUIRED=0.10.3
21773 GST_MAJORMINOR=0.10
21778 if test -z "$PKG_CONFIG"; then
21779 # Extract the first word of "pkg-config", so it can be a program name with args.
21780 set dummy pkg-config; ac_word=$2
21781 echo "$as_me:$LINENO: checking for $ac_word" >&5
21782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21783 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21784 echo $ECHO_N "(cached) $ECHO_C" >&6
21786 case $PKG_CONFIG in
21788 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21792 for as_dir in $PATH
21795 test -z "$as_dir" && as_dir=.
21796 for ac_exec_ext in '' $ac_executable_extensions; do
21797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21798 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21805 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21809 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21811 if test -n "$PKG_CONFIG"; then
21812 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21813 echo "${ECHO_T}$PKG_CONFIG" >&6
21815 echo "$as_me:$LINENO: result: no" >&5
21816 echo "${ECHO_T}no" >&6
21821 if test "$PKG_CONFIG" = "no" ; then
21822 echo "*** The pkg-config script could not be found. Make sure it is"
21823 echo "*** in your path, or set the PKG_CONFIG environment variable"
21824 echo "*** to the full path to pkg-config."
21825 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21827 PKG_CONFIG_MIN_VERSION=0.9.0
21828 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21829 echo "$as_me:$LINENO: checking for \
21830 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
21831 echo $ECHO_N "checking for \
21832 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
21834 if $PKG_CONFIG --exists "\
21835 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
21836 echo "$as_me:$LINENO: result: yes" >&5
21837 echo "${ECHO_T}yes" >&6
21840 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
21841 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
21842 GST_CFLAGS=`$PKG_CONFIG --cflags "\
21843 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
21844 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
21845 echo "${ECHO_T}$GST_CFLAGS" >&6
21847 echo "$as_me:$LINENO: checking GST_LIBS" >&5
21848 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
21849 GST_LIBS=`$PKG_CONFIG --libs "\
21850 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
21851 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
21852 echo "${ECHO_T}$GST_LIBS" >&6
21856 ## If we have a custom action on failure, don't print errors, but
21857 ## do set a variable so people can do so.
21858 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
21859 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
21866 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21867 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21871 if test $succeeded = yes; then
21878 if test "x$HAVE_GST" = "xno"; then
21879 { { echo "$as_me:$LINENO: error: you need gstreamer development packages installed !" >&5
21880 echo "$as_me: error: you need gstreamer development packages installed !" >&2;}
21881 { (exit 1); exit 1; }; }
21884 if test "x$USE_DEBUG" = xyes; then
21885 GST_CFLAGS="$GST_CFLAGS -g"
21896 if test -z "$PKG_CONFIG"; then
21897 # Extract the first word of "pkg-config", so it can be a program name with args.
21898 set dummy pkg-config; ac_word=$2
21899 echo "$as_me:$LINENO: checking for $ac_word" >&5
21900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21901 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21902 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 case $PKG_CONFIG in
21906 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21910 for as_dir in $PATH
21913 test -z "$as_dir" && as_dir=.
21914 for ac_exec_ext in '' $ac_executable_extensions; do
21915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21916 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21923 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21927 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21929 if test -n "$PKG_CONFIG"; then
21930 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21931 echo "${ECHO_T}$PKG_CONFIG" >&6
21933 echo "$as_me:$LINENO: result: no" >&5
21934 echo "${ECHO_T}no" >&6
21939 if test "$PKG_CONFIG" = "no" ; then
21940 echo "*** The pkg-config script could not be found. Make sure it is"
21941 echo "*** in your path, or set the PKG_CONFIG environment variable"
21942 echo "*** to the full path to pkg-config."
21943 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21945 PKG_CONFIG_MIN_VERSION=0.9.0
21946 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21947 echo "$as_me:$LINENO: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
21948 echo $ECHO_N "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
21950 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
21951 echo "$as_me:$LINENO: result: yes" >&5
21952 echo "${ECHO_T}yes" >&6
21955 echo "$as_me:$LINENO: checking GST_BASE_CFLAGS" >&5
21956 echo $ECHO_N "checking GST_BASE_CFLAGS... $ECHO_C" >&6
21957 GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21958 echo "$as_me:$LINENO: result: $GST_BASE_CFLAGS" >&5
21959 echo "${ECHO_T}$GST_BASE_CFLAGS" >&6
21961 echo "$as_me:$LINENO: checking GST_BASE_LIBS" >&5
21962 echo $ECHO_N "checking GST_BASE_LIBS... $ECHO_C" >&6
21963 GST_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21964 echo "$as_me:$LINENO: result: $GST_BASE_LIBS" >&5
21965 echo "${ECHO_T}$GST_BASE_LIBS" >&6
21969 ## If we have a custom action on failure, don't print errors, but
21970 ## do set a variable so people can do so.
21971 GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21983 if test $succeeded = yes; then
21984 HAVE_GST_BASE="yes"
21990 if test "x$HAVE_GST_BASE" = "xno"; then
21991 { { echo "$as_me:$LINENO: error: no GStreamer Base Libs found" >&5
21992 echo "$as_me: error: no GStreamer Base Libs found" >&2;}
21993 { (exit 1); exit 1; }; }
22002 if test -z "$PKG_CONFIG"; then
22003 # Extract the first word of "pkg-config", so it can be a program name with args.
22004 set dummy pkg-config; ac_word=$2
22005 echo "$as_me:$LINENO: checking for $ac_word" >&5
22006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22007 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22010 case $PKG_CONFIG in
22012 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22016 for as_dir in $PATH
22019 test -z "$as_dir" && as_dir=.
22020 for ac_exec_ext in '' $ac_executable_extensions; do
22021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22022 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22029 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22033 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22035 if test -n "$PKG_CONFIG"; then
22036 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22037 echo "${ECHO_T}$PKG_CONFIG" >&6
22039 echo "$as_me:$LINENO: result: no" >&5
22040 echo "${ECHO_T}no" >&6
22045 if test "$PKG_CONFIG" = "no" ; then
22046 echo "*** The pkg-config script could not be found. Make sure it is"
22047 echo "*** in your path, or set the PKG_CONFIG environment variable"
22048 echo "*** to the full path to pkg-config."
22049 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22051 PKG_CONFIG_MIN_VERSION=0.9.0
22052 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22053 echo "$as_me:$LINENO: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
22054 echo $ECHO_N "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
22056 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
22057 echo "$as_me:$LINENO: result: yes" >&5
22058 echo "${ECHO_T}yes" >&6
22061 echo "$as_me:$LINENO: checking GST_PLUGINS_BASE_CFLAGS" >&5
22062 echo $ECHO_N "checking GST_PLUGINS_BASE_CFLAGS... $ECHO_C" >&6
22063 GST_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22064 echo "$as_me:$LINENO: result: $GST_PLUGINS_BASE_CFLAGS" >&5
22065 echo "${ECHO_T}$GST_PLUGINS_BASE_CFLAGS" >&6
22067 echo "$as_me:$LINENO: checking GST_PLUGINS_BASE_LIBS" >&5
22068 echo $ECHO_N "checking GST_PLUGINS_BASE_LIBS... $ECHO_C" >&6
22069 GST_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22070 echo "$as_me:$LINENO: result: $GST_PLUGINS_BASE_LIBS" >&5
22071 echo "${ECHO_T}$GST_PLUGINS_BASE_LIBS" >&6
22073 GST_PLUGINS_BASE_CFLAGS=""
22074 GST_PLUGINS_BASE_LIBS=""
22075 ## If we have a custom action on failure, don't print errors, but
22076 ## do set a variable so people can do so.
22077 GST_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22084 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22085 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22089 if test $succeeded = yes; then
22090 HAVE_GST_PLUGINS="yes"
22092 HAVE_GST_PLUGINS="no"
22096 if test "x$HAVE_GST_PLUGINS" = "xno"; then
22097 { { echo "$as_me:$LINENO: error: no GStreamer Plugins Libs found" >&5
22098 echo "$as_me: error: no GStreamer Plugins Libs found" >&2;}
22099 { (exit 1); exit 1; }; }
22105 plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
22108 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).*'
22111 ac_config_files="$ac_config_files Makefile src/Makefile m4/Makefile"
22112 cat >confcache <<\_ACEOF
22113 # This file is a shell script that caches the results of configure
22114 # tests run on this system so they can be shared between configure
22115 # scripts and configure runs, see configure's option --config-cache.
22116 # It is not useful on other systems. If it contains results you don't
22117 # want to keep, you may remove or edit it.
22119 # config.status only pays attention to the cache file if you give it
22120 # the --recheck option to rerun configure.
22122 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22123 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22124 # following values.
22128 # The following way of writing the cache mishandles newlines in values,
22129 # but we know of no workaround that is simple, portable, and efficient.
22130 # So, don't put newlines in cache variables' values.
22131 # Ultrix sh set writes to stderr and can't be redirected directly,
22132 # and sets the high bit in the cache file unless we assign to the vars.
22135 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22137 # `set' does not quote correctly, so add quotes (double-quote
22138 # substitution turns \\\\ into \\, and sed turns \\ into \).
22141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22144 # `set' quotes correctly as required by POSIX, so do not add quotes.
22146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22153 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22155 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22157 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22158 if test -w $cache_file; then
22159 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22160 cat confcache >$cache_file
22162 echo "not updating unwritable cache $cache_file"
22167 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22168 # Let make expand exec_prefix.
22169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22171 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22172 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22173 # trailing colons and then remove the whole line if VPATH becomes empty
22174 # (actually we leave an empty line to preserve line numbers).
22175 if test "x$srcdir" = x.; then
22176 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22177 s/:*\$(srcdir):*/:/;
22178 s/:*\${srcdir}:*/:/;
22180 s/^\([^=]*=[ ]*\):*/\1/;
22186 DEFS=-DHAVE_CONFIG_H
22190 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22191 # 1. Remove the extension, and $U if already installed.
22192 ac_i=`echo "$ac_i" |
22193 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22195 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22196 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22198 LIBOBJS=$ac_libobjs
22200 LTLIBOBJS=$ac_ltlibobjs
22203 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22204 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22205 Usually this means the macro was only invoked conditionally." >&5
22206 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22207 Usually this means the macro was only invoked conditionally." >&2;}
22208 { (exit 1); exit 1; }; }
22210 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22211 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22212 Usually this means the macro was only invoked conditionally." >&5
22213 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22214 Usually this means the macro was only invoked conditionally." >&2;}
22215 { (exit 1); exit 1; }; }
22217 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22218 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22219 Usually this means the macro was only invoked conditionally." >&5
22220 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22221 Usually this means the macro was only invoked conditionally." >&2;}
22222 { (exit 1); exit 1; }; }
22224 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22225 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22226 Usually this means the macro was only invoked conditionally." >&5
22227 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22228 Usually this means the macro was only invoked conditionally." >&2;}
22229 { (exit 1); exit 1; }; }
22231 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22232 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22233 Usually this means the macro was only invoked conditionally." >&5
22234 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22235 Usually this means the macro was only invoked conditionally." >&2;}
22236 { (exit 1); exit 1; }; }
22238 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22239 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22240 Usually this means the macro was only invoked conditionally." >&5
22241 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22242 Usually this means the macro was only invoked conditionally." >&2;}
22243 { (exit 1); exit 1; }; }
22246 : ${CONFIG_STATUS=./config.status}
22247 ac_clean_files_save=$ac_clean_files
22248 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22249 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22250 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22251 cat >$CONFIG_STATUS <<_ACEOF
22253 # Generated by $as_me.
22254 # Run this file to recreate the current configuration.
22255 # Compiler output produced by configure, useful for debugging
22256 # configure, is in config.log if it exists.
22259 ac_cs_recheck=false
22261 SHELL=\${CONFIG_SHELL-$SHELL}
22264 cat >>$CONFIG_STATUS <<\_ACEOF
22265 ## --------------------- ##
22266 ## M4sh Initialization. ##
22267 ## --------------------- ##
22269 # Be Bourne compatible
22270 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22273 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22274 # is contrary to our usage. Disable this feature.
22275 alias -g '${1+"$@"}'='"$@"'
22276 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22279 DUALCASE=1; export DUALCASE # for MKS sh
22281 # Support unset when possible.
22282 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22289 # Work around bugs in pre-3.0 UWIN ksh.
22290 $as_unset ENV MAIL MAILPATH
22297 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22298 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22299 LC_TELEPHONE LC_TIME
22301 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22302 eval $as_var=C; export $as_var
22308 # Required to use basename.
22309 if expr a : '\(a\)' >/dev/null 2>&1; then
22315 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22316 as_basename=basename
22322 # Name of the executable.
22323 as_me=`$as_basename "$0" ||
22324 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22325 X"$0" : 'X\(//\)$' \| \
22326 X"$0" : 'X\(/\)$' \| \
22327 . : '\(.\)' 2>/dev/null ||
22329 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22330 /^X\/\(\/\/\)$/{ s//\1/; q; }
22331 /^X\/\(\/\).*/{ s//\1/; q; }
22335 # PATH needs CR, and LINENO needs CR and PATH.
22336 # Avoid depending upon Character Ranges.
22337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22340 as_cr_digits='0123456789'
22341 as_cr_alnum=$as_cr_Letters$as_cr_digits
22343 # The user is always right.
22344 if test "${PATH_SEPARATOR+set}" != set; then
22345 echo "#! /bin/sh" >conf$$.sh
22346 echo "exit 0" >>conf$$.sh
22348 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22357 as_lineno_1=$LINENO
22358 as_lineno_2=$LINENO
22359 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22360 test "x$as_lineno_1" != "x$as_lineno_2" &&
22361 test "x$as_lineno_3" = "x$as_lineno_2" || {
22362 # Find who we are. Look in the path if we contain no path at all
22365 *[\\/]* ) as_myself=$0 ;;
22366 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22367 for as_dir in $PATH
22370 test -z "$as_dir" && as_dir=.
22371 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22376 # We did not find ourselves, most probably we were run as `sh COMMAND'
22377 # in which case we are not to be found in the path.
22378 if test "x$as_myself" = x; then
22381 if test ! -f "$as_myself"; then
22382 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22383 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22384 { (exit 1); exit 1; }; }
22386 case $CONFIG_SHELL in
22388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22389 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22392 test -z "$as_dir" && as_dir=.
22393 for as_base in sh bash ksh sh5; do
22396 if ("$as_dir/$as_base" -c '
22397 as_lineno_1=$LINENO
22398 as_lineno_2=$LINENO
22399 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22400 test "x$as_lineno_1" != "x$as_lineno_2" &&
22401 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22402 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22403 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22404 CONFIG_SHELL=$as_dir/$as_base
22405 export CONFIG_SHELL
22406 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22414 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22415 # uniformly replaced by the line number. The first 'sed' inserts a
22416 # line-number line before each line; the second 'sed' does the real
22417 # work. The second script uses 'N' to pair each line-number line
22418 # with the numbered line, and appends trailing '-' during
22419 # substitution so that $LINENO is not a special case at line end.
22420 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22421 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22422 sed '=' <$as_myself |
22427 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22430 s,^['$as_cr_digits']*\n,,
22431 ' >$as_me.lineno &&
22432 chmod +x $as_me.lineno ||
22433 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22434 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22435 { (exit 1); exit 1; }; }
22437 # Don't try to exec as it changes $[0], causing all sort of problems
22438 # (the dirname of $[0] is not the place where we might find the
22439 # original and so on. Autoconf is especially sensible to this).
22441 # Exit status is that of the last command.
22446 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22447 *c*,-n*) ECHO_N= ECHO_C='
22449 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22450 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22453 if expr a : '\(a\)' >/dev/null 2>&1; then
22459 rm -f conf$$ conf$$.exe conf$$.file
22461 if ln -s conf$$.file conf$$ 2>/dev/null; then
22462 # We could just check for DJGPP; but this test a) works b) is more generic
22463 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22464 if test -f conf$$.exe; then
22465 # Don't use ln at all; we don't have any links
22470 elif ln conf$$.file conf$$ 2>/dev/null; then
22475 rm -f conf$$ conf$$.exe conf$$.file
22477 if mkdir -p . 2>/dev/null; then
22480 test -d ./-p && rmdir ./-p
22484 as_executable_p="test -f"
22486 # Sed expression to map a string onto a valid CPP name.
22487 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22489 # Sed expression to map a string onto a valid variable name.
22490 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22494 # We need space, tab and new line, in precisely that order.
22504 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22505 # report actual input values of CONFIG_FILES etc. instead of their
22506 # values after options handling. Logging --version etc. is OK.
22510 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22511 ## Running $as_me. ##
22516 This file was extended by $as_me, which was
22517 generated by GNU Autoconf 2.59. Invocation command line was
22519 CONFIG_FILES = $CONFIG_FILES
22520 CONFIG_HEADERS = $CONFIG_HEADERS
22521 CONFIG_LINKS = $CONFIG_LINKS
22522 CONFIG_COMMANDS = $CONFIG_COMMANDS
22526 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22530 # Files that config.status was made for.
22531 if test -n "$ac_config_files"; then
22532 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22535 if test -n "$ac_config_headers"; then
22536 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22539 if test -n "$ac_config_links"; then
22540 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22543 if test -n "$ac_config_commands"; then
22544 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22547 cat >>$CONFIG_STATUS <<\_ACEOF
22550 \`$as_me' instantiates files from templates according to the
22551 current configuration.
22553 Usage: $0 [OPTIONS] [FILE]...
22555 -h, --help print this help, then exit
22556 -V, --version print version number, then exit
22557 -q, --quiet do not print progress messages
22558 -d, --debug don't remove temporary files
22559 --recheck update $as_me by reconfiguring in the same conditions
22560 --file=FILE[:TEMPLATE]
22561 instantiate the configuration file FILE
22562 --header=FILE[:TEMPLATE]
22563 instantiate the configuration header FILE
22565 Configuration files:
22568 Configuration headers:
22571 Configuration commands:
22574 Report bugs to <bug-autoconf@gnu.org>."
22577 cat >>$CONFIG_STATUS <<_ACEOF
22580 configured by $0, generated by GNU Autoconf 2.59,
22581 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22583 Copyright (C) 2003 Free Software Foundation, Inc.
22584 This config.status script is free software; the Free Software Foundation
22585 gives unlimited permission to copy, distribute and modify it."
22590 cat >>$CONFIG_STATUS <<\_ACEOF
22591 # If no file are specified by the user, then we need to provide default
22592 # value. By we need to know if files were specified by the user.
22598 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22599 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22607 *) # This is not an option, so the user has probably given explicit
22610 ac_need_defaults=false;;
22614 # Handling of the options.
22616 cat >>$CONFIG_STATUS <<\_ACEOF
22617 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22619 --version | --vers* | -V )
22620 echo "$ac_cs_version"; exit 0 ;;
22622 # Conflict between --help and --header
22623 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22624 Try \`$0 --help' for more information." >&5
22625 echo "$as_me: error: ambiguous option: $1
22626 Try \`$0 --help' for more information." >&2;}
22627 { (exit 1); exit 1; }; };;
22628 --help | --hel | -h )
22629 echo "$ac_cs_usage"; exit 0 ;;
22630 --debug | --d* | -d )
22632 --file | --fil | --fi | --f )
22634 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22635 ac_need_defaults=false;;
22636 --header | --heade | --head | --hea )
22638 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22639 ac_need_defaults=false;;
22640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22641 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22644 # This is an error.
22645 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22646 Try \`$0 --help' for more information." >&5
22647 echo "$as_me: error: unrecognized option: $1
22648 Try \`$0 --help' for more information." >&2;}
22649 { (exit 1); exit 1; }; } ;;
22651 *) ac_config_targets="$ac_config_targets $1" ;;
22657 ac_configure_extra_args=
22659 if $ac_cs_silent; then
22661 ac_configure_extra_args="$ac_configure_extra_args --silent"
22665 cat >>$CONFIG_STATUS <<_ACEOF
22666 if \$ac_cs_recheck; then
22667 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22668 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22673 cat >>$CONFIG_STATUS <<_ACEOF
22675 # INIT-COMMANDS section.
22678 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22684 cat >>$CONFIG_STATUS <<\_ACEOF
22685 for ac_config_target in $ac_config_targets
22687 case "$ac_config_target" in
22688 # Handling of arguments.
22689 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22690 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22691 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22692 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22693 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22694 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22695 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22696 { (exit 1); exit 1; }; };;
22700 # If the user did not use the arguments to specify the items to instantiate,
22701 # then the envvar interface is used. Set only those that are not.
22702 # We use the long form for the default assignment because of an extremely
22703 # bizarre bug on SunOS 4.1.3.
22704 if $ac_need_defaults; then
22705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22707 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22710 # Have a temporary directory for convenience. Make it in the build tree
22711 # simply because there is no reason to put it here, and in addition,
22712 # creating and moving files from /tmp can sometimes cause problems.
22713 # Create a temporary directory, and hook for its removal unless debugging.
22716 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22717 trap '{ (exit 1); exit 1; }' 1 2 13 15
22720 # Create a (secure) tmp directory for tmp files.
22723 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22724 test -n "$tmp" && test -d "$tmp"
22727 tmp=./confstat$$-$RANDOM
22728 (umask 077 && mkdir $tmp)
22731 echo "$me: cannot create a temporary directory in ." >&2
22732 { (exit 1); exit 1; }
22737 cat >>$CONFIG_STATUS <<_ACEOF
22740 # CONFIG_FILES section.
22743 # No need to generate the scripts if there are no CONFIG_FILES.
22744 # This happens for instance when ./config.status config.h
22745 if test -n "\$CONFIG_FILES"; then
22746 # Protect against being on the right side of a sed subst in config.status.
22747 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22748 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22749 s,@SHELL@,$SHELL,;t t
22750 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22751 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22752 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22753 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22754 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22755 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22756 s,@exec_prefix@,$exec_prefix,;t t
22757 s,@prefix@,$prefix,;t t
22758 s,@program_transform_name@,$program_transform_name,;t t
22759 s,@bindir@,$bindir,;t t
22760 s,@sbindir@,$sbindir,;t t
22761 s,@libexecdir@,$libexecdir,;t t
22762 s,@datadir@,$datadir,;t t
22763 s,@sysconfdir@,$sysconfdir,;t t
22764 s,@sharedstatedir@,$sharedstatedir,;t t
22765 s,@localstatedir@,$localstatedir,;t t
22766 s,@libdir@,$libdir,;t t
22767 s,@includedir@,$includedir,;t t
22768 s,@oldincludedir@,$oldincludedir,;t t
22769 s,@infodir@,$infodir,;t t
22770 s,@mandir@,$mandir,;t t
22771 s,@build_alias@,$build_alias,;t t
22772 s,@host_alias@,$host_alias,;t t
22773 s,@target_alias@,$target_alias,;t t
22774 s,@DEFS@,$DEFS,;t t
22775 s,@ECHO_C@,$ECHO_C,;t t
22776 s,@ECHO_N@,$ECHO_N,;t t
22777 s,@ECHO_T@,$ECHO_T,;t t
22778 s,@LIBS@,$LIBS,;t t
22779 s,@build@,$build,;t t
22780 s,@build_cpu@,$build_cpu,;t t
22781 s,@build_vendor@,$build_vendor,;t t
22782 s,@build_os@,$build_os,;t t
22783 s,@host@,$host,;t t
22784 s,@host_cpu@,$host_cpu,;t t
22785 s,@host_vendor@,$host_vendor,;t t
22786 s,@host_os@,$host_os,;t t
22787 s,@target@,$target,;t t
22788 s,@target_cpu@,$target_cpu,;t t
22789 s,@target_vendor@,$target_vendor,;t t
22790 s,@target_os@,$target_os,;t t
22791 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22792 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22793 s,@MAINT@,$MAINT,;t t
22794 s,@GST_PLUGINS_VERSION@,$GST_PLUGINS_VERSION,;t t
22795 s,@GST_PLUGINS_VERSION_RELEASE@,$GST_PLUGINS_VERSION_RELEASE,;t t
22796 s,@GST_PLUGINS_VERSION_MAJOR@,$GST_PLUGINS_VERSION_MAJOR,;t t
22797 s,@GST_PLUGINS_VERSION_MINOR@,$GST_PLUGINS_VERSION_MINOR,;t t
22798 s,@GST_PLUGINS_VERSION_MICRO@,$GST_PLUGINS_VERSION_MICRO,;t t
22799 s,@GST_PLUGINS_VERSION_NANO@,$GST_PLUGINS_VERSION_NANO,;t t
22800 s,@PACKAGE@,$PACKAGE,;t t
22801 s,@VERSION@,$VERSION,;t t
22802 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22803 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22804 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22805 s,@CYGPATH_W@,$CYGPATH_W,;t t
22806 s,@ACLOCAL@,$ACLOCAL,;t t
22807 s,@AUTOCONF@,$AUTOCONF,;t t
22808 s,@AUTOMAKE@,$AUTOMAKE,;t t
22809 s,@AUTOHEADER@,$AUTOHEADER,;t t
22810 s,@MAKEINFO@,$MAKEINFO,;t t
22811 s,@AMTAR@,$AMTAR,;t t
22812 s,@install_sh@,$install_sh,;t t
22813 s,@STRIP@,$STRIP,;t t
22814 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22815 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22816 s,@mkdir_p@,$mkdir_p,;t t
22818 s,@SET_MAKE@,$SET_MAKE,;t t
22819 s,@am__leading_dot@,$am__leading_dot,;t t
22821 s,@CFLAGS@,$CFLAGS,;t t
22822 s,@LDFLAGS@,$LDFLAGS,;t t
22823 s,@CPPFLAGS@,$CPPFLAGS,;t t
22824 s,@ac_ct_CC@,$ac_ct_CC,;t t
22825 s,@EXEEXT@,$EXEEXT,;t t
22826 s,@OBJEXT@,$OBJEXT,;t t
22827 s,@DEPDIR@,$DEPDIR,;t t
22828 s,@am__include@,$am__include,;t t
22829 s,@am__quote@,$am__quote,;t t
22830 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22831 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22832 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22833 s,@CCDEPMODE@,$CCDEPMODE,;t t
22834 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22835 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22836 s,@EGREP@,$EGREP,;t t
22837 s,@LN_S@,$LN_S,;t t
22838 s,@ECHO@,$ECHO,;t t
22840 s,@ac_ct_AR@,$ac_ct_AR,;t t
22841 s,@RANLIB@,$RANLIB,;t t
22842 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22845 s,@CXXFLAGS@,$CXXFLAGS,;t t
22846 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22847 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22848 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22849 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22850 s,@CXXCPP@,$CXXCPP,;t t
22852 s,@FFLAGS@,$FFLAGS,;t t
22853 s,@ac_ct_F77@,$ac_ct_F77,;t t
22854 s,@LIBTOOL@,$LIBTOOL,;t t
22855 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
22856 s,@CCAS@,$CCAS,;t t
22857 s,@CCASFLAGS@,$CCASFLAGS,;t t
22858 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
22859 s,@HAVE_CXX@,$HAVE_CXX,;t t
22860 s,@HAVE_PKGCONFIG@,$HAVE_PKGCONFIG,;t t
22861 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22862 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
22863 s,@GST_LIBS@,$GST_LIBS,;t t
22864 s,@GST_MAJORMINOR@,$GST_MAJORMINOR,;t t
22865 s,@GST_BASE_CFLAGS@,$GST_BASE_CFLAGS,;t t
22866 s,@GST_BASE_LIBS@,$GST_BASE_LIBS,;t t
22867 s,@GST_PLUGINS_BASE_CFLAGS@,$GST_PLUGINS_BASE_CFLAGS,;t t
22868 s,@GST_PLUGINS_BASE_LIBS@,$GST_PLUGINS_BASE_LIBS,;t t
22869 s,@plugindir@,$plugindir,;t t
22870 s,@GST_PLUGIN_LDFLAGS@,$GST_PLUGIN_LDFLAGS,;t t
22871 s,@LIBOBJS@,$LIBOBJS,;t t
22872 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22877 cat >>$CONFIG_STATUS <<\_ACEOF
22878 # Split the substitutions into bite-sized pieces for seds with
22879 # small command number limits, like on Digital OSF/1 and HP-UX.
22880 ac_max_sed_lines=48
22881 ac_sed_frag=1 # Number of current file.
22882 ac_beg=1 # First line for current file.
22883 ac_end=$ac_max_sed_lines # Line after last line for current file.
22886 while $ac_more_lines; do
22887 if test $ac_beg -gt 1; then
22888 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22890 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22892 if test ! -s $tmp/subs.frag; then
22893 ac_more_lines=false
22895 # The purpose of the label and of the branching condition is to
22896 # speed up the sed processing (if there are no `@' at all, there
22897 # is no need to browse any of the substitutions).
22898 # These are the two extra sed commands mentioned above.
22900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22901 if test -z "$ac_sed_cmds"; then
22902 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22904 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22906 ac_sed_frag=`expr $ac_sed_frag + 1`
22908 ac_end=`expr $ac_end + $ac_max_sed_lines`
22911 if test -z "$ac_sed_cmds"; then
22914 fi # test -n "$CONFIG_FILES"
22917 cat >>$CONFIG_STATUS <<\_ACEOF
22918 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22921 - | *:- | *:-:* ) # input from stdin
22923 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22925 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22927 * ) ac_file_in=$ac_file.in ;;
22930 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22931 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22933 X"$ac_file" : 'X\(//\)[^/]' \| \
22934 X"$ac_file" : 'X\(//\)$' \| \
22935 X"$ac_file" : 'X\(/\)' \| \
22936 . : '\(.\)' 2>/dev/null ||
22938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22940 /^X\(\/\/\)$/{ s//\1/; q; }
22941 /^X\(\/\).*/{ s//\1/; q; }
22943 { if $as_mkdir_p; then
22948 while test ! -d "$as_dir"; do
22949 as_dirs="$as_dir $as_dirs"
22950 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22952 X"$as_dir" : 'X\(//\)[^/]' \| \
22953 X"$as_dir" : 'X\(//\)$' \| \
22954 X"$as_dir" : 'X\(/\)' \| \
22955 . : '\(.\)' 2>/dev/null ||
22957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22959 /^X\(\/\/\)$/{ s//\1/; q; }
22960 /^X\(\/\).*/{ s//\1/; q; }
22963 test ! -n "$as_dirs" || mkdir $as_dirs
22964 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22965 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22966 { (exit 1); exit 1; }; }; }
22970 if test "$ac_dir" != .; then
22971 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22972 # A "../" for each directory in $ac_dir_suffix.
22973 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22975 ac_dir_suffix= ac_top_builddir=
22979 .) # No --srcdir option. We are building in place.
22981 if test -z "$ac_top_builddir"; then
22984 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22986 [\\/]* | ?:[\\/]* ) # Absolute path.
22987 ac_srcdir=$srcdir$ac_dir_suffix;
22988 ac_top_srcdir=$srcdir ;;
22989 *) # Relative path.
22990 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22991 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22994 # Do not use `cd foo && pwd` to compute absolute paths, because
22995 # the directories may not exist.
22997 .) ac_abs_builddir="$ac_dir";;
23000 .) ac_abs_builddir=`pwd`;;
23001 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23002 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23005 case $ac_abs_builddir in
23006 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23008 case ${ac_top_builddir}. in
23009 .) ac_abs_top_builddir=$ac_abs_builddir;;
23010 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23011 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23014 case $ac_abs_builddir in
23015 .) ac_abs_srcdir=$ac_srcdir;;
23018 .) ac_abs_srcdir=$ac_abs_builddir;;
23019 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23020 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23023 case $ac_abs_builddir in
23024 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23026 case $ac_top_srcdir in
23027 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23028 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23029 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23035 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23036 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23039 # Let's still pretend it is `configure' which instantiates (i.e., don't
23040 # use $as_me), people would be surprised to read:
23041 # /* config.h. Generated by config.status. */
23042 if test x"$ac_file" = x-; then
23045 configure_input="$ac_file. "
23047 configure_input=$configure_input"Generated from `echo $ac_file_in |
23048 sed 's,.*/,,'` by configure."
23050 # First look for the input files in the build tree, otherwise in the
23052 ac_file_inputs=`IFS=:
23053 for f in $ac_file_in; do
23055 -) echo $tmp/stdin ;;
23057 # Absolute (can't be DOS-style, as IFS=:)
23058 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23059 echo "$as_me: error: cannot find input file: $f" >&2;}
23060 { (exit 1); exit 1; }; }
23063 if test -f "$f"; then
23066 elif test -f "$srcdir/$f"; then
23071 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23072 echo "$as_me: error: cannot find input file: $f" >&2;}
23073 { (exit 1); exit 1; }; }
23076 done` || { (exit 1); exit 1; }
23078 if test x"$ac_file" != x-; then
23079 { echo "$as_me:$LINENO: creating $ac_file" >&5
23080 echo "$as_me: creating $ac_file" >&6;}
23084 cat >>$CONFIG_STATUS <<_ACEOF
23088 cat >>$CONFIG_STATUS <<\_ACEOF
23090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23091 s,@configure_input@,$configure_input,;t t
23092 s,@srcdir@,$ac_srcdir,;t t
23093 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23094 s,@top_srcdir@,$ac_top_srcdir,;t t
23095 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23096 s,@builddir@,$ac_builddir,;t t
23097 s,@abs_builddir@,$ac_abs_builddir,;t t
23098 s,@top_builddir@,$ac_top_builddir,;t t
23099 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23100 s,@INSTALL@,$ac_INSTALL,;t t
23101 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23103 if test x"$ac_file" != x-; then
23104 mv $tmp/out $ac_file
23112 cat >>$CONFIG_STATUS <<\_ACEOF
23115 # CONFIG_HEADER section.
23118 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23119 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23121 # ac_d sets the value in "#define NAME VALUE" lines.
23122 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23123 ac_dB='[ ].*$,\1#\2'
23126 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23127 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23128 ac_uB='$,\1#\2define\3'
23132 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23133 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23135 - | *:- | *:-:* ) # input from stdin
23137 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23138 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23139 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23140 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23141 * ) ac_file_in=$ac_file.in ;;
23144 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23145 echo "$as_me: creating $ac_file" >&6;}
23147 # First look for the input files in the build tree, otherwise in the
23149 ac_file_inputs=`IFS=:
23150 for f in $ac_file_in; do
23152 -) echo $tmp/stdin ;;
23154 # Absolute (can't be DOS-style, as IFS=:)
23155 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23156 echo "$as_me: error: cannot find input file: $f" >&2;}
23157 { (exit 1); exit 1; }; }
23158 # Do quote $f, to prevent DOS paths from being IFS'd.
23161 if test -f "$f"; then
23164 elif test -f "$srcdir/$f"; then
23169 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23170 echo "$as_me: error: cannot find input file: $f" >&2;}
23171 { (exit 1); exit 1; }; }
23174 done` || { (exit 1); exit 1; }
23175 # Remove the trailing spaces.
23176 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23180 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23181 # `conftest.undefs', that substitutes the proper values into
23182 # config.h.in to produce config.h. The first handles `#define'
23183 # templates, and the second `#undef' templates.
23184 # And first: Protect against being on the right side of a sed subst in
23185 # config.status. Protect against being in an unquoted here document
23186 # in config.status.
23187 rm -f conftest.defines conftest.undefs
23188 # Using a here document instead of a string reduces the quoting nightmare.
23189 # Putting comments in sed scripts is not portable.
23191 # `end' is used to avoid that the second main sed command (meant for
23192 # 0-ary CPP macros) applies to n-ary macro definitions.
23193 # See the Autoconf documentation for `clear'.
23194 cat >confdef2sed.sed <<\_ACEOF
23199 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23201 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23204 # If some macros were called several times there might be several times
23205 # the same #defines, which is useless. Nevertheless, we may not want to
23206 # sort them, since we want the *last* AC-DEFINE to be honored.
23207 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23208 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23209 rm -f confdef2sed.sed
23211 # This sed command replaces #undef with comments. This is necessary, for
23212 # example, in the case of _POSIX_SOURCE, which is predefined and required
23213 # on some systems where configure will not decide to define it.
23214 cat >>conftest.undefs <<\_ACEOF
23215 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23218 # Break up conftest.defines because some shells have a limit on the size
23219 # of here documents, and old seds have small limits too (100 cmds).
23220 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23221 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23222 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23223 echo ' :' >>$CONFIG_STATUS
23224 rm -f conftest.tail
23225 while grep . conftest.defines >/dev/null
23227 # Write a limited-size here document to $tmp/defines.sed.
23228 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23229 # Speed up: don't consider the non `#define' lines.
23230 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23231 # Work around the forget-to-reset-the-flag bug.
23232 echo 't clr' >>$CONFIG_STATUS
23233 echo ': clr' >>$CONFIG_STATUS
23234 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23236 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23238 mv $tmp/out $tmp/in
23240 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23241 rm -f conftest.defines
23242 mv conftest.tail conftest.defines
23244 rm -f conftest.defines
23245 echo ' fi # grep' >>$CONFIG_STATUS
23246 echo >>$CONFIG_STATUS
23248 # Break up conftest.undefs because some shells have a limit on the size
23249 # of here documents, and old seds have small limits too (100 cmds).
23250 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23251 rm -f conftest.tail
23252 while grep . conftest.undefs >/dev/null
23254 # Write a limited-size here document to $tmp/undefs.sed.
23255 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23256 # Speed up: don't consider the non `#undef'
23257 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23258 # Work around the forget-to-reset-the-flag bug.
23259 echo 't clr' >>$CONFIG_STATUS
23260 echo ': clr' >>$CONFIG_STATUS
23261 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23263 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23265 mv $tmp/out $tmp/in
23267 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23268 rm -f conftest.undefs
23269 mv conftest.tail conftest.undefs
23271 rm -f conftest.undefs
23273 cat >>$CONFIG_STATUS <<\_ACEOF
23274 # Let's still pretend it is `configure' which instantiates (i.e., don't
23275 # use $as_me), people would be surprised to read:
23276 # /* config.h. Generated by config.status. */
23277 if test x"$ac_file" = x-; then
23278 echo "/* Generated by configure. */" >$tmp/config.h
23280 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23282 cat $tmp/in >>$tmp/config.h
23284 if test x"$ac_file" != x-; then
23285 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23286 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23287 echo "$as_me: $ac_file is unchanged" >&6;}
23289 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23291 X"$ac_file" : 'X\(//\)[^/]' \| \
23292 X"$ac_file" : 'X\(//\)$' \| \
23293 X"$ac_file" : 'X\(/\)' \| \
23294 . : '\(.\)' 2>/dev/null ||
23296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23298 /^X\(\/\/\)$/{ s//\1/; q; }
23299 /^X\(\/\).*/{ s//\1/; q; }
23301 { if $as_mkdir_p; then
23306 while test ! -d "$as_dir"; do
23307 as_dirs="$as_dir $as_dirs"
23308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23310 X"$as_dir" : 'X\(//\)[^/]' \| \
23311 X"$as_dir" : 'X\(//\)$' \| \
23312 X"$as_dir" : 'X\(/\)' \| \
23313 . : '\(.\)' 2>/dev/null ||
23315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23317 /^X\(\/\/\)$/{ s//\1/; q; }
23318 /^X\(\/\).*/{ s//\1/; q; }
23321 test ! -n "$as_dirs" || mkdir $as_dirs
23322 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23324 { (exit 1); exit 1; }; }; }
23327 mv $tmp/config.h $ac_file
23331 rm -f $tmp/config.h
23333 # Compute $ac_file's index in $config_headers.
23335 for _am_header in $config_headers :; do
23336 case $_am_header in
23337 $ac_file | $ac_file:* )
23340 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23343 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23344 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23345 X$ac_file : 'X\(//\)[^/]' \| \
23346 X$ac_file : 'X\(//\)$' \| \
23347 X$ac_file : 'X\(/\)' \| \
23348 . : '\(.\)' 2>/dev/null ||
23350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23352 /^X\(\/\/\)$/{ s//\1/; q; }
23353 /^X\(\/\).*/{ s//\1/; q; }
23354 s/.*/./; q'`/stamp-h$_am_stamp_count
23357 cat >>$CONFIG_STATUS <<\_ACEOF
23360 # CONFIG_COMMANDS section.
23362 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23363 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23364 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23365 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23366 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23367 X"$ac_dest" : 'X\(//\)[^/]' \| \
23368 X"$ac_dest" : 'X\(//\)$' \| \
23369 X"$ac_dest" : 'X\(/\)' \| \
23370 . : '\(.\)' 2>/dev/null ||
23372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23374 /^X\(\/\/\)$/{ s//\1/; q; }
23375 /^X\(\/\).*/{ s//\1/; q; }
23377 { if $as_mkdir_p; then
23382 while test ! -d "$as_dir"; do
23383 as_dirs="$as_dir $as_dirs"
23384 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23386 X"$as_dir" : 'X\(//\)[^/]' \| \
23387 X"$as_dir" : 'X\(//\)$' \| \
23388 X"$as_dir" : 'X\(/\)' \| \
23389 . : '\(.\)' 2>/dev/null ||
23391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23393 /^X\(\/\/\)$/{ s//\1/; q; }
23394 /^X\(\/\).*/{ s//\1/; q; }
23397 test ! -n "$as_dirs" || mkdir $as_dirs
23398 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23399 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23400 { (exit 1); exit 1; }; }; }
23404 if test "$ac_dir" != .; then
23405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23406 # A "../" for each directory in $ac_dir_suffix.
23407 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23409 ac_dir_suffix= ac_top_builddir=
23413 .) # No --srcdir option. We are building in place.
23415 if test -z "$ac_top_builddir"; then
23418 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23420 [\\/]* | ?:[\\/]* ) # Absolute path.
23421 ac_srcdir=$srcdir$ac_dir_suffix;
23422 ac_top_srcdir=$srcdir ;;
23423 *) # Relative path.
23424 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23425 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23428 # Do not use `cd foo && pwd` to compute absolute paths, because
23429 # the directories may not exist.
23431 .) ac_abs_builddir="$ac_dir";;
23434 .) ac_abs_builddir=`pwd`;;
23435 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23436 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23439 case $ac_abs_builddir in
23440 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23442 case ${ac_top_builddir}. in
23443 .) ac_abs_top_builddir=$ac_abs_builddir;;
23444 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23445 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23448 case $ac_abs_builddir in
23449 .) ac_abs_srcdir=$ac_srcdir;;
23452 .) ac_abs_srcdir=$ac_abs_builddir;;
23453 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23454 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23457 case $ac_abs_builddir in
23458 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23460 case $ac_top_srcdir in
23461 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23462 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23463 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23468 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23469 echo "$as_me: executing $ac_dest commands" >&6;}
23471 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23472 # Strip MF so we end up with the name of the file.
23473 mf=`echo "$mf" | sed -e 's/:.*$//'`
23474 # Check whether this is an Automake generated Makefile or not.
23475 # We used to match only the files named `Makefile.in', but
23476 # some people rename them; so instead we look at the file content.
23477 # Grep'ing the first line is not enough: some people post-process
23478 # each Makefile.in and add a new line on top of each file to say so.
23479 # So let's grep whole file.
23480 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23481 dirpart=`(dirname "$mf") 2>/dev/null ||
23482 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23483 X"$mf" : 'X\(//\)[^/]' \| \
23484 X"$mf" : 'X\(//\)$' \| \
23485 X"$mf" : 'X\(/\)' \| \
23486 . : '\(.\)' 2>/dev/null ||
23488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23490 /^X\(\/\/\)$/{ s//\1/; q; }
23491 /^X\(\/\).*/{ s//\1/; q; }
23496 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23497 # Extract the definition of DEP_FILES from the Makefile without
23499 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23500 test -z "$DEPDIR" && continue
23501 # When using ansi2knr, U may be empty or an underscore; expand it
23502 U=`sed -n 's/^U = //p' < "$mf"`
23503 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23504 # We invoke sed twice because it is the simplest approach to
23505 # changing $(DEPDIR) to its actual value in the expansion.
23506 for file in `sed -n '
23507 /^DEP_FILES = .*\\\\$/ {
23516 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23517 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23518 # Make sure the directory exists.
23519 test -f "$dirpart/$file" && continue
23520 fdir=`(dirname "$file") 2>/dev/null ||
23521 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23522 X"$file" : 'X\(//\)[^/]' \| \
23523 X"$file" : 'X\(//\)$' \| \
23524 X"$file" : 'X\(/\)' \| \
23525 . : '\(.\)' 2>/dev/null ||
23527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23529 /^X\(\/\/\)$/{ s//\1/; q; }
23530 /^X\(\/\).*/{ s//\1/; q; }
23532 { if $as_mkdir_p; then
23533 mkdir -p $dirpart/$fdir
23535 as_dir=$dirpart/$fdir
23537 while test ! -d "$as_dir"; do
23538 as_dirs="$as_dir $as_dirs"
23539 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23540 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23541 X"$as_dir" : 'X\(//\)[^/]' \| \
23542 X"$as_dir" : 'X\(//\)$' \| \
23543 X"$as_dir" : 'X\(/\)' \| \
23544 . : '\(.\)' 2>/dev/null ||
23546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23547 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23548 /^X\(\/\/\)$/{ s//\1/; q; }
23549 /^X\(\/\).*/{ s//\1/; q; }
23552 test ! -n "$as_dirs" || mkdir $as_dirs
23553 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23554 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23555 { (exit 1); exit 1; }; }; }
23557 # echo "creating $dirpart/$file"
23558 echo '# dummy' > "$dirpart/$file"
23566 cat >>$CONFIG_STATUS <<\_ACEOF
23568 { (exit 0); exit 0; }
23570 chmod +x $CONFIG_STATUS
23571 ac_clean_files=$ac_clean_files_save
23574 # configure is writing to config.log, and then calls config.status.
23575 # config.status does its own redirection, appending to config.log.
23576 # Unfortunately, on DOS this fails, as config.log is still kept open
23577 # by configure, so config.status won't be able to write to it; its
23578 # output is simply discarded. So we exec the FD to /dev/null,
23579 # effectively closing config.log, so it can be properly (re)opened and
23580 # appended to by config.status. When coming back to configure, we
23581 # need to make the FD available again.
23582 if test "$no_create" != yes; then
23584 ac_config_status_args=
23585 test "$silent" = yes &&
23586 ac_config_status_args="$ac_config_status_args --quiet"
23588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23591 # would make configure fail if this is the last instruction.
23592 $ac_cs_success || { (exit 1); exit 1; }