[svn r57] Fixed problem with the audio frame timestamps.
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 LIB@&t@OBJS 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
1052 --with-tags@<:@=TAGS@:>@
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
1189 @%:@@%:@ --------- @%:@@%:@
1190 @%:@@%:@ Platform. @%:@@%:@
1191 @%:@@%:@ --------- @%:@@%:@
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"
1225 @%:@@%:@ ----------- @%:@@%:@
1226 @%:@@%:@ Core tests. @%:@@%:@
1227 @%:@@%:@ ----------- @%:@@%:@
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
1331 @%:@@%:@ ------------- @%:@@%:@
1332 @%:@@%:@ Output files. @%:@@%:@
1333 @%:@@%:@ ------------- @%:@@%:@
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
1346 @%:@@%:@ ----------- @%:@@%:@
1347 @%:@@%:@ confdefs.h. @%:@@%:@
1348 @%:@@%:@ ----------- @%:@@%:@
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
3030 @%:@ifndef __cplusplus
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. */
3070 @%:@include <stdlib.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 __oline__ "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. */
4797 @%:@include <stdlib.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:__oline__:" \
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 ## There is no encapsulation within the following macros, do not change
6404 ## the running order or otherwise move them around unless you know exactly
6405 ## what you are doing...
6407 lt_prog_compiler_no_builtin_flag=
6409 if test "$GCC" = yes; then
6410 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6413 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6414 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6415 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 lt_cv_prog_compiler_rtti_exceptions=no
6419 ac_outfile=conftest.$ac_objext
6420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6421 lt_compiler_flag="-fno-rtti -fno-exceptions"
6422 # Insert the option either (1) after the last *FLAGS variable, or
6423 # (2) before a word containing "conftest.", or (3) at the end.
6424 # Note that $ac_compile itself does not contain backslashes and begins
6425 # with a dollar sign (not a hyphen), so the echo should work correctly.
6426 # The option is referenced via a variable to avoid confusing sed.
6427 lt_compile=`echo "$ac_compile" | $SED \
6428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6430 -e 's:$: $lt_compiler_flag:'`
6431 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6432 (eval "$lt_compile" 2>conftest.err)
6434 cat conftest.err >&5
6435 echo "$as_me:__oline__: \$? = $ac_status" >&5
6436 if (exit $ac_status) && test -s "$ac_outfile"; then
6437 # The compiler can only warn and ignore the option if not recognized
6438 # So say no if there are warnings other than the usual output.
6439 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6440 $SED '/^$/d' conftest.err >conftest.er2
6441 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6442 lt_cv_prog_compiler_rtti_exceptions=yes
6448 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6449 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6451 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6452 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6459 lt_prog_compiler_wl=
6460 lt_prog_compiler_pic=
6461 lt_prog_compiler_static=
6463 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6464 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6466 if test "$GCC" = yes; then
6467 lt_prog_compiler_wl='-Wl,'
6468 lt_prog_compiler_static='-static'
6472 # All AIX code is PIC.
6473 if test "$host_cpu" = ia64; then
6474 # AIX 5 now supports IA64 processor
6475 lt_prog_compiler_static='-Bstatic'
6480 # FIXME: we need at least 68020 code to build shared libraries, but
6481 # adding the `-m68020' flag to GCC prevents building anything better,
6483 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6486 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6487 # PIC is the default for these OSes.
6490 mingw* | pw32* | os2*)
6491 # This hack is so that the source file can tell whether it is being
6492 # built for inclusion in a dll (and should export symbols for example).
6493 lt_prog_compiler_pic='-DDLL_EXPORT'
6496 darwin* | rhapsody*)
6497 # PIC is the default on this platform
6498 # Common symbols not allowed in MH_DYLIB files
6499 lt_prog_compiler_pic='-fno-common'
6503 # Just because we use GCC doesn't mean we suddenly get shared libraries
6504 # on systems that don't support them.
6505 lt_prog_compiler_can_build_shared=no
6510 if test -d /usr/nec; then
6511 lt_prog_compiler_pic=-Kconform_pic
6516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6523 lt_prog_compiler_pic='-fPIC'
6529 lt_prog_compiler_pic='-fPIC'
6533 # PORTME Check for flag to pass linker flags through the system compiler.
6536 lt_prog_compiler_wl='-Wl,'
6537 if test "$host_cpu" = ia64; then
6538 # AIX 5 now supports IA64 processor
6539 lt_prog_compiler_static='-Bstatic'
6541 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6545 # PIC is the default on this platform
6546 # Common symbols not allowed in MH_DYLIB files
6547 case $cc_basename in
6549 lt_prog_compiler_pic='-qnocommon'
6550 lt_prog_compiler_wl='-Wl,'
6555 mingw* | pw32* | os2*)
6556 # This hack is so that the source file can tell whether it is being
6557 # built for inclusion in a dll (and should export symbols for example).
6558 lt_prog_compiler_pic='-DDLL_EXPORT'
6561 hpux9* | hpux10* | hpux11*)
6562 lt_prog_compiler_wl='-Wl,'
6563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6570 lt_prog_compiler_pic='+Z'
6573 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6574 lt_prog_compiler_static='${wl}-a ${wl}archive'
6577 irix5* | irix6* | nonstopux*)
6578 lt_prog_compiler_wl='-Wl,'
6579 # PIC (with -KPIC) is the default.
6580 lt_prog_compiler_static='-non_shared'
6584 lt_prog_compiler_pic='-KPIC'
6585 lt_prog_compiler_static='-Bstatic'
6589 case $cc_basename in
6591 lt_prog_compiler_wl='-Wl,'
6592 lt_prog_compiler_pic='-KPIC'
6593 lt_prog_compiler_static='-static'
6595 pgcc* | pgf77* | pgf90* | pgf95*)
6596 # Portland Group compilers (*not* the Pentium gcc compiler,
6597 # which looks to be a dead project)
6598 lt_prog_compiler_wl='-Wl,'
6599 lt_prog_compiler_pic='-fpic'
6600 lt_prog_compiler_static='-Bstatic'
6603 lt_prog_compiler_wl='-Wl,'
6604 # All Alpha code is PIC.
6605 lt_prog_compiler_static='-non_shared'
6610 osf3* | osf4* | osf5*)
6611 lt_prog_compiler_wl='-Wl,'
6612 # All OSF/1 code is PIC.
6613 lt_prog_compiler_static='-non_shared'
6617 lt_prog_compiler_pic='-Kpic'
6618 lt_prog_compiler_static='-dn'
6622 lt_prog_compiler_pic='-KPIC'
6623 lt_prog_compiler_static='-Bstatic'
6624 case $cc_basename in
6626 lt_prog_compiler_wl='-Qoption ld ';;
6628 lt_prog_compiler_wl='-Wl,';;
6633 lt_prog_compiler_wl='-Qoption ld '
6634 lt_prog_compiler_pic='-PIC'
6635 lt_prog_compiler_static='-Bstatic'
6638 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6639 lt_prog_compiler_wl='-Wl,'
6640 lt_prog_compiler_pic='-KPIC'
6641 lt_prog_compiler_static='-Bstatic'
6645 if test -d /usr/nec ;then
6646 lt_prog_compiler_pic='-Kconform_pic'
6647 lt_prog_compiler_static='-Bstatic'
6652 lt_prog_compiler_wl='-Wl,'
6653 lt_prog_compiler_can_build_shared=no
6657 lt_prog_compiler_pic='-pic'
6658 lt_prog_compiler_static='-Bstatic'
6662 lt_prog_compiler_can_build_shared=no
6667 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6668 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6671 # Check to make sure the PIC flag actually works.
6673 if test -n "$lt_prog_compiler_pic"; then
6675 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6677 if test "${lt_prog_compiler_pic_works+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 lt_prog_compiler_pic_works=no
6681 ac_outfile=conftest.$ac_objext
6682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6683 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6684 # Insert the option either (1) after the last *FLAGS variable, or
6685 # (2) before a word containing "conftest.", or (3) at the end.
6686 # Note that $ac_compile itself does not contain backslashes and begins
6687 # with a dollar sign (not a hyphen), so the echo should work correctly.
6688 # The option is referenced via a variable to avoid confusing sed.
6689 lt_compile=`echo "$ac_compile" | $SED \
6690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6692 -e 's:$: $lt_compiler_flag:'`
6693 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6694 (eval "$lt_compile" 2>conftest.err)
6696 cat conftest.err >&5
6697 echo "$as_me:__oline__: \$? = $ac_status" >&5
6698 if (exit $ac_status) && test -s "$ac_outfile"; then
6699 # The compiler can only warn and ignore the option if not recognized
6700 # So say no if there are warnings other than the usual output.
6701 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6702 $SED '/^$/d' conftest.err >conftest.er2
6703 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6704 lt_prog_compiler_pic_works=yes
6710 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6711 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6713 if test x"$lt_prog_compiler_pic_works" = xyes; then
6714 case $lt_prog_compiler_pic in
6716 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6719 lt_prog_compiler_pic=
6720 lt_prog_compiler_can_build_shared=no
6725 # For platforms which do not support PIC, -DPIC is meaningless:
6727 lt_prog_compiler_pic=
6730 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6734 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6735 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6736 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 lt_cv_prog_compiler_c_o=no
6740 $rm -r conftest 2>/dev/null
6744 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6746 lt_compiler_flag="-o out/conftest2.$ac_objext"
6747 # Insert the option either (1) after the last *FLAGS variable, or
6748 # (2) before a word containing "conftest.", or (3) at the end.
6749 # Note that $ac_compile itself does not contain backslashes and begins
6750 # with a dollar sign (not a hyphen), so the echo should work correctly.
6751 lt_compile=`echo "$ac_compile" | $SED \
6752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6754 -e 's:$: $lt_compiler_flag:'`
6755 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6756 (eval "$lt_compile" 2>out/conftest.err)
6758 cat out/conftest.err >&5
6759 echo "$as_me:__oline__: \$? = $ac_status" >&5
6760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6762 # The compiler can only warn and ignore the option if not recognized
6763 # So say no if there are warnings
6764 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6765 $SED '/^$/d' out/conftest.err >out/conftest.er2
6766 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6767 lt_cv_prog_compiler_c_o=yes
6772 # SGI C++ compiler will create directory out/ii_files/ for
6773 # template instantiation
6774 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6775 $rm out/* && rmdir out
6781 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6782 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6785 hard_links="nottested"
6786 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6787 # do not overwrite the value of need_locks provided by the user
6788 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6789 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6794 ln conftest.a conftest.b 2>&5 || hard_links=no
6795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6796 echo "$as_me:$LINENO: result: $hard_links" >&5
6797 echo "${ECHO_T}$hard_links" >&6
6798 if test "$hard_links" = no; then
6799 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6800 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6807 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6808 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6811 allow_undefined_flag=
6812 enable_shared_with_static_runtimes=no
6814 archive_expsym_cmds=
6815 old_archive_From_new_cmds=
6816 old_archive_from_expsyms_cmds=
6817 export_dynamic_flag_spec=
6818 whole_archive_flag_spec=
6819 thread_safe_flag_spec=
6820 hardcode_libdir_flag_spec=
6821 hardcode_libdir_flag_spec_ld=
6822 hardcode_libdir_separator=
6825 hardcode_shlibpath_var=unsupported
6826 link_all_deplibs=unknown
6827 hardcode_automatic=no
6830 always_export_symbols=no
6831 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6832 # include_expsyms should be a list of space-separated symbols to be *always*
6833 # included in the symbol list
6835 # exclude_expsyms can be an extended regexp of symbols to exclude
6836 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6837 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6838 # as well as any symbol that contains `d'.
6839 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6840 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6841 # platforms (ab)use it in PIC code, but their linkers get confused if
6842 # the symbol is explicitly referenced. Since portable code cannot
6843 # rely on this symbol name, it's probably fine to never include it in
6844 # preloaded symbol tables.
6845 extract_expsyms_cmds=
6846 # Just being paranoid about ensuring that cc_basename is set.
6847 for cc_temp in $compiler""; do
6849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6855 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6858 cygwin* | mingw* | pw32*)
6859 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6860 # When not using gcc, we currently assume that we are using
6861 # Microsoft Visual C++.
6862 if test "$GCC" != yes; then
6872 if test "$with_gnu_ld" = yes; then
6873 # If archive_cmds runs LD, not CC, wlarc should be empty
6876 # Set some defaults for GNU ld with shared library support. These
6877 # are reset later if shared libraries are not supported. Putting them
6878 # here allows them to be overridden if necessary.
6879 runpath_var=LD_RUN_PATH
6880 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6881 export_dynamic_flag_spec='${wl}--export-dynamic'
6882 # ancient GNU ld didn't support --whole-archive et. al.
6883 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6884 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6886 whole_archive_flag_spec=
6888 supports_anon_versioning=no
6889 case `$LD -v 2>/dev/null` in
6890 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6891 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6892 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6893 *\ 2.11.*) ;; # other 2.11 versions
6894 *) supports_anon_versioning=yes ;;
6897 # See if GNU ld supports shared libraries.
6899 aix3* | aix4* | aix5*)
6900 # On AIX/PPC, the GNU linker is very broken
6901 if test "$host_cpu" != ia64; then
6905 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6906 *** to be unable to reliably create shared libraries on AIX.
6907 *** Therefore, libtool is disabling shared libraries support. If you
6908 *** really care for shared libraries, you may want to modify your PATH
6909 *** so that a non-GNU linker is found, and then restart.
6916 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)'
6917 hardcode_libdir_flag_spec='-L$libdir'
6918 hardcode_minus_L=yes
6920 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6921 # that the semantics of dynamic libraries on AmigaOS, at least up
6922 # to version 4, is to share data among multiple programs linked
6923 # with the same dynamic library. Since this doesn't match the
6924 # behavior of shared libraries on other platforms, we can't use
6930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6931 allow_undefined_flag=unsupported
6932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6933 # support --undefined. This deserves some investigation. FIXME
6934 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6940 cygwin* | mingw* | pw32*)
6941 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6942 # as there is no search path for DLLs.
6943 hardcode_libdir_flag_spec='-L$libdir'
6944 allow_undefined_flag=unsupported
6945 always_export_symbols=no
6946 enable_shared_with_static_runtimes=yes
6947 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6949 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6951 # If the export-symbols file already is a .def file (1st line
6952 # is EXPORTS), use it as is; otherwise, prepend...
6953 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6954 cp $export_symbols $output_objdir/$soname.def;
6956 echo EXPORTS > $output_objdir/$soname.def;
6957 cat $export_symbols >> $output_objdir/$soname.def;
6959 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6966 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6968 case $cc_basename,$host_cpu in
6969 pgcc*) # Portland Group C compiler
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'
6973 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6974 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'
6975 tmp_addflag=' $pic_flag -Mnomain' ;;
6976 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6977 tmp_addflag=' -i_dynamic' ;;
6978 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6979 tmp_addflag=' -i_dynamic -nofor_main' ;;
6980 ifc* | ifort*) # Intel Fortran compiler
6981 tmp_addflag=' -nofor_main' ;;
6983 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6985 if test $supports_anon_versioning = yes; then
6986 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6988 $echo "local: *; };" >> $output_objdir/$libname.ver~
6989 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6998 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7007 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7011 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7012 *** create shared libraries on Solaris systems. Therefore, libtool
7013 *** is disabling shared libraries support. We urge you to upgrade GNU
7014 *** binutils to release 2.9.1 or newer. Another option is to modify
7015 *** your PATH or compiler configuration so that the native linker is
7016 *** used, and then restart.
7019 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7028 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7031 hardcode_shlibpath_var=no
7035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7037 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7044 if test "$ld_shlibs" = no; then
7046 hardcode_libdir_flag_spec=
7047 export_dynamic_flag_spec=
7048 whole_archive_flag_spec=
7051 # PORTME fill in a description of your system's linker (not GNU ld)
7054 allow_undefined_flag=unsupported
7055 always_export_symbols=yes
7056 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'
7057 # Note: this linker hardcodes the directories in LIBPATH if there
7058 # are no directories specified by -L.
7059 hardcode_minus_L=yes
7060 if test "$GCC" = yes && test -z "$link_static_flag"; then
7061 # Neither direct hardcoding nor static linking is supported with a
7063 hardcode_direct=unsupported
7068 if test "$host_cpu" = ia64; then
7069 # On IA64, the linker does run time linking by default, so we don't
7070 # have to do anything special.
7071 aix_use_runtimelinking=no
7072 exp_sym_flag='-Bexport'
7075 # If we're using GNU nm, then we don't want the "-C" option.
7076 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7077 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7078 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'
7080 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'
7082 aix_use_runtimelinking=no
7084 # Test if we are trying to use run time linking or normal
7085 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7086 # need to do runtime linking.
7087 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7088 for ld_flag in $LDFLAGS; do
7089 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7090 aix_use_runtimelinking=yes
7096 exp_sym_flag='-bexport'
7097 no_entry_flag='-bnoentry'
7100 # When large executables or shared objects are built, AIX ld can
7101 # have problems creating the table of contents. If linking a library
7102 # or program results in "error TOC overflow" add -mminimal-toc to
7103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7108 hardcode_libdir_separator=':'
7109 link_all_deplibs=yes
7111 if test "$GCC" = yes; then
7112 case $host_os in aix4.[012]|aix4.[012].*)
7113 # We only want to do this on AIX 4.2 and lower, the check
7114 # below for broken collect2 doesn't work under 4.3+
7115 collect2name=`${CC} -print-prog-name=collect2`
7116 if test -f "$collect2name" && \
7117 strings "$collect2name" | grep resolve_lib_name >/dev/null
7119 # We have reworked collect2
7122 # We have old collect2
7123 hardcode_direct=unsupported
7124 # It fails to find uninstalled libraries when the uninstalled
7125 # path is not listed in the libpath. Setting hardcode_minus_L
7126 # to unsupported forces relinking
7127 hardcode_minus_L=yes
7128 hardcode_libdir_flag_spec='-L$libdir'
7129 hardcode_libdir_separator=
7132 shared_flag='-shared'
7133 if test "$aix_use_runtimelinking" = yes; then
7134 shared_flag="$shared_flag "'${wl}-G'
7138 if test "$host_cpu" = ia64; then
7139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7140 # chokes on -Wl,-G. The following line is correct:
7143 if test "$aix_use_runtimelinking" = yes; then
7144 shared_flag='${wl}-G'
7146 shared_flag='${wl}-bM:SRE'
7151 # It seems that -bexpall does not export symbols beginning with
7152 # underscore (_), so it is better to generate a list of symbols to export.
7153 always_export_symbols=yes
7154 if test "$aix_use_runtimelinking" = yes; then
7155 # Warning - without using the other runtime loading flags (-brtl),
7156 # -berok will link without error, but may produce a broken library.
7157 allow_undefined_flag='-berok'
7158 # Determine the default libpath from the value encoded in an empty executable.
7159 cat >conftest.$ac_ext <<_ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7174 rm -f conftest.$ac_objext conftest$ac_exeext
7175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7176 (eval $ac_link) 2>conftest.er1
7178 grep -v '^ *+' conftest.er1 >conftest.err
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } &&
7183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try='test -s conftest$ac_exeext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7198 # Check for a 64-bit object if we didn't find anything.
7199 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; }
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7206 rm -f conftest.err conftest.$ac_objext \
7207 conftest$ac_exeext conftest.$ac_ext
7208 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7211 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"
7213 if test "$host_cpu" = ia64; then
7214 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7215 allow_undefined_flag="-z nodefs"
7216 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"
7218 # Determine the default libpath from the value encoded in an empty executable.
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7234 rm -f conftest.$ac_objext conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236 (eval $ac_link) 2>conftest.er1
7238 grep -v '^ *+' conftest.er1 >conftest.err
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; } &&
7249 { ac_try='test -s conftest$ac_exeext'
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; }; then
7256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7258 # Check for a 64-bit object if we didn't find anything.
7259 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; }
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7266 rm -f conftest.err conftest.$ac_objext \
7267 conftest$ac_exeext conftest.$ac_ext
7268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7270 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7271 # Warning - without using the other run time loading flags,
7272 # -berok will link without error, but may produce a broken library.
7273 no_undefined_flag=' ${wl}-bernotok'
7274 allow_undefined_flag=' ${wl}-berok'
7275 # -bexpall does not export symbols beginning with underscore (_)
7276 always_export_symbols=yes
7277 # Exported symbols can be pulled into shared objects from archives
7278 whole_archive_flag_spec=' '
7279 archive_cmds_need_lc=yes
7280 # This is similar to how AIX traditionally builds its shared libraries.
7281 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'
7287 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)'
7288 hardcode_libdir_flag_spec='-L$libdir'
7289 hardcode_minus_L=yes
7290 # see comment about different semantics on the GNU ld section
7295 export_dynamic_flag_spec=-rdynamic
7298 cygwin* | mingw* | pw32*)
7299 # When not using gcc, we currently assume that we are using
7300 # Microsoft Visual C++.
7301 # hardcode_libdir_flag_spec is actually meaningless, as there is
7302 # no search path for DLLs.
7303 hardcode_libdir_flag_spec=' '
7304 allow_undefined_flag=unsupported
7305 # Tell ltmain to make .lib files, not .a files.
7307 # Tell ltmain to make .dll files, not .so files.
7309 # FIXME: Setting linknames here is a bad hack.
7310 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7311 # The linker will automatically build a .lib file if we build a DLL.
7312 old_archive_From_new_cmds='true'
7313 # FIXME: Should let the user specify the lib program.
7314 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7315 fix_srcfile_path='`cygpath -w "$srcfile"`'
7316 enable_shared_with_static_runtimes=yes
7319 darwin* | rhapsody*)
7321 rhapsody* | darwin1.[012])
7322 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7325 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7326 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7328 case ${MACOSX_DEPLOYMENT_TARGET} in
7330 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7333 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7339 archive_cmds_need_lc=no
7341 hardcode_automatic=yes
7342 hardcode_shlibpath_var=unsupported
7343 whole_archive_flag_spec=''
7344 link_all_deplibs=yes
7345 if test "$GCC" = yes ; then
7346 output_verbose_link_cmd='echo'
7347 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7348 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7349 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7350 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}'
7351 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}'
7353 case $cc_basename in
7355 output_verbose_link_cmd='echo'
7356 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7357 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7358 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7359 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}'
7360 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}'
7370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7371 hardcode_libdir_flag_spec='-L$libdir'
7372 hardcode_shlibpath_var=no
7379 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7380 # support. Future versions do this automatically, but an explicit c++rt0.o
7381 # does not break anything, and helps significantly (at the cost of a little
7384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7385 hardcode_libdir_flag_spec='-R$libdir'
7387 hardcode_shlibpath_var=no
7390 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7394 hardcode_minus_L=yes
7395 hardcode_shlibpath_var=no
7398 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7399 freebsd* | kfreebsd*-gnu | dragonfly*)
7400 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7401 hardcode_libdir_flag_spec='-R$libdir'
7403 hardcode_shlibpath_var=no
7407 if test "$GCC" = yes; then
7408 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'
7410 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'
7412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7413 hardcode_libdir_separator=:
7416 # hardcode_minus_L: Not really in the search PATH,
7417 # but as the default location of the library.
7418 hardcode_minus_L=yes
7419 export_dynamic_flag_spec='${wl}-E'
7423 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7426 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7429 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7435 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7438 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7442 if test "$with_gnu_ld" = no; then
7445 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7446 hardcode_libdir_flag_spec_ld='+b $libdir'
7447 hardcode_libdir_separator=:
7449 hardcode_shlibpath_var=no
7452 hardcode_libdir_flag_spec='-L$libdir'
7454 hardcode_shlibpath_var=no
7456 # hardcode_minus_L: Not really in the search PATH,
7457 # but as the default location of the library.
7458 hardcode_minus_L=yes
7461 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7462 hardcode_libdir_separator=:
7464 export_dynamic_flag_spec='${wl}-E'
7466 # hardcode_minus_L: Not really in the search PATH,
7467 # but as the default location of the library.
7468 hardcode_minus_L=yes
7474 irix5* | irix6* | nonstopux*)
7475 if test "$GCC" = yes; then
7476 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'
7478 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'
7479 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7482 hardcode_libdir_separator=:
7483 link_all_deplibs=yes
7487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7490 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7492 hardcode_libdir_flag_spec='-R$libdir'
7494 hardcode_shlibpath_var=no
7498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7501 hardcode_libdir_separator=:
7502 hardcode_shlibpath_var=no
7507 hardcode_shlibpath_var=no
7508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7509 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7510 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7512 export_dynamic_flag_spec='${wl}-E'
7515 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7517 hardcode_libdir_flag_spec='-R$libdir'
7520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7528 hardcode_libdir_flag_spec='-L$libdir'
7529 hardcode_minus_L=yes
7530 allow_undefined_flag=unsupported
7531 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'
7532 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7536 if test "$GCC" = yes; then
7537 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7538 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'
7540 allow_undefined_flag=' -expect_unresolved \*'
7541 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'
7543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7544 hardcode_libdir_separator=:
7547 osf4* | osf5*) # as osf3* with the addition of -msym flag
7548 if test "$GCC" = yes; then
7549 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7550 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'
7551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7553 allow_undefined_flag=' -expect_unresolved \*'
7554 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'
7555 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7556 $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'
7558 # Both c and cxx compiler support -rpath directly
7559 hardcode_libdir_flag_spec='-rpath $libdir'
7561 hardcode_libdir_separator=:
7565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7566 hardcode_shlibpath_var=no
7567 export_dynamic_flag_spec='${wl}-Bexport'
7568 runpath_var=LD_RUN_PATH
7569 hardcode_runpath_var=yes
7573 no_undefined_flag=' -z text'
7574 if test "$GCC" = yes; then
7576 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7577 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7578 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7581 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7582 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7585 hardcode_libdir_flag_spec='-R$libdir'
7586 hardcode_shlibpath_var=no
7588 solaris2.[0-5] | solaris2.[0-5].*) ;;
7590 # The compiler driver will combine linker options so we
7591 # cannot just pass the convience library names through
7592 # without $wl, iff we do not link with $LD.
7593 # Luckily, gcc supports the same syntax we need for Sun Studio.
7594 # Supported since Solaris 2.6 (maybe 2.5.1?)
7597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7599 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' ;;
7602 link_all_deplibs=yes
7606 if test "x$host_vendor" = xsequent; then
7607 # Use $CC to link under sequent, because it throws in some extra .o
7608 # files that make .init and .fini sections work.
7609 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7611 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7613 hardcode_libdir_flag_spec='-L$libdir'
7615 hardcode_minus_L=yes
7616 hardcode_shlibpath_var=no
7620 case $host_vendor in
7622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7623 hardcode_direct=yes # is this really true???
7626 ## LD is ld it makes a PLAMLIB
7627 ## CC just makes a GrossModule.
7628 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7629 reload_cmds='$CC -r -o $output$reload_objs'
7633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7634 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7637 runpath_var='LD_RUN_PATH'
7638 hardcode_shlibpath_var=no
7642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7643 hardcode_shlibpath_var=no
7644 export_dynamic_flag_spec='-Bexport'
7648 if test -d /usr/nec; then
7649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7650 hardcode_shlibpath_var=no
7651 runpath_var=LD_RUN_PATH
7652 hardcode_runpath_var=yes
7658 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7661 hardcode_shlibpath_var=no
7662 hardcode_runpath_var=yes
7663 runpath_var=LD_RUN_PATH
7666 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7667 no_undefined_flag='${wl}-z ${wl}text'
7668 if test "$GCC" = yes; then
7669 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7671 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7673 runpath_var='LD_RUN_PATH'
7674 hardcode_shlibpath_var=no
7678 no_undefined_flag=' -z text'
7679 # $CC -shared without GNU ld will not create a library from C++
7680 # object files and a static libstdc++, better avoid it by now
7681 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7682 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7683 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7684 hardcode_libdir_flag_spec=
7685 hardcode_shlibpath_var=no
7686 runpath_var='LD_RUN_PATH'
7690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7691 hardcode_libdir_flag_spec='-L$libdir'
7692 hardcode_shlibpath_var=no
7701 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7702 echo "${ECHO_T}$ld_shlibs" >&6
7703 test "$ld_shlibs" = no && can_build_shared=no
7705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7706 if test "$GCC" = yes; then
7707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7711 # Do we need to explicitly link libc?
7713 case "x$archive_cmds_need_lc" in
7715 # Assume -lc should be added
7716 archive_cmds_need_lc=yes
7718 if test "$enable_shared" = yes && test "$GCC" = yes; then
7719 case $archive_cmds in
7721 # FIXME: we may have to deal with multi-command sequences.
7724 # Test whether the compiler implicitly links with -lc since on some
7725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7726 # to ld, don't add -lc before -lgcc.
7727 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7733 (eval $ac_compile) 2>&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } 2>conftest.err; then
7739 libobjs=conftest.$ac_objext
7741 wl=$lt_prog_compiler_wl
7747 lt_save_allow_undefined_flag=$allow_undefined_flag
7748 allow_undefined_flag=
7749 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7750 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }
7755 archive_cmds_need_lc=no
7757 archive_cmds_need_lc=yes
7759 allow_undefined_flag=$lt_save_allow_undefined_flag
7761 cat conftest.err 1>&5
7764 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7765 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7772 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7773 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7775 libname_spec='lib$name'
7783 shlibpath_overrides_runpath=unknown
7785 dynamic_linker="$host_os ld.so"
7786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7787 if test "$GCC" = yes; then
7788 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7789 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7790 # if the path contains ";" then we assume it to be the separator
7791 # otherwise default to the standard path separator (i.e. ":") - it is
7792 # assumed that no part of a normal pathname contains ";" but that should
7793 # okay in the real world where ";" in dirpaths is itself problematic.
7794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7801 need_lib_prefix=unknown
7802 hardcode_into_libs=no
7804 # when you set need_version to no, make sure it does not cause -set_version
7805 # flags to be left without arguments
7806 need_version=unknown
7811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7812 shlibpath_var=LIBPATH
7814 # AIX 3 has no versioning support, so we append a major version to the name.
7815 soname_spec='${libname}${release}${shared_ext}$major'
7822 hardcode_into_libs=yes
7823 if test "$host_cpu" = ia64; then
7824 # AIX 5 supports IA64
7825 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7826 shlibpath_var=LD_LIBRARY_PATH
7828 # With GCC up to 2.95.x, collect2 would create an import file
7829 # for dependence libraries. The import file would start with
7830 # the line `#! .'. This would cause the generated library to
7831 # depend on `.', always an invalid library. This was fixed in
7832 # development snapshots of GCC prior to 3.0.
7834 aix4 | aix4.[01] | aix4.[01].*)
7835 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7837 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7844 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7845 # soname into executable. Probably we can add versioning support to
7846 # collect2, so additional links can be useful in future.
7847 if test "$aix_use_runtimelinking" = yes; then
7848 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7849 # instead of lib<name>.a to let people know that these are not
7850 # typical AIX shared libraries.
7851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7853 # We preserve .a as extension for shared libraries through AIX4.2
7854 # and later when we are not doing run time linking.
7855 library_names_spec='${libname}${release}.a $libname.a'
7856 soname_spec='${libname}${release}${shared_ext}$major'
7858 shlibpath_var=LIBPATH
7863 library_names_spec='$libname.ixlibrary $libname.a'
7864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7865 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'
7869 library_names_spec='${libname}${shared_ext}'
7870 dynamic_linker="$host_os ld.so"
7871 shlibpath_var=LIBRARY_PATH
7877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7878 soname_spec='${libname}${release}${shared_ext}$major'
7879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7880 shlibpath_var=LD_LIBRARY_PATH
7881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7883 # the default ld.so.conf also contains /usr/contrib/lib and
7884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7885 # libtool to hard-code these into programs
7888 cygwin* | mingw* | pw32*)
7889 version_type=windows
7894 case $GCC,$host_os in
7895 yes,cygwin* | yes,mingw* | yes,pw32*)
7896 library_names_spec='$libname.dll.a'
7897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7898 postinstall_cmds='base_file=`basename \${file}`~
7899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7900 dldir=$destdir/`dirname \$dlpath`~
7901 test -d \$dldir || mkdir -p \$dldir~
7902 $install_prog $dir/$dlname \$dldir/$dlname~
7903 chmod a+x \$dldir/$dlname'
7904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7905 dlpath=$dir/\$dldll~
7907 shlibpath_overrides_runpath=yes
7911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7913 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7916 # MinGW DLLs use traditional 'lib' prefix
7917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7918 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7919 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7920 # It is most probably a Windows format PATH printed by
7921 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7922 # path with ; separators, and with drive letters. We can handle the
7923 # drive letters (cygwin fileutils understands them), so leave them,
7924 # especially as we might pass files found there to a mingw objdump,
7925 # which wouldn't understand a cygwinified path. Ahh.
7926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7932 # pw32 DLLs use 'pw' prefix rather than 'lib'
7933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7942 dynamic_linker='Win32 ld.exe'
7943 # FIXME: first we should search . and the directory the executable is in
7947 darwin* | rhapsody*)
7948 dynamic_linker="$host_os dyld"
7952 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7953 soname_spec='${libname}${release}${major}$shared_ext'
7954 shlibpath_overrides_runpath=yes
7955 shlibpath_var=DYLD_LIBRARY_PATH
7956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7957 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7958 if test "$GCC" = yes; then
7959 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"`
7961 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7971 soname_spec='${libname}${release}${shared_ext}$major'
7972 shlibpath_var=LD_LIBRARY_PATH
7983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7984 soname_spec='${libname}${release}${shared_ext}$major'
7985 shlibpath_var=LD_LIBRARY_PATH
7986 shlibpath_overrides_runpath=no
7987 hardcode_into_libs=yes
7988 dynamic_linker='GNU ld.so'
7991 freebsd* | dragonfly*)
7992 # DragonFly does not have aout. When/if they implement a new
7993 # versioning mechanism, adjust this.
7994 if test -x /usr/bin/objformat; then
7995 objformat=`/usr/bin/objformat`
7998 freebsd[123]*) objformat=aout ;;
8002 version_type=freebsd-$objformat
8003 case $version_type in
8005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8014 shlibpath_var=LD_LIBRARY_PATH
8017 shlibpath_overrides_runpath=yes
8019 freebsd3.[01]* | freebsdelf3.[01]*)
8020 shlibpath_overrides_runpath=yes
8021 hardcode_into_libs=yes
8024 shlibpath_overrides_runpath=no
8025 hardcode_into_libs=yes
8034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8035 soname_spec='${libname}${release}${shared_ext}$major'
8036 shlibpath_var=LD_LIBRARY_PATH
8037 hardcode_into_libs=yes
8040 hpux9* | hpux10* | hpux11*)
8041 # Give a soname corresponding to the major version so that dld.sl refuses to
8042 # link against other versions.
8049 hardcode_into_libs=yes
8050 dynamic_linker="$host_os dld.so"
8051 shlibpath_var=LD_LIBRARY_PATH
8052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8054 soname_spec='${libname}${release}${shared_ext}$major'
8055 if test "X$HPUX_IA64_MODE" = X32; then
8056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8064 hardcode_into_libs=yes
8065 dynamic_linker="$host_os dld.sl"
8066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069 soname_spec='${libname}${release}${shared_ext}$major'
8070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8075 dynamic_linker="$host_os dld.sl"
8076 shlibpath_var=SHLIB_PATH
8077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8079 soname_spec='${libname}${release}${shared_ext}$major'
8082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8083 postinstall_cmds='chmod 555 $lib'
8086 irix5* | irix6* | nonstopux*)
8088 nonstopux*) version_type=nonstopux ;;
8090 if test "$lt_cv_prog_gnu_ld" = yes; then
8098 soname_spec='${libname}${release}${shared_ext}$major'
8099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8101 irix5* | nonstopux*)
8105 case $LD in # libtool.m4 will add one of these switches to LD
8106 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8107 libsuff= shlibsuff= libmagic=32-bit;;
8108 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8109 libsuff=32 shlibsuff=N32 libmagic=N32;;
8110 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8111 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8112 *) libsuff= shlibsuff= libmagic=never-match;;
8116 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8117 shlibpath_overrides_runpath=no
8118 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8119 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8120 hardcode_into_libs=yes
8123 # No shared lib support for Linux oldld, aout, or coff.
8124 linux*oldld* | linux*aout* | linux*coff*)
8128 # This must be Linux ELF.
8133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8134 soname_spec='${libname}${release}${shared_ext}$major'
8135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8136 shlibpath_var=LD_LIBRARY_PATH
8137 shlibpath_overrides_runpath=no
8138 # This implies no fast_install, which is unacceptable.
8139 # Some rework will be needed to allow for fast_install
8140 # before this can be enabled.
8141 hardcode_into_libs=yes
8143 # Append ld.so.conf contents to the search path
8144 if test -f /etc/ld.so.conf; then
8145 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' ' '`
8146 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8149 # We used to test for /lib/ld.so.1 and disable shared libraries on
8150 # powerpc, because MkLinux only supported shared libraries with the
8151 # GNU dynamic linker. Since this was broken with cross compilers,
8152 # most powerpc-linux boxes support dynamic linking these days and
8153 # people can always --disable-shared, the test was removed, and we
8154 # assume the GNU/Linux dynamic linker is in use.
8155 dynamic_linker='GNU/Linux ld.so'
8162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8163 soname_spec='${libname}${release}${shared_ext}$major'
8164 shlibpath_var=LD_LIBRARY_PATH
8165 shlibpath_overrides_runpath=no
8166 hardcode_into_libs=yes
8167 dynamic_linker='GNU ld.so'
8174 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8177 dynamic_linker='NetBSD (a.out) ld.so'
8179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8180 soname_spec='${libname}${release}${shared_ext}$major'
8181 dynamic_linker='NetBSD ld.elf_so'
8183 shlibpath_var=LD_LIBRARY_PATH
8184 shlibpath_overrides_runpath=yes
8185 hardcode_into_libs=yes
8190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8191 shlibpath_var=LD_LIBRARY_PATH
8192 shlibpath_overrides_runpath=yes
8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8200 soname_spec='${libname}${release}${shared_ext}$major'
8201 shlibpath_var=LD_LIBRARY_PATH
8202 shlibpath_overrides_runpath=yes
8208 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8210 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8211 *) need_version=no ;;
8213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8215 shlibpath_var=LD_LIBRARY_PATH
8216 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8218 openbsd2.[89] | openbsd2.[89].*)
8219 shlibpath_overrides_runpath=no
8222 shlibpath_overrides_runpath=yes
8226 shlibpath_overrides_runpath=yes
8231 libname_spec='$name'
8234 library_names_spec='$libname${shared_ext} $libname.a'
8235 dynamic_linker='OS/2 ld.exe'
8236 shlibpath_var=LIBPATH
8239 osf3* | osf4* | osf5*)
8243 soname_spec='${libname}${release}${shared_ext}$major'
8244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8245 shlibpath_var=LD_LIBRARY_PATH
8246 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8247 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8252 soname_spec='${libname}${release}${shared_ext}$major'
8253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8254 shlibpath_var=LD_LIBRARY_PATH
8261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8262 soname_spec='${libname}${release}${shared_ext}$major'
8263 shlibpath_var=LD_LIBRARY_PATH
8264 shlibpath_overrides_runpath=yes
8265 hardcode_into_libs=yes
8266 # ldd complains unless libraries are executable
8267 postinstall_cmds='chmod +x $lib'
8272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8273 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8274 shlibpath_var=LD_LIBRARY_PATH
8275 shlibpath_overrides_runpath=yes
8276 if test "$with_gnu_ld" = yes; then
8282 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 shlibpath_var=LD_LIBRARY_PATH
8287 case $host_vendor in
8289 shlibpath_overrides_runpath=no
8291 export_dynamic_flag_spec='${wl}-Blargedynsym'
8292 runpath_var=LD_RUN_PATH
8300 shlibpath_overrides_runpath=no
8301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8307 if test -d /usr/nec ;then
8309 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8310 soname_spec='$libname${shared_ext}.$major'
8311 shlibpath_var=LD_LIBRARY_PATH
8317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8318 soname_spec='${libname}${release}${shared_ext}$major'
8319 shlibpath_var=LD_LIBRARY_PATH
8326 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8327 echo "${ECHO_T}$dynamic_linker" >&6
8328 test "$dynamic_linker" = no && can_build_shared=no
8330 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8331 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8333 if test -n "$hardcode_libdir_flag_spec" || \
8334 test -n "$runpath_var" || \
8335 test "X$hardcode_automatic" = "Xyes" ; then
8337 # We can hardcode non-existant directories.
8338 if test "$hardcode_direct" != no &&
8339 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8340 # have to relink, otherwise we might link with an installed library
8341 # when we should be linking with a yet-to-be-installed one
8342 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8343 test "$hardcode_minus_L" != no; then
8344 # Linking always hardcodes the temporary library directory.
8345 hardcode_action=relink
8347 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8348 hardcode_action=immediate
8351 # We cannot hardcode anything, or else we can only hardcode existing
8353 hardcode_action=unsupported
8355 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8356 echo "${ECHO_T}$hardcode_action" >&6
8358 if test "$hardcode_action" = relink; then
8359 # Fast installation is not supported
8360 enable_fast_install=no
8361 elif test "$shlibpath_overrides_runpath" = yes ||
8362 test "$enable_shared" = no; then
8363 # Fast installation is not necessary
8364 enable_fast_install=needless
8369 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8370 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8371 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8372 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8373 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8374 echo "$as_me:$LINENO: result: yes" >&5
8375 echo "${ECHO_T}yes" >&6
8377 # FIXME - insert some real tests, host_os isn't really good enough
8380 if test -n "$STRIP" ; then
8381 striplib="$STRIP -x"
8382 echo "$as_me:$LINENO: result: yes" >&5
8383 echo "${ECHO_T}yes" >&6
8385 echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6
8390 echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6
8396 if test "x$enable_dlopen" != xyes; then
8397 enable_dlopen=unknown
8398 enable_dlopen_self=unknown
8399 enable_dlopen_self_static=unknown
8406 lt_cv_dlopen="load_add_on"
8408 lt_cv_dlopen_self=yes
8412 lt_cv_dlopen="LoadLibrary"
8417 lt_cv_dlopen="dlopen"
8422 # if libdl is installed we need to link against it
8423 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8424 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8425 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 ac_check_lib_save_LIBS=$LIBS
8430 cat >conftest.$ac_ext <<_ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8437 /* Override any gcc2 internal prototype to avoid an error. */
8441 /* We use char because int might match the return type of a gcc2
8442 builtin and then its argument prototype would still apply. */
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454 (eval $ac_link) 2>conftest.er1
8456 grep -v '^ *+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 ac_cv_lib_dl_dlopen=yes
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_cv_lib_dl_dlopen=no
8480 rm -f conftest.err conftest.$ac_objext \
8481 conftest$ac_exeext conftest.$ac_ext
8482 LIBS=$ac_check_lib_save_LIBS
8484 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8485 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8486 if test $ac_cv_lib_dl_dlopen = yes; then
8487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8492 lt_cv_dlopen_self=yes
8499 echo "$as_me:$LINENO: checking for shl_load" >&5
8500 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8501 if test "${ac_cv_func_shl_load+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 cat >conftest.$ac_ext <<_ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8512 #define shl_load innocuous_shl_load
8514 /* System header to define __stub macros and hopefully few prototypes,
8515 which can conflict with char shl_load (); below.
8516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8517 <limits.h> exists even on freestanding compilers. */
8520 # include <limits.h>
8522 # include <assert.h>
8527 /* Override any gcc2 internal prototype to avoid an error. */
8532 /* We use char because int might match the return type of a gcc2
8533 builtin and then its argument prototype would still apply. */
8535 /* The GNU C library defines this for functions which it implements
8536 to always fail with ENOSYS. Some functions are actually named
8537 something starting with __ and the normal name is an alias. */
8538 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8541 char (*f) () = shl_load;
8550 return f != shl_load;
8555 rm -f conftest.$ac_objext conftest$ac_exeext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8557 (eval $ac_link) 2>conftest.er1
8559 grep -v '^ *+' conftest.er1 >conftest.err
8561 cat conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } &&
8564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; } &&
8570 { ac_try='test -s conftest$ac_exeext'
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; }; then
8576 ac_cv_func_shl_load=yes
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 ac_cv_func_shl_load=no
8583 rm -f conftest.err conftest.$ac_objext \
8584 conftest$ac_exeext conftest.$ac_ext
8586 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8587 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8588 if test $ac_cv_func_shl_load = yes; then
8589 lt_cv_dlopen="shl_load"
8591 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8592 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8593 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 ac_check_lib_save_LIBS=$LIBS
8598 cat >conftest.$ac_ext <<_ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8605 /* Override any gcc2 internal prototype to avoid an error. */
8609 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8620 rm -f conftest.$ac_objext conftest$ac_exeext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8622 (eval $ac_link) 2>conftest.er1
8624 grep -v '^ *+' conftest.er1 >conftest.err
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_lib_dld_shl_load=yes
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_lib_dld_shl_load=no
8648 rm -f conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8652 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8653 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8654 if test $ac_cv_lib_dld_shl_load = yes; then
8655 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8657 echo "$as_me:$LINENO: checking for dlopen" >&5
8658 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8659 if test "${ac_cv_func_dlopen+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 cat >conftest.$ac_ext <<_ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8670 #define dlopen innocuous_dlopen
8672 /* System header to define __stub macros and hopefully few prototypes,
8673 which can conflict with char dlopen (); below.
8674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8675 <limits.h> exists even on freestanding compilers. */
8678 # include <limits.h>
8680 # include <assert.h>
8685 /* Override any gcc2 internal prototype to avoid an error. */
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8693 /* The GNU C library defines this for functions which it implements
8694 to always fail with ENOSYS. Some functions are actually named
8695 something starting with __ and the normal name is an alias. */
8696 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8699 char (*f) () = dlopen;
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>conftest.er1
8717 grep -v '^ *+' conftest.er1 >conftest.err
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 ac_cv_func_dlopen=yes
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 ac_cv_func_dlopen=no
8741 rm -f conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8744 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8745 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8746 if test $ac_cv_func_dlopen = yes; then
8747 lt_cv_dlopen="dlopen"
8749 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8750 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8751 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 ac_check_lib_save_LIBS=$LIBS
8756 cat >conftest.$ac_ext <<_ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8763 /* Override any gcc2 internal prototype to avoid an error. */
8767 /* We use char because int might match the return type of a gcc2
8768 builtin and then its argument prototype would still apply. */
8778 rm -f conftest.$ac_objext conftest$ac_exeext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8780 (eval $ac_link) 2>conftest.er1
8782 grep -v '^ *+' conftest.er1 >conftest.err
8784 cat conftest.err >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } &&
8787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try='test -s conftest$ac_exeext'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8799 ac_cv_lib_dl_dlopen=yes
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_cv_lib_dl_dlopen=no
8806 rm -f conftest.err conftest.$ac_objext \
8807 conftest$ac_exeext conftest.$ac_ext
8808 LIBS=$ac_check_lib_save_LIBS
8810 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8811 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8812 if test $ac_cv_lib_dl_dlopen = yes; then
8813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8815 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8816 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8817 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 ac_check_lib_save_LIBS=$LIBS
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 /* Override any gcc2 internal prototype to avoid an error. */
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>conftest.er1
8848 grep -v '^ *+' conftest.er1 >conftest.err
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_cv_lib_svld_dlopen=yes
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 ac_cv_lib_svld_dlopen=no
8872 rm -f conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874 LIBS=$ac_check_lib_save_LIBS
8876 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8877 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8878 if test $ac_cv_lib_svld_dlopen = yes; then
8879 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8881 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8882 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8883 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_check_lib_save_LIBS=$LIBS
8888 cat >conftest.$ac_ext <<_ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8895 /* Override any gcc2 internal prototype to avoid an error. */
8899 /* We use char because int might match the return type of a gcc2
8900 builtin and then its argument prototype would still apply. */
8910 rm -f conftest.$ac_objext conftest$ac_exeext
8911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8912 (eval $ac_link) 2>conftest.er1
8914 grep -v '^ *+' conftest.er1 >conftest.err
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } &&
8919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; } &&
8925 { ac_try='test -s conftest$ac_exeext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_cv_lib_dld_dld_link=yes
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8936 ac_cv_lib_dld_dld_link=no
8938 rm -f conftest.err conftest.$ac_objext \
8939 conftest$ac_exeext conftest.$ac_ext
8940 LIBS=$ac_check_lib_save_LIBS
8942 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8943 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8944 if test $ac_cv_lib_dld_dld_link = yes; then
8945 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8966 if test "x$lt_cv_dlopen" != xno; then
8972 case $lt_cv_dlopen in
8974 save_CPPFLAGS="$CPPFLAGS"
8975 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8977 save_LDFLAGS="$LDFLAGS"
8978 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8981 LIBS="$lt_cv_dlopen_libs $LIBS"
8983 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8984 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8985 if test "${lt_cv_dlopen_self+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 if test "$cross_compiling" = yes; then :
8989 lt_cv_dlopen_self=cross
8991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8992 lt_status=$lt_dlunknown
8993 cat > conftest.$ac_ext <<EOF
8994 #line __oline__ "configure"
8995 #include "confdefs.h"
9004 # define LT_DLGLOBAL RTLD_GLOBAL
9007 # define LT_DLGLOBAL DL_GLOBAL
9009 # define LT_DLGLOBAL 0
9013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9014 find out it does not work in some platform. */
9015 #ifndef LT_DLLAZY_OR_NOW
9017 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9020 # define LT_DLLAZY_OR_NOW DL_LAZY
9023 # define LT_DLLAZY_OR_NOW RTLD_NOW
9026 # define LT_DLLAZY_OR_NOW DL_NOW
9028 # define LT_DLLAZY_OR_NOW 0
9036 extern "C" void exit (int);
9039 void fnord() { int i=42;}
9042 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9043 int status = $lt_dlunknown;
9047 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9048 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9049 /* dlclose (self); */
9055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9060 (./conftest; exit; ) >&5 2>/dev/null
9063 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9064 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9065 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9068 # compilation failed
9069 lt_cv_dlopen_self=no
9076 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9077 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9079 if test "x$lt_cv_dlopen_self" = xyes; then
9080 LDFLAGS="$LDFLAGS $link_static_flag"
9081 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9082 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9083 if test "${lt_cv_dlopen_self_static+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 if test "$cross_compiling" = yes; then :
9087 lt_cv_dlopen_self_static=cross
9089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9090 lt_status=$lt_dlunknown
9091 cat > conftest.$ac_ext <<EOF
9092 #line __oline__ "configure"
9093 #include "confdefs.h"
9102 # define LT_DLGLOBAL RTLD_GLOBAL
9105 # define LT_DLGLOBAL DL_GLOBAL
9107 # define LT_DLGLOBAL 0
9111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9112 find out it does not work in some platform. */
9113 #ifndef LT_DLLAZY_OR_NOW
9115 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9118 # define LT_DLLAZY_OR_NOW DL_LAZY
9121 # define LT_DLLAZY_OR_NOW RTLD_NOW
9124 # define LT_DLLAZY_OR_NOW DL_NOW
9126 # define LT_DLLAZY_OR_NOW 0
9134 extern "C" void exit (int);
9137 void fnord() { int i=42;}
9140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9141 int status = $lt_dlunknown;
9145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9146 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9147 /* dlclose (self); */
9153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9154 (eval $ac_link) 2>&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9158 (./conftest; exit; ) >&5 2>/dev/null
9161 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9162 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9163 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9166 # compilation failed
9167 lt_cv_dlopen_self_static=no
9174 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9175 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9178 CPPFLAGS="$save_CPPFLAGS"
9179 LDFLAGS="$save_LDFLAGS"
9184 case $lt_cv_dlopen_self in
9185 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9186 *) enable_dlopen_self=unknown ;;
9189 case $lt_cv_dlopen_self_static in
9190 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9191 *) enable_dlopen_self_static=unknown ;;
9196 # Report which librarie types wil actually be built
9197 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9198 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9199 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9200 echo "${ECHO_T}$can_build_shared" >&6
9202 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9203 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9204 test "$can_build_shared" = "no" && enable_shared=no
9206 # On AIX, shared libraries and static libraries use the same namespace, and
9207 # are all built from PIC.
9210 test "$enable_shared" = yes && enable_static=no
9211 if test -n "$RANLIB"; then
9212 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9213 postinstall_cmds='$RANLIB $lib'
9218 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9219 test "$enable_shared" = yes && enable_static=no
9223 echo "$as_me:$LINENO: result: $enable_shared" >&5
9224 echo "${ECHO_T}$enable_shared" >&6
9226 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9227 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9228 # Make sure either enable_shared or enable_static is yes.
9229 test "$enable_shared" = yes || enable_static=yes
9230 echo "$as_me:$LINENO: result: $enable_static" >&5
9231 echo "${ECHO_T}$enable_static" >&6
9233 # The else clause should only fire when bootstrapping the
9234 # libtool distribution, otherwise you forgot to ship ltmain.sh
9235 # with your package, and you will get complaints that there are
9236 # no rules to generate ltmain.sh.
9237 if test -f "$ltmain"; then
9238 # See if we are running on zsh, and set the options which allow our commands through
9239 # without removal of \ escapes.
9240 if test -n "${ZSH_VERSION+set}" ; then
9241 setopt NO_GLOB_SUBST
9243 # Now quote all the things that may contain metacharacters while being
9244 # careful not to overquote the AC_SUBSTed values. We take copies of the
9245 # variables and quote the copies for generation of the libtool script.
9246 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9248 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9249 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9250 deplibs_check_method reload_flag reload_cmds need_locks \
9251 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9252 lt_cv_sys_global_symbol_to_c_name_address \
9253 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9254 old_postinstall_cmds old_postuninstall_cmds \
9258 lt_prog_compiler_wl \
9259 lt_prog_compiler_pic \
9260 lt_prog_compiler_static \
9261 lt_prog_compiler_no_builtin_flag \
9262 export_dynamic_flag_spec \
9263 thread_safe_flag_spec \
9264 whole_archive_flag_spec \
9265 enable_shared_with_static_runtimes \
9267 old_archive_from_new_cmds \
9272 compiler_lib_search_path \
9274 archive_expsym_cmds \
9276 postuninstall_cmds \
9277 old_archive_from_expsyms_cmds \
9278 allow_undefined_flag \
9280 export_symbols_cmds \
9281 hardcode_libdir_flag_spec \
9282 hardcode_libdir_flag_spec_ld \
9283 hardcode_libdir_separator \
9284 hardcode_automatic \
9286 module_expsym_cmds \
9287 lt_cv_prog_compiler_c_o \
9292 old_archive_cmds | \
9293 old_archive_from_new_cmds | \
9295 archive_expsym_cmds | \
9297 module_expsym_cmds | \
9298 old_archive_from_expsyms_cmds | \
9299 export_symbols_cmds | \
9300 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9301 postinstall_cmds | postuninstall_cmds | \
9302 old_postinstall_cmds | old_postuninstall_cmds | \
9303 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9304 # Double-quote double-evaled strings.
9305 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9308 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9314 *'\$0 --fallback-echo"')
9315 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9320 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9322 { echo "$as_me:$LINENO: creating $ofile" >&5
9323 echo "$as_me: creating $ofile" >&6;}
9325 cat <<__EOF__ >> "$cfgfile"
9328 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9329 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9330 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9332 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9333 # Free Software Foundation, Inc.
9335 # This file is part of GNU Libtool:
9336 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9338 # This program is free software; you can redistribute it and/or modify
9339 # it under the terms of the GNU General Public License as published by
9340 # the Free Software Foundation; either version 2 of the License, or
9341 # (at your option) any later version.
9343 # This program is distributed in the hope that it will be useful, but
9344 # WITHOUT ANY WARRANTY; without even the implied warranty of
9345 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9346 # General Public License for more details.
9348 # You should have received a copy of the GNU General Public License
9349 # along with this program; if not, write to the Free Software
9350 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9352 # As a special exception to the GNU General Public License, if you
9353 # distribute this file as part of a program that contains a
9354 # configuration script generated by Autoconf, you may include it under
9355 # the same distribution terms that you use for the rest of that program.
9357 # A sed program that does not truncate output.
9360 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9361 Xsed="$SED -e 1s/^X//"
9363 # The HP-UX ksh and POSIX shell print the target directory to stdout
9365 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9367 # The names of the tagged configurations supported by this script.
9370 # ### BEGIN LIBTOOL CONFIG
9372 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9374 # Shell to use when invoking shell scripts.
9377 # Whether or not to build shared libraries.
9378 build_libtool_libs=$enable_shared
9380 # Whether or not to build static libraries.
9381 build_old_libs=$enable_static
9383 # Whether or not to add -lc for building shared libraries.
9384 build_libtool_need_lc=$archive_cmds_need_lc
9386 # Whether or not to disallow shared libs when runtime libs are static
9387 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9389 # Whether or not to optimize for fast installation.
9390 fast_install=$enable_fast_install
9393 host_alias=$host_alias
9398 build_alias=$build_alias
9402 # An echo program that does not interpret backslashes.
9407 AR_FLAGS=$lt_AR_FLAGS
9412 # A language-specific compiler.
9415 # Is the compiler the GNU C compiler?
9421 # The linker used to build libraries.
9424 # Whether we need hard or soft links.
9427 # A BSD-compatible nm program.
9430 # A symbol stripping program
9433 # Used to examine libraries when file_magic_cmd begins "file"
9434 MAGIC_CMD=$MAGIC_CMD
9436 # Used on cygwin: DLL creation program.
9439 # Used on cygwin: object dumper.
9442 # Used on cygwin: assembler.
9445 # The name of the directory that contains temporary libtool files.
9448 # How to create reloadable object files.
9449 reload_flag=$lt_reload_flag
9450 reload_cmds=$lt_reload_cmds
9452 # How to pass a linker flag through the compiler.
9453 wl=$lt_lt_prog_compiler_wl
9455 # Object file suffix (normally "o").
9458 # Old archive suffix (normally "a").
9461 # Shared library suffix (normally ".so").
9462 shrext_cmds='$shrext_cmds'
9464 # Executable file suffix (normally "").
9467 # Additional compiler flags for building library objects.
9468 pic_flag=$lt_lt_prog_compiler_pic
9471 # What is the maximum length of a command?
9472 max_cmd_len=$lt_cv_sys_max_cmd_len
9474 # Does compiler simultaneously support -c and -o options?
9475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9477 # Must we lock files when doing compilation?
9478 need_locks=$lt_need_locks
9480 # Do we need the lib prefix for modules?
9481 need_lib_prefix=$need_lib_prefix
9483 # Do we need a version for libraries?
9484 need_version=$need_version
9486 # Whether dlopen is supported.
9487 dlopen_support=$enable_dlopen
9489 # Whether dlopen of programs is supported.
9490 dlopen_self=$enable_dlopen_self
9492 # Whether dlopen of statically linked programs is supported.
9493 dlopen_self_static=$enable_dlopen_self_static
9495 # Compiler flag to prevent dynamic linking.
9496 link_static_flag=$lt_lt_prog_compiler_static
9498 # Compiler flag to turn off builtin functions.
9499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9501 # Compiler flag to allow reflexive dlopens.
9502 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9504 # Compiler flag to generate shared objects directly from archives.
9505 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9507 # Compiler flag to generate thread-safe objects.
9508 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9510 # Library versioning type.
9511 version_type=$version_type
9513 # Format of library name prefix.
9514 libname_spec=$lt_libname_spec
9516 # List of archive names. First name is the real one, the rest are links.
9517 # The last name is the one that the linker finds with -lNAME.
9518 library_names_spec=$lt_library_names_spec
9520 # The coded name of the library, if different from the real name.
9521 soname_spec=$lt_soname_spec
9523 # Commands used to build and install an old-style archive.
9525 old_archive_cmds=$lt_old_archive_cmds
9526 old_postinstall_cmds=$lt_old_postinstall_cmds
9527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9529 # Create an old-style archive from a shared archive.
9530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9532 # Create a temporary old-style archive to link instead of a shared archive.
9533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9535 # Commands used to build and install a shared archive.
9536 archive_cmds=$lt_archive_cmds
9537 archive_expsym_cmds=$lt_archive_expsym_cmds
9538 postinstall_cmds=$lt_postinstall_cmds
9539 postuninstall_cmds=$lt_postuninstall_cmds
9541 # Commands used to build a loadable module (assumed same as above if empty)
9542 module_cmds=$lt_module_cmds
9543 module_expsym_cmds=$lt_module_expsym_cmds
9545 # Commands to strip libraries.
9546 old_striplib=$lt_old_striplib
9547 striplib=$lt_striplib
9549 # Dependencies to place before the objects being linked to create a
9551 predep_objects=$lt_predep_objects
9553 # Dependencies to place after the objects being linked to create a
9555 postdep_objects=$lt_postdep_objects
9557 # Dependencies to place before the objects being linked to create a
9561 # Dependencies to place after the objects being linked to create a
9563 postdeps=$lt_postdeps
9565 # The library search path used internally by the compiler when linking
9567 compiler_lib_search_path=$lt_compiler_lib_search_path
9569 # Method to check whether dependent libraries are shared objects.
9570 deplibs_check_method=$lt_deplibs_check_method
9572 # Command to use when deplibs_check_method == file_magic.
9573 file_magic_cmd=$lt_file_magic_cmd
9575 # Flag that allows shared libraries with undefined symbols to be built.
9576 allow_undefined_flag=$lt_allow_undefined_flag
9578 # Flag that forces no undefined symbols.
9579 no_undefined_flag=$lt_no_undefined_flag
9581 # Commands used to finish a libtool library installation in a directory.
9582 finish_cmds=$lt_finish_cmds
9584 # Same as above, but a single script fragment to be evaled but not shown.
9585 finish_eval=$lt_finish_eval
9587 # Take the output of nm and produce a listing of raw symbols and C names.
9588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9590 # Transform the output of nm in a proper C declaration
9591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9593 # Transform the output of nm in a C name address pair
9594 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9596 # This is the shared library runtime path variable.
9597 runpath_var=$runpath_var
9599 # This is the shared library path variable.
9600 shlibpath_var=$shlibpath_var
9602 # Is shlibpath searched before the hard-coded library search path?
9603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9605 # How to hardcode a shared library path into an executable.
9606 hardcode_action=$hardcode_action
9608 # Whether we should hardcode library paths into libraries.
9609 hardcode_into_libs=$hardcode_into_libs
9611 # Flag to hardcode \$libdir into a binary during linking.
9612 # This must work even if \$libdir does not exist.
9613 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9615 # If ld is used when linking, flag to hardcode \$libdir into
9616 # a binary during linking. This must work even if \$libdir does
9618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9620 # Whether we need a single -rpath flag with a separated argument.
9621 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9623 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9625 hardcode_direct=$hardcode_direct
9627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9629 hardcode_minus_L=$hardcode_minus_L
9631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9632 # the resulting binary.
9633 hardcode_shlibpath_var=$hardcode_shlibpath_var
9635 # Set to yes if building a shared library automatically hardcodes DIR into the library
9636 # and all subsequent libraries and executables linked against it.
9637 hardcode_automatic=$hardcode_automatic
9639 # Variables whose values should be saved in libtool wrapper scripts and
9640 # restored at relink time.
9641 variables_saved_for_relink="$variables_saved_for_relink"
9643 # Whether libtool must link a program against all its dependency libraries.
9644 link_all_deplibs=$link_all_deplibs
9646 # Compile-time system search path for libraries
9647 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9649 # Run-time system search path for libraries
9650 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9652 # Fix the shell variable \$srcfile for the compiler.
9653 fix_srcfile_path="$fix_srcfile_path"
9655 # Set to yes if exported symbols are required.
9656 always_export_symbols=$always_export_symbols
9658 # The commands to list exported symbols.
9659 export_symbols_cmds=$lt_export_symbols_cmds
9661 # The commands to extract the exported symbol list from a shared archive.
9662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9664 # Symbols that should not be listed in the preloaded symbols.
9665 exclude_expsyms=$lt_exclude_expsyms
9667 # Symbols that must always be exported.
9668 include_expsyms=$lt_include_expsyms
9670 # ### END LIBTOOL CONFIG
9677 cat <<\EOF >> "$cfgfile"
9679 # AIX sometimes has problems with the GCC collect2 program. For some
9680 # reason, if we set the COLLECT_NAMES environment variable, the problems
9681 # vanish in a puff of smoke.
9682 if test "X${COLLECT_NAMES+set}" != Xset; then
9684 export COLLECT_NAMES
9690 # We use sed instead of cat because bash on DJGPP gets confused if
9691 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9692 # text mode, it properly converts lines to CR/LF. This bash problem
9693 # is reportedly fixed, but why not run on old versions too?
9694 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9696 mv -f "$cfgfile" "$ofile" || \
9697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9701 # If there is no Makefile yet, we rely on a make rule to execute
9702 # `config.status --recheck' to rerun these tests and create the
9703 # libtool script then.
9704 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9705 if test -f "$ltmain_in"; then
9706 test -f Makefile && make "$ltmain"
9712 ac_cpp='$CPP $CPPFLAGS'
9713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9720 # Check whether --with-tags or --without-tags was given.
9721 if test "${with_tags+set}" = set; then
9722 withval="$with_tags"
9726 if test -f "$ltmain" && test -n "$tagnames"; then
9727 if test ! -f "${ofile}"; then
9728 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9729 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9732 if test -z "$LTCC"; then
9733 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9734 if test -z "$LTCC"; then
9735 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9736 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9739 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9743 # Extract list of available tagged configurations in $ofile.
9744 # Note that this assumes the entire list is on one line.
9745 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9748 for tagname in $tagnames; do
9750 # Check whether tagname contains only valid characters
9751 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9753 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9754 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9755 { (exit 1); exit 1; }; }
9759 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9761 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9762 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9763 { (exit 1); exit 1; }; }
9766 # Update the list of available tags.
9767 if test -n "$tagname"; then
9768 echo appending configuration tag \"$tagname\" to $ofile
9772 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9773 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9774 (test "X$CXX" != "Xg++"))) ; then
9776 ac_cpp='$CXXCPP $CPPFLAGS'
9777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9784 archive_cmds_need_lc_CXX=no
9785 allow_undefined_flag_CXX=
9786 always_export_symbols_CXX=no
9787 archive_expsym_cmds_CXX=
9788 export_dynamic_flag_spec_CXX=
9789 hardcode_direct_CXX=no
9790 hardcode_libdir_flag_spec_CXX=
9791 hardcode_libdir_flag_spec_ld_CXX=
9792 hardcode_libdir_separator_CXX=
9793 hardcode_minus_L_CXX=no
9794 hardcode_automatic_CXX=no
9796 module_expsym_cmds_CXX=
9797 link_all_deplibs_CXX=unknown
9798 old_archive_cmds_CXX=$old_archive_cmds
9799 no_undefined_flag_CXX=
9800 whole_archive_flag_spec_CXX=
9801 enable_shared_with_static_runtimes_CXX=no
9803 # Dependencies to place before and after the object being linked:
9805 postdep_objects_CXX=
9808 compiler_lib_search_path_CXX=
9810 # Source file extension for C++ test sources.
9813 # Object file extension for compiled C++ test sources.
9817 # Code to be used in simple compile tests
9818 lt_simple_compile_test_code="int some_variable = 0;\n"
9820 # Code to be used in simple link tests
9821 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9823 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9825 # If no C compiler was specified, use CC.
9828 # Allow CC to be a program name with arguments.
9832 # save warnings/boilerplate of simple test code
9833 ac_outfile=conftest.$ac_objext
9834 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9835 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9836 _lt_compiler_boilerplate=`cat conftest.err`
9839 ac_outfile=conftest.$ac_objext
9840 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9841 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9842 _lt_linker_boilerplate=`cat conftest.err`
9846 # Allow CC to be a program name with arguments.
9851 lt_save_with_gnu_ld=$with_gnu_ld
9852 lt_save_path_LD=$lt_cv_path_LD
9853 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9854 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9856 unset lt_cv_prog_gnu_ld
9858 if test -n "${lt_cv_path_LDCXX+set}"; then
9859 lt_cv_path_LD=$lt_cv_path_LDCXX
9863 test -z "${LDCXX+set}" || LD=$LDCXX
9867 for cc_temp in $compiler""; do
9869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9875 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9878 # We don't want -fno-exception wen compiling C++ code, so set the
9879 # no_builtin_flag separately
9880 if test "$GXX" = yes; then
9881 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9883 lt_prog_compiler_no_builtin_flag_CXX=
9886 if test "$GXX" = yes; then
9887 # Set up default GNU C++ configuration
9890 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9891 if test "${with_gnu_ld+set}" = set; then
9892 withval="$with_gnu_ld"
9893 test "$withval" = no || with_gnu_ld=yes
9898 if test "$GCC" = yes; then
9899 # Check if gcc -print-prog-name=ld gives a path.
9900 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9901 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9904 # gcc leaves a trailing carriage return which upsets mingw
9905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9910 # Accept absolute paths.
9912 re_direlt='/[^/][^/]*/\.\./'
9913 # Canonicalize the pathname of ld
9914 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9915 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9916 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9918 test -z "$LD" && LD="$ac_prog"
9921 # If it fails, then pretend we aren't using GCC.
9925 # If it is relative, then search for the first ld in PATH.
9929 elif test "$with_gnu_ld" = yes; then
9930 echo "$as_me:$LINENO: checking for GNU ld" >&5
9931 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9933 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9934 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9936 if test "${lt_cv_path_LD+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 if test -z "$LD"; then
9940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9941 for ac_dir in $PATH; do
9943 test -z "$ac_dir" && ac_dir=.
9944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9945 lt_cv_path_LD="$ac_dir/$ac_prog"
9946 # Check to see if the program is GNU ld. I'd rather use --version,
9947 # but apparently some variants of GNU ld only accept -v.
9948 # Break only if it was the GNU/non-GNU ld that we prefer.
9949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9950 *GNU* | *'with BFD'*)
9951 test "$with_gnu_ld" != no && break
9954 test "$with_gnu_ld" != yes && break
9961 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9966 if test -n "$LD"; then
9967 echo "$as_me:$LINENO: result: $LD" >&5
9968 echo "${ECHO_T}$LD" >&6
9970 echo "$as_me:$LINENO: result: no" >&5
9971 echo "${ECHO_T}no" >&6
9973 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9974 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9975 { (exit 1); exit 1; }; }
9976 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9977 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9978 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9982 case `$LD -v 2>&1 </dev/null` in
9983 *GNU* | *'with BFD'*)
9984 lt_cv_prog_gnu_ld=yes
9987 lt_cv_prog_gnu_ld=no
9991 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9992 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9993 with_gnu_ld=$lt_cv_prog_gnu_ld
9997 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9998 # archiving commands below assume that GNU ld is being used.
9999 if test "$with_gnu_ld" = yes; then
10000 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10001 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'
10003 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10006 # If archive_cmds runs LD, not CC, wlarc should be empty
10007 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10008 # investigate it a little bit more. (MM)
10011 # ancient GNU ld didn't support --whole-archive et. al.
10012 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10013 grep 'no-whole-archive' > /dev/null; then
10014 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10016 whole_archive_flag_spec_CXX=
10022 # A generic and very simple default shared library creation
10023 # command for GNU C++ for the case where it uses the native
10024 # linker, instead of GNU ld. If possible, this setting should
10025 # overridden to take advantage of the native linker features on
10026 # the platform it is being used on.
10027 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10030 # Commands to make compiler produce verbose output that lists
10031 # what "hidden" libraries, object files and flags are used when
10032 # linking a shared library.
10033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10041 # PORTME: fill in a description of your system's C++ link characteristics
10042 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10043 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10047 # FIXME: insert proper C++ library support
10051 if test "$host_cpu" = ia64; then
10052 # On IA64, the linker does run time linking by default, so we don't
10053 # have to do anything special.
10054 aix_use_runtimelinking=no
10055 exp_sym_flag='-Bexport'
10058 aix_use_runtimelinking=no
10060 # Test if we are trying to use run time linking or normal
10061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10062 # need to do runtime linking.
10063 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10064 for ld_flag in $LDFLAGS; do
10067 aix_use_runtimelinking=yes
10074 exp_sym_flag='-bexport'
10075 no_entry_flag='-bnoentry'
10078 # When large executables or shared objects are built, AIX ld can
10079 # have problems creating the table of contents. If linking a library
10080 # or program results in "error TOC overflow" add -mminimal-toc to
10081 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10082 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10084 archive_cmds_CXX=''
10085 hardcode_direct_CXX=yes
10086 hardcode_libdir_separator_CXX=':'
10087 link_all_deplibs_CXX=yes
10089 if test "$GXX" = yes; then
10090 case $host_os in aix4.[012]|aix4.[012].*)
10091 # We only want to do this on AIX 4.2 and lower, the check
10092 # below for broken collect2 doesn't work under 4.3+
10093 collect2name=`${CC} -print-prog-name=collect2`
10094 if test -f "$collect2name" && \
10095 strings "$collect2name" | grep resolve_lib_name >/dev/null
10097 # We have reworked collect2
10098 hardcode_direct_CXX=yes
10100 # We have old collect2
10101 hardcode_direct_CXX=unsupported
10102 # It fails to find uninstalled libraries when the uninstalled
10103 # path is not listed in the libpath. Setting hardcode_minus_L
10104 # to unsupported forces relinking
10105 hardcode_minus_L_CXX=yes
10106 hardcode_libdir_flag_spec_CXX='-L$libdir'
10107 hardcode_libdir_separator_CXX=
10110 shared_flag='-shared'
10111 if test "$aix_use_runtimelinking" = yes; then
10112 shared_flag="$shared_flag "'${wl}-G'
10116 if test "$host_cpu" = ia64; then
10117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10118 # chokes on -Wl,-G. The following line is correct:
10121 if test "$aix_use_runtimelinking" = yes; then
10122 shared_flag='${wl}-G'
10124 shared_flag='${wl}-bM:SRE'
10129 # It seems that -bexpall does not export symbols beginning with
10130 # underscore (_), so it is better to generate a list of symbols to export.
10131 always_export_symbols_CXX=yes
10132 if test "$aix_use_runtimelinking" = yes; then
10133 # Warning - without using the other runtime loading flags (-brtl),
10134 # -berok will link without error, but may produce a broken library.
10135 allow_undefined_flag_CXX='-berok'
10136 # Determine the default libpath from the value encoded in an empty executable.
10137 cat >conftest.$ac_ext <<_ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10154 (eval $ac_link) 2>conftest.er1
10156 grep -v '^ *+' conftest.er1 >conftest.err
10158 cat conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10174 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10176 # Check for a 64-bit object if we didn't find anything.
10177 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; }
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10184 rm -f conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10188 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10190 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"
10192 if test "$host_cpu" = ia64; then
10193 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10194 allow_undefined_flag_CXX="-z nodefs"
10195 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"
10197 # Determine the default libpath from the value encoded in an empty executable.
10198 cat >conftest.$ac_ext <<_ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10213 rm -f conftest.$ac_objext conftest$ac_exeext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10215 (eval $ac_link) 2>conftest.er1
10217 grep -v '^ *+' conftest.er1 >conftest.err
10219 cat conftest.err >&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest$ac_exeext'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10237 # Check for a 64-bit object if we didn't find anything.
10238 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; }
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10245 rm -f conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10249 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10250 # Warning - without using the other run time loading flags,
10251 # -berok will link without error, but may produce a broken library.
10252 no_undefined_flag_CXX=' ${wl}-bernotok'
10253 allow_undefined_flag_CXX=' ${wl}-berok'
10254 # -bexpall does not export symbols beginning with underscore (_)
10255 always_export_symbols_CXX=yes
10256 # Exported symbols can be pulled into shared objects from archives
10257 whole_archive_flag_spec_CXX=' '
10258 archive_cmds_need_lc_CXX=yes
10259 # This is similar to how AIX traditionally builds its shared libraries.
10260 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'
10265 case $cc_basename in
10267 # FIXME: insert proper C++ library support
10274 cygwin* | mingw* | pw32*)
10275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10276 # as there is no search path for DLLs.
10277 hardcode_libdir_flag_spec_CXX='-L$libdir'
10278 allow_undefined_flag_CXX=unsupported
10279 always_export_symbols_CXX=no
10280 enable_shared_with_static_runtimes_CXX=yes
10282 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10283 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'
10284 # If the export-symbols file already is a .def file (1st line
10285 # is EXPORTS), use it as is; otherwise, prepend...
10286 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10287 cp $export_symbols $output_objdir/$soname.def;
10289 echo EXPORTS > $output_objdir/$soname.def;
10290 cat $export_symbols >> $output_objdir/$soname.def;
10292 $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'
10297 darwin* | rhapsody*)
10299 rhapsody* | darwin1.[012])
10300 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10303 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10304 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10306 case ${MACOSX_DEPLOYMENT_TARGET} in
10308 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10311 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10317 archive_cmds_need_lc_CXX=no
10318 hardcode_direct_CXX=no
10319 hardcode_automatic_CXX=yes
10320 hardcode_shlibpath_var_CXX=unsupported
10321 whole_archive_flag_spec_CXX=''
10322 link_all_deplibs_CXX=yes
10324 if test "$GXX" = yes ; then
10325 lt_int_apple_cc_single_mod=no
10326 output_verbose_link_cmd='echo'
10327 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10328 lt_int_apple_cc_single_mod=yes
10330 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10331 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10333 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'
10335 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10336 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10337 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10338 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}'
10340 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}'
10342 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}'
10344 case $cc_basename in
10346 output_verbose_link_cmd='echo'
10347 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'
10348 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10349 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10350 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}'
10351 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}'
10361 case $cc_basename in
10363 # FIXME: insert proper C++ library support
10367 # Green Hills C++ Compiler
10368 # FIXME: insert proper C++ library support
10372 # FIXME: insert proper C++ library support
10378 # C++ shared libraries reported to be fairly broken before switch to ELF
10382 archive_cmds_need_lc_CXX=no
10384 freebsd* | kfreebsd*-gnu | dragonfly*)
10385 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10392 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10393 hardcode_libdir_separator_CXX=:
10394 export_dynamic_flag_spec_CXX='${wl}-E'
10395 hardcode_direct_CXX=yes
10396 hardcode_minus_L_CXX=yes # Not in the search PATH,
10397 # but as the default
10398 # location of the library.
10400 case $cc_basename in
10402 # FIXME: insert proper C++ library support
10406 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'
10407 # Commands to make compiler produce verbose output that lists
10408 # what "hidden" libraries, object files and flags are used when
10409 # linking a shared library.
10411 # There doesn't appear to be a way to prevent this compiler from
10412 # explicitly linking system object files so we need to strip them
10413 # from the output so that they don't get included in the library
10415 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'
10418 if test "$GXX" = yes; then
10419 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'
10421 # FIXME: insert proper C++ library support
10428 if test $with_gnu_ld = no; then
10431 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10432 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10433 hardcode_libdir_separator_CXX=:
10436 hardcode_libdir_flag_spec_CXX='-L$libdir'
10439 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10440 hardcode_libdir_separator_CXX=:
10441 export_dynamic_flag_spec_CXX='${wl}-E'
10447 hardcode_direct_CXX=no
10448 hardcode_shlibpath_var_CXX=no
10451 hardcode_direct_CXX=no
10452 hardcode_shlibpath_var_CXX=no
10453 hardcode_minus_L_CXX=yes # Not in the search PATH,
10454 # but as the default
10455 # location of the library.
10458 hardcode_direct_CXX=yes
10459 hardcode_minus_L_CXX=yes # Not in the search PATH,
10460 # but as the default
10461 # location of the library.
10465 case $cc_basename in
10467 # FIXME: insert proper C++ library support
10473 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10476 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10479 # Commands to make compiler produce verbose output that lists
10480 # what "hidden" libraries, object files and flags are used when
10481 # linking a shared library.
10483 # There doesn't appear to be a way to prevent this compiler from
10484 # explicitly linking system object files so we need to strip them
10485 # from the output so that they don't get included in the library
10487 output_verbose_link_cmd='templist=`($CC -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'
10490 if test "$GXX" = yes; then
10491 if test $with_gnu_ld = no; then
10494 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10497 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'
10502 # FIXME: insert proper C++ library support
10509 case $cc_basename in
10512 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'
10514 # Archives containing C++ object files must be created using
10515 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10516 # necessary to make sure instantiated templates are included
10518 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10521 if test "$GXX" = yes; then
10522 if test "$with_gnu_ld" = no; then
10523 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'
10525 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'
10528 link_all_deplibs_CXX=yes
10531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10532 hardcode_libdir_separator_CXX=:
10535 case $cc_basename in
10537 # Kuck and Associates, Inc. (KAI) C++ Compiler
10539 # KCC will only create a shared library if the output file
10540 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10541 # to its proper name (with version) after linking.
10542 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'
10543 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'
10544 # Commands to make compiler produce verbose output that lists
10545 # what "hidden" libraries, object files and flags are used when
10546 # linking a shared library.
10548 # There doesn't appear to be a way to prevent this compiler from
10549 # explicitly linking system object files so we need to strip them
10550 # from the output so that they don't get included in the library
10552 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'
10554 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10555 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10557 # Archives containing C++ object files must be created using
10558 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10559 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10564 # version 8.0 and above of icpc choke on multiply defined symbols
10565 # if we add $predep_objects and $postdep_objects, however 7.1 and
10566 # earlier do not add the objects themselves.
10567 case `$CC -V 2>&1` in
10569 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10570 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'
10572 *) # Version 8.0 or newer
10575 ia64*) tmp_idyn=' -i_dynamic';;
10577 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10578 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'
10581 archive_cmds_need_lc_CXX=no
10582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10584 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10587 # Portland Group C++ compiler
10588 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10589 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'
10591 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10593 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'
10597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10598 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'
10600 runpath_var=LD_RUN_PATH
10601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10602 hardcode_libdir_separator_CXX=:
10604 # Commands to make compiler produce verbose output that lists
10605 # what "hidden" libraries, object files and flags are used when
10606 # linking a shared library.
10608 # There doesn't appear to be a way to prevent this compiler from
10609 # explicitly linking system object files so we need to strip them
10610 # from the output so that they don't get included in the library
10612 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'
10617 # FIXME: insert proper C++ library support
10621 # FIXME: insert proper C++ library support
10625 case $cc_basename in
10627 # FIXME: insert proper C++ library support
10631 # FIXME: insert proper C++ library support
10637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10638 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10640 hardcode_libdir_flag_spec_CXX='-R$libdir'
10641 hardcode_direct_CXX=yes
10642 hardcode_shlibpath_var_CXX=no
10644 # Workaround some broken pre-1.5 toolchains
10645 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10648 # C++ shared libraries are fairly broken
10652 hardcode_direct_CXX=yes
10653 hardcode_shlibpath_var_CXX=no
10654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10657 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10658 export_dynamic_flag_spec_CXX='${wl}-E'
10659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10661 output_verbose_link_cmd='echo'
10664 case $cc_basename in
10666 # Kuck and Associates, Inc. (KAI) C++ Compiler
10668 # KCC will only create a shared library if the output file
10669 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10670 # to its proper name (with version) after linking.
10671 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'
10673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10674 hardcode_libdir_separator_CXX=:
10676 # Archives containing C++ object files must be created using
10677 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10678 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10682 # Rational C++ 2.4.1
10683 # FIXME: insert proper C++ library support
10687 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10688 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'
10690 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10691 hardcode_libdir_separator_CXX=:
10693 # Commands to make compiler produce verbose output that lists
10694 # what "hidden" libraries, object files and flags are used when
10695 # linking a shared library.
10697 # There doesn't appear to be a way to prevent this compiler from
10698 # explicitly linking system object files so we need to strip them
10699 # from the output so that they don't get included in the library
10701 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'
10704 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10705 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10706 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'
10708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10709 hardcode_libdir_separator_CXX=:
10711 # Commands to make compiler produce verbose output that lists
10712 # what "hidden" libraries, object files and flags are used when
10713 # linking a shared library.
10714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10717 # FIXME: insert proper C++ library support
10724 case $cc_basename in
10726 # Kuck and Associates, Inc. (KAI) C++ Compiler
10728 # KCC will only create a shared library if the output file
10729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10730 # to its proper name (with version) after linking.
10731 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'
10733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10734 hardcode_libdir_separator_CXX=:
10736 # Archives containing C++ object files must be created using
10737 # the KAI C++ compiler.
10738 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10741 # Rational C++ 2.4.1
10742 # FIXME: insert proper C++ library support
10746 allow_undefined_flag_CXX=' -expect_unresolved \*'
10747 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'
10748 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10749 echo "-hidden">> $lib.exp~
10750 $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~
10753 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10754 hardcode_libdir_separator_CXX=:
10756 # Commands to make compiler produce verbose output that lists
10757 # what "hidden" libraries, object files and flags are used when
10758 # linking a shared library.
10760 # There doesn't appear to be a way to prevent this compiler from
10761 # explicitly linking system object files so we need to strip them
10762 # from the output so that they don't get included in the library
10764 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'
10767 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10768 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10769 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'
10771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10772 hardcode_libdir_separator_CXX=:
10774 # Commands to make compiler produce verbose output that lists
10775 # what "hidden" libraries, object files and flags are used when
10776 # linking a shared library.
10777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10780 # FIXME: insert proper C++ library support
10787 # FIXME: insert proper C++ library support
10791 archive_cmds_need_lc_CXX=no
10792 case $cc_basename in
10794 # FIXME: insert proper C++ library support
10798 # FIXME: insert proper C++ library support
10804 case $cc_basename in
10807 # FIXME: insert proper C++ library support
10812 # FIXME: insert proper C++ library support
10816 # FIXME: insert proper C++ library support
10822 case $cc_basename in
10824 # Sun C++ 4.2, 5.x and Centerline C++
10825 archive_cmds_need_lc_CXX=yes
10826 no_undefined_flag_CXX=' -zdefs'
10827 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10828 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10829 $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'
10831 hardcode_libdir_flag_spec_CXX='-R$libdir'
10832 hardcode_shlibpath_var_CXX=no
10834 solaris2.[0-5] | solaris2.[0-5].*) ;;
10836 # The C++ compiler is used as linker so we must use $wl
10837 # flag to pass the commands to the underlying system
10838 # linker. We must also pass each convience library through
10839 # to the system linker between allextract/defaultextract.
10840 # The C++ compiler will combine linker options so we
10841 # cannot just pass the convience library names through
10843 # Supported since Solaris 2.6 (maybe 2.5.1?)
10844 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'
10847 link_all_deplibs_CXX=yes
10849 output_verbose_link_cmd='echo'
10851 # Archives containing C++ object files must be created using
10852 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10853 # necessary to make sure instantiated templates are included
10855 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10858 # Green Hills C++ Compiler
10859 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10861 # The C++ compiler must be used to create the archive.
10862 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10865 # GNU C++ compiler with Solaris linker
10866 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10867 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10868 if $CC --version | grep -v '^2\.7' > /dev/null; then
10869 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10870 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10871 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10873 # Commands to make compiler produce verbose output that lists
10874 # what "hidden" libraries, object files and flags are used when
10875 # linking a shared library.
10876 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10878 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10880 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10881 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10882 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10884 # Commands to make compiler produce verbose output that lists
10885 # what "hidden" libraries, object files and flags are used when
10886 # linking a shared library.
10887 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10890 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10895 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10896 archive_cmds_need_lc_CXX=no
10899 case $cc_basename in
10901 # NonStop-UX NCC 3.20
10902 # FIXME: insert proper C++ library support
10906 # FIXME: insert proper C++ library support
10912 # FIXME: insert proper C++ library support
10916 # FIXME: insert proper C++ library support
10920 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10921 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10922 test "$ld_shlibs_CXX" = no && can_build_shared=no
10928 ## There is no encapsulation within the following macros, do not change
10929 ## the running order or otherwise move them around unless you know exactly
10930 ## what you are doing...
10932 cat > conftest.$ac_ext <<EOF
10936 Foo (void) { a = 0; }
10942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10943 (eval $ac_compile) 2>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; then
10947 # Parse the compiler output and extract the necessary
10948 # objects, libraries and library flags.
10950 # Sentinel used to keep track of whether or not we are before
10951 # the conftest object file.
10952 pre_test_object_deps_done=no
10954 # The `*' in the case matches for architectures that use `case' in
10955 # $output_verbose_cmd can trigger glob expansion during the loop
10956 # eval without this substitution.
10957 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10959 for p in `eval $output_verbose_link_cmd`; do
10963 # Some compilers place space between "-{L,R}" and the path.
10964 # Remove the space.
10965 if test $p = "-L" \
10966 || test $p = "-R"; then
10973 if test "$pre_test_object_deps_done" = no; then
10976 # Internal compiler library paths should come after those
10977 # provided the user. The postdeps already come after the
10978 # user supplied libs so there is no need to process them.
10979 if test -z "$compiler_lib_search_path_CXX"; then
10980 compiler_lib_search_path_CXX="${prev}${p}"
10982 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10985 # The "-l" case would never come before the object being
10986 # linked, so don't bother handling this case.
10989 if test -z "$postdeps_CXX"; then
10990 postdeps_CXX="${prev}${p}"
10992 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10998 # This assumes that the test object file only shows up
10999 # once in the compiler output.
11000 if test "$p" = "conftest.$objext"; then
11001 pre_test_object_deps_done=yes
11005 if test "$pre_test_object_deps_done" = no; then
11006 if test -z "$predep_objects_CXX"; then
11007 predep_objects_CXX="$p"
11009 predep_objects_CXX="$predep_objects_CXX $p"
11012 if test -z "$postdep_objects_CXX"; then
11013 postdep_objects_CXX="$p"
11015 postdep_objects_CXX="$postdep_objects_CXX $p"
11020 *) ;; # Ignore the rest.
11028 echo "libtool.m4: error: problem compiling CXX test program"
11031 $rm -f confest.$objext
11033 # PORTME: override above test on systems where it is broken
11036 case $cc_basename in
11038 # Adding this requires a known-good setup of shared libraries for
11039 # Sun compiler versions before 5.6, else PIC objects from an old
11040 # archive will be linked into the output, leading to subtle bugs.
11041 postdeps_CXX='-lCstd -lCrun'
11047 case " $postdeps_CXX " in
11048 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11051 lt_prog_compiler_wl_CXX=
11052 lt_prog_compiler_pic_CXX=
11053 lt_prog_compiler_static_CXX=
11055 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11056 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11058 # C++ specific cases for pic, static, wl, etc.
11059 if test "$GXX" = yes; then
11060 lt_prog_compiler_wl_CXX='-Wl,'
11061 lt_prog_compiler_static_CXX='-static'
11065 # All AIX code is PIC.
11066 if test "$host_cpu" = ia64; then
11067 # AIX 5 now supports IA64 processor
11068 lt_prog_compiler_static_CXX='-Bstatic'
11072 # FIXME: we need at least 68020 code to build shared libraries, but
11073 # adding the `-m68020' flag to GCC prevents building anything better,
11075 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11077 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11078 # PIC is the default for these OSes.
11080 mingw* | os2* | pw32*)
11081 # This hack is so that the source file can tell whether it is being
11082 # built for inclusion in a dll (and should export symbols for example).
11083 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11085 darwin* | rhapsody*)
11086 # PIC is the default on this platform
11087 # Common symbols not allowed in MH_DYLIB files
11088 lt_prog_compiler_pic_CXX='-fno-common'
11091 # DJGPP does not support shared libraries at all
11092 lt_prog_compiler_pic_CXX=
11095 if test -d /usr/nec; then
11096 lt_prog_compiler_pic_CXX=-Kconform_pic
11100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11101 # not for PA HP-UX.
11106 lt_prog_compiler_pic_CXX='-fPIC'
11111 lt_prog_compiler_pic_CXX='-fPIC'
11117 # All AIX code is PIC.
11118 if test "$host_cpu" = ia64; then
11119 # AIX 5 now supports IA64 processor
11120 lt_prog_compiler_static_CXX='-Bstatic'
11122 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11126 case $cc_basename in
11128 # Green Hills C++ Compiler
11129 # _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"
11134 # PIC is the default on this platform
11135 # Common symbols not allowed in MH_DYLIB files
11136 case $cc_basename in
11138 lt_prog_compiler_pic_CXX='-qnocommon'
11139 lt_prog_compiler_wl_CXX='-Wl,'
11144 case $cc_basename in
11146 lt_prog_compiler_pic_CXX='-KPIC'
11149 # Green Hills C++ Compiler
11150 lt_prog_compiler_pic_CXX='-pic'
11156 freebsd* | kfreebsd*-gnu | dragonfly*)
11157 # FreeBSD uses GNU C++
11159 hpux9* | hpux10* | hpux11*)
11160 case $cc_basename in
11162 lt_prog_compiler_wl_CXX='-Wl,'
11163 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11164 if test "$host_cpu" != ia64; then
11165 lt_prog_compiler_pic_CXX='+Z'
11169 lt_prog_compiler_wl_CXX='-Wl,'
11170 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11176 lt_prog_compiler_pic_CXX='+Z'
11184 irix5* | irix6* | nonstopux*)
11185 case $cc_basename in
11187 lt_prog_compiler_wl_CXX='-Wl,'
11188 lt_prog_compiler_static_CXX='-non_shared'
11189 # CC pic flag -KPIC is the default.
11196 case $cc_basename in
11199 lt_prog_compiler_wl_CXX='--backend -Wl,'
11200 lt_prog_compiler_pic_CXX='-fPIC'
11204 lt_prog_compiler_wl_CXX='-Wl,'
11205 lt_prog_compiler_pic_CXX='-KPIC'
11206 lt_prog_compiler_static_CXX='-static'
11209 # Portland Group C++ compiler.
11210 lt_prog_compiler_wl_CXX='-Wl,'
11211 lt_prog_compiler_pic_CXX='-fpic'
11212 lt_prog_compiler_static_CXX='-Bstatic'
11216 # Make sure the PIC flag is empty. It appears that all Alpha
11217 # Linux and Compaq Tru64 Unix objects are PIC.
11218 lt_prog_compiler_pic_CXX=
11219 lt_prog_compiler_static_CXX='-non_shared'
11230 case $cc_basename in
11232 lt_prog_compiler_pic_CXX='-W c,exportall'
11240 osf3* | osf4* | osf5*)
11241 case $cc_basename in
11243 lt_prog_compiler_wl_CXX='--backend -Wl,'
11246 # Rational C++ 2.4.1
11247 lt_prog_compiler_pic_CXX='-pic'
11250 # Digital/Compaq C++
11251 lt_prog_compiler_wl_CXX='-Wl,'
11252 # Make sure the PIC flag is empty. It appears that all Alpha
11253 # Linux and Compaq Tru64 Unix objects are PIC.
11254 lt_prog_compiler_pic_CXX=
11255 lt_prog_compiler_static_CXX='-non_shared'
11264 case $cc_basename in
11266 lt_prog_compiler_pic_CXX='-fPIC'
11273 case $cc_basename in
11275 # Sun C++ 4.2, 5.x and Centerline C++
11276 lt_prog_compiler_pic_CXX='-KPIC'
11277 lt_prog_compiler_static_CXX='-Bstatic'
11278 lt_prog_compiler_wl_CXX='-Qoption ld '
11281 # Green Hills C++ Compiler
11282 lt_prog_compiler_pic_CXX='-PIC'
11289 case $cc_basename in
11292 lt_prog_compiler_pic_CXX='-pic'
11293 lt_prog_compiler_static_CXX='-Bstatic'
11297 lt_prog_compiler_pic_CXX='-pic'
11304 case $cc_basename in
11306 # NonStop-UX NCC 3.20
11307 lt_prog_compiler_pic_CXX='-KPIC'
11318 lt_prog_compiler_can_build_shared_CXX=no
11323 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11324 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11327 # Check to make sure the PIC flag actually works.
11329 if test -n "$lt_prog_compiler_pic_CXX"; then
11331 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11332 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11333 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 lt_prog_compiler_pic_works_CXX=no
11337 ac_outfile=conftest.$ac_objext
11338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11339 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11340 # Insert the option either (1) after the last *FLAGS variable, or
11341 # (2) before a word containing "conftest.", or (3) at the end.
11342 # Note that $ac_compile itself does not contain backslashes and begins
11343 # with a dollar sign (not a hyphen), so the echo should work correctly.
11344 # The option is referenced via a variable to avoid confusing sed.
11345 lt_compile=`echo "$ac_compile" | $SED \
11346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11348 -e 's:$: $lt_compiler_flag:'`
11349 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11350 (eval "$lt_compile" 2>conftest.err)
11352 cat conftest.err >&5
11353 echo "$as_me:__oline__: \$? = $ac_status" >&5
11354 if (exit $ac_status) && test -s "$ac_outfile"; then
11355 # The compiler can only warn and ignore the option if not recognized
11356 # So say no if there are warnings other than the usual output.
11357 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11358 $SED '/^$/d' conftest.err >conftest.er2
11359 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11360 lt_prog_compiler_pic_works_CXX=yes
11366 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11367 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11369 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11370 case $lt_prog_compiler_pic_CXX in
11372 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11375 lt_prog_compiler_pic_CXX=
11376 lt_prog_compiler_can_build_shared_CXX=no
11381 # For platforms which do not support PIC, -DPIC is meaningless:
11383 lt_prog_compiler_pic_CXX=
11386 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11390 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11391 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11392 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 lt_cv_prog_compiler_c_o_CXX=no
11396 $rm -r conftest 2>/dev/null
11400 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11402 lt_compiler_flag="-o out/conftest2.$ac_objext"
11403 # Insert the option either (1) after the last *FLAGS variable, or
11404 # (2) before a word containing "conftest.", or (3) at the end.
11405 # Note that $ac_compile itself does not contain backslashes and begins
11406 # with a dollar sign (not a hyphen), so the echo should work correctly.
11407 lt_compile=`echo "$ac_compile" | $SED \
11408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11410 -e 's:$: $lt_compiler_flag:'`
11411 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11412 (eval "$lt_compile" 2>out/conftest.err)
11414 cat out/conftest.err >&5
11415 echo "$as_me:__oline__: \$? = $ac_status" >&5
11416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11418 # The compiler can only warn and ignore the option if not recognized
11419 # So say no if there are warnings
11420 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11421 $SED '/^$/d' out/conftest.err >out/conftest.er2
11422 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11423 lt_cv_prog_compiler_c_o_CXX=yes
11428 # SGI C++ compiler will create directory out/ii_files/ for
11429 # template instantiation
11430 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11431 $rm out/* && rmdir out
11437 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11438 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11441 hard_links="nottested"
11442 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11443 # do not overwrite the value of need_locks provided by the user
11444 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11445 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11450 ln conftest.a conftest.b 2>&5 || hard_links=no
11451 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11452 echo "$as_me:$LINENO: result: $hard_links" >&5
11453 echo "${ECHO_T}$hard_links" >&6
11454 if test "$hard_links" = no; then
11455 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11456 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11463 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11464 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11466 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11469 # If we're using GNU nm, then we don't want the "-C" option.
11470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11471 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11472 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'
11474 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'
11478 export_symbols_cmds_CXX="$ltdll_cmds"
11481 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'
11484 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11488 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11489 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11490 test "$ld_shlibs_CXX" = no && can_build_shared=no
11492 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11493 if test "$GCC" = yes; then
11494 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11498 # Do we need to explicitly link libc?
11500 case "x$archive_cmds_need_lc_CXX" in
11502 # Assume -lc should be added
11503 archive_cmds_need_lc_CXX=yes
11505 if test "$enable_shared" = yes && test "$GCC" = yes; then
11506 case $archive_cmds_CXX in
11508 # FIXME: we may have to deal with multi-command sequences.
11511 # Test whether the compiler implicitly links with -lc since on some
11512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11513 # to ld, don't add -lc before -lgcc.
11514 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11515 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520 (eval $ac_compile) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } 2>conftest.err; then
11526 libobjs=conftest.$ac_objext
11528 wl=$lt_prog_compiler_wl_CXX
11534 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11535 allow_undefined_flag_CXX=
11536 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11537 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }
11542 archive_cmds_need_lc_CXX=no
11544 archive_cmds_need_lc_CXX=yes
11546 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11548 cat conftest.err 1>&5
11551 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11552 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11559 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11560 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11561 library_names_spec=
11562 libname_spec='lib$name'
11566 postuninstall_cmds=
11570 shlibpath_overrides_runpath=unknown
11572 dynamic_linker="$host_os ld.so"
11573 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11574 if test "$GCC" = yes; then
11575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11576 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11577 # if the path contains ";" then we assume it to be the separator
11578 # otherwise default to the standard path separator (i.e. ":") - it is
11579 # assumed that no part of a normal pathname contains ";" but that should
11580 # okay in the real world where ";" in dirpaths is itself problematic.
11581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11586 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11588 need_lib_prefix=unknown
11589 hardcode_into_libs=no
11591 # when you set need_version to no, make sure it does not cause -set_version
11592 # flags to be left without arguments
11593 need_version=unknown
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11599 shlibpath_var=LIBPATH
11601 # AIX 3 has no versioning support, so we append a major version to the name.
11602 soname_spec='${libname}${release}${shared_ext}$major'
11609 hardcode_into_libs=yes
11610 if test "$host_cpu" = ia64; then
11611 # AIX 5 supports IA64
11612 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11613 shlibpath_var=LD_LIBRARY_PATH
11615 # With GCC up to 2.95.x, collect2 would create an import file
11616 # for dependence libraries. The import file would start with
11617 # the line `#! .'. This would cause the generated library to
11618 # depend on `.', always an invalid library. This was fixed in
11619 # development snapshots of GCC prior to 3.0.
11621 aix4 | aix4.[01] | aix4.[01].*)
11622 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11624 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11627 can_build_shared=no
11631 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11632 # soname into executable. Probably we can add versioning support to
11633 # collect2, so additional links can be useful in future.
11634 if test "$aix_use_runtimelinking" = yes; then
11635 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11636 # instead of lib<name>.a to let people know that these are not
11637 # typical AIX shared libraries.
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640 # We preserve .a as extension for shared libraries through AIX4.2
11641 # and later when we are not doing run time linking.
11642 library_names_spec='${libname}${release}.a $libname.a'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11645 shlibpath_var=LIBPATH
11650 library_names_spec='$libname.ixlibrary $libname.a'
11651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11652 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'
11656 library_names_spec='${libname}${shared_ext}'
11657 dynamic_linker="$host_os ld.so"
11658 shlibpath_var=LIBRARY_PATH
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11667 shlibpath_var=LD_LIBRARY_PATH
11668 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11669 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11670 # the default ld.so.conf also contains /usr/contrib/lib and
11671 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11672 # libtool to hard-code these into programs
11675 cygwin* | mingw* | pw32*)
11676 version_type=windows
11681 case $GCC,$host_os in
11682 yes,cygwin* | yes,mingw* | yes,pw32*)
11683 library_names_spec='$libname.dll.a'
11684 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11685 postinstall_cmds='base_file=`basename \${file}`~
11686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11687 dldir=$destdir/`dirname \$dlpath`~
11688 test -d \$dldir || mkdir -p \$dldir~
11689 $install_prog $dir/$dlname \$dldir/$dlname~
11690 chmod a+x \$dldir/$dlname'
11691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11692 dlpath=$dir/\$dldll~
11694 shlibpath_overrides_runpath=yes
11698 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11699 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11700 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11703 # MinGW DLLs use traditional 'lib' prefix
11704 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11705 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11706 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11707 # It is most probably a Windows format PATH printed by
11708 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11709 # path with ; separators, and with drive letters. We can handle the
11710 # drive letters (cygwin fileutils understands them), so leave them,
11711 # especially as we might pass files found there to a mingw objdump,
11712 # which wouldn't understand a cygwinified path. Ahh.
11713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11719 # pw32 DLLs use 'pw' prefix rather than 'lib'
11720 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11726 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11729 dynamic_linker='Win32 ld.exe'
11730 # FIXME: first we should search . and the directory the executable is in
11734 darwin* | rhapsody*)
11735 dynamic_linker="$host_os dyld"
11736 version_type=darwin
11739 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11740 soname_spec='${libname}${release}${major}$shared_ext'
11741 shlibpath_overrides_runpath=yes
11742 shlibpath_var=DYLD_LIBRARY_PATH
11743 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11744 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11745 if test "$GCC" = yes; then
11746 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"`
11748 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 shlibpath_var=LD_LIBRARY_PATH
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 shlibpath_overrides_runpath=no
11774 hardcode_into_libs=yes
11775 dynamic_linker='GNU ld.so'
11778 freebsd* | dragonfly*)
11779 # DragonFly does not have aout. When/if they implement a new
11780 # versioning mechanism, adjust this.
11781 if test -x /usr/bin/objformat; then
11782 objformat=`/usr/bin/objformat`
11785 freebsd[123]*) objformat=aout ;;
11786 *) objformat=elf ;;
11789 version_type=freebsd-$objformat
11790 case $version_type in
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11801 shlibpath_var=LD_LIBRARY_PATH
11804 shlibpath_overrides_runpath=yes
11806 freebsd3.[01]* | freebsdelf3.[01]*)
11807 shlibpath_overrides_runpath=yes
11808 hardcode_into_libs=yes
11811 shlibpath_overrides_runpath=no
11812 hardcode_into_libs=yes
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 hardcode_into_libs=yes
11827 hpux9* | hpux10* | hpux11*)
11828 # Give a soname corresponding to the major version so that dld.sl refuses to
11829 # link against other versions.
11836 hardcode_into_libs=yes
11837 dynamic_linker="$host_os dld.so"
11838 shlibpath_var=LD_LIBRARY_PATH
11839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 if test "X$HPUX_IA64_MODE" = X32; then
11843 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11851 hardcode_into_libs=yes
11852 dynamic_linker="$host_os dld.sl"
11853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856 soname_spec='${libname}${release}${shared_ext}$major'
11857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11862 dynamic_linker="$host_os dld.sl"
11863 shlibpath_var=SHLIB_PATH
11864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866 soname_spec='${libname}${release}${shared_ext}$major'
11869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11870 postinstall_cmds='chmod 555 $lib'
11873 irix5* | irix6* | nonstopux*)
11875 nonstopux*) version_type=nonstopux ;;
11877 if test "$lt_cv_prog_gnu_ld" = yes; then
11885 soname_spec='${libname}${release}${shared_ext}$major'
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11888 irix5* | nonstopux*)
11889 libsuff= shlibsuff=
11892 case $LD in # libtool.m4 will add one of these switches to LD
11893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11894 libsuff= shlibsuff= libmagic=32-bit;;
11895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11896 libsuff=32 shlibsuff=N32 libmagic=N32;;
11897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11898 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11899 *) libsuff= shlibsuff= libmagic=never-match;;
11903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11904 shlibpath_overrides_runpath=no
11905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11907 hardcode_into_libs=yes
11910 # No shared lib support for Linux oldld, aout, or coff.
11911 linux*oldld* | linux*aout* | linux*coff*)
11915 # This must be Linux ELF.
11920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11921 soname_spec='${libname}${release}${shared_ext}$major'
11922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11923 shlibpath_var=LD_LIBRARY_PATH
11924 shlibpath_overrides_runpath=no
11925 # This implies no fast_install, which is unacceptable.
11926 # Some rework will be needed to allow for fast_install
11927 # before this can be enabled.
11928 hardcode_into_libs=yes
11930 # Append ld.so.conf contents to the search path
11931 if test -f /etc/ld.so.conf; then
11932 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' ' '`
11933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11936 # We used to test for /lib/ld.so.1 and disable shared libraries on
11937 # powerpc, because MkLinux only supported shared libraries with the
11938 # GNU dynamic linker. Since this was broken with cross compilers,
11939 # most powerpc-linux boxes support dynamic linking these days and
11940 # people can always --disable-shared, the test was removed, and we
11941 # assume the GNU/Linux dynamic linker is in use.
11942 dynamic_linker='GNU/Linux ld.so'
11949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11950 soname_spec='${libname}${release}${shared_ext}$major'
11951 shlibpath_var=LD_LIBRARY_PATH
11952 shlibpath_overrides_runpath=no
11953 hardcode_into_libs=yes
11954 dynamic_linker='GNU ld.so'
11961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11964 dynamic_linker='NetBSD (a.out) ld.so'
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 dynamic_linker='NetBSD ld.elf_so'
11970 shlibpath_var=LD_LIBRARY_PATH
11971 shlibpath_overrides_runpath=yes
11972 hardcode_into_libs=yes
11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11978 shlibpath_var=LD_LIBRARY_PATH
11979 shlibpath_overrides_runpath=yes
11986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11987 soname_spec='${libname}${release}${shared_ext}$major'
11988 shlibpath_var=LD_LIBRARY_PATH
11989 shlibpath_overrides_runpath=yes
11995 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11997 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11998 *) need_version=no ;;
12000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12002 shlibpath_var=LD_LIBRARY_PATH
12003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12005 openbsd2.[89] | openbsd2.[89].*)
12006 shlibpath_overrides_runpath=no
12009 shlibpath_overrides_runpath=yes
12013 shlibpath_overrides_runpath=yes
12018 libname_spec='$name'
12021 library_names_spec='$libname${shared_ext} $libname.a'
12022 dynamic_linker='OS/2 ld.exe'
12023 shlibpath_var=LIBPATH
12026 osf3* | osf4* | osf5*)
12030 soname_spec='${libname}${release}${shared_ext}$major'
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12039 soname_spec='${libname}${release}${shared_ext}$major'
12040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12041 shlibpath_var=LD_LIBRARY_PATH
12048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049 soname_spec='${libname}${release}${shared_ext}$major'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 shlibpath_overrides_runpath=yes
12052 hardcode_into_libs=yes
12053 # ldd complains unless libraries are executable
12054 postinstall_cmds='chmod +x $lib'
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 shlibpath_overrides_runpath=yes
12063 if test "$with_gnu_ld" = yes; then
12069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 case $host_vendor in
12076 shlibpath_overrides_runpath=no
12078 export_dynamic_flag_spec='${wl}-Blargedynsym'
12079 runpath_var=LD_RUN_PATH
12087 shlibpath_overrides_runpath=no
12088 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12094 if test -d /usr/nec ;then
12096 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12097 soname_spec='$libname${shared_ext}.$major'
12098 shlibpath_var=LD_LIBRARY_PATH
12104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105 soname_spec='${libname}${release}${shared_ext}$major'
12106 shlibpath_var=LD_LIBRARY_PATH
12113 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12114 echo "${ECHO_T}$dynamic_linker" >&6
12115 test "$dynamic_linker" = no && can_build_shared=no
12117 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12118 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12119 hardcode_action_CXX=
12120 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12121 test -n "$runpath_var_CXX" || \
12122 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12124 # We can hardcode non-existant directories.
12125 if test "$hardcode_direct_CXX" != no &&
12126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12127 # have to relink, otherwise we might link with an installed library
12128 # when we should be linking with a yet-to-be-installed one
12129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12130 test "$hardcode_minus_L_CXX" != no; then
12131 # Linking always hardcodes the temporary library directory.
12132 hardcode_action_CXX=relink
12134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12135 hardcode_action_CXX=immediate
12138 # We cannot hardcode anything, or else we can only hardcode existing
12140 hardcode_action_CXX=unsupported
12142 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12143 echo "${ECHO_T}$hardcode_action_CXX" >&6
12145 if test "$hardcode_action_CXX" = relink; then
12146 # Fast installation is not supported
12147 enable_fast_install=no
12148 elif test "$shlibpath_overrides_runpath" = yes ||
12149 test "$enable_shared" = no; then
12150 # Fast installation is not necessary
12151 enable_fast_install=needless
12156 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12157 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12158 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12159 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12160 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12161 echo "$as_me:$LINENO: result: yes" >&5
12162 echo "${ECHO_T}yes" >&6
12164 # FIXME - insert some real tests, host_os isn't really good enough
12167 if test -n "$STRIP" ; then
12168 striplib="$STRIP -x"
12169 echo "$as_me:$LINENO: result: yes" >&5
12170 echo "${ECHO_T}yes" >&6
12172 echo "$as_me:$LINENO: result: no" >&5
12173 echo "${ECHO_T}no" >&6
12177 echo "$as_me:$LINENO: result: no" >&5
12178 echo "${ECHO_T}no" >&6
12183 if test "x$enable_dlopen" != xyes; then
12184 enable_dlopen=unknown
12185 enable_dlopen_self=unknown
12186 enable_dlopen_self_static=unknown
12193 lt_cv_dlopen="load_add_on"
12195 lt_cv_dlopen_self=yes
12199 lt_cv_dlopen="LoadLibrary"
12204 lt_cv_dlopen="dlopen"
12209 # if libdl is installed we need to link against it
12210 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12211 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12212 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 ac_check_lib_save_LIBS=$LIBS
12217 cat >conftest.$ac_ext <<_ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12224 /* Override any gcc2 internal prototype to avoid an error. */
12228 /* We use char because int might match the return type of a gcc2
12229 builtin and then its argument prototype would still apply. */
12239 rm -f conftest.$ac_objext conftest$ac_exeext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12241 (eval $ac_link) 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; } &&
12254 { ac_try='test -s conftest$ac_exeext'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 ac_cv_lib_dl_dlopen=yes
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_cv_lib_dl_dlopen=no
12267 rm -f conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12269 LIBS=$ac_check_lib_save_LIBS
12271 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12272 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12273 if test $ac_cv_lib_dl_dlopen = yes; then
12274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12277 lt_cv_dlopen="dyld"
12279 lt_cv_dlopen_self=yes
12286 echo "$as_me:$LINENO: checking for shl_load" >&5
12287 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12288 if test "${ac_cv_func_shl_load+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 cat >conftest.$ac_ext <<_ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12299 #define shl_load innocuous_shl_load
12301 /* System header to define __stub macros and hopefully few prototypes,
12302 which can conflict with char shl_load (); below.
12303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12304 <limits.h> exists even on freestanding compilers. */
12307 # include <limits.h>
12309 # include <assert.h>
12314 /* Override any gcc2 internal prototype to avoid an error. */
12319 /* We use char because int might match the return type of a gcc2
12320 builtin and then its argument prototype would still apply. */
12322 /* The GNU C library defines this for functions which it implements
12323 to always fail with ENOSYS. Some functions are actually named
12324 something starting with __ and the normal name is an alias. */
12325 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12328 char (*f) () = shl_load;
12337 return f != shl_load;
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>conftest.er1
12346 grep -v '^ *+' conftest.er1 >conftest.err
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest$ac_exeext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 ac_cv_func_shl_load=yes
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 ac_cv_func_shl_load=no
12370 rm -f conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext conftest.$ac_ext
12373 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12374 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12375 if test $ac_cv_func_shl_load = yes; then
12376 lt_cv_dlopen="shl_load"
12378 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12379 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12380 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 ac_check_lib_save_LIBS=$LIBS
12385 cat >conftest.$ac_ext <<_ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12392 /* Override any gcc2 internal prototype to avoid an error. */
12396 /* We use char because int might match the return type of a gcc2
12397 builtin and then its argument prototype would still apply. */
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409 (eval $ac_link) 2>conftest.er1
12411 grep -v '^ *+' conftest.er1 >conftest.err
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest$ac_exeext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12428 ac_cv_lib_dld_shl_load=yes
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12433 ac_cv_lib_dld_shl_load=no
12435 rm -f conftest.err conftest.$ac_objext \
12436 conftest$ac_exeext conftest.$ac_ext
12437 LIBS=$ac_check_lib_save_LIBS
12439 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12440 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12441 if test $ac_cv_lib_dld_shl_load = yes; then
12442 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12444 echo "$as_me:$LINENO: checking for dlopen" >&5
12445 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12446 if test "${ac_cv_func_dlopen+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 cat >conftest.$ac_ext <<_ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12457 #define dlopen innocuous_dlopen
12459 /* System header to define __stub macros and hopefully few prototypes,
12460 which can conflict with char dlopen (); below.
12461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12462 <limits.h> exists even on freestanding compilers. */
12465 # include <limits.h>
12467 # include <assert.h>
12472 /* Override any gcc2 internal prototype to avoid an error. */
12477 /* We use char because int might match the return type of a gcc2
12478 builtin and then its argument prototype would still apply. */
12480 /* The GNU C library defines this for functions which it implements
12481 to always fail with ENOSYS. Some functions are actually named
12482 something starting with __ and the normal name is an alias. */
12483 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12486 char (*f) () = dlopen;
12495 return f != dlopen;
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12502 (eval $ac_link) 2>conftest.er1
12504 grep -v '^ *+' conftest.er1 >conftest.err
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest$ac_exeext'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 ac_cv_func_dlopen=yes
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ac_cv_func_dlopen=no
12528 rm -f conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12531 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12532 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12533 if test $ac_cv_func_dlopen = yes; then
12534 lt_cv_dlopen="dlopen"
12536 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12537 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12538 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 ac_check_lib_save_LIBS=$LIBS
12543 cat >conftest.$ac_ext <<_ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12550 /* Override any gcc2 internal prototype to avoid an error. */
12554 /* We use char because int might match the return type of a gcc2
12555 builtin and then its argument prototype would still apply. */
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567 (eval $ac_link) 2>conftest.er1
12569 grep -v '^ *+' conftest.er1 >conftest.err
12571 cat conftest.err >&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
12574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest$ac_exeext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 ac_cv_lib_dl_dlopen=yes
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12591 ac_cv_lib_dl_dlopen=no
12593 rm -f conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595 LIBS=$ac_check_lib_save_LIBS
12597 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12598 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12599 if test $ac_cv_lib_dl_dlopen = yes; then
12600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12602 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12603 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12604 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 ac_check_lib_save_LIBS=$LIBS
12608 LIBS="-lsvld $LIBS"
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12616 /* Override any gcc2 internal prototype to avoid an error. */
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12631 rm -f conftest.$ac_objext conftest$ac_exeext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12633 (eval $ac_link) 2>conftest.er1
12635 grep -v '^ *+' conftest.er1 >conftest.err
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest$ac_exeext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_cv_lib_svld_dlopen=yes
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12657 ac_cv_lib_svld_dlopen=no
12659 rm -f conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12661 LIBS=$ac_check_lib_save_LIBS
12663 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12664 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12665 if test $ac_cv_lib_svld_dlopen = yes; then
12666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12668 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12669 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12670 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 ac_check_lib_save_LIBS=$LIBS
12675 cat >conftest.$ac_ext <<_ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12682 /* Override any gcc2 internal prototype to avoid an error. */
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12699 (eval $ac_link) 2>conftest.er1
12701 grep -v '^ *+' conftest.er1 >conftest.err
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest$ac_exeext'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 ac_cv_lib_dld_dld_link=yes
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12723 ac_cv_lib_dld_dld_link=no
12725 rm -f conftest.err conftest.$ac_objext \
12726 conftest$ac_exeext conftest.$ac_ext
12727 LIBS=$ac_check_lib_save_LIBS
12729 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12730 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12731 if test $ac_cv_lib_dld_dld_link = yes; then
12732 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12753 if test "x$lt_cv_dlopen" != xno; then
12759 case $lt_cv_dlopen in
12761 save_CPPFLAGS="$CPPFLAGS"
12762 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12764 save_LDFLAGS="$LDFLAGS"
12765 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12768 LIBS="$lt_cv_dlopen_libs $LIBS"
12770 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12771 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12772 if test "${lt_cv_dlopen_self+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 if test "$cross_compiling" = yes; then :
12776 lt_cv_dlopen_self=cross
12778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12779 lt_status=$lt_dlunknown
12780 cat > conftest.$ac_ext <<EOF
12781 #line __oline__ "configure"
12782 #include "confdefs.h"
12791 # define LT_DLGLOBAL RTLD_GLOBAL
12794 # define LT_DLGLOBAL DL_GLOBAL
12796 # define LT_DLGLOBAL 0
12800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12801 find out it does not work in some platform. */
12802 #ifndef LT_DLLAZY_OR_NOW
12804 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12807 # define LT_DLLAZY_OR_NOW DL_LAZY
12810 # define LT_DLLAZY_OR_NOW RTLD_NOW
12813 # define LT_DLLAZY_OR_NOW DL_NOW
12815 # define LT_DLLAZY_OR_NOW 0
12823 extern "C" void exit (int);
12826 void fnord() { int i=42;}
12829 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12830 int status = $lt_dlunknown;
12834 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12835 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12836 /* dlclose (self); */
12842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12843 (eval $ac_link) 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12847 (./conftest; exit; ) >&5 2>/dev/null
12849 case x$lt_status in
12850 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12851 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12852 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12855 # compilation failed
12856 lt_cv_dlopen_self=no
12863 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12864 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12866 if test "x$lt_cv_dlopen_self" = xyes; then
12867 LDFLAGS="$LDFLAGS $link_static_flag"
12868 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12869 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12870 if test "${lt_cv_dlopen_self_static+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12873 if test "$cross_compiling" = yes; then :
12874 lt_cv_dlopen_self_static=cross
12876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12877 lt_status=$lt_dlunknown
12878 cat > conftest.$ac_ext <<EOF
12879 #line __oline__ "configure"
12880 #include "confdefs.h"
12889 # define LT_DLGLOBAL RTLD_GLOBAL
12892 # define LT_DLGLOBAL DL_GLOBAL
12894 # define LT_DLGLOBAL 0
12898 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12899 find out it does not work in some platform. */
12900 #ifndef LT_DLLAZY_OR_NOW
12902 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12905 # define LT_DLLAZY_OR_NOW DL_LAZY
12908 # define LT_DLLAZY_OR_NOW RTLD_NOW
12911 # define LT_DLLAZY_OR_NOW DL_NOW
12913 # define LT_DLLAZY_OR_NOW 0
12921 extern "C" void exit (int);
12924 void fnord() { int i=42;}
12927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12928 int status = $lt_dlunknown;
12932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12933 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12934 /* dlclose (self); */
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12945 (./conftest; exit; ) >&5 2>/dev/null
12947 case x$lt_status in
12948 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12949 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12950 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12953 # compilation failed
12954 lt_cv_dlopen_self_static=no
12961 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12962 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12965 CPPFLAGS="$save_CPPFLAGS"
12966 LDFLAGS="$save_LDFLAGS"
12971 case $lt_cv_dlopen_self in
12972 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12973 *) enable_dlopen_self=unknown ;;
12976 case $lt_cv_dlopen_self_static in
12977 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12978 *) enable_dlopen_self_static=unknown ;;
12983 # The else clause should only fire when bootstrapping the
12984 # libtool distribution, otherwise you forgot to ship ltmain.sh
12985 # with your package, and you will get complaints that there are
12986 # no rules to generate ltmain.sh.
12987 if test -f "$ltmain"; then
12988 # See if we are running on zsh, and set the options which allow our commands through
12989 # without removal of \ escapes.
12990 if test -n "${ZSH_VERSION+set}" ; then
12991 setopt NO_GLOB_SUBST
12993 # Now quote all the things that may contain metacharacters while being
12994 # careful not to overquote the AC_SUBSTed values. We take copies of the
12995 # variables and quote the copies for generation of the libtool script.
12996 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12998 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12999 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13000 deplibs_check_method reload_flag reload_cmds need_locks \
13001 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13002 lt_cv_sys_global_symbol_to_c_name_address \
13003 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13004 old_postinstall_cmds old_postuninstall_cmds \
13008 lt_prog_compiler_wl_CXX \
13009 lt_prog_compiler_pic_CXX \
13010 lt_prog_compiler_static_CXX \
13011 lt_prog_compiler_no_builtin_flag_CXX \
13012 export_dynamic_flag_spec_CXX \
13013 thread_safe_flag_spec_CXX \
13014 whole_archive_flag_spec_CXX \
13015 enable_shared_with_static_runtimes_CXX \
13016 old_archive_cmds_CXX \
13017 old_archive_from_new_cmds_CXX \
13018 predep_objects_CXX \
13019 postdep_objects_CXX \
13022 compiler_lib_search_path_CXX \
13024 archive_expsym_cmds_CXX \
13025 postinstall_cmds_CXX \
13026 postuninstall_cmds_CXX \
13027 old_archive_from_expsyms_cmds_CXX \
13028 allow_undefined_flag_CXX \
13029 no_undefined_flag_CXX \
13030 export_symbols_cmds_CXX \
13031 hardcode_libdir_flag_spec_CXX \
13032 hardcode_libdir_flag_spec_ld_CXX \
13033 hardcode_libdir_separator_CXX \
13034 hardcode_automatic_CXX \
13036 module_expsym_cmds_CXX \
13037 lt_cv_prog_compiler_c_o_CXX \
13038 exclude_expsyms_CXX \
13039 include_expsyms_CXX; do
13042 old_archive_cmds_CXX | \
13043 old_archive_from_new_cmds_CXX | \
13044 archive_cmds_CXX | \
13045 archive_expsym_cmds_CXX | \
13046 module_cmds_CXX | \
13047 module_expsym_cmds_CXX | \
13048 old_archive_from_expsyms_cmds_CXX | \
13049 export_symbols_cmds_CXX | \
13050 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13051 postinstall_cmds | postuninstall_cmds | \
13052 old_postinstall_cmds | old_postuninstall_cmds | \
13053 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13054 # Double-quote double-evaled strings.
13055 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13058 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13064 *'\$0 --fallback-echo"')
13065 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13071 cat <<__EOF__ >> "$cfgfile"
13072 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13074 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13076 # Shell to use when invoking shell scripts.
13079 # Whether or not to build shared libraries.
13080 build_libtool_libs=$enable_shared
13082 # Whether or not to build static libraries.
13083 build_old_libs=$enable_static
13085 # Whether or not to add -lc for building shared libraries.
13086 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13088 # Whether or not to disallow shared libs when runtime libs are static
13089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13091 # Whether or not to optimize for fast installation.
13092 fast_install=$enable_fast_install
13095 host_alias=$host_alias
13099 # The build system.
13100 build_alias=$build_alias
13104 # An echo program that does not interpret backslashes.
13109 AR_FLAGS=$lt_AR_FLAGS
13114 # A language-specific compiler.
13115 CC=$lt_compiler_CXX
13117 # Is the compiler the GNU C compiler?
13123 # The linker used to build libraries.
13126 # Whether we need hard or soft links.
13129 # A BSD-compatible nm program.
13132 # A symbol stripping program
13135 # Used to examine libraries when file_magic_cmd begins "file"
13136 MAGIC_CMD=$MAGIC_CMD
13138 # Used on cygwin: DLL creation program.
13141 # Used on cygwin: object dumper.
13144 # Used on cygwin: assembler.
13147 # The name of the directory that contains temporary libtool files.
13150 # How to create reloadable object files.
13151 reload_flag=$lt_reload_flag
13152 reload_cmds=$lt_reload_cmds
13154 # How to pass a linker flag through the compiler.
13155 wl=$lt_lt_prog_compiler_wl_CXX
13157 # Object file suffix (normally "o").
13158 objext="$ac_objext"
13160 # Old archive suffix (normally "a").
13163 # Shared library suffix (normally ".so").
13164 shrext_cmds='$shrext_cmds'
13166 # Executable file suffix (normally "").
13169 # Additional compiler flags for building library objects.
13170 pic_flag=$lt_lt_prog_compiler_pic_CXX
13173 # What is the maximum length of a command?
13174 max_cmd_len=$lt_cv_sys_max_cmd_len
13176 # Does compiler simultaneously support -c and -o options?
13177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13179 # Must we lock files when doing compilation?
13180 need_locks=$lt_need_locks
13182 # Do we need the lib prefix for modules?
13183 need_lib_prefix=$need_lib_prefix
13185 # Do we need a version for libraries?
13186 need_version=$need_version
13188 # Whether dlopen is supported.
13189 dlopen_support=$enable_dlopen
13191 # Whether dlopen of programs is supported.
13192 dlopen_self=$enable_dlopen_self
13194 # Whether dlopen of statically linked programs is supported.
13195 dlopen_self_static=$enable_dlopen_self_static
13197 # Compiler flag to prevent dynamic linking.
13198 link_static_flag=$lt_lt_prog_compiler_static_CXX
13200 # Compiler flag to turn off builtin functions.
13201 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13203 # Compiler flag to allow reflexive dlopens.
13204 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13206 # Compiler flag to generate shared objects directly from archives.
13207 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13209 # Compiler flag to generate thread-safe objects.
13210 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13212 # Library versioning type.
13213 version_type=$version_type
13215 # Format of library name prefix.
13216 libname_spec=$lt_libname_spec
13218 # List of archive names. First name is the real one, the rest are links.
13219 # The last name is the one that the linker finds with -lNAME.
13220 library_names_spec=$lt_library_names_spec
13222 # The coded name of the library, if different from the real name.
13223 soname_spec=$lt_soname_spec
13225 # Commands used to build and install an old-style archive.
13227 old_archive_cmds=$lt_old_archive_cmds_CXX
13228 old_postinstall_cmds=$lt_old_postinstall_cmds
13229 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13231 # Create an old-style archive from a shared archive.
13232 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13234 # Create a temporary old-style archive to link instead of a shared archive.
13235 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13237 # Commands used to build and install a shared archive.
13238 archive_cmds=$lt_archive_cmds_CXX
13239 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13240 postinstall_cmds=$lt_postinstall_cmds
13241 postuninstall_cmds=$lt_postuninstall_cmds
13243 # Commands used to build a loadable module (assumed same as above if empty)
13244 module_cmds=$lt_module_cmds_CXX
13245 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13247 # Commands to strip libraries.
13248 old_striplib=$lt_old_striplib
13249 striplib=$lt_striplib
13251 # Dependencies to place before the objects being linked to create a
13253 predep_objects=$lt_predep_objects_CXX
13255 # Dependencies to place after the objects being linked to create a
13257 postdep_objects=$lt_postdep_objects_CXX
13259 # Dependencies to place before the objects being linked to create a
13261 predeps=$lt_predeps_CXX
13263 # Dependencies to place after the objects being linked to create a
13265 postdeps=$lt_postdeps_CXX
13267 # The library search path used internally by the compiler when linking
13268 # a shared library.
13269 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13271 # Method to check whether dependent libraries are shared objects.
13272 deplibs_check_method=$lt_deplibs_check_method
13274 # Command to use when deplibs_check_method == file_magic.
13275 file_magic_cmd=$lt_file_magic_cmd
13277 # Flag that allows shared libraries with undefined symbols to be built.
13278 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13280 # Flag that forces no undefined symbols.
13281 no_undefined_flag=$lt_no_undefined_flag_CXX
13283 # Commands used to finish a libtool library installation in a directory.
13284 finish_cmds=$lt_finish_cmds
13286 # Same as above, but a single script fragment to be evaled but not shown.
13287 finish_eval=$lt_finish_eval
13289 # Take the output of nm and produce a listing of raw symbols and C names.
13290 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13292 # Transform the output of nm in a proper C declaration
13293 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13295 # Transform the output of nm in a C name address pair
13296 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13298 # This is the shared library runtime path variable.
13299 runpath_var=$runpath_var
13301 # This is the shared library path variable.
13302 shlibpath_var=$shlibpath_var
13304 # Is shlibpath searched before the hard-coded library search path?
13305 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13307 # How to hardcode a shared library path into an executable.
13308 hardcode_action=$hardcode_action_CXX
13310 # Whether we should hardcode library paths into libraries.
13311 hardcode_into_libs=$hardcode_into_libs
13313 # Flag to hardcode \$libdir into a binary during linking.
13314 # This must work even if \$libdir does not exist.
13315 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13317 # If ld is used when linking, flag to hardcode \$libdir into
13318 # a binary during linking. This must work even if \$libdir does
13320 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13322 # Whether we need a single -rpath flag with a separated argument.
13323 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13325 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13326 # resulting binary.
13327 hardcode_direct=$hardcode_direct_CXX
13329 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13330 # resulting binary.
13331 hardcode_minus_L=$hardcode_minus_L_CXX
13333 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13334 # the resulting binary.
13335 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13337 # Set to yes if building a shared library automatically hardcodes DIR into the library
13338 # and all subsequent libraries and executables linked against it.
13339 hardcode_automatic=$hardcode_automatic_CXX
13341 # Variables whose values should be saved in libtool wrapper scripts and
13342 # restored at relink time.
13343 variables_saved_for_relink="$variables_saved_for_relink"
13345 # Whether libtool must link a program against all its dependency libraries.
13346 link_all_deplibs=$link_all_deplibs_CXX
13348 # Compile-time system search path for libraries
13349 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13351 # Run-time system search path for libraries
13352 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13354 # Fix the shell variable \$srcfile for the compiler.
13355 fix_srcfile_path="$fix_srcfile_path_CXX"
13357 # Set to yes if exported symbols are required.
13358 always_export_symbols=$always_export_symbols_CXX
13360 # The commands to list exported symbols.
13361 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13363 # The commands to extract the exported symbol list from a shared archive.
13364 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13366 # Symbols that should not be listed in the preloaded symbols.
13367 exclude_expsyms=$lt_exclude_expsyms_CXX
13369 # Symbols that must always be exported.
13370 include_expsyms=$lt_include_expsyms_CXX
13372 # ### END LIBTOOL TAG CONFIG: $tagname
13378 # If there is no Makefile yet, we rely on a make rule to execute
13379 # `config.status --recheck' to rerun these tests and create the
13380 # libtool script then.
13381 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13382 if test -f "$ltmain_in"; then
13383 test -f Makefile && make "$ltmain"
13389 ac_cpp='$CPP $CPPFLAGS'
13390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13398 with_gnu_ldcxx=$with_gnu_ld
13399 with_gnu_ld=$lt_save_with_gnu_ld
13400 lt_cv_path_LDCXX=$lt_cv_path_LD
13401 lt_cv_path_LD=$lt_save_path_LD
13402 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13403 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13411 if test -n "$F77" && test "X$F77" != "Xno"; then
13414 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13415 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13416 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13419 archive_cmds_need_lc_F77=no
13420 allow_undefined_flag_F77=
13421 always_export_symbols_F77=no
13422 archive_expsym_cmds_F77=
13423 export_dynamic_flag_spec_F77=
13424 hardcode_direct_F77=no
13425 hardcode_libdir_flag_spec_F77=
13426 hardcode_libdir_flag_spec_ld_F77=
13427 hardcode_libdir_separator_F77=
13428 hardcode_minus_L_F77=no
13429 hardcode_automatic_F77=no
13431 module_expsym_cmds_F77=
13432 link_all_deplibs_F77=unknown
13433 old_archive_cmds_F77=$old_archive_cmds
13434 no_undefined_flag_F77=
13435 whole_archive_flag_spec_F77=
13436 enable_shared_with_static_runtimes_F77=no
13438 # Source file extension for f77 test sources.
13441 # Object file extension for compiled f77 test sources.
13445 # Code to be used in simple compile tests
13446 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13448 # Code to be used in simple link tests
13449 lt_simple_link_test_code=" program t\n end\n"
13451 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13453 # If no C compiler was specified, use CC.
13456 # Allow CC to be a program name with arguments.
13460 # save warnings/boilerplate of simple test code
13461 ac_outfile=conftest.$ac_objext
13462 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13463 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13464 _lt_compiler_boilerplate=`cat conftest.err`
13467 ac_outfile=conftest.$ac_objext
13468 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13469 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13470 _lt_linker_boilerplate=`cat conftest.err`
13474 # Allow CC to be a program name with arguments.
13479 for cc_temp in $compiler""; do
13481 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13482 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13487 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13490 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13491 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13492 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13493 echo "${ECHO_T}$can_build_shared" >&6
13495 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13496 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13497 test "$can_build_shared" = "no" && enable_shared=no
13499 # On AIX, shared libraries and static libraries use the same namespace, and
13500 # are all built from PIC.
13503 test "$enable_shared" = yes && enable_static=no
13504 if test -n "$RANLIB"; then
13505 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13506 postinstall_cmds='$RANLIB $lib'
13510 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13511 test "$enable_shared" = yes && enable_static=no
13515 echo "$as_me:$LINENO: result: $enable_shared" >&5
13516 echo "${ECHO_T}$enable_shared" >&6
13518 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13519 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13520 # Make sure either enable_shared or enable_static is yes.
13521 test "$enable_shared" = yes || enable_static=yes
13522 echo "$as_me:$LINENO: result: $enable_static" >&5
13523 echo "${ECHO_T}$enable_static" >&6
13525 test "$ld_shlibs_F77" = no && can_build_shared=no
13530 lt_prog_compiler_wl_F77=
13531 lt_prog_compiler_pic_F77=
13532 lt_prog_compiler_static_F77=
13534 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13535 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13537 if test "$GCC" = yes; then
13538 lt_prog_compiler_wl_F77='-Wl,'
13539 lt_prog_compiler_static_F77='-static'
13543 # All AIX code is PIC.
13544 if test "$host_cpu" = ia64; then
13545 # AIX 5 now supports IA64 processor
13546 lt_prog_compiler_static_F77='-Bstatic'
13551 # FIXME: we need at least 68020 code to build shared libraries, but
13552 # adding the `-m68020' flag to GCC prevents building anything better,
13554 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13557 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13558 # PIC is the default for these OSes.
13561 mingw* | pw32* | os2*)
13562 # This hack is so that the source file can tell whether it is being
13563 # built for inclusion in a dll (and should export symbols for example).
13564 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13567 darwin* | rhapsody*)
13568 # PIC is the default on this platform
13569 # Common symbols not allowed in MH_DYLIB files
13570 lt_prog_compiler_pic_F77='-fno-common'
13574 # Just because we use GCC doesn't mean we suddenly get shared libraries
13575 # on systems that don't support them.
13576 lt_prog_compiler_can_build_shared_F77=no
13581 if test -d /usr/nec; then
13582 lt_prog_compiler_pic_F77=-Kconform_pic
13587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13588 # not for PA HP-UX.
13594 lt_prog_compiler_pic_F77='-fPIC'
13600 lt_prog_compiler_pic_F77='-fPIC'
13604 # PORTME Check for flag to pass linker flags through the system compiler.
13607 lt_prog_compiler_wl_F77='-Wl,'
13608 if test "$host_cpu" = ia64; then
13609 # AIX 5 now supports IA64 processor
13610 lt_prog_compiler_static_F77='-Bstatic'
13612 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13616 # PIC is the default on this platform
13617 # Common symbols not allowed in MH_DYLIB files
13618 case $cc_basename in
13620 lt_prog_compiler_pic_F77='-qnocommon'
13621 lt_prog_compiler_wl_F77='-Wl,'
13626 mingw* | pw32* | os2*)
13627 # This hack is so that the source file can tell whether it is being
13628 # built for inclusion in a dll (and should export symbols for example).
13629 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13632 hpux9* | hpux10* | hpux11*)
13633 lt_prog_compiler_wl_F77='-Wl,'
13634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13635 # not for PA HP-UX.
13641 lt_prog_compiler_pic_F77='+Z'
13644 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13645 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13648 irix5* | irix6* | nonstopux*)
13649 lt_prog_compiler_wl_F77='-Wl,'
13650 # PIC (with -KPIC) is the default.
13651 lt_prog_compiler_static_F77='-non_shared'
13655 lt_prog_compiler_pic_F77='-KPIC'
13656 lt_prog_compiler_static_F77='-Bstatic'
13660 case $cc_basename in
13662 lt_prog_compiler_wl_F77='-Wl,'
13663 lt_prog_compiler_pic_F77='-KPIC'
13664 lt_prog_compiler_static_F77='-static'
13666 pgcc* | pgf77* | pgf90* | pgf95*)
13667 # Portland Group compilers (*not* the Pentium gcc compiler,
13668 # which looks to be a dead project)
13669 lt_prog_compiler_wl_F77='-Wl,'
13670 lt_prog_compiler_pic_F77='-fpic'
13671 lt_prog_compiler_static_F77='-Bstatic'
13674 lt_prog_compiler_wl_F77='-Wl,'
13675 # All Alpha code is PIC.
13676 lt_prog_compiler_static_F77='-non_shared'
13681 osf3* | osf4* | osf5*)
13682 lt_prog_compiler_wl_F77='-Wl,'
13683 # All OSF/1 code is PIC.
13684 lt_prog_compiler_static_F77='-non_shared'
13688 lt_prog_compiler_pic_F77='-Kpic'
13689 lt_prog_compiler_static_F77='-dn'
13693 lt_prog_compiler_pic_F77='-KPIC'
13694 lt_prog_compiler_static_F77='-Bstatic'
13695 case $cc_basename in
13696 f77* | f90* | f95*)
13697 lt_prog_compiler_wl_F77='-Qoption ld ';;
13699 lt_prog_compiler_wl_F77='-Wl,';;
13704 lt_prog_compiler_wl_F77='-Qoption ld '
13705 lt_prog_compiler_pic_F77='-PIC'
13706 lt_prog_compiler_static_F77='-Bstatic'
13709 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13710 lt_prog_compiler_wl_F77='-Wl,'
13711 lt_prog_compiler_pic_F77='-KPIC'
13712 lt_prog_compiler_static_F77='-Bstatic'
13716 if test -d /usr/nec ;then
13717 lt_prog_compiler_pic_F77='-Kconform_pic'
13718 lt_prog_compiler_static_F77='-Bstatic'
13723 lt_prog_compiler_wl_F77='-Wl,'
13724 lt_prog_compiler_can_build_shared_F77=no
13728 lt_prog_compiler_pic_F77='-pic'
13729 lt_prog_compiler_static_F77='-Bstatic'
13733 lt_prog_compiler_can_build_shared_F77=no
13738 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13739 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13742 # Check to make sure the PIC flag actually works.
13744 if test -n "$lt_prog_compiler_pic_F77"; then
13746 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13748 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 lt_prog_compiler_pic_works_F77=no
13752 ac_outfile=conftest.$ac_objext
13753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13754 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13755 # Insert the option either (1) after the last *FLAGS variable, or
13756 # (2) before a word containing "conftest.", or (3) at the end.
13757 # Note that $ac_compile itself does not contain backslashes and begins
13758 # with a dollar sign (not a hyphen), so the echo should work correctly.
13759 # The option is referenced via a variable to avoid confusing sed.
13760 lt_compile=`echo "$ac_compile" | $SED \
13761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13763 -e 's:$: $lt_compiler_flag:'`
13764 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13765 (eval "$lt_compile" 2>conftest.err)
13767 cat conftest.err >&5
13768 echo "$as_me:__oline__: \$? = $ac_status" >&5
13769 if (exit $ac_status) && test -s "$ac_outfile"; then
13770 # The compiler can only warn and ignore the option if not recognized
13771 # So say no if there are warnings other than the usual output.
13772 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13773 $SED '/^$/d' conftest.err >conftest.er2
13774 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13775 lt_prog_compiler_pic_works_F77=yes
13781 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13782 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13784 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13785 case $lt_prog_compiler_pic_F77 in
13787 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13790 lt_prog_compiler_pic_F77=
13791 lt_prog_compiler_can_build_shared_F77=no
13796 # For platforms which do not support PIC, -DPIC is meaningless:
13798 lt_prog_compiler_pic_F77=
13801 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13805 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13806 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13807 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 lt_cv_prog_compiler_c_o_F77=no
13811 $rm -r conftest 2>/dev/null
13815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13817 lt_compiler_flag="-o out/conftest2.$ac_objext"
13818 # Insert the option either (1) after the last *FLAGS variable, or
13819 # (2) before a word containing "conftest.", or (3) at the end.
13820 # Note that $ac_compile itself does not contain backslashes and begins
13821 # with a dollar sign (not a hyphen), so the echo should work correctly.
13822 lt_compile=`echo "$ac_compile" | $SED \
13823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13825 -e 's:$: $lt_compiler_flag:'`
13826 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13827 (eval "$lt_compile" 2>out/conftest.err)
13829 cat out/conftest.err >&5
13830 echo "$as_me:__oline__: \$? = $ac_status" >&5
13831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13833 # The compiler can only warn and ignore the option if not recognized
13834 # So say no if there are warnings
13835 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13836 $SED '/^$/d' out/conftest.err >out/conftest.er2
13837 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13838 lt_cv_prog_compiler_c_o_F77=yes
13843 # SGI C++ compiler will create directory out/ii_files/ for
13844 # template instantiation
13845 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13846 $rm out/* && rmdir out
13852 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13853 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13856 hard_links="nottested"
13857 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13858 # do not overwrite the value of need_locks provided by the user
13859 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13860 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13865 ln conftest.a conftest.b 2>&5 || hard_links=no
13866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13867 echo "$as_me:$LINENO: result: $hard_links" >&5
13868 echo "${ECHO_T}$hard_links" >&6
13869 if test "$hard_links" = no; then
13870 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13871 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13878 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13879 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13882 allow_undefined_flag_F77=
13883 enable_shared_with_static_runtimes_F77=no
13885 archive_expsym_cmds_F77=
13886 old_archive_From_new_cmds_F77=
13887 old_archive_from_expsyms_cmds_F77=
13888 export_dynamic_flag_spec_F77=
13889 whole_archive_flag_spec_F77=
13890 thread_safe_flag_spec_F77=
13891 hardcode_libdir_flag_spec_F77=
13892 hardcode_libdir_flag_spec_ld_F77=
13893 hardcode_libdir_separator_F77=
13894 hardcode_direct_F77=no
13895 hardcode_minus_L_F77=no
13896 hardcode_shlibpath_var_F77=unsupported
13897 link_all_deplibs_F77=unknown
13898 hardcode_automatic_F77=no
13900 module_expsym_cmds_F77=
13901 always_export_symbols_F77=no
13902 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13903 # include_expsyms should be a list of space-separated symbols to be *always*
13904 # included in the symbol list
13905 include_expsyms_F77=
13906 # exclude_expsyms can be an extended regexp of symbols to exclude
13907 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13908 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13909 # as well as any symbol that contains `d'.
13910 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13911 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13912 # platforms (ab)use it in PIC code, but their linkers get confused if
13913 # the symbol is explicitly referenced. Since portable code cannot
13914 # rely on this symbol name, it's probably fine to never include it in
13915 # preloaded symbol tables.
13916 extract_expsyms_cmds=
13917 # Just being paranoid about ensuring that cc_basename is set.
13918 for cc_temp in $compiler""; do
13920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13929 cygwin* | mingw* | pw32*)
13930 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13931 # When not using gcc, we currently assume that we are using
13932 # Microsoft Visual C++.
13933 if test "$GCC" != yes; then
13943 if test "$with_gnu_ld" = yes; then
13944 # If archive_cmds runs LD, not CC, wlarc should be empty
13947 # Set some defaults for GNU ld with shared library support. These
13948 # are reset later if shared libraries are not supported. Putting them
13949 # here allows them to be overridden if necessary.
13950 runpath_var=LD_RUN_PATH
13951 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13952 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13953 # ancient GNU ld didn't support --whole-archive et. al.
13954 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13955 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13957 whole_archive_flag_spec_F77=
13959 supports_anon_versioning=no
13960 case `$LD -v 2>/dev/null` in
13961 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13962 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13963 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13964 *\ 2.11.*) ;; # other 2.11 versions
13965 *) supports_anon_versioning=yes ;;
13968 # See if GNU ld supports shared libraries.
13970 aix3* | aix4* | aix5*)
13971 # On AIX/PPC, the GNU linker is very broken
13972 if test "$host_cpu" != ia64; then
13976 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13977 *** to be unable to reliably create shared libraries on AIX.
13978 *** Therefore, libtool is disabling shared libraries support. If you
13979 *** really care for shared libraries, you may want to modify your PATH
13980 *** so that a non-GNU linker is found, and then restart.
13987 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)'
13988 hardcode_libdir_flag_spec_F77='-L$libdir'
13989 hardcode_minus_L_F77=yes
13991 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13992 # that the semantics of dynamic libraries on AmigaOS, at least up
13993 # to version 4, is to share data among multiple programs linked
13994 # with the same dynamic library. Since this doesn't match the
13995 # behavior of shared libraries on other platforms, we can't use
14001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14002 allow_undefined_flag_F77=unsupported
14003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14004 # support --undefined. This deserves some investigation. FIXME
14005 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14011 cygwin* | mingw* | pw32*)
14012 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14013 # as there is no search path for DLLs.
14014 hardcode_libdir_flag_spec_F77='-L$libdir'
14015 allow_undefined_flag_F77=unsupported
14016 always_export_symbols_F77=no
14017 enable_shared_with_static_runtimes_F77=yes
14018 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14020 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14021 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14022 # If the export-symbols file already is a .def file (1st line
14023 # is EXPORTS), use it as is; otherwise, prepend...
14024 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14025 cp $export_symbols $output_objdir/$soname.def;
14027 echo EXPORTS > $output_objdir/$soname.def;
14028 cat $export_symbols >> $output_objdir/$soname.def;
14030 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14039 case $cc_basename,$host_cpu in
14040 pgcc*) # Portland Group C compiler
14041 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'
14042 tmp_addflag=' $pic_flag'
14044 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14045 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'
14046 tmp_addflag=' $pic_flag -Mnomain' ;;
14047 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14048 tmp_addflag=' -i_dynamic' ;;
14049 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14050 tmp_addflag=' -i_dynamic -nofor_main' ;;
14051 ifc* | ifort*) # Intel Fortran compiler
14052 tmp_addflag=' -nofor_main' ;;
14054 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14056 if test $supports_anon_versioning = yes; then
14057 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14059 $echo "local: *; };" >> $output_objdir/$libname.ver~
14060 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14069 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14072 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14073 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14078 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14082 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14083 *** create shared libraries on Solaris systems. Therefore, libtool
14084 *** is disabling shared libraries support. We urge you to upgrade GNU
14085 *** binutils to release 2.9.1 or newer. Another option is to modify
14086 *** your PATH or compiler configuration so that the native linker is
14087 *** used, and then restart.
14090 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14091 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14092 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14099 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14101 hardcode_direct_F77=yes
14102 hardcode_shlibpath_var_F77=no
14106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14107 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14108 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14115 if test "$ld_shlibs_F77" = no; then
14117 hardcode_libdir_flag_spec_F77=
14118 export_dynamic_flag_spec_F77=
14119 whole_archive_flag_spec_F77=
14122 # PORTME fill in a description of your system's linker (not GNU ld)
14125 allow_undefined_flag_F77=unsupported
14126 always_export_symbols_F77=yes
14127 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'
14128 # Note: this linker hardcodes the directories in LIBPATH if there
14129 # are no directories specified by -L.
14130 hardcode_minus_L_F77=yes
14131 if test "$GCC" = yes && test -z "$link_static_flag"; then
14132 # Neither direct hardcoding nor static linking is supported with a
14134 hardcode_direct_F77=unsupported
14139 if test "$host_cpu" = ia64; then
14140 # On IA64, the linker does run time linking by default, so we don't
14141 # have to do anything special.
14142 aix_use_runtimelinking=no
14143 exp_sym_flag='-Bexport'
14146 # If we're using GNU nm, then we don't want the "-C" option.
14147 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14148 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14149 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'
14151 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'
14153 aix_use_runtimelinking=no
14155 # Test if we are trying to use run time linking or normal
14156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14157 # need to do runtime linking.
14158 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14159 for ld_flag in $LDFLAGS; do
14160 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14161 aix_use_runtimelinking=yes
14167 exp_sym_flag='-bexport'
14168 no_entry_flag='-bnoentry'
14171 # When large executables or shared objects are built, AIX ld can
14172 # have problems creating the table of contents. If linking a library
14173 # or program results in "error TOC overflow" add -mminimal-toc to
14174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14177 archive_cmds_F77=''
14178 hardcode_direct_F77=yes
14179 hardcode_libdir_separator_F77=':'
14180 link_all_deplibs_F77=yes
14182 if test "$GCC" = yes; then
14183 case $host_os in aix4.[012]|aix4.[012].*)
14184 # We only want to do this on AIX 4.2 and lower, the check
14185 # below for broken collect2 doesn't work under 4.3+
14186 collect2name=`${CC} -print-prog-name=collect2`
14187 if test -f "$collect2name" && \
14188 strings "$collect2name" | grep resolve_lib_name >/dev/null
14190 # We have reworked collect2
14191 hardcode_direct_F77=yes
14193 # We have old collect2
14194 hardcode_direct_F77=unsupported
14195 # It fails to find uninstalled libraries when the uninstalled
14196 # path is not listed in the libpath. Setting hardcode_minus_L
14197 # to unsupported forces relinking
14198 hardcode_minus_L_F77=yes
14199 hardcode_libdir_flag_spec_F77='-L$libdir'
14200 hardcode_libdir_separator_F77=
14203 shared_flag='-shared'
14204 if test "$aix_use_runtimelinking" = yes; then
14205 shared_flag="$shared_flag "'${wl}-G'
14209 if test "$host_cpu" = ia64; then
14210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14211 # chokes on -Wl,-G. The following line is correct:
14214 if test "$aix_use_runtimelinking" = yes; then
14215 shared_flag='${wl}-G'
14217 shared_flag='${wl}-bM:SRE'
14222 # It seems that -bexpall does not export symbols beginning with
14223 # underscore (_), so it is better to generate a list of symbols to export.
14224 always_export_symbols_F77=yes
14225 if test "$aix_use_runtimelinking" = yes; then
14226 # Warning - without using the other runtime loading flags (-brtl),
14227 # -berok will link without error, but may produce a broken library.
14228 allow_undefined_flag_F77='-berok'
14229 # Determine the default libpath from the value encoded in an empty executable.
14230 cat >conftest.$ac_ext <<_ACEOF
14235 rm -f conftest.$ac_objext conftest$ac_exeext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14237 (eval $ac_link) 2>conftest.er1
14239 grep -v '^ *+' conftest.er1 >conftest.err
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
14244 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; } &&
14250 { ac_try='test -s conftest$ac_exeext'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14259 # Check for a 64-bit object if we didn't find anything.
14260 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; }
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14267 rm -f conftest.err conftest.$ac_objext \
14268 conftest$ac_exeext conftest.$ac_ext
14269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14271 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14272 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"
14274 if test "$host_cpu" = ia64; then
14275 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14276 allow_undefined_flag_F77="-z nodefs"
14277 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"
14279 # Determine the default libpath from the value encoded in an empty executable.
14280 cat >conftest.$ac_ext <<_ACEOF
14285 rm -f conftest.$ac_objext conftest$ac_exeext
14286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14287 (eval $ac_link) 2>conftest.er1
14289 grep -v '^ *+' conftest.er1 >conftest.err
14291 cat conftest.err >&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
14294 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try='test -s conftest$ac_exeext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14309 # Check for a 64-bit object if we didn't find anything.
14310 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; }
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14317 rm -f conftest.err conftest.$ac_objext \
14318 conftest$ac_exeext conftest.$ac_ext
14319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14321 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14322 # Warning - without using the other run time loading flags,
14323 # -berok will link without error, but may produce a broken library.
14324 no_undefined_flag_F77=' ${wl}-bernotok'
14325 allow_undefined_flag_F77=' ${wl}-berok'
14326 # -bexpall does not export symbols beginning with underscore (_)
14327 always_export_symbols_F77=yes
14328 # Exported symbols can be pulled into shared objects from archives
14329 whole_archive_flag_spec_F77=' '
14330 archive_cmds_need_lc_F77=yes
14331 # This is similar to how AIX traditionally builds its shared libraries.
14332 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'
14338 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)'
14339 hardcode_libdir_flag_spec_F77='-L$libdir'
14340 hardcode_minus_L_F77=yes
14341 # see comment about different semantics on the GNU ld section
14346 export_dynamic_flag_spec_F77=-rdynamic
14349 cygwin* | mingw* | pw32*)
14350 # When not using gcc, we currently assume that we are using
14351 # Microsoft Visual C++.
14352 # hardcode_libdir_flag_spec is actually meaningless, as there is
14353 # no search path for DLLs.
14354 hardcode_libdir_flag_spec_F77=' '
14355 allow_undefined_flag_F77=unsupported
14356 # Tell ltmain to make .lib files, not .a files.
14358 # Tell ltmain to make .dll files, not .so files.
14360 # FIXME: Setting linknames here is a bad hack.
14361 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14362 # The linker will automatically build a .lib file if we build a DLL.
14363 old_archive_From_new_cmds_F77='true'
14364 # FIXME: Should let the user specify the lib program.
14365 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14366 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14367 enable_shared_with_static_runtimes_F77=yes
14370 darwin* | rhapsody*)
14372 rhapsody* | darwin1.[012])
14373 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14376 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14377 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14379 case ${MACOSX_DEPLOYMENT_TARGET} in
14381 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14384 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14390 archive_cmds_need_lc_F77=no
14391 hardcode_direct_F77=no
14392 hardcode_automatic_F77=yes
14393 hardcode_shlibpath_var_F77=unsupported
14394 whole_archive_flag_spec_F77=''
14395 link_all_deplibs_F77=yes
14396 if test "$GCC" = yes ; then
14397 output_verbose_link_cmd='echo'
14398 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14399 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14400 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14401 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}'
14402 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}'
14404 case $cc_basename in
14406 output_verbose_link_cmd='echo'
14407 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14408 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14409 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14410 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}'
14411 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}'
14421 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14422 hardcode_libdir_flag_spec_F77='-L$libdir'
14423 hardcode_shlibpath_var_F77=no
14430 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14431 # support. Future versions do this automatically, but an explicit c++rt0.o
14432 # does not break anything, and helps significantly (at the cost of a little
14435 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14436 hardcode_libdir_flag_spec_F77='-R$libdir'
14437 hardcode_direct_F77=yes
14438 hardcode_shlibpath_var_F77=no
14441 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14443 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14444 hardcode_direct_F77=yes
14445 hardcode_minus_L_F77=yes
14446 hardcode_shlibpath_var_F77=no
14449 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14450 freebsd* | kfreebsd*-gnu | dragonfly*)
14451 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14452 hardcode_libdir_flag_spec_F77='-R$libdir'
14453 hardcode_direct_F77=yes
14454 hardcode_shlibpath_var_F77=no
14458 if test "$GCC" = yes; then
14459 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'
14461 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'
14463 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14464 hardcode_libdir_separator_F77=:
14465 hardcode_direct_F77=yes
14467 # hardcode_minus_L: Not really in the search PATH,
14468 # but as the default location of the library.
14469 hardcode_minus_L_F77=yes
14470 export_dynamic_flag_spec_F77='${wl}-E'
14474 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14477 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14480 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14486 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14489 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14493 if test "$with_gnu_ld" = no; then
14496 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14497 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14498 hardcode_libdir_separator_F77=:
14499 hardcode_direct_F77=no
14500 hardcode_shlibpath_var_F77=no
14503 hardcode_libdir_flag_spec_F77='-L$libdir'
14504 hardcode_direct_F77=no
14505 hardcode_shlibpath_var_F77=no
14507 # hardcode_minus_L: Not really in the search PATH,
14508 # but as the default location of the library.
14509 hardcode_minus_L_F77=yes
14512 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14513 hardcode_libdir_separator_F77=:
14514 hardcode_direct_F77=yes
14515 export_dynamic_flag_spec_F77='${wl}-E'
14517 # hardcode_minus_L: Not really in the search PATH,
14518 # but as the default location of the library.
14519 hardcode_minus_L_F77=yes
14525 irix5* | irix6* | nonstopux*)
14526 if test "$GCC" = yes; then
14527 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'
14529 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'
14530 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14532 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14533 hardcode_libdir_separator_F77=:
14534 link_all_deplibs_F77=yes
14538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14539 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14541 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14543 hardcode_libdir_flag_spec_F77='-R$libdir'
14544 hardcode_direct_F77=yes
14545 hardcode_shlibpath_var_F77=no
14549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550 hardcode_direct_F77=yes
14551 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14552 hardcode_libdir_separator_F77=:
14553 hardcode_shlibpath_var_F77=no
14557 hardcode_direct_F77=yes
14558 hardcode_shlibpath_var_F77=no
14559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14560 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14561 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14562 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14563 export_dynamic_flag_spec_F77='${wl}-E'
14566 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14567 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14568 hardcode_libdir_flag_spec_F77='-R$libdir'
14571 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14572 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14579 hardcode_libdir_flag_spec_F77='-L$libdir'
14580 hardcode_minus_L_F77=yes
14581 allow_undefined_flag_F77=unsupported
14582 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'
14583 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14587 if test "$GCC" = yes; then
14588 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14589 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'
14591 allow_undefined_flag_F77=' -expect_unresolved \*'
14592 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'
14594 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14595 hardcode_libdir_separator_F77=:
14598 osf4* | osf5*) # as osf3* with the addition of -msym flag
14599 if test "$GCC" = yes; then
14600 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14601 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'
14602 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14604 allow_undefined_flag_F77=' -expect_unresolved \*'
14605 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'
14606 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~
14607 $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'
14609 # Both c and cxx compiler support -rpath directly
14610 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14612 hardcode_libdir_separator_F77=:
14616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14617 hardcode_shlibpath_var_F77=no
14618 export_dynamic_flag_spec_F77='${wl}-Bexport'
14619 runpath_var=LD_RUN_PATH
14620 hardcode_runpath_var=yes
14624 no_undefined_flag_F77=' -z text'
14625 if test "$GCC" = yes; then
14627 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14628 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14629 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14632 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14633 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14634 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14636 hardcode_libdir_flag_spec_F77='-R$libdir'
14637 hardcode_shlibpath_var_F77=no
14639 solaris2.[0-5] | solaris2.[0-5].*) ;;
14641 # The compiler driver will combine linker options so we
14642 # cannot just pass the convience library names through
14643 # without $wl, iff we do not link with $LD.
14644 # Luckily, gcc supports the same syntax we need for Sun Studio.
14645 # Supported since Solaris 2.6 (maybe 2.5.1?)
14648 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14650 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' ;;
14653 link_all_deplibs_F77=yes
14657 if test "x$host_vendor" = xsequent; then
14658 # Use $CC to link under sequent, because it throws in some extra .o
14659 # files that make .init and .fini sections work.
14660 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14662 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14664 hardcode_libdir_flag_spec_F77='-L$libdir'
14665 hardcode_direct_F77=yes
14666 hardcode_minus_L_F77=yes
14667 hardcode_shlibpath_var_F77=no
14671 case $host_vendor in
14673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14674 hardcode_direct_F77=yes # is this really true???
14677 ## LD is ld it makes a PLAMLIB
14678 ## CC just makes a GrossModule.
14679 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14680 reload_cmds_F77='$CC -r -o $output$reload_objs'
14681 hardcode_direct_F77=no
14684 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14685 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14688 runpath_var='LD_RUN_PATH'
14689 hardcode_shlibpath_var_F77=no
14693 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14694 hardcode_shlibpath_var_F77=no
14695 export_dynamic_flag_spec_F77='-Bexport'
14699 if test -d /usr/nec; then
14700 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14701 hardcode_shlibpath_var_F77=no
14702 runpath_var=LD_RUN_PATH
14703 hardcode_runpath_var=yes
14709 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14710 hardcode_direct_F77=yes
14711 hardcode_minus_L_F77=no
14712 hardcode_shlibpath_var_F77=no
14713 hardcode_runpath_var=yes
14714 runpath_var=LD_RUN_PATH
14717 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14718 no_undefined_flag_F77='${wl}-z ${wl}text'
14719 if test "$GCC" = yes; then
14720 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14722 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14724 runpath_var='LD_RUN_PATH'
14725 hardcode_shlibpath_var_F77=no
14729 no_undefined_flag_F77=' -z text'
14730 # $CC -shared without GNU ld will not create a library from C++
14731 # object files and a static libstdc++, better avoid it by now
14732 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14733 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14734 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14735 hardcode_libdir_flag_spec_F77=
14736 hardcode_shlibpath_var_F77=no
14737 runpath_var='LD_RUN_PATH'
14741 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14742 hardcode_libdir_flag_spec_F77='-L$libdir'
14743 hardcode_shlibpath_var_F77=no
14752 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14753 echo "${ECHO_T}$ld_shlibs_F77" >&6
14754 test "$ld_shlibs_F77" = no && can_build_shared=no
14756 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14757 if test "$GCC" = yes; then
14758 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14762 # Do we need to explicitly link libc?
14764 case "x$archive_cmds_need_lc_F77" in
14766 # Assume -lc should be added
14767 archive_cmds_need_lc_F77=yes
14769 if test "$enable_shared" = yes && test "$GCC" = yes; then
14770 case $archive_cmds_F77 in
14772 # FIXME: we may have to deal with multi-command sequences.
14775 # Test whether the compiler implicitly links with -lc since on some
14776 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14777 # to ld, don't add -lc before -lgcc.
14778 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14779 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14784 (eval $ac_compile) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); } 2>conftest.err; then
14790 libobjs=conftest.$ac_objext
14792 wl=$lt_prog_compiler_wl_F77
14798 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14799 allow_undefined_flag_F77=
14800 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14801 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }
14806 archive_cmds_need_lc_F77=no
14808 archive_cmds_need_lc_F77=yes
14810 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14812 cat conftest.err 1>&5
14815 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14816 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14823 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14824 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14825 library_names_spec=
14826 libname_spec='lib$name'
14830 postuninstall_cmds=
14834 shlibpath_overrides_runpath=unknown
14836 dynamic_linker="$host_os ld.so"
14837 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14838 if test "$GCC" = yes; then
14839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14840 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14841 # if the path contains ";" then we assume it to be the separator
14842 # otherwise default to the standard path separator (i.e. ":") - it is
14843 # assumed that no part of a normal pathname contains ";" but that should
14844 # okay in the real world where ";" in dirpaths is itself problematic.
14845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14852 need_lib_prefix=unknown
14853 hardcode_into_libs=no
14855 # when you set need_version to no, make sure it does not cause -set_version
14856 # flags to be left without arguments
14857 need_version=unknown
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14863 shlibpath_var=LIBPATH
14865 # AIX 3 has no versioning support, so we append a major version to the name.
14866 soname_spec='${libname}${release}${shared_ext}$major'
14873 hardcode_into_libs=yes
14874 if test "$host_cpu" = ia64; then
14875 # AIX 5 supports IA64
14876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14877 shlibpath_var=LD_LIBRARY_PATH
14879 # With GCC up to 2.95.x, collect2 would create an import file
14880 # for dependence libraries. The import file would start with
14881 # the line `#! .'. This would cause the generated library to
14882 # depend on `.', always an invalid library. This was fixed in
14883 # development snapshots of GCC prior to 3.0.
14885 aix4 | aix4.[01] | aix4.[01].*)
14886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14888 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14891 can_build_shared=no
14895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14896 # soname into executable. Probably we can add versioning support to
14897 # collect2, so additional links can be useful in future.
14898 if test "$aix_use_runtimelinking" = yes; then
14899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14900 # instead of lib<name>.a to let people know that these are not
14901 # typical AIX shared libraries.
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904 # We preserve .a as extension for shared libraries through AIX4.2
14905 # and later when we are not doing run time linking.
14906 library_names_spec='${libname}${release}.a $libname.a'
14907 soname_spec='${libname}${release}${shared_ext}$major'
14909 shlibpath_var=LIBPATH
14914 library_names_spec='$libname.ixlibrary $libname.a'
14915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14916 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'
14920 library_names_spec='${libname}${shared_ext}'
14921 dynamic_linker="$host_os ld.so"
14922 shlibpath_var=LIBRARY_PATH
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 soname_spec='${libname}${release}${shared_ext}$major'
14930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14934 # the default ld.so.conf also contains /usr/contrib/lib and
14935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14936 # libtool to hard-code these into programs
14939 cygwin* | mingw* | pw32*)
14940 version_type=windows
14945 case $GCC,$host_os in
14946 yes,cygwin* | yes,mingw* | yes,pw32*)
14947 library_names_spec='$libname.dll.a'
14948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14949 postinstall_cmds='base_file=`basename \${file}`~
14950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14951 dldir=$destdir/`dirname \$dlpath`~
14952 test -d \$dldir || mkdir -p \$dldir~
14953 $install_prog $dir/$dlname \$dldir/$dlname~
14954 chmod a+x \$dldir/$dlname'
14955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14956 dlpath=$dir/\$dldll~
14958 shlibpath_overrides_runpath=yes
14962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14967 # MinGW DLLs use traditional 'lib' prefix
14968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14970 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14971 # It is most probably a Windows format PATH printed by
14972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14973 # path with ; separators, and with drive letters. We can handle the
14974 # drive letters (cygwin fileutils understands them), so leave them,
14975 # especially as we might pass files found there to a mingw objdump,
14976 # which wouldn't understand a cygwinified path. Ahh.
14977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14983 # pw32 DLLs use 'pw' prefix rather than 'lib'
14984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14993 dynamic_linker='Win32 ld.exe'
14994 # FIXME: first we should search . and the directory the executable is in
14998 darwin* | rhapsody*)
14999 dynamic_linker="$host_os dyld"
15000 version_type=darwin
15003 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15004 soname_spec='${libname}${release}${major}$shared_ext'
15005 shlibpath_overrides_runpath=yes
15006 shlibpath_var=DYLD_LIBRARY_PATH
15007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15008 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15009 if test "$GCC" = yes; then
15010 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"`
15012 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15022 soname_spec='${libname}${release}${shared_ext}$major'
15023 shlibpath_var=LD_LIBRARY_PATH
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 shlibpath_var=LD_LIBRARY_PATH
15037 shlibpath_overrides_runpath=no
15038 hardcode_into_libs=yes
15039 dynamic_linker='GNU ld.so'
15042 freebsd* | dragonfly*)
15043 # DragonFly does not have aout. When/if they implement a new
15044 # versioning mechanism, adjust this.
15045 if test -x /usr/bin/objformat; then
15046 objformat=`/usr/bin/objformat`
15049 freebsd[123]*) objformat=aout ;;
15050 *) objformat=elf ;;
15053 version_type=freebsd-$objformat
15054 case $version_type in
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15065 shlibpath_var=LD_LIBRARY_PATH
15068 shlibpath_overrides_runpath=yes
15070 freebsd3.[01]* | freebsdelf3.[01]*)
15071 shlibpath_overrides_runpath=yes
15072 hardcode_into_libs=yes
15075 shlibpath_overrides_runpath=no
15076 hardcode_into_libs=yes
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15086 soname_spec='${libname}${release}${shared_ext}$major'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 hardcode_into_libs=yes
15091 hpux9* | hpux10* | hpux11*)
15092 # Give a soname corresponding to the major version so that dld.sl refuses to
15093 # link against other versions.
15100 hardcode_into_libs=yes
15101 dynamic_linker="$host_os dld.so"
15102 shlibpath_var=LD_LIBRARY_PATH
15103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105 soname_spec='${libname}${release}${shared_ext}$major'
15106 if test "X$HPUX_IA64_MODE" = X32; then
15107 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15109 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15115 hardcode_into_libs=yes
15116 dynamic_linker="$host_os dld.sl"
15117 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15126 dynamic_linker="$host_os dld.sl"
15127 shlibpath_var=SHLIB_PATH
15128 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15130 soname_spec='${libname}${release}${shared_ext}$major'
15133 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15134 postinstall_cmds='chmod 555 $lib'
15137 irix5* | irix6* | nonstopux*)
15139 nonstopux*) version_type=nonstopux ;;
15141 if test "$lt_cv_prog_gnu_ld" = yes; then
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15152 irix5* | nonstopux*)
15153 libsuff= shlibsuff=
15156 case $LD in # libtool.m4 will add one of these switches to LD
15157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15158 libsuff= shlibsuff= libmagic=32-bit;;
15159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15160 libsuff=32 shlibsuff=N32 libmagic=N32;;
15161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15162 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15163 *) libsuff= shlibsuff= libmagic=never-match;;
15167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15168 shlibpath_overrides_runpath=no
15169 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15170 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15171 hardcode_into_libs=yes
15174 # No shared lib support for Linux oldld, aout, or coff.
15175 linux*oldld* | linux*aout* | linux*coff*)
15179 # This must be Linux ELF.
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15187 shlibpath_var=LD_LIBRARY_PATH
15188 shlibpath_overrides_runpath=no
15189 # This implies no fast_install, which is unacceptable.
15190 # Some rework will be needed to allow for fast_install
15191 # before this can be enabled.
15192 hardcode_into_libs=yes
15194 # Append ld.so.conf contents to the search path
15195 if test -f /etc/ld.so.conf; then
15196 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' ' '`
15197 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15200 # We used to test for /lib/ld.so.1 and disable shared libraries on
15201 # powerpc, because MkLinux only supported shared libraries with the
15202 # GNU dynamic linker. Since this was broken with cross compilers,
15203 # most powerpc-linux boxes support dynamic linking these days and
15204 # people can always --disable-shared, the test was removed, and we
15205 # assume the GNU/Linux dynamic linker is in use.
15206 dynamic_linker='GNU/Linux ld.so'
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 shlibpath_overrides_runpath=no
15217 hardcode_into_libs=yes
15218 dynamic_linker='GNU ld.so'
15225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15228 dynamic_linker='NetBSD (a.out) ld.so'
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 dynamic_linker='NetBSD ld.elf_so'
15234 shlibpath_var=LD_LIBRARY_PATH
15235 shlibpath_overrides_runpath=yes
15236 hardcode_into_libs=yes
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=yes
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 shlibpath_overrides_runpath=yes
15259 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15261 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15262 *) need_version=no ;;
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15269 openbsd2.[89] | openbsd2.[89].*)
15270 shlibpath_overrides_runpath=no
15273 shlibpath_overrides_runpath=yes
15277 shlibpath_overrides_runpath=yes
15282 libname_spec='$name'
15285 library_names_spec='$libname${shared_ext} $libname.a'
15286 dynamic_linker='OS/2 ld.exe'
15287 shlibpath_var=LIBPATH
15290 osf3* | osf4* | osf5*)
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15298 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305 shlibpath_var=LD_LIBRARY_PATH
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 shlibpath_var=LD_LIBRARY_PATH
15315 shlibpath_overrides_runpath=yes
15316 hardcode_into_libs=yes
15317 # ldd complains unless libraries are executable
15318 postinstall_cmds='chmod +x $lib'
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15324 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15325 shlibpath_var=LD_LIBRARY_PATH
15326 shlibpath_overrides_runpath=yes
15327 if test "$with_gnu_ld" = yes; then
15333 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 case $host_vendor in
15340 shlibpath_overrides_runpath=no
15342 export_dynamic_flag_spec='${wl}-Blargedynsym'
15343 runpath_var=LD_RUN_PATH
15351 shlibpath_overrides_runpath=no
15352 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15358 if test -d /usr/nec ;then
15360 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15361 soname_spec='$libname${shared_ext}.$major'
15362 shlibpath_var=LD_LIBRARY_PATH
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 shlibpath_var=LD_LIBRARY_PATH
15377 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15378 echo "${ECHO_T}$dynamic_linker" >&6
15379 test "$dynamic_linker" = no && can_build_shared=no
15381 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15382 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15383 hardcode_action_F77=
15384 if test -n "$hardcode_libdir_flag_spec_F77" || \
15385 test -n "$runpath_var_F77" || \
15386 test "X$hardcode_automatic_F77" = "Xyes" ; then
15388 # We can hardcode non-existant directories.
15389 if test "$hardcode_direct_F77" != no &&
15390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15391 # have to relink, otherwise we might link with an installed library
15392 # when we should be linking with a yet-to-be-installed one
15393 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15394 test "$hardcode_minus_L_F77" != no; then
15395 # Linking always hardcodes the temporary library directory.
15396 hardcode_action_F77=relink
15398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15399 hardcode_action_F77=immediate
15402 # We cannot hardcode anything, or else we can only hardcode existing
15404 hardcode_action_F77=unsupported
15406 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15407 echo "${ECHO_T}$hardcode_action_F77" >&6
15409 if test "$hardcode_action_F77" = relink; then
15410 # Fast installation is not supported
15411 enable_fast_install=no
15412 elif test "$shlibpath_overrides_runpath" = yes ||
15413 test "$enable_shared" = no; then
15414 # Fast installation is not necessary
15415 enable_fast_install=needless
15420 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15421 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15422 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15423 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15424 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15425 echo "$as_me:$LINENO: result: yes" >&5
15426 echo "${ECHO_T}yes" >&6
15428 # FIXME - insert some real tests, host_os isn't really good enough
15431 if test -n "$STRIP" ; then
15432 striplib="$STRIP -x"
15433 echo "$as_me:$LINENO: result: yes" >&5
15434 echo "${ECHO_T}yes" >&6
15436 echo "$as_me:$LINENO: result: no" >&5
15437 echo "${ECHO_T}no" >&6
15441 echo "$as_me:$LINENO: result: no" >&5
15442 echo "${ECHO_T}no" >&6
15449 # The else clause should only fire when bootstrapping the
15450 # libtool distribution, otherwise you forgot to ship ltmain.sh
15451 # with your package, and you will get complaints that there are
15452 # no rules to generate ltmain.sh.
15453 if test -f "$ltmain"; then
15454 # See if we are running on zsh, and set the options which allow our commands through
15455 # without removal of \ escapes.
15456 if test -n "${ZSH_VERSION+set}" ; then
15457 setopt NO_GLOB_SUBST
15459 # Now quote all the things that may contain metacharacters while being
15460 # careful not to overquote the AC_SUBSTed values. We take copies of the
15461 # variables and quote the copies for generation of the libtool script.
15462 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15464 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15465 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15466 deplibs_check_method reload_flag reload_cmds need_locks \
15467 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15468 lt_cv_sys_global_symbol_to_c_name_address \
15469 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15470 old_postinstall_cmds old_postuninstall_cmds \
15474 lt_prog_compiler_wl_F77 \
15475 lt_prog_compiler_pic_F77 \
15476 lt_prog_compiler_static_F77 \
15477 lt_prog_compiler_no_builtin_flag_F77 \
15478 export_dynamic_flag_spec_F77 \
15479 thread_safe_flag_spec_F77 \
15480 whole_archive_flag_spec_F77 \
15481 enable_shared_with_static_runtimes_F77 \
15482 old_archive_cmds_F77 \
15483 old_archive_from_new_cmds_F77 \
15484 predep_objects_F77 \
15485 postdep_objects_F77 \
15488 compiler_lib_search_path_F77 \
15490 archive_expsym_cmds_F77 \
15491 postinstall_cmds_F77 \
15492 postuninstall_cmds_F77 \
15493 old_archive_from_expsyms_cmds_F77 \
15494 allow_undefined_flag_F77 \
15495 no_undefined_flag_F77 \
15496 export_symbols_cmds_F77 \
15497 hardcode_libdir_flag_spec_F77 \
15498 hardcode_libdir_flag_spec_ld_F77 \
15499 hardcode_libdir_separator_F77 \
15500 hardcode_automatic_F77 \
15502 module_expsym_cmds_F77 \
15503 lt_cv_prog_compiler_c_o_F77 \
15504 exclude_expsyms_F77 \
15505 include_expsyms_F77; do
15508 old_archive_cmds_F77 | \
15509 old_archive_from_new_cmds_F77 | \
15510 archive_cmds_F77 | \
15511 archive_expsym_cmds_F77 | \
15512 module_cmds_F77 | \
15513 module_expsym_cmds_F77 | \
15514 old_archive_from_expsyms_cmds_F77 | \
15515 export_symbols_cmds_F77 | \
15516 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15517 postinstall_cmds | postuninstall_cmds | \
15518 old_postinstall_cmds | old_postuninstall_cmds | \
15519 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15520 # Double-quote double-evaled strings.
15521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15530 *'\$0 --fallback-echo"')
15531 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15537 cat <<__EOF__ >> "$cfgfile"
15538 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15540 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15542 # Shell to use when invoking shell scripts.
15545 # Whether or not to build shared libraries.
15546 build_libtool_libs=$enable_shared
15548 # Whether or not to build static libraries.
15549 build_old_libs=$enable_static
15551 # Whether or not to add -lc for building shared libraries.
15552 build_libtool_need_lc=$archive_cmds_need_lc_F77
15554 # Whether or not to disallow shared libs when runtime libs are static
15555 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15557 # Whether or not to optimize for fast installation.
15558 fast_install=$enable_fast_install
15561 host_alias=$host_alias
15565 # The build system.
15566 build_alias=$build_alias
15570 # An echo program that does not interpret backslashes.
15575 AR_FLAGS=$lt_AR_FLAGS
15580 # A language-specific compiler.
15581 CC=$lt_compiler_F77
15583 # Is the compiler the GNU C compiler?
15589 # The linker used to build libraries.
15592 # Whether we need hard or soft links.
15595 # A BSD-compatible nm program.
15598 # A symbol stripping program
15601 # Used to examine libraries when file_magic_cmd begins "file"
15602 MAGIC_CMD=$MAGIC_CMD
15604 # Used on cygwin: DLL creation program.
15607 # Used on cygwin: object dumper.
15610 # Used on cygwin: assembler.
15613 # The name of the directory that contains temporary libtool files.
15616 # How to create reloadable object files.
15617 reload_flag=$lt_reload_flag
15618 reload_cmds=$lt_reload_cmds
15620 # How to pass a linker flag through the compiler.
15621 wl=$lt_lt_prog_compiler_wl_F77
15623 # Object file suffix (normally "o").
15624 objext="$ac_objext"
15626 # Old archive suffix (normally "a").
15629 # Shared library suffix (normally ".so").
15630 shrext_cmds='$shrext_cmds'
15632 # Executable file suffix (normally "").
15635 # Additional compiler flags for building library objects.
15636 pic_flag=$lt_lt_prog_compiler_pic_F77
15639 # What is the maximum length of a command?
15640 max_cmd_len=$lt_cv_sys_max_cmd_len
15642 # Does compiler simultaneously support -c and -o options?
15643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15645 # Must we lock files when doing compilation?
15646 need_locks=$lt_need_locks
15648 # Do we need the lib prefix for modules?
15649 need_lib_prefix=$need_lib_prefix
15651 # Do we need a version for libraries?
15652 need_version=$need_version
15654 # Whether dlopen is supported.
15655 dlopen_support=$enable_dlopen
15657 # Whether dlopen of programs is supported.
15658 dlopen_self=$enable_dlopen_self
15660 # Whether dlopen of statically linked programs is supported.
15661 dlopen_self_static=$enable_dlopen_self_static
15663 # Compiler flag to prevent dynamic linking.
15664 link_static_flag=$lt_lt_prog_compiler_static_F77
15666 # Compiler flag to turn off builtin functions.
15667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15669 # Compiler flag to allow reflexive dlopens.
15670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15672 # Compiler flag to generate shared objects directly from archives.
15673 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15675 # Compiler flag to generate thread-safe objects.
15676 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15678 # Library versioning type.
15679 version_type=$version_type
15681 # Format of library name prefix.
15682 libname_spec=$lt_libname_spec
15684 # List of archive names. First name is the real one, the rest are links.
15685 # The last name is the one that the linker finds with -lNAME.
15686 library_names_spec=$lt_library_names_spec
15688 # The coded name of the library, if different from the real name.
15689 soname_spec=$lt_soname_spec
15691 # Commands used to build and install an old-style archive.
15693 old_archive_cmds=$lt_old_archive_cmds_F77
15694 old_postinstall_cmds=$lt_old_postinstall_cmds
15695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15697 # Create an old-style archive from a shared archive.
15698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15700 # Create a temporary old-style archive to link instead of a shared archive.
15701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15703 # Commands used to build and install a shared archive.
15704 archive_cmds=$lt_archive_cmds_F77
15705 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15706 postinstall_cmds=$lt_postinstall_cmds
15707 postuninstall_cmds=$lt_postuninstall_cmds
15709 # Commands used to build a loadable module (assumed same as above if empty)
15710 module_cmds=$lt_module_cmds_F77
15711 module_expsym_cmds=$lt_module_expsym_cmds_F77
15713 # Commands to strip libraries.
15714 old_striplib=$lt_old_striplib
15715 striplib=$lt_striplib
15717 # Dependencies to place before the objects being linked to create a
15719 predep_objects=$lt_predep_objects_F77
15721 # Dependencies to place after the objects being linked to create a
15723 postdep_objects=$lt_postdep_objects_F77
15725 # Dependencies to place before the objects being linked to create a
15727 predeps=$lt_predeps_F77
15729 # Dependencies to place after the objects being linked to create a
15731 postdeps=$lt_postdeps_F77
15733 # The library search path used internally by the compiler when linking
15734 # a shared library.
15735 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15737 # Method to check whether dependent libraries are shared objects.
15738 deplibs_check_method=$lt_deplibs_check_method
15740 # Command to use when deplibs_check_method == file_magic.
15741 file_magic_cmd=$lt_file_magic_cmd
15743 # Flag that allows shared libraries with undefined symbols to be built.
15744 allow_undefined_flag=$lt_allow_undefined_flag_F77
15746 # Flag that forces no undefined symbols.
15747 no_undefined_flag=$lt_no_undefined_flag_F77
15749 # Commands used to finish a libtool library installation in a directory.
15750 finish_cmds=$lt_finish_cmds
15752 # Same as above, but a single script fragment to be evaled but not shown.
15753 finish_eval=$lt_finish_eval
15755 # Take the output of nm and produce a listing of raw symbols and C names.
15756 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15758 # Transform the output of nm in a proper C declaration
15759 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15761 # Transform the output of nm in a C name address pair
15762 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15764 # This is the shared library runtime path variable.
15765 runpath_var=$runpath_var
15767 # This is the shared library path variable.
15768 shlibpath_var=$shlibpath_var
15770 # Is shlibpath searched before the hard-coded library search path?
15771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15773 # How to hardcode a shared library path into an executable.
15774 hardcode_action=$hardcode_action_F77
15776 # Whether we should hardcode library paths into libraries.
15777 hardcode_into_libs=$hardcode_into_libs
15779 # Flag to hardcode \$libdir into a binary during linking.
15780 # This must work even if \$libdir does not exist.
15781 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15783 # If ld is used when linking, flag to hardcode \$libdir into
15784 # a binary during linking. This must work even if \$libdir does
15786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15788 # Whether we need a single -rpath flag with a separated argument.
15789 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15791 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15792 # resulting binary.
15793 hardcode_direct=$hardcode_direct_F77
15795 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15796 # resulting binary.
15797 hardcode_minus_L=$hardcode_minus_L_F77
15799 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15800 # the resulting binary.
15801 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15803 # Set to yes if building a shared library automatically hardcodes DIR into the library
15804 # and all subsequent libraries and executables linked against it.
15805 hardcode_automatic=$hardcode_automatic_F77
15807 # Variables whose values should be saved in libtool wrapper scripts and
15808 # restored at relink time.
15809 variables_saved_for_relink="$variables_saved_for_relink"
15811 # Whether libtool must link a program against all its dependency libraries.
15812 link_all_deplibs=$link_all_deplibs_F77
15814 # Compile-time system search path for libraries
15815 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15817 # Run-time system search path for libraries
15818 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15820 # Fix the shell variable \$srcfile for the compiler.
15821 fix_srcfile_path="$fix_srcfile_path_F77"
15823 # Set to yes if exported symbols are required.
15824 always_export_symbols=$always_export_symbols_F77
15826 # The commands to list exported symbols.
15827 export_symbols_cmds=$lt_export_symbols_cmds_F77
15829 # The commands to extract the exported symbol list from a shared archive.
15830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15832 # Symbols that should not be listed in the preloaded symbols.
15833 exclude_expsyms=$lt_exclude_expsyms_F77
15835 # Symbols that must always be exported.
15836 include_expsyms=$lt_include_expsyms_F77
15838 # ### END LIBTOOL TAG CONFIG: $tagname
15844 # If there is no Makefile yet, we rely on a make rule to execute
15845 # `config.status --recheck' to rerun these tests and create the
15846 # libtool script then.
15847 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15848 if test -f "$ltmain_in"; then
15849 test -f Makefile && make "$ltmain"
15855 ac_cpp='$CPP $CPPFLAGS'
15856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15868 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15872 # Source file extension for Java test sources.
15875 # Object file extension for compiled Java test sources.
15879 # Code to be used in simple compile tests
15880 lt_simple_compile_test_code="class foo {}\n"
15882 # Code to be used in simple link tests
15883 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15887 # If no C compiler was specified, use CC.
15890 # Allow CC to be a program name with arguments.
15894 # save warnings/boilerplate of simple test code
15895 ac_outfile=conftest.$ac_objext
15896 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15897 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15898 _lt_compiler_boilerplate=`cat conftest.err`
15901 ac_outfile=conftest.$ac_objext
15902 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15903 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15904 _lt_linker_boilerplate=`cat conftest.err`
15908 # Allow CC to be a program name with arguments.
15913 for cc_temp in $compiler""; do
15915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15921 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15924 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15925 archive_cmds_need_lc_GCJ=no
15927 old_archive_cmds_GCJ=$old_archive_cmds
15930 ## There is no encapsulation within the following macros, do not change
15931 ## the running order or otherwise move them around unless you know exactly
15932 ## what you are doing...
15934 lt_prog_compiler_no_builtin_flag_GCJ=
15936 if test "$GCC" = yes; then
15937 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15940 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15941 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15942 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 lt_cv_prog_compiler_rtti_exceptions=no
15946 ac_outfile=conftest.$ac_objext
15947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15948 lt_compiler_flag="-fno-rtti -fno-exceptions"
15949 # Insert the option either (1) after the last *FLAGS variable, or
15950 # (2) before a word containing "conftest.", or (3) at the end.
15951 # Note that $ac_compile itself does not contain backslashes and begins
15952 # with a dollar sign (not a hyphen), so the echo should work correctly.
15953 # The option is referenced via a variable to avoid confusing sed.
15954 lt_compile=`echo "$ac_compile" | $SED \
15955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15957 -e 's:$: $lt_compiler_flag:'`
15958 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15959 (eval "$lt_compile" 2>conftest.err)
15961 cat conftest.err >&5
15962 echo "$as_me:__oline__: \$? = $ac_status" >&5
15963 if (exit $ac_status) && test -s "$ac_outfile"; then
15964 # The compiler can only warn and ignore the option if not recognized
15965 # So say no if there are warnings other than the usual output.
15966 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15967 $SED '/^$/d' conftest.err >conftest.er2
15968 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15969 lt_cv_prog_compiler_rtti_exceptions=yes
15975 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15976 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15978 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15979 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15986 lt_prog_compiler_wl_GCJ=
15987 lt_prog_compiler_pic_GCJ=
15988 lt_prog_compiler_static_GCJ=
15990 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15991 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15993 if test "$GCC" = yes; then
15994 lt_prog_compiler_wl_GCJ='-Wl,'
15995 lt_prog_compiler_static_GCJ='-static'
15999 # All AIX code is PIC.
16000 if test "$host_cpu" = ia64; then
16001 # AIX 5 now supports IA64 processor
16002 lt_prog_compiler_static_GCJ='-Bstatic'
16007 # FIXME: we need at least 68020 code to build shared libraries, but
16008 # adding the `-m68020' flag to GCC prevents building anything better,
16010 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16013 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16014 # PIC is the default for these OSes.
16017 mingw* | pw32* | os2*)
16018 # This hack is so that the source file can tell whether it is being
16019 # built for inclusion in a dll (and should export symbols for example).
16020 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16023 darwin* | rhapsody*)
16024 # PIC is the default on this platform
16025 # Common symbols not allowed in MH_DYLIB files
16026 lt_prog_compiler_pic_GCJ='-fno-common'
16030 # Just because we use GCC doesn't mean we suddenly get shared libraries
16031 # on systems that don't support them.
16032 lt_prog_compiler_can_build_shared_GCJ=no
16037 if test -d /usr/nec; then
16038 lt_prog_compiler_pic_GCJ=-Kconform_pic
16043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16044 # not for PA HP-UX.
16050 lt_prog_compiler_pic_GCJ='-fPIC'
16056 lt_prog_compiler_pic_GCJ='-fPIC'
16060 # PORTME Check for flag to pass linker flags through the system compiler.
16063 lt_prog_compiler_wl_GCJ='-Wl,'
16064 if test "$host_cpu" = ia64; then
16065 # AIX 5 now supports IA64 processor
16066 lt_prog_compiler_static_GCJ='-Bstatic'
16068 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16072 # PIC is the default on this platform
16073 # Common symbols not allowed in MH_DYLIB files
16074 case $cc_basename in
16076 lt_prog_compiler_pic_GCJ='-qnocommon'
16077 lt_prog_compiler_wl_GCJ='-Wl,'
16082 mingw* | pw32* | os2*)
16083 # This hack is so that the source file can tell whether it is being
16084 # built for inclusion in a dll (and should export symbols for example).
16085 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16088 hpux9* | hpux10* | hpux11*)
16089 lt_prog_compiler_wl_GCJ='-Wl,'
16090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16091 # not for PA HP-UX.
16097 lt_prog_compiler_pic_GCJ='+Z'
16100 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16101 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16104 irix5* | irix6* | nonstopux*)
16105 lt_prog_compiler_wl_GCJ='-Wl,'
16106 # PIC (with -KPIC) is the default.
16107 lt_prog_compiler_static_GCJ='-non_shared'
16111 lt_prog_compiler_pic_GCJ='-KPIC'
16112 lt_prog_compiler_static_GCJ='-Bstatic'
16116 case $cc_basename in
16118 lt_prog_compiler_wl_GCJ='-Wl,'
16119 lt_prog_compiler_pic_GCJ='-KPIC'
16120 lt_prog_compiler_static_GCJ='-static'
16122 pgcc* | pgf77* | pgf90* | pgf95*)
16123 # Portland Group compilers (*not* the Pentium gcc compiler,
16124 # which looks to be a dead project)
16125 lt_prog_compiler_wl_GCJ='-Wl,'
16126 lt_prog_compiler_pic_GCJ='-fpic'
16127 lt_prog_compiler_static_GCJ='-Bstatic'
16130 lt_prog_compiler_wl_GCJ='-Wl,'
16131 # All Alpha code is PIC.
16132 lt_prog_compiler_static_GCJ='-non_shared'
16137 osf3* | osf4* | osf5*)
16138 lt_prog_compiler_wl_GCJ='-Wl,'
16139 # All OSF/1 code is PIC.
16140 lt_prog_compiler_static_GCJ='-non_shared'
16144 lt_prog_compiler_pic_GCJ='-Kpic'
16145 lt_prog_compiler_static_GCJ='-dn'
16149 lt_prog_compiler_pic_GCJ='-KPIC'
16150 lt_prog_compiler_static_GCJ='-Bstatic'
16151 case $cc_basename in
16152 f77* | f90* | f95*)
16153 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16155 lt_prog_compiler_wl_GCJ='-Wl,';;
16160 lt_prog_compiler_wl_GCJ='-Qoption ld '
16161 lt_prog_compiler_pic_GCJ='-PIC'
16162 lt_prog_compiler_static_GCJ='-Bstatic'
16165 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16166 lt_prog_compiler_wl_GCJ='-Wl,'
16167 lt_prog_compiler_pic_GCJ='-KPIC'
16168 lt_prog_compiler_static_GCJ='-Bstatic'
16172 if test -d /usr/nec ;then
16173 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16174 lt_prog_compiler_static_GCJ='-Bstatic'
16179 lt_prog_compiler_wl_GCJ='-Wl,'
16180 lt_prog_compiler_can_build_shared_GCJ=no
16184 lt_prog_compiler_pic_GCJ='-pic'
16185 lt_prog_compiler_static_GCJ='-Bstatic'
16189 lt_prog_compiler_can_build_shared_GCJ=no
16194 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16195 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16198 # Check to make sure the PIC flag actually works.
16200 if test -n "$lt_prog_compiler_pic_GCJ"; then
16202 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16203 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16204 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16207 lt_prog_compiler_pic_works_GCJ=no
16208 ac_outfile=conftest.$ac_objext
16209 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16210 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16211 # Insert the option either (1) after the last *FLAGS variable, or
16212 # (2) before a word containing "conftest.", or (3) at the end.
16213 # Note that $ac_compile itself does not contain backslashes and begins
16214 # with a dollar sign (not a hyphen), so the echo should work correctly.
16215 # The option is referenced via a variable to avoid confusing sed.
16216 lt_compile=`echo "$ac_compile" | $SED \
16217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16219 -e 's:$: $lt_compiler_flag:'`
16220 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16221 (eval "$lt_compile" 2>conftest.err)
16223 cat conftest.err >&5
16224 echo "$as_me:__oline__: \$? = $ac_status" >&5
16225 if (exit $ac_status) && test -s "$ac_outfile"; then
16226 # The compiler can only warn and ignore the option if not recognized
16227 # So say no if there are warnings other than the usual output.
16228 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16229 $SED '/^$/d' conftest.err >conftest.er2
16230 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16231 lt_prog_compiler_pic_works_GCJ=yes
16237 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16238 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16240 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16241 case $lt_prog_compiler_pic_GCJ in
16243 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16246 lt_prog_compiler_pic_GCJ=
16247 lt_prog_compiler_can_build_shared_GCJ=no
16252 # For platforms which do not support PIC, -DPIC is meaningless:
16254 lt_prog_compiler_pic_GCJ=
16257 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16261 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16262 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16263 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 lt_cv_prog_compiler_c_o_GCJ=no
16267 $rm -r conftest 2>/dev/null
16271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16273 lt_compiler_flag="-o out/conftest2.$ac_objext"
16274 # Insert the option either (1) after the last *FLAGS variable, or
16275 # (2) before a word containing "conftest.", or (3) at the end.
16276 # Note that $ac_compile itself does not contain backslashes and begins
16277 # with a dollar sign (not a hyphen), so the echo should work correctly.
16278 lt_compile=`echo "$ac_compile" | $SED \
16279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16281 -e 's:$: $lt_compiler_flag:'`
16282 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16283 (eval "$lt_compile" 2>out/conftest.err)
16285 cat out/conftest.err >&5
16286 echo "$as_me:__oline__: \$? = $ac_status" >&5
16287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16289 # The compiler can only warn and ignore the option if not recognized
16290 # So say no if there are warnings
16291 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16292 $SED '/^$/d' out/conftest.err >out/conftest.er2
16293 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16294 lt_cv_prog_compiler_c_o_GCJ=yes
16299 # SGI C++ compiler will create directory out/ii_files/ for
16300 # template instantiation
16301 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16302 $rm out/* && rmdir out
16308 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16309 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16312 hard_links="nottested"
16313 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16314 # do not overwrite the value of need_locks provided by the user
16315 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16316 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16319 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16321 ln conftest.a conftest.b 2>&5 || hard_links=no
16322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16323 echo "$as_me:$LINENO: result: $hard_links" >&5
16324 echo "${ECHO_T}$hard_links" >&6
16325 if test "$hard_links" = no; then
16326 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16327 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16334 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16335 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16338 allow_undefined_flag_GCJ=
16339 enable_shared_with_static_runtimes_GCJ=no
16341 archive_expsym_cmds_GCJ=
16342 old_archive_From_new_cmds_GCJ=
16343 old_archive_from_expsyms_cmds_GCJ=
16344 export_dynamic_flag_spec_GCJ=
16345 whole_archive_flag_spec_GCJ=
16346 thread_safe_flag_spec_GCJ=
16347 hardcode_libdir_flag_spec_GCJ=
16348 hardcode_libdir_flag_spec_ld_GCJ=
16349 hardcode_libdir_separator_GCJ=
16350 hardcode_direct_GCJ=no
16351 hardcode_minus_L_GCJ=no
16352 hardcode_shlibpath_var_GCJ=unsupported
16353 link_all_deplibs_GCJ=unknown
16354 hardcode_automatic_GCJ=no
16356 module_expsym_cmds_GCJ=
16357 always_export_symbols_GCJ=no
16358 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16359 # include_expsyms should be a list of space-separated symbols to be *always*
16360 # included in the symbol list
16361 include_expsyms_GCJ=
16362 # exclude_expsyms can be an extended regexp of symbols to exclude
16363 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16364 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16365 # as well as any symbol that contains `d'.
16366 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16367 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16368 # platforms (ab)use it in PIC code, but their linkers get confused if
16369 # the symbol is explicitly referenced. Since portable code cannot
16370 # rely on this symbol name, it's probably fine to never include it in
16371 # preloaded symbol tables.
16372 extract_expsyms_cmds=
16373 # Just being paranoid about ensuring that cc_basename is set.
16374 for cc_temp in $compiler""; do
16376 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16377 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16382 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16385 cygwin* | mingw* | pw32*)
16386 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16387 # When not using gcc, we currently assume that we are using
16388 # Microsoft Visual C++.
16389 if test "$GCC" != yes; then
16399 if test "$with_gnu_ld" = yes; then
16400 # If archive_cmds runs LD, not CC, wlarc should be empty
16403 # Set some defaults for GNU ld with shared library support. These
16404 # are reset later if shared libraries are not supported. Putting them
16405 # here allows them to be overridden if necessary.
16406 runpath_var=LD_RUN_PATH
16407 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16408 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16409 # ancient GNU ld didn't support --whole-archive et. al.
16410 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16411 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16413 whole_archive_flag_spec_GCJ=
16415 supports_anon_versioning=no
16416 case `$LD -v 2>/dev/null` in
16417 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16418 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16419 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16420 *\ 2.11.*) ;; # other 2.11 versions
16421 *) supports_anon_versioning=yes ;;
16424 # See if GNU ld supports shared libraries.
16426 aix3* | aix4* | aix5*)
16427 # On AIX/PPC, the GNU linker is very broken
16428 if test "$host_cpu" != ia64; then
16432 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16433 *** to be unable to reliably create shared libraries on AIX.
16434 *** Therefore, libtool is disabling shared libraries support. If you
16435 *** really care for shared libraries, you may want to modify your PATH
16436 *** so that a non-GNU linker is found, and then restart.
16443 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)'
16444 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16445 hardcode_minus_L_GCJ=yes
16447 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16448 # that the semantics of dynamic libraries on AmigaOS, at least up
16449 # to version 4, is to share data among multiple programs linked
16450 # with the same dynamic library. Since this doesn't match the
16451 # behavior of shared libraries on other platforms, we can't use
16457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16458 allow_undefined_flag_GCJ=unsupported
16459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16460 # support --undefined. This deserves some investigation. FIXME
16461 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16467 cygwin* | mingw* | pw32*)
16468 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16469 # as there is no search path for DLLs.
16470 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16471 allow_undefined_flag_GCJ=unsupported
16472 always_export_symbols_GCJ=no
16473 enable_shared_with_static_runtimes_GCJ=yes
16474 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16476 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16477 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16478 # If the export-symbols file already is a .def file (1st line
16479 # is EXPORTS), use it as is; otherwise, prepend...
16480 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16481 cp $export_symbols $output_objdir/$soname.def;
16483 echo EXPORTS > $output_objdir/$soname.def;
16484 cat $export_symbols >> $output_objdir/$soname.def;
16486 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16495 case $cc_basename,$host_cpu in
16496 pgcc*) # Portland Group C compiler
16497 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'
16498 tmp_addflag=' $pic_flag'
16500 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16501 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'
16502 tmp_addflag=' $pic_flag -Mnomain' ;;
16503 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16504 tmp_addflag=' -i_dynamic' ;;
16505 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16506 tmp_addflag=' -i_dynamic -nofor_main' ;;
16507 ifc* | ifort*) # Intel Fortran compiler
16508 tmp_addflag=' -nofor_main' ;;
16510 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16512 if test $supports_anon_versioning = yes; then
16513 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16515 $echo "local: *; };" >> $output_objdir/$libname.ver~
16516 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16524 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16525 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16529 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16534 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16538 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16539 *** create shared libraries on Solaris systems. Therefore, libtool
16540 *** is disabling shared libraries support. We urge you to upgrade GNU
16541 *** binutils to release 2.9.1 or newer. Another option is to modify
16542 *** your PATH or compiler configuration so that the native linker is
16543 *** used, and then restart.
16546 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16547 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16548 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16555 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_direct_GCJ=yes
16558 hardcode_shlibpath_var_GCJ=no
16562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16563 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16564 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16571 if test "$ld_shlibs_GCJ" = no; then
16573 hardcode_libdir_flag_spec_GCJ=
16574 export_dynamic_flag_spec_GCJ=
16575 whole_archive_flag_spec_GCJ=
16578 # PORTME fill in a description of your system's linker (not GNU ld)
16581 allow_undefined_flag_GCJ=unsupported
16582 always_export_symbols_GCJ=yes
16583 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'
16584 # Note: this linker hardcodes the directories in LIBPATH if there
16585 # are no directories specified by -L.
16586 hardcode_minus_L_GCJ=yes
16587 if test "$GCC" = yes && test -z "$link_static_flag"; then
16588 # Neither direct hardcoding nor static linking is supported with a
16590 hardcode_direct_GCJ=unsupported
16595 if test "$host_cpu" = ia64; then
16596 # On IA64, the linker does run time linking by default, so we don't
16597 # have to do anything special.
16598 aix_use_runtimelinking=no
16599 exp_sym_flag='-Bexport'
16602 # If we're using GNU nm, then we don't want the "-C" option.
16603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16604 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16605 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'
16607 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'
16609 aix_use_runtimelinking=no
16611 # Test if we are trying to use run time linking or normal
16612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16613 # need to do runtime linking.
16614 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16615 for ld_flag in $LDFLAGS; do
16616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16617 aix_use_runtimelinking=yes
16623 exp_sym_flag='-bexport'
16624 no_entry_flag='-bnoentry'
16627 # When large executables or shared objects are built, AIX ld can
16628 # have problems creating the table of contents. If linking a library
16629 # or program results in "error TOC overflow" add -mminimal-toc to
16630 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16631 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16633 archive_cmds_GCJ=''
16634 hardcode_direct_GCJ=yes
16635 hardcode_libdir_separator_GCJ=':'
16636 link_all_deplibs_GCJ=yes
16638 if test "$GCC" = yes; then
16639 case $host_os in aix4.[012]|aix4.[012].*)
16640 # We only want to do this on AIX 4.2 and lower, the check
16641 # below for broken collect2 doesn't work under 4.3+
16642 collect2name=`${CC} -print-prog-name=collect2`
16643 if test -f "$collect2name" && \
16644 strings "$collect2name" | grep resolve_lib_name >/dev/null
16646 # We have reworked collect2
16647 hardcode_direct_GCJ=yes
16649 # We have old collect2
16650 hardcode_direct_GCJ=unsupported
16651 # It fails to find uninstalled libraries when the uninstalled
16652 # path is not listed in the libpath. Setting hardcode_minus_L
16653 # to unsupported forces relinking
16654 hardcode_minus_L_GCJ=yes
16655 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16656 hardcode_libdir_separator_GCJ=
16659 shared_flag='-shared'
16660 if test "$aix_use_runtimelinking" = yes; then
16661 shared_flag="$shared_flag "'${wl}-G'
16665 if test "$host_cpu" = ia64; then
16666 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16667 # chokes on -Wl,-G. The following line is correct:
16670 if test "$aix_use_runtimelinking" = yes; then
16671 shared_flag='${wl}-G'
16673 shared_flag='${wl}-bM:SRE'
16678 # It seems that -bexpall does not export symbols beginning with
16679 # underscore (_), so it is better to generate a list of symbols to export.
16680 always_export_symbols_GCJ=yes
16681 if test "$aix_use_runtimelinking" = yes; then
16682 # Warning - without using the other runtime loading flags (-brtl),
16683 # -berok will link without error, but may produce a broken library.
16684 allow_undefined_flag_GCJ='-berok'
16685 # Determine the default libpath from the value encoded in an empty executable.
16686 cat >conftest.$ac_ext <<_ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16703 (eval $ac_link) 2>conftest.er1
16705 grep -v '^ *+' conftest.er1 >conftest.err
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16725 # Check for a 64-bit object if we didn't find anything.
16726 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; }
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16733 rm -f conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16737 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16738 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"
16740 if test "$host_cpu" = ia64; then
16741 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16742 allow_undefined_flag_GCJ="-z nodefs"
16743 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"
16745 # Determine the default libpath from the value encoded in an empty executable.
16746 cat >conftest.$ac_ext <<_ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16761 rm -f conftest.$ac_objext conftest$ac_exeext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16763 (eval $ac_link) 2>conftest.er1
16765 grep -v '^ *+' conftest.er1 >conftest.err
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; } &&
16776 { ac_try='test -s conftest$ac_exeext'
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
16783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16785 # Check for a 64-bit object if we didn't find anything.
16786 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; }
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16793 rm -f conftest.err conftest.$ac_objext \
16794 conftest$ac_exeext conftest.$ac_ext
16795 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16797 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16798 # Warning - without using the other run time loading flags,
16799 # -berok will link without error, but may produce a broken library.
16800 no_undefined_flag_GCJ=' ${wl}-bernotok'
16801 allow_undefined_flag_GCJ=' ${wl}-berok'
16802 # -bexpall does not export symbols beginning with underscore (_)
16803 always_export_symbols_GCJ=yes
16804 # Exported symbols can be pulled into shared objects from archives
16805 whole_archive_flag_spec_GCJ=' '
16806 archive_cmds_need_lc_GCJ=yes
16807 # This is similar to how AIX traditionally builds its shared libraries.
16808 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'
16814 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)'
16815 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16816 hardcode_minus_L_GCJ=yes
16817 # see comment about different semantics on the GNU ld section
16822 export_dynamic_flag_spec_GCJ=-rdynamic
16825 cygwin* | mingw* | pw32*)
16826 # When not using gcc, we currently assume that we are using
16827 # Microsoft Visual C++.
16828 # hardcode_libdir_flag_spec is actually meaningless, as there is
16829 # no search path for DLLs.
16830 hardcode_libdir_flag_spec_GCJ=' '
16831 allow_undefined_flag_GCJ=unsupported
16832 # Tell ltmain to make .lib files, not .a files.
16834 # Tell ltmain to make .dll files, not .so files.
16836 # FIXME: Setting linknames here is a bad hack.
16837 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16838 # The linker will automatically build a .lib file if we build a DLL.
16839 old_archive_From_new_cmds_GCJ='true'
16840 # FIXME: Should let the user specify the lib program.
16841 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16842 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16843 enable_shared_with_static_runtimes_GCJ=yes
16846 darwin* | rhapsody*)
16848 rhapsody* | darwin1.[012])
16849 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16852 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16853 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16855 case ${MACOSX_DEPLOYMENT_TARGET} in
16857 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16860 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16866 archive_cmds_need_lc_GCJ=no
16867 hardcode_direct_GCJ=no
16868 hardcode_automatic_GCJ=yes
16869 hardcode_shlibpath_var_GCJ=unsupported
16870 whole_archive_flag_spec_GCJ=''
16871 link_all_deplibs_GCJ=yes
16872 if test "$GCC" = yes ; then
16873 output_verbose_link_cmd='echo'
16874 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16875 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16877 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}'
16878 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}'
16880 case $cc_basename in
16882 output_verbose_link_cmd='echo'
16883 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16884 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16885 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16886 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}'
16887 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}'
16897 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16898 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16899 hardcode_shlibpath_var_GCJ=no
16906 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16907 # support. Future versions do this automatically, but an explicit c++rt0.o
16908 # does not break anything, and helps significantly (at the cost of a little
16911 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16912 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16913 hardcode_direct_GCJ=yes
16914 hardcode_shlibpath_var_GCJ=no
16917 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16919 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16920 hardcode_direct_GCJ=yes
16921 hardcode_minus_L_GCJ=yes
16922 hardcode_shlibpath_var_GCJ=no
16925 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16926 freebsd* | kfreebsd*-gnu | dragonfly*)
16927 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16928 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16929 hardcode_direct_GCJ=yes
16930 hardcode_shlibpath_var_GCJ=no
16934 if test "$GCC" = yes; then
16935 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'
16937 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'
16939 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16940 hardcode_libdir_separator_GCJ=:
16941 hardcode_direct_GCJ=yes
16943 # hardcode_minus_L: Not really in the search PATH,
16944 # but as the default location of the library.
16945 hardcode_minus_L_GCJ=yes
16946 export_dynamic_flag_spec_GCJ='${wl}-E'
16950 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16953 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16956 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16962 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16965 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16969 if test "$with_gnu_ld" = no; then
16972 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16973 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16974 hardcode_libdir_separator_GCJ=:
16975 hardcode_direct_GCJ=no
16976 hardcode_shlibpath_var_GCJ=no
16979 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16980 hardcode_direct_GCJ=no
16981 hardcode_shlibpath_var_GCJ=no
16983 # hardcode_minus_L: Not really in the search PATH,
16984 # but as the default location of the library.
16985 hardcode_minus_L_GCJ=yes
16988 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16989 hardcode_libdir_separator_GCJ=:
16990 hardcode_direct_GCJ=yes
16991 export_dynamic_flag_spec_GCJ='${wl}-E'
16993 # hardcode_minus_L: Not really in the search PATH,
16994 # but as the default location of the library.
16995 hardcode_minus_L_GCJ=yes
17001 irix5* | irix6* | nonstopux*)
17002 if test "$GCC" = yes; then
17003 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'
17005 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'
17006 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17009 hardcode_libdir_separator_GCJ=:
17010 link_all_deplibs_GCJ=yes
17014 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17015 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17017 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17019 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17020 hardcode_direct_GCJ=yes
17021 hardcode_shlibpath_var_GCJ=no
17025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_direct_GCJ=yes
17027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17028 hardcode_libdir_separator_GCJ=:
17029 hardcode_shlibpath_var_GCJ=no
17033 hardcode_direct_GCJ=yes
17034 hardcode_shlibpath_var_GCJ=no
17035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17036 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17037 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17039 export_dynamic_flag_spec_GCJ='${wl}-E'
17042 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17043 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17044 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17047 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17048 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17055 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17056 hardcode_minus_L_GCJ=yes
17057 allow_undefined_flag_GCJ=unsupported
17058 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'
17059 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17067 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17068 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'
17070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17071 hardcode_libdir_separator_GCJ=:
17074 osf4* | osf5*) # as osf3* with the addition of -msym flag
17075 if test "$GCC" = yes; then
17076 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17077 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'
17078 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17080 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17081 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'
17082 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~
17083 $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'
17085 # Both c and cxx compiler support -rpath directly
17086 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17088 hardcode_libdir_separator_GCJ=:
17092 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17093 hardcode_shlibpath_var_GCJ=no
17094 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17095 runpath_var=LD_RUN_PATH
17096 hardcode_runpath_var=yes
17100 no_undefined_flag_GCJ=' -z text'
17101 if test "$GCC" = yes; then
17103 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17104 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17105 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17108 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17110 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17112 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17113 hardcode_shlibpath_var_GCJ=no
17115 solaris2.[0-5] | solaris2.[0-5].*) ;;
17117 # The compiler driver will combine linker options so we
17118 # cannot just pass the convience library names through
17119 # without $wl, iff we do not link with $LD.
17120 # Luckily, gcc supports the same syntax we need for Sun Studio.
17121 # Supported since Solaris 2.6 (maybe 2.5.1?)
17124 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17126 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' ;;
17129 link_all_deplibs_GCJ=yes
17133 if test "x$host_vendor" = xsequent; then
17134 # Use $CC to link under sequent, because it throws in some extra .o
17135 # files that make .init and .fini sections work.
17136 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17138 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17141 hardcode_direct_GCJ=yes
17142 hardcode_minus_L_GCJ=yes
17143 hardcode_shlibpath_var_GCJ=no
17147 case $host_vendor in
17149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17150 hardcode_direct_GCJ=yes # is this really true???
17153 ## LD is ld it makes a PLAMLIB
17154 ## CC just makes a GrossModule.
17155 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17156 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17157 hardcode_direct_GCJ=no
17160 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17161 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17164 runpath_var='LD_RUN_PATH'
17165 hardcode_shlibpath_var_GCJ=no
17169 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17170 hardcode_shlibpath_var_GCJ=no
17171 export_dynamic_flag_spec_GCJ='-Bexport'
17175 if test -d /usr/nec; then
17176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17177 hardcode_shlibpath_var_GCJ=no
17178 runpath_var=LD_RUN_PATH
17179 hardcode_runpath_var=yes
17185 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17186 hardcode_direct_GCJ=yes
17187 hardcode_minus_L_GCJ=no
17188 hardcode_shlibpath_var_GCJ=no
17189 hardcode_runpath_var=yes
17190 runpath_var=LD_RUN_PATH
17193 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17194 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17195 if test "$GCC" = yes; then
17196 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17198 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17200 runpath_var='LD_RUN_PATH'
17201 hardcode_shlibpath_var_GCJ=no
17205 no_undefined_flag_GCJ=' -z text'
17206 # $CC -shared without GNU ld will not create a library from C++
17207 # object files and a static libstdc++, better avoid it by now
17208 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17209 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17210 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17211 hardcode_libdir_flag_spec_GCJ=
17212 hardcode_shlibpath_var_GCJ=no
17213 runpath_var='LD_RUN_PATH'
17217 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17218 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17219 hardcode_shlibpath_var_GCJ=no
17228 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17229 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17230 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17233 if test "$GCC" = yes; then
17234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17238 # Do we need to explicitly link libc?
17240 case "x$archive_cmds_need_lc_GCJ" in
17242 # Assume -lc should be added
17243 archive_cmds_need_lc_GCJ=yes
17245 if test "$enable_shared" = yes && test "$GCC" = yes; then
17246 case $archive_cmds_GCJ in
17248 # FIXME: we may have to deal with multi-command sequences.
17251 # Test whether the compiler implicitly links with -lc since on some
17252 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17253 # to ld, don't add -lc before -lgcc.
17254 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17255 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17257 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17260 (eval $ac_compile) 2>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } 2>conftest.err; then
17266 libobjs=conftest.$ac_objext
17268 wl=$lt_prog_compiler_wl_GCJ
17274 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17275 allow_undefined_flag_GCJ=
17276 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17277 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }
17282 archive_cmds_need_lc_GCJ=no
17284 archive_cmds_need_lc_GCJ=yes
17286 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17288 cat conftest.err 1>&5
17291 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17292 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17299 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17300 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17301 library_names_spec=
17302 libname_spec='lib$name'
17306 postuninstall_cmds=
17310 shlibpath_overrides_runpath=unknown
17312 dynamic_linker="$host_os ld.so"
17313 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17314 if test "$GCC" = yes; then
17315 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17316 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17317 # if the path contains ";" then we assume it to be the separator
17318 # otherwise default to the standard path separator (i.e. ":") - it is
17319 # assumed that no part of a normal pathname contains ";" but that should
17320 # okay in the real world where ";" in dirpaths is itself problematic.
17321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17326 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17328 need_lib_prefix=unknown
17329 hardcode_into_libs=no
17331 # when you set need_version to no, make sure it does not cause -set_version
17332 # flags to be left without arguments
17333 need_version=unknown
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17339 shlibpath_var=LIBPATH
17341 # AIX 3 has no versioning support, so we append a major version to the name.
17342 soname_spec='${libname}${release}${shared_ext}$major'
17349 hardcode_into_libs=yes
17350 if test "$host_cpu" = ia64; then
17351 # AIX 5 supports IA64
17352 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17353 shlibpath_var=LD_LIBRARY_PATH
17355 # With GCC up to 2.95.x, collect2 would create an import file
17356 # for dependence libraries. The import file would start with
17357 # the line `#! .'. This would cause the generated library to
17358 # depend on `.', always an invalid library. This was fixed in
17359 # development snapshots of GCC prior to 3.0.
17361 aix4 | aix4.[01] | aix4.[01].*)
17362 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17364 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17367 can_build_shared=no
17371 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17372 # soname into executable. Probably we can add versioning support to
17373 # collect2, so additional links can be useful in future.
17374 if test "$aix_use_runtimelinking" = yes; then
17375 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17376 # instead of lib<name>.a to let people know that these are not
17377 # typical AIX shared libraries.
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380 # We preserve .a as extension for shared libraries through AIX4.2
17381 # and later when we are not doing run time linking.
17382 library_names_spec='${libname}${release}.a $libname.a'
17383 soname_spec='${libname}${release}${shared_ext}$major'
17385 shlibpath_var=LIBPATH
17390 library_names_spec='$libname.ixlibrary $libname.a'
17391 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17392 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'
17396 library_names_spec='${libname}${shared_ext}'
17397 dynamic_linker="$host_os ld.so"
17398 shlibpath_var=LIBRARY_PATH
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 soname_spec='${libname}${release}${shared_ext}$major'
17406 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17409 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17410 # the default ld.so.conf also contains /usr/contrib/lib and
17411 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17412 # libtool to hard-code these into programs
17415 cygwin* | mingw* | pw32*)
17416 version_type=windows
17421 case $GCC,$host_os in
17422 yes,cygwin* | yes,mingw* | yes,pw32*)
17423 library_names_spec='$libname.dll.a'
17424 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17425 postinstall_cmds='base_file=`basename \${file}`~
17426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17427 dldir=$destdir/`dirname \$dlpath`~
17428 test -d \$dldir || mkdir -p \$dldir~
17429 $install_prog $dir/$dlname \$dldir/$dlname~
17430 chmod a+x \$dldir/$dlname'
17431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17432 dlpath=$dir/\$dldll~
17434 shlibpath_overrides_runpath=yes
17438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17440 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17443 # MinGW DLLs use traditional 'lib' prefix
17444 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17445 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17446 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17447 # It is most probably a Windows format PATH printed by
17448 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17449 # path with ; separators, and with drive letters. We can handle the
17450 # drive letters (cygwin fileutils understands them), so leave them,
17451 # especially as we might pass files found there to a mingw objdump,
17452 # which wouldn't understand a cygwinified path. Ahh.
17453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17459 # pw32 DLLs use 'pw' prefix rather than 'lib'
17460 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17469 dynamic_linker='Win32 ld.exe'
17470 # FIXME: first we should search . and the directory the executable is in
17474 darwin* | rhapsody*)
17475 dynamic_linker="$host_os dyld"
17476 version_type=darwin
17479 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17480 soname_spec='${libname}${release}${major}$shared_ext'
17481 shlibpath_overrides_runpath=yes
17482 shlibpath_var=DYLD_LIBRARY_PATH
17483 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17484 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17485 if test "$GCC" = yes; then
17486 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"`
17488 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17490 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 shlibpath_var=LD_LIBRARY_PATH
17510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17511 soname_spec='${libname}${release}${shared_ext}$major'
17512 shlibpath_var=LD_LIBRARY_PATH
17513 shlibpath_overrides_runpath=no
17514 hardcode_into_libs=yes
17515 dynamic_linker='GNU ld.so'
17518 freebsd* | dragonfly*)
17519 # DragonFly does not have aout. When/if they implement a new
17520 # versioning mechanism, adjust this.
17521 if test -x /usr/bin/objformat; then
17522 objformat=`/usr/bin/objformat`
17525 freebsd[123]*) objformat=aout ;;
17526 *) objformat=elf ;;
17529 version_type=freebsd-$objformat
17530 case $version_type in
17532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17541 shlibpath_var=LD_LIBRARY_PATH
17544 shlibpath_overrides_runpath=yes
17546 freebsd3.[01]* | freebsdelf3.[01]*)
17547 shlibpath_overrides_runpath=yes
17548 hardcode_into_libs=yes
17551 shlibpath_overrides_runpath=no
17552 hardcode_into_libs=yes
17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17562 soname_spec='${libname}${release}${shared_ext}$major'
17563 shlibpath_var=LD_LIBRARY_PATH
17564 hardcode_into_libs=yes
17567 hpux9* | hpux10* | hpux11*)
17568 # Give a soname corresponding to the major version so that dld.sl refuses to
17569 # link against other versions.
17576 hardcode_into_libs=yes
17577 dynamic_linker="$host_os dld.so"
17578 shlibpath_var=LD_LIBRARY_PATH
17579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17581 soname_spec='${libname}${release}${shared_ext}$major'
17582 if test "X$HPUX_IA64_MODE" = X32; then
17583 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17585 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17591 hardcode_into_libs=yes
17592 dynamic_linker="$host_os dld.sl"
17593 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596 soname_spec='${libname}${release}${shared_ext}$major'
17597 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17602 dynamic_linker="$host_os dld.sl"
17603 shlibpath_var=SHLIB_PATH
17604 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17606 soname_spec='${libname}${release}${shared_ext}$major'
17609 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17610 postinstall_cmds='chmod 555 $lib'
17613 irix5* | irix6* | nonstopux*)
17615 nonstopux*) version_type=nonstopux ;;
17617 if test "$lt_cv_prog_gnu_ld" = yes; then
17625 soname_spec='${libname}${release}${shared_ext}$major'
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17628 irix5* | nonstopux*)
17629 libsuff= shlibsuff=
17632 case $LD in # libtool.m4 will add one of these switches to LD
17633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17634 libsuff= shlibsuff= libmagic=32-bit;;
17635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17636 libsuff=32 shlibsuff=N32 libmagic=N32;;
17637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17638 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17639 *) libsuff= shlibsuff= libmagic=never-match;;
17643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17644 shlibpath_overrides_runpath=no
17645 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17646 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17647 hardcode_into_libs=yes
17650 # No shared lib support for Linux oldld, aout, or coff.
17651 linux*oldld* | linux*aout* | linux*coff*)
17655 # This must be Linux ELF.
17660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17661 soname_spec='${libname}${release}${shared_ext}$major'
17662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17663 shlibpath_var=LD_LIBRARY_PATH
17664 shlibpath_overrides_runpath=no
17665 # This implies no fast_install, which is unacceptable.
17666 # Some rework will be needed to allow for fast_install
17667 # before this can be enabled.
17668 hardcode_into_libs=yes
17670 # Append ld.so.conf contents to the search path
17671 if test -f /etc/ld.so.conf; then
17672 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' ' '`
17673 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17676 # We used to test for /lib/ld.so.1 and disable shared libraries on
17677 # powerpc, because MkLinux only supported shared libraries with the
17678 # GNU dynamic linker. Since this was broken with cross compilers,
17679 # most powerpc-linux boxes support dynamic linking these days and
17680 # people can always --disable-shared, the test was removed, and we
17681 # assume the GNU/Linux dynamic linker is in use.
17682 dynamic_linker='GNU/Linux ld.so'
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17690 soname_spec='${libname}${release}${shared_ext}$major'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath=no
17693 hardcode_into_libs=yes
17694 dynamic_linker='GNU ld.so'
17701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17704 dynamic_linker='NetBSD (a.out) ld.so'
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17707 soname_spec='${libname}${release}${shared_ext}$major'
17708 dynamic_linker='NetBSD ld.elf_so'
17710 shlibpath_var=LD_LIBRARY_PATH
17711 shlibpath_overrides_runpath=yes
17712 hardcode_into_libs=yes
17717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17718 shlibpath_var=LD_LIBRARY_PATH
17719 shlibpath_overrides_runpath=yes
17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17727 soname_spec='${libname}${release}${shared_ext}$major'
17728 shlibpath_var=LD_LIBRARY_PATH
17729 shlibpath_overrides_runpath=yes
17735 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17737 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17738 *) need_version=no ;;
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17742 shlibpath_var=LD_LIBRARY_PATH
17743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17745 openbsd2.[89] | openbsd2.[89].*)
17746 shlibpath_overrides_runpath=no
17749 shlibpath_overrides_runpath=yes
17753 shlibpath_overrides_runpath=yes
17758 libname_spec='$name'
17761 library_names_spec='$libname${shared_ext} $libname.a'
17762 dynamic_linker='OS/2 ld.exe'
17763 shlibpath_var=LIBPATH
17766 osf3* | osf4* | osf5*)
17770 soname_spec='${libname}${release}${shared_ext}$major'
17771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17772 shlibpath_var=LD_LIBRARY_PATH
17773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17774 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17779 soname_spec='${libname}${release}${shared_ext}$major'
17780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17781 shlibpath_var=LD_LIBRARY_PATH
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17789 soname_spec='${libname}${release}${shared_ext}$major'
17790 shlibpath_var=LD_LIBRARY_PATH
17791 shlibpath_overrides_runpath=yes
17792 hardcode_into_libs=yes
17793 # ldd complains unless libraries are executable
17794 postinstall_cmds='chmod +x $lib'
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17801 shlibpath_var=LD_LIBRARY_PATH
17802 shlibpath_overrides_runpath=yes
17803 if test "$with_gnu_ld" = yes; then
17809 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17812 soname_spec='${libname}${release}${shared_ext}$major'
17813 shlibpath_var=LD_LIBRARY_PATH
17814 case $host_vendor in
17816 shlibpath_overrides_runpath=no
17818 export_dynamic_flag_spec='${wl}-Blargedynsym'
17819 runpath_var=LD_RUN_PATH
17827 shlibpath_overrides_runpath=no
17828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17834 if test -d /usr/nec ;then
17836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17837 soname_spec='$libname${shared_ext}.$major'
17838 shlibpath_var=LD_LIBRARY_PATH
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17845 soname_spec='${libname}${release}${shared_ext}$major'
17846 shlibpath_var=LD_LIBRARY_PATH
17853 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17854 echo "${ECHO_T}$dynamic_linker" >&6
17855 test "$dynamic_linker" = no && can_build_shared=no
17857 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17858 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17859 hardcode_action_GCJ=
17860 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17861 test -n "$runpath_var_GCJ" || \
17862 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17864 # We can hardcode non-existant directories.
17865 if test "$hardcode_direct_GCJ" != no &&
17866 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17867 # have to relink, otherwise we might link with an installed library
17868 # when we should be linking with a yet-to-be-installed one
17869 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17870 test "$hardcode_minus_L_GCJ" != no; then
17871 # Linking always hardcodes the temporary library directory.
17872 hardcode_action_GCJ=relink
17874 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17875 hardcode_action_GCJ=immediate
17878 # We cannot hardcode anything, or else we can only hardcode existing
17880 hardcode_action_GCJ=unsupported
17882 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17883 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17885 if test "$hardcode_action_GCJ" = relink; then
17886 # Fast installation is not supported
17887 enable_fast_install=no
17888 elif test "$shlibpath_overrides_runpath" = yes ||
17889 test "$enable_shared" = no; then
17890 # Fast installation is not necessary
17891 enable_fast_install=needless
17896 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17897 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17898 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17899 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17900 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17901 echo "$as_me:$LINENO: result: yes" >&5
17902 echo "${ECHO_T}yes" >&6
17904 # FIXME - insert some real tests, host_os isn't really good enough
17907 if test -n "$STRIP" ; then
17908 striplib="$STRIP -x"
17909 echo "$as_me:$LINENO: result: yes" >&5
17910 echo "${ECHO_T}yes" >&6
17912 echo "$as_me:$LINENO: result: no" >&5
17913 echo "${ECHO_T}no" >&6
17917 echo "$as_me:$LINENO: result: no" >&5
17918 echo "${ECHO_T}no" >&6
17923 if test "x$enable_dlopen" != xyes; then
17924 enable_dlopen=unknown
17925 enable_dlopen_self=unknown
17926 enable_dlopen_self_static=unknown
17933 lt_cv_dlopen="load_add_on"
17935 lt_cv_dlopen_self=yes
17939 lt_cv_dlopen="LoadLibrary"
17944 lt_cv_dlopen="dlopen"
17949 # if libdl is installed we need to link against it
17950 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17951 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 ac_check_lib_save_LIBS=$LIBS
17957 cat >conftest.$ac_ext <<_ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17964 /* Override any gcc2 internal prototype to avoid an error. */
17968 /* We use char because int might match the return type of a gcc2
17969 builtin and then its argument prototype would still apply. */
17979 rm -f conftest.$ac_objext conftest$ac_exeext
17980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17981 (eval $ac_link) 2>conftest.er1
17983 grep -v '^ *+' conftest.er1 >conftest.err
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest$ac_exeext'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_cv_lib_dl_dlopen=yes
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 ac_cv_lib_dl_dlopen=no
18007 rm -f conftest.err conftest.$ac_objext \
18008 conftest$ac_exeext conftest.$ac_ext
18009 LIBS=$ac_check_lib_save_LIBS
18011 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18012 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18013 if test $ac_cv_lib_dl_dlopen = yes; then
18014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18017 lt_cv_dlopen="dyld"
18019 lt_cv_dlopen_self=yes
18026 echo "$as_me:$LINENO: checking for shl_load" >&5
18027 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18028 if test "${ac_cv_func_shl_load+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 cat >conftest.$ac_ext <<_ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18037 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18039 #define shl_load innocuous_shl_load
18041 /* System header to define __stub macros and hopefully few prototypes,
18042 which can conflict with char shl_load (); below.
18043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18044 <limits.h> exists even on freestanding compilers. */
18047 # include <limits.h>
18049 # include <assert.h>
18054 /* Override any gcc2 internal prototype to avoid an error. */
18059 /* We use char because int might match the return type of a gcc2
18060 builtin and then its argument prototype would still apply. */
18062 /* The GNU C library defines this for functions which it implements
18063 to always fail with ENOSYS. Some functions are actually named
18064 something starting with __ and the normal name is an alias. */
18065 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18068 char (*f) () = shl_load;
18077 return f != shl_load;
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084 (eval $ac_link) 2>conftest.er1
18086 grep -v '^ *+' conftest.er1 >conftest.err
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest$ac_exeext'
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 ac_cv_func_shl_load=yes
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 ac_cv_func_shl_load=no
18110 rm -f conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
18113 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18114 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18115 if test $ac_cv_func_shl_load = yes; then
18116 lt_cv_dlopen="shl_load"
18118 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18119 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18120 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 ac_check_lib_save_LIBS=$LIBS
18125 cat >conftest.$ac_ext <<_ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18132 /* Override any gcc2 internal prototype to avoid an error. */
18136 /* We use char because int might match the return type of a gcc2
18137 builtin and then its argument prototype would still apply. */
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18149 (eval $ac_link) 2>conftest.er1
18151 grep -v '^ *+' conftest.er1 >conftest.err
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try='test -s conftest$ac_exeext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 ac_cv_lib_dld_shl_load=yes
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 ac_cv_lib_dld_shl_load=no
18175 rm -f conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18177 LIBS=$ac_check_lib_save_LIBS
18179 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18180 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18181 if test $ac_cv_lib_dld_shl_load = yes; then
18182 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18184 echo "$as_me:$LINENO: checking for dlopen" >&5
18185 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18186 if test "${ac_cv_func_dlopen+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 cat >conftest.$ac_ext <<_ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h. */
18195 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18197 #define dlopen innocuous_dlopen
18199 /* System header to define __stub macros and hopefully few prototypes,
18200 which can conflict with char dlopen (); below.
18201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18202 <limits.h> exists even on freestanding compilers. */
18205 # include <limits.h>
18207 # include <assert.h>
18212 /* Override any gcc2 internal prototype to avoid an error. */
18217 /* We use char because int might match the return type of a gcc2
18218 builtin and then its argument prototype would still apply. */
18220 /* The GNU C library defines this for functions which it implements
18221 to always fail with ENOSYS. Some functions are actually named
18222 something starting with __ and the normal name is an alias. */
18223 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18226 char (*f) () = dlopen;
18235 return f != dlopen;
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242 (eval $ac_link) 2>conftest.er1
18244 grep -v '^ *+' conftest.er1 >conftest.err
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } &&
18249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251 (eval $ac_try) 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; } &&
18255 { ac_try='test -s conftest$ac_exeext'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; }; then
18261 ac_cv_func_dlopen=yes
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18266 ac_cv_func_dlopen=no
18268 rm -f conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18271 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18272 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18273 if test $ac_cv_func_dlopen = yes; then
18274 lt_cv_dlopen="dlopen"
18276 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18277 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18278 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 ac_check_lib_save_LIBS=$LIBS
18283 cat >conftest.$ac_ext <<_ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18290 /* Override any gcc2 internal prototype to avoid an error. */
18294 /* We use char because int might match the return type of a gcc2
18295 builtin and then its argument prototype would still apply. */
18305 rm -f conftest.$ac_objext conftest$ac_exeext
18306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18307 (eval $ac_link) 2>conftest.er1
18309 grep -v '^ *+' conftest.er1 >conftest.err
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } &&
18314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; } &&
18320 { ac_try='test -s conftest$ac_exeext'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 ac_cv_lib_dl_dlopen=yes
18328 echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18331 ac_cv_lib_dl_dlopen=no
18333 rm -f conftest.err conftest.$ac_objext \
18334 conftest$ac_exeext conftest.$ac_ext
18335 LIBS=$ac_check_lib_save_LIBS
18337 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18338 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18339 if test $ac_cv_lib_dl_dlopen = yes; then
18340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18342 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18343 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18344 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
18347 ac_check_lib_save_LIBS=$LIBS
18348 LIBS="-lsvld $LIBS"
18349 cat >conftest.$ac_ext <<_ACEOF
18352 cat confdefs.h >>conftest.$ac_ext
18353 cat >>conftest.$ac_ext <<_ACEOF
18354 /* end confdefs.h. */
18356 /* Override any gcc2 internal prototype to avoid an error. */
18360 /* We use char because int might match the return type of a gcc2
18361 builtin and then its argument prototype would still apply. */
18371 rm -f conftest.$ac_objext conftest$ac_exeext
18372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18373 (eval $ac_link) 2>conftest.er1
18375 grep -v '^ *+' conftest.er1 >conftest.err
18377 cat conftest.err >&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
18380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest$ac_exeext'
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 ac_cv_lib_svld_dlopen=yes
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_cv_lib_svld_dlopen=no
18399 rm -f conftest.err conftest.$ac_objext \
18400 conftest$ac_exeext conftest.$ac_ext
18401 LIBS=$ac_check_lib_save_LIBS
18403 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18404 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18405 if test $ac_cv_lib_svld_dlopen = yes; then
18406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18408 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18409 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18410 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 ac_check_lib_save_LIBS=$LIBS
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18422 /* Override any gcc2 internal prototype to avoid an error. */
18426 /* We use char because int might match the return type of a gcc2
18427 builtin and then its argument prototype would still apply. */
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18439 (eval $ac_link) 2>conftest.er1
18441 grep -v '^ *+' conftest.er1 >conftest.err
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } &&
18446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18448 (eval $ac_try) 2>&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); }; } &&
18452 { ac_try='test -s conftest$ac_exeext'
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; }; then
18458 ac_cv_lib_dld_dld_link=yes
18460 echo "$as_me: failed program was:" >&5
18461 sed 's/^/| /' conftest.$ac_ext >&5
18463 ac_cv_lib_dld_dld_link=no
18465 rm -f conftest.err conftest.$ac_objext \
18466 conftest$ac_exeext conftest.$ac_ext
18467 LIBS=$ac_check_lib_save_LIBS
18469 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18470 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18471 if test $ac_cv_lib_dld_dld_link = yes; then
18472 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18493 if test "x$lt_cv_dlopen" != xno; then
18499 case $lt_cv_dlopen in
18501 save_CPPFLAGS="$CPPFLAGS"
18502 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18504 save_LDFLAGS="$LDFLAGS"
18505 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18508 LIBS="$lt_cv_dlopen_libs $LIBS"
18510 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18511 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18512 if test "${lt_cv_dlopen_self+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 if test "$cross_compiling" = yes; then :
18516 lt_cv_dlopen_self=cross
18518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18519 lt_status=$lt_dlunknown
18520 cat > conftest.$ac_ext <<EOF
18521 #line __oline__ "configure"
18522 #include "confdefs.h"
18531 # define LT_DLGLOBAL RTLD_GLOBAL
18534 # define LT_DLGLOBAL DL_GLOBAL
18536 # define LT_DLGLOBAL 0
18540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18541 find out it does not work in some platform. */
18542 #ifndef LT_DLLAZY_OR_NOW
18544 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18547 # define LT_DLLAZY_OR_NOW DL_LAZY
18550 # define LT_DLLAZY_OR_NOW RTLD_NOW
18553 # define LT_DLLAZY_OR_NOW DL_NOW
18555 # define LT_DLLAZY_OR_NOW 0
18563 extern "C" void exit (int);
18566 void fnord() { int i=42;}
18569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18570 int status = $lt_dlunknown;
18574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18575 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18576 /* dlclose (self); */
18582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18583 (eval $ac_link) 2>&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18587 (./conftest; exit; ) >&5 2>/dev/null
18589 case x$lt_status in
18590 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18591 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18592 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18595 # compilation failed
18596 lt_cv_dlopen_self=no
18603 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18604 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18606 if test "x$lt_cv_dlopen_self" = xyes; then
18607 LDFLAGS="$LDFLAGS $link_static_flag"
18608 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18609 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18610 if test "${lt_cv_dlopen_self_static+set}" = set; then
18611 echo $ECHO_N "(cached) $ECHO_C" >&6
18613 if test "$cross_compiling" = yes; then :
18614 lt_cv_dlopen_self_static=cross
18616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18617 lt_status=$lt_dlunknown
18618 cat > conftest.$ac_ext <<EOF
18619 #line __oline__ "configure"
18620 #include "confdefs.h"
18629 # define LT_DLGLOBAL RTLD_GLOBAL
18632 # define LT_DLGLOBAL DL_GLOBAL
18634 # define LT_DLGLOBAL 0
18638 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18639 find out it does not work in some platform. */
18640 #ifndef LT_DLLAZY_OR_NOW
18642 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18645 # define LT_DLLAZY_OR_NOW DL_LAZY
18648 # define LT_DLLAZY_OR_NOW RTLD_NOW
18651 # define LT_DLLAZY_OR_NOW DL_NOW
18653 # define LT_DLLAZY_OR_NOW 0
18661 extern "C" void exit (int);
18664 void fnord() { int i=42;}
18667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18668 int status = $lt_dlunknown;
18672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18673 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18674 /* dlclose (self); */
18680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18681 (eval $ac_link) 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18685 (./conftest; exit; ) >&5 2>/dev/null
18687 case x$lt_status in
18688 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18689 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18690 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18693 # compilation failed
18694 lt_cv_dlopen_self_static=no
18701 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18702 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18705 CPPFLAGS="$save_CPPFLAGS"
18706 LDFLAGS="$save_LDFLAGS"
18711 case $lt_cv_dlopen_self in
18712 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18713 *) enable_dlopen_self=unknown ;;
18716 case $lt_cv_dlopen_self_static in
18717 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18718 *) enable_dlopen_self_static=unknown ;;
18723 # The else clause should only fire when bootstrapping the
18724 # libtool distribution, otherwise you forgot to ship ltmain.sh
18725 # with your package, and you will get complaints that there are
18726 # no rules to generate ltmain.sh.
18727 if test -f "$ltmain"; then
18728 # See if we are running on zsh, and set the options which allow our commands through
18729 # without removal of \ escapes.
18730 if test -n "${ZSH_VERSION+set}" ; then
18731 setopt NO_GLOB_SUBST
18733 # Now quote all the things that may contain metacharacters while being
18734 # careful not to overquote the AC_SUBSTed values. We take copies of the
18735 # variables and quote the copies for generation of the libtool script.
18736 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18738 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18739 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18740 deplibs_check_method reload_flag reload_cmds need_locks \
18741 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18742 lt_cv_sys_global_symbol_to_c_name_address \
18743 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18744 old_postinstall_cmds old_postuninstall_cmds \
18748 lt_prog_compiler_wl_GCJ \
18749 lt_prog_compiler_pic_GCJ \
18750 lt_prog_compiler_static_GCJ \
18751 lt_prog_compiler_no_builtin_flag_GCJ \
18752 export_dynamic_flag_spec_GCJ \
18753 thread_safe_flag_spec_GCJ \
18754 whole_archive_flag_spec_GCJ \
18755 enable_shared_with_static_runtimes_GCJ \
18756 old_archive_cmds_GCJ \
18757 old_archive_from_new_cmds_GCJ \
18758 predep_objects_GCJ \
18759 postdep_objects_GCJ \
18762 compiler_lib_search_path_GCJ \
18764 archive_expsym_cmds_GCJ \
18765 postinstall_cmds_GCJ \
18766 postuninstall_cmds_GCJ \
18767 old_archive_from_expsyms_cmds_GCJ \
18768 allow_undefined_flag_GCJ \
18769 no_undefined_flag_GCJ \
18770 export_symbols_cmds_GCJ \
18771 hardcode_libdir_flag_spec_GCJ \
18772 hardcode_libdir_flag_spec_ld_GCJ \
18773 hardcode_libdir_separator_GCJ \
18774 hardcode_automatic_GCJ \
18776 module_expsym_cmds_GCJ \
18777 lt_cv_prog_compiler_c_o_GCJ \
18778 exclude_expsyms_GCJ \
18779 include_expsyms_GCJ; do
18782 old_archive_cmds_GCJ | \
18783 old_archive_from_new_cmds_GCJ | \
18784 archive_cmds_GCJ | \
18785 archive_expsym_cmds_GCJ | \
18786 module_cmds_GCJ | \
18787 module_expsym_cmds_GCJ | \
18788 old_archive_from_expsyms_cmds_GCJ | \
18789 export_symbols_cmds_GCJ | \
18790 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18791 postinstall_cmds | postuninstall_cmds | \
18792 old_postinstall_cmds | old_postuninstall_cmds | \
18793 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18794 # Double-quote double-evaled strings.
18795 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18798 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18804 *'\$0 --fallback-echo"')
18805 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18811 cat <<__EOF__ >> "$cfgfile"
18812 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18814 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18816 # Shell to use when invoking shell scripts.
18819 # Whether or not to build shared libraries.
18820 build_libtool_libs=$enable_shared
18822 # Whether or not to build static libraries.
18823 build_old_libs=$enable_static
18825 # Whether or not to add -lc for building shared libraries.
18826 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18828 # Whether or not to disallow shared libs when runtime libs are static
18829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18831 # Whether or not to optimize for fast installation.
18832 fast_install=$enable_fast_install
18835 host_alias=$host_alias
18839 # The build system.
18840 build_alias=$build_alias
18844 # An echo program that does not interpret backslashes.
18849 AR_FLAGS=$lt_AR_FLAGS
18854 # A language-specific compiler.
18855 CC=$lt_compiler_GCJ
18857 # Is the compiler the GNU C compiler?
18863 # The linker used to build libraries.
18866 # Whether we need hard or soft links.
18869 # A BSD-compatible nm program.
18872 # A symbol stripping program
18875 # Used to examine libraries when file_magic_cmd begins "file"
18876 MAGIC_CMD=$MAGIC_CMD
18878 # Used on cygwin: DLL creation program.
18881 # Used on cygwin: object dumper.
18884 # Used on cygwin: assembler.
18887 # The name of the directory that contains temporary libtool files.
18890 # How to create reloadable object files.
18891 reload_flag=$lt_reload_flag
18892 reload_cmds=$lt_reload_cmds
18894 # How to pass a linker flag through the compiler.
18895 wl=$lt_lt_prog_compiler_wl_GCJ
18897 # Object file suffix (normally "o").
18898 objext="$ac_objext"
18900 # Old archive suffix (normally "a").
18903 # Shared library suffix (normally ".so").
18904 shrext_cmds='$shrext_cmds'
18906 # Executable file suffix (normally "").
18909 # Additional compiler flags for building library objects.
18910 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18913 # What is the maximum length of a command?
18914 max_cmd_len=$lt_cv_sys_max_cmd_len
18916 # Does compiler simultaneously support -c and -o options?
18917 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18919 # Must we lock files when doing compilation?
18920 need_locks=$lt_need_locks
18922 # Do we need the lib prefix for modules?
18923 need_lib_prefix=$need_lib_prefix
18925 # Do we need a version for libraries?
18926 need_version=$need_version
18928 # Whether dlopen is supported.
18929 dlopen_support=$enable_dlopen
18931 # Whether dlopen of programs is supported.
18932 dlopen_self=$enable_dlopen_self
18934 # Whether dlopen of statically linked programs is supported.
18935 dlopen_self_static=$enable_dlopen_self_static
18937 # Compiler flag to prevent dynamic linking.
18938 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18940 # Compiler flag to turn off builtin functions.
18941 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18943 # Compiler flag to allow reflexive dlopens.
18944 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18946 # Compiler flag to generate shared objects directly from archives.
18947 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18949 # Compiler flag to generate thread-safe objects.
18950 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18952 # Library versioning type.
18953 version_type=$version_type
18955 # Format of library name prefix.
18956 libname_spec=$lt_libname_spec
18958 # List of archive names. First name is the real one, the rest are links.
18959 # The last name is the one that the linker finds with -lNAME.
18960 library_names_spec=$lt_library_names_spec
18962 # The coded name of the library, if different from the real name.
18963 soname_spec=$lt_soname_spec
18965 # Commands used to build and install an old-style archive.
18967 old_archive_cmds=$lt_old_archive_cmds_GCJ
18968 old_postinstall_cmds=$lt_old_postinstall_cmds
18969 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18971 # Create an old-style archive from a shared archive.
18972 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18974 # Create a temporary old-style archive to link instead of a shared archive.
18975 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18977 # Commands used to build and install a shared archive.
18978 archive_cmds=$lt_archive_cmds_GCJ
18979 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18980 postinstall_cmds=$lt_postinstall_cmds
18981 postuninstall_cmds=$lt_postuninstall_cmds
18983 # Commands used to build a loadable module (assumed same as above if empty)
18984 module_cmds=$lt_module_cmds_GCJ
18985 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18987 # Commands to strip libraries.
18988 old_striplib=$lt_old_striplib
18989 striplib=$lt_striplib
18991 # Dependencies to place before the objects being linked to create a
18993 predep_objects=$lt_predep_objects_GCJ
18995 # Dependencies to place after the objects being linked to create a
18997 postdep_objects=$lt_postdep_objects_GCJ
18999 # Dependencies to place before the objects being linked to create a
19001 predeps=$lt_predeps_GCJ
19003 # Dependencies to place after the objects being linked to create a
19005 postdeps=$lt_postdeps_GCJ
19007 # The library search path used internally by the compiler when linking
19008 # a shared library.
19009 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19011 # Method to check whether dependent libraries are shared objects.
19012 deplibs_check_method=$lt_deplibs_check_method
19014 # Command to use when deplibs_check_method == file_magic.
19015 file_magic_cmd=$lt_file_magic_cmd
19017 # Flag that allows shared libraries with undefined symbols to be built.
19018 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19020 # Flag that forces no undefined symbols.
19021 no_undefined_flag=$lt_no_undefined_flag_GCJ
19023 # Commands used to finish a libtool library installation in a directory.
19024 finish_cmds=$lt_finish_cmds
19026 # Same as above, but a single script fragment to be evaled but not shown.
19027 finish_eval=$lt_finish_eval
19029 # Take the output of nm and produce a listing of raw symbols and C names.
19030 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19032 # Transform the output of nm in a proper C declaration
19033 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19035 # Transform the output of nm in a C name address pair
19036 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19038 # This is the shared library runtime path variable.
19039 runpath_var=$runpath_var
19041 # This is the shared library path variable.
19042 shlibpath_var=$shlibpath_var
19044 # Is shlibpath searched before the hard-coded library search path?
19045 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19047 # How to hardcode a shared library path into an executable.
19048 hardcode_action=$hardcode_action_GCJ
19050 # Whether we should hardcode library paths into libraries.
19051 hardcode_into_libs=$hardcode_into_libs
19053 # Flag to hardcode \$libdir into a binary during linking.
19054 # This must work even if \$libdir does not exist.
19055 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19057 # If ld is used when linking, flag to hardcode \$libdir into
19058 # a binary during linking. This must work even if \$libdir does
19060 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19062 # Whether we need a single -rpath flag with a separated argument.
19063 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19065 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19066 # resulting binary.
19067 hardcode_direct=$hardcode_direct_GCJ
19069 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19070 # resulting binary.
19071 hardcode_minus_L=$hardcode_minus_L_GCJ
19073 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19074 # the resulting binary.
19075 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19077 # Set to yes if building a shared library automatically hardcodes DIR into the library
19078 # and all subsequent libraries and executables linked against it.
19079 hardcode_automatic=$hardcode_automatic_GCJ
19081 # Variables whose values should be saved in libtool wrapper scripts and
19082 # restored at relink time.
19083 variables_saved_for_relink="$variables_saved_for_relink"
19085 # Whether libtool must link a program against all its dependency libraries.
19086 link_all_deplibs=$link_all_deplibs_GCJ
19088 # Compile-time system search path for libraries
19089 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19091 # Run-time system search path for libraries
19092 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19094 # Fix the shell variable \$srcfile for the compiler.
19095 fix_srcfile_path="$fix_srcfile_path_GCJ"
19097 # Set to yes if exported symbols are required.
19098 always_export_symbols=$always_export_symbols_GCJ
19100 # The commands to list exported symbols.
19101 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19103 # The commands to extract the exported symbol list from a shared archive.
19104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19106 # Symbols that should not be listed in the preloaded symbols.
19107 exclude_expsyms=$lt_exclude_expsyms_GCJ
19109 # Symbols that must always be exported.
19110 include_expsyms=$lt_include_expsyms_GCJ
19112 # ### END LIBTOOL TAG CONFIG: $tagname
19118 # If there is no Makefile yet, we rely on a make rule to execute
19119 # `config.status --recheck' to rerun these tests and create the
19120 # libtool script then.
19121 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19122 if test -f "$ltmain_in"; then
19123 test -f Makefile && make "$ltmain"
19129 ac_cpp='$CPP $CPPFLAGS'
19130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19145 # Source file extension for RC test sources.
19148 # Object file extension for compiled RC test sources.
19152 # Code to be used in simple compile tests
19153 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19155 # Code to be used in simple link tests
19156 lt_simple_link_test_code="$lt_simple_compile_test_code"
19158 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19160 # If no C compiler was specified, use CC.
19163 # Allow CC to be a program name with arguments.
19167 # save warnings/boilerplate of simple test code
19168 ac_outfile=conftest.$ac_objext
19169 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19170 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19171 _lt_compiler_boilerplate=`cat conftest.err`
19174 ac_outfile=conftest.$ac_objext
19175 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19176 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19177 _lt_linker_boilerplate=`cat conftest.err`
19181 # Allow CC to be a program name with arguments.
19186 for cc_temp in $compiler""; do
19188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19196 lt_cv_prog_compiler_c_o_RC=yes
19198 # The else clause should only fire when bootstrapping the
19199 # libtool distribution, otherwise you forgot to ship ltmain.sh
19200 # with your package, and you will get complaints that there are
19201 # no rules to generate ltmain.sh.
19202 if test -f "$ltmain"; then
19203 # See if we are running on zsh, and set the options which allow our commands through
19204 # without removal of \ escapes.
19205 if test -n "${ZSH_VERSION+set}" ; then
19206 setopt NO_GLOB_SUBST
19208 # Now quote all the things that may contain metacharacters while being
19209 # careful not to overquote the AC_SUBSTed values. We take copies of the
19210 # variables and quote the copies for generation of the libtool script.
19211 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19213 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19214 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19215 deplibs_check_method reload_flag reload_cmds need_locks \
19216 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19217 lt_cv_sys_global_symbol_to_c_name_address \
19218 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19219 old_postinstall_cmds old_postuninstall_cmds \
19223 lt_prog_compiler_wl_RC \
19224 lt_prog_compiler_pic_RC \
19225 lt_prog_compiler_static_RC \
19226 lt_prog_compiler_no_builtin_flag_RC \
19227 export_dynamic_flag_spec_RC \
19228 thread_safe_flag_spec_RC \
19229 whole_archive_flag_spec_RC \
19230 enable_shared_with_static_runtimes_RC \
19231 old_archive_cmds_RC \
19232 old_archive_from_new_cmds_RC \
19233 predep_objects_RC \
19234 postdep_objects_RC \
19237 compiler_lib_search_path_RC \
19239 archive_expsym_cmds_RC \
19240 postinstall_cmds_RC \
19241 postuninstall_cmds_RC \
19242 old_archive_from_expsyms_cmds_RC \
19243 allow_undefined_flag_RC \
19244 no_undefined_flag_RC \
19245 export_symbols_cmds_RC \
19246 hardcode_libdir_flag_spec_RC \
19247 hardcode_libdir_flag_spec_ld_RC \
19248 hardcode_libdir_separator_RC \
19249 hardcode_automatic_RC \
19251 module_expsym_cmds_RC \
19252 lt_cv_prog_compiler_c_o_RC \
19253 exclude_expsyms_RC \
19254 include_expsyms_RC; do
19257 old_archive_cmds_RC | \
19258 old_archive_from_new_cmds_RC | \
19259 archive_cmds_RC | \
19260 archive_expsym_cmds_RC | \
19262 module_expsym_cmds_RC | \
19263 old_archive_from_expsyms_cmds_RC | \
19264 export_symbols_cmds_RC | \
19265 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19266 postinstall_cmds | postuninstall_cmds | \
19267 old_postinstall_cmds | old_postuninstall_cmds | \
19268 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19269 # Double-quote double-evaled strings.
19270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19279 *'\$0 --fallback-echo"')
19280 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19286 cat <<__EOF__ >> "$cfgfile"
19287 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19291 # Shell to use when invoking shell scripts.
19294 # Whether or not to build shared libraries.
19295 build_libtool_libs=$enable_shared
19297 # Whether or not to build static libraries.
19298 build_old_libs=$enable_static
19300 # Whether or not to add -lc for building shared libraries.
19301 build_libtool_need_lc=$archive_cmds_need_lc_RC
19303 # Whether or not to disallow shared libs when runtime libs are static
19304 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19306 # Whether or not to optimize for fast installation.
19307 fast_install=$enable_fast_install
19310 host_alias=$host_alias
19314 # The build system.
19315 build_alias=$build_alias
19319 # An echo program that does not interpret backslashes.
19324 AR_FLAGS=$lt_AR_FLAGS
19329 # A language-specific compiler.
19332 # Is the compiler the GNU C compiler?
19338 # The linker used to build libraries.
19341 # Whether we need hard or soft links.
19344 # A BSD-compatible nm program.
19347 # A symbol stripping program
19350 # Used to examine libraries when file_magic_cmd begins "file"
19351 MAGIC_CMD=$MAGIC_CMD
19353 # Used on cygwin: DLL creation program.
19356 # Used on cygwin: object dumper.
19359 # Used on cygwin: assembler.
19362 # The name of the directory that contains temporary libtool files.
19365 # How to create reloadable object files.
19366 reload_flag=$lt_reload_flag
19367 reload_cmds=$lt_reload_cmds
19369 # How to pass a linker flag through the compiler.
19370 wl=$lt_lt_prog_compiler_wl_RC
19372 # Object file suffix (normally "o").
19373 objext="$ac_objext"
19375 # Old archive suffix (normally "a").
19378 # Shared library suffix (normally ".so").
19379 shrext_cmds='$shrext_cmds'
19381 # Executable file suffix (normally "").
19384 # Additional compiler flags for building library objects.
19385 pic_flag=$lt_lt_prog_compiler_pic_RC
19388 # What is the maximum length of a command?
19389 max_cmd_len=$lt_cv_sys_max_cmd_len
19391 # Does compiler simultaneously support -c and -o options?
19392 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19394 # Must we lock files when doing compilation?
19395 need_locks=$lt_need_locks
19397 # Do we need the lib prefix for modules?
19398 need_lib_prefix=$need_lib_prefix
19400 # Do we need a version for libraries?
19401 need_version=$need_version
19403 # Whether dlopen is supported.
19404 dlopen_support=$enable_dlopen
19406 # Whether dlopen of programs is supported.
19407 dlopen_self=$enable_dlopen_self
19409 # Whether dlopen of statically linked programs is supported.
19410 dlopen_self_static=$enable_dlopen_self_static
19412 # Compiler flag to prevent dynamic linking.
19413 link_static_flag=$lt_lt_prog_compiler_static_RC
19415 # Compiler flag to turn off builtin functions.
19416 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19418 # Compiler flag to allow reflexive dlopens.
19419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19421 # Compiler flag to generate shared objects directly from archives.
19422 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19424 # Compiler flag to generate thread-safe objects.
19425 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19427 # Library versioning type.
19428 version_type=$version_type
19430 # Format of library name prefix.
19431 libname_spec=$lt_libname_spec
19433 # List of archive names. First name is the real one, the rest are links.
19434 # The last name is the one that the linker finds with -lNAME.
19435 library_names_spec=$lt_library_names_spec
19437 # The coded name of the library, if different from the real name.
19438 soname_spec=$lt_soname_spec
19440 # Commands used to build and install an old-style archive.
19442 old_archive_cmds=$lt_old_archive_cmds_RC
19443 old_postinstall_cmds=$lt_old_postinstall_cmds
19444 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19446 # Create an old-style archive from a shared archive.
19447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19449 # Create a temporary old-style archive to link instead of a shared archive.
19450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19452 # Commands used to build and install a shared archive.
19453 archive_cmds=$lt_archive_cmds_RC
19454 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19455 postinstall_cmds=$lt_postinstall_cmds
19456 postuninstall_cmds=$lt_postuninstall_cmds
19458 # Commands used to build a loadable module (assumed same as above if empty)
19459 module_cmds=$lt_module_cmds_RC
19460 module_expsym_cmds=$lt_module_expsym_cmds_RC
19462 # Commands to strip libraries.
19463 old_striplib=$lt_old_striplib
19464 striplib=$lt_striplib
19466 # Dependencies to place before the objects being linked to create a
19468 predep_objects=$lt_predep_objects_RC
19470 # Dependencies to place after the objects being linked to create a
19472 postdep_objects=$lt_postdep_objects_RC
19474 # Dependencies to place before the objects being linked to create a
19476 predeps=$lt_predeps_RC
19478 # Dependencies to place after the objects being linked to create a
19480 postdeps=$lt_postdeps_RC
19482 # The library search path used internally by the compiler when linking
19483 # a shared library.
19484 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19486 # Method to check whether dependent libraries are shared objects.
19487 deplibs_check_method=$lt_deplibs_check_method
19489 # Command to use when deplibs_check_method == file_magic.
19490 file_magic_cmd=$lt_file_magic_cmd
19492 # Flag that allows shared libraries with undefined symbols to be built.
19493 allow_undefined_flag=$lt_allow_undefined_flag_RC
19495 # Flag that forces no undefined symbols.
19496 no_undefined_flag=$lt_no_undefined_flag_RC
19498 # Commands used to finish a libtool library installation in a directory.
19499 finish_cmds=$lt_finish_cmds
19501 # Same as above, but a single script fragment to be evaled but not shown.
19502 finish_eval=$lt_finish_eval
19504 # Take the output of nm and produce a listing of raw symbols and C names.
19505 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19507 # Transform the output of nm in a proper C declaration
19508 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19510 # Transform the output of nm in a C name address pair
19511 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19513 # This is the shared library runtime path variable.
19514 runpath_var=$runpath_var
19516 # This is the shared library path variable.
19517 shlibpath_var=$shlibpath_var
19519 # Is shlibpath searched before the hard-coded library search path?
19520 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19522 # How to hardcode a shared library path into an executable.
19523 hardcode_action=$hardcode_action_RC
19525 # Whether we should hardcode library paths into libraries.
19526 hardcode_into_libs=$hardcode_into_libs
19528 # Flag to hardcode \$libdir into a binary during linking.
19529 # This must work even if \$libdir does not exist.
19530 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19532 # If ld is used when linking, flag to hardcode \$libdir into
19533 # a binary during linking. This must work even if \$libdir does
19535 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19537 # Whether we need a single -rpath flag with a separated argument.
19538 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19540 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19541 # resulting binary.
19542 hardcode_direct=$hardcode_direct_RC
19544 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19545 # resulting binary.
19546 hardcode_minus_L=$hardcode_minus_L_RC
19548 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19549 # the resulting binary.
19550 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19552 # Set to yes if building a shared library automatically hardcodes DIR into the library
19553 # and all subsequent libraries and executables linked against it.
19554 hardcode_automatic=$hardcode_automatic_RC
19556 # Variables whose values should be saved in libtool wrapper scripts and
19557 # restored at relink time.
19558 variables_saved_for_relink="$variables_saved_for_relink"
19560 # Whether libtool must link a program against all its dependency libraries.
19561 link_all_deplibs=$link_all_deplibs_RC
19563 # Compile-time system search path for libraries
19564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19566 # Run-time system search path for libraries
19567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19569 # Fix the shell variable \$srcfile for the compiler.
19570 fix_srcfile_path="$fix_srcfile_path_RC"
19572 # Set to yes if exported symbols are required.
19573 always_export_symbols=$always_export_symbols_RC
19575 # The commands to list exported symbols.
19576 export_symbols_cmds=$lt_export_symbols_cmds_RC
19578 # The commands to extract the exported symbol list from a shared archive.
19579 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19581 # Symbols that should not be listed in the preloaded symbols.
19582 exclude_expsyms=$lt_exclude_expsyms_RC
19584 # Symbols that must always be exported.
19585 include_expsyms=$lt_include_expsyms_RC
19587 # ### END LIBTOOL TAG CONFIG: $tagname
19593 # If there is no Makefile yet, we rely on a make rule to execute
19594 # `config.status --recheck' to rerun these tests and create the
19595 # libtool script then.
19596 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19597 if test -f "$ltmain_in"; then
19598 test -f Makefile && make "$ltmain"
19604 ac_cpp='$CPP $CPPFLAGS'
19605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19614 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19615 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19616 { (exit 1); exit 1; }; }
19620 # Append the new tag name to the list of available tags.
19621 if test -n "$tagname" ; then
19622 available_tags="$available_tags $tagname"
19628 # Now substitute the updated list of available tags.
19629 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19630 mv "${ofile}T" "$ofile"
19634 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19635 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19636 { (exit 1); exit 1; }; }
19642 # This can be used to rebuild libtool when needed
19643 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19645 # Always use our own libtool.
19646 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19648 # Prevent multiple expansion
19670 ac_config_headers="$ac_config_headers config.h"
19673 ACLOCAL_AMFLAGS="-I m4"
19677 ac_cpp='$CPP $CPPFLAGS'
19678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19681 if test -n "$ac_tool_prefix"; then
19682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19683 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19684 echo "$as_me:$LINENO: checking for $ac_word" >&5
19685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19686 if test "${ac_cv_prog_CC+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 if test -n "$CC"; then
19690 ac_cv_prog_CC="$CC" # Let the user override the test.
19692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19693 for as_dir in $PATH
19696 test -z "$as_dir" && as_dir=.
19697 for ac_exec_ext in '' $ac_executable_extensions; do
19698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19699 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19709 if test -n "$CC"; then
19710 echo "$as_me:$LINENO: result: $CC" >&5
19711 echo "${ECHO_T}$CC" >&6
19713 echo "$as_me:$LINENO: result: no" >&5
19714 echo "${ECHO_T}no" >&6
19718 if test -z "$ac_cv_prog_CC"; then
19720 # Extract the first word of "gcc", so it can be a program name with args.
19721 set dummy gcc; ac_word=$2
19722 echo "$as_me:$LINENO: checking for $ac_word" >&5
19723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 if test -n "$ac_ct_CC"; then
19728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19731 for as_dir in $PATH
19734 test -z "$as_dir" && as_dir=.
19735 for ac_exec_ext in '' $ac_executable_extensions; do
19736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19737 ac_cv_prog_ac_ct_CC="gcc"
19738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19747 if test -n "$ac_ct_CC"; then
19748 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19749 echo "${ECHO_T}$ac_ct_CC" >&6
19751 echo "$as_me:$LINENO: result: no" >&5
19752 echo "${ECHO_T}no" >&6
19757 CC="$ac_cv_prog_CC"
19760 if test -z "$CC"; then
19761 if test -n "$ac_tool_prefix"; then
19762 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19763 set dummy ${ac_tool_prefix}cc; ac_word=$2
19764 echo "$as_me:$LINENO: checking for $ac_word" >&5
19765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19766 if test "${ac_cv_prog_CC+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 if test -n "$CC"; then
19770 ac_cv_prog_CC="$CC" # Let the user override the test.
19772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19773 for as_dir in $PATH
19776 test -z "$as_dir" && as_dir=.
19777 for ac_exec_ext in '' $ac_executable_extensions; do
19778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19779 ac_cv_prog_CC="${ac_tool_prefix}cc"
19780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19789 if test -n "$CC"; then
19790 echo "$as_me:$LINENO: result: $CC" >&5
19791 echo "${ECHO_T}$CC" >&6
19793 echo "$as_me:$LINENO: result: no" >&5
19794 echo "${ECHO_T}no" >&6
19798 if test -z "$ac_cv_prog_CC"; then
19800 # Extract the first word of "cc", so it can be a program name with args.
19801 set dummy cc; ac_word=$2
19802 echo "$as_me:$LINENO: checking for $ac_word" >&5
19803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19804 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19805 echo $ECHO_N "(cached) $ECHO_C" >&6
19807 if test -n "$ac_ct_CC"; then
19808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19811 for as_dir in $PATH
19814 test -z "$as_dir" && as_dir=.
19815 for ac_exec_ext in '' $ac_executable_extensions; do
19816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19817 ac_cv_prog_ac_ct_CC="cc"
19818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19827 if test -n "$ac_ct_CC"; then
19828 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19829 echo "${ECHO_T}$ac_ct_CC" >&6
19831 echo "$as_me:$LINENO: result: no" >&5
19832 echo "${ECHO_T}no" >&6
19837 CC="$ac_cv_prog_CC"
19841 if test -z "$CC"; then
19842 # Extract the first word of "cc", so it can be a program name with args.
19843 set dummy cc; ac_word=$2
19844 echo "$as_me:$LINENO: checking for $ac_word" >&5
19845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19846 if test "${ac_cv_prog_CC+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 if test -n "$CC"; then
19850 ac_cv_prog_CC="$CC" # Let the user override the test.
19852 ac_prog_rejected=no
19853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19854 for as_dir in $PATH
19857 test -z "$as_dir" && as_dir=.
19858 for ac_exec_ext in '' $ac_executable_extensions; do
19859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19860 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19861 ac_prog_rejected=yes
19865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19871 if test $ac_prog_rejected = yes; then
19872 # We found a bogon in the path, so make sure we never use it.
19873 set dummy $ac_cv_prog_CC
19875 if test $@%:@ != 0; then
19876 # We chose a different compiler from the bogus one.
19877 # However, it has the same basename, so the bogon will be chosen
19878 # first if we set CC to just the basename; use the full file name.
19880 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19886 if test -n "$CC"; then
19887 echo "$as_me:$LINENO: result: $CC" >&5
19888 echo "${ECHO_T}$CC" >&6
19890 echo "$as_me:$LINENO: result: no" >&5
19891 echo "${ECHO_T}no" >&6
19895 if test -z "$CC"; then
19896 if test -n "$ac_tool_prefix"; then
19899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19901 echo "$as_me:$LINENO: checking for $ac_word" >&5
19902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19903 if test "${ac_cv_prog_CC+set}" = set; then
19904 echo $ECHO_N "(cached) $ECHO_C" >&6
19906 if test -n "$CC"; then
19907 ac_cv_prog_CC="$CC" # Let the user override the test.
19909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19910 for as_dir in $PATH
19913 test -z "$as_dir" && as_dir=.
19914 for ac_exec_ext in '' $ac_executable_extensions; do
19915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19926 if test -n "$CC"; then
19927 echo "$as_me:$LINENO: result: $CC" >&5
19928 echo "${ECHO_T}$CC" >&6
19930 echo "$as_me:$LINENO: result: no" >&5
19931 echo "${ECHO_T}no" >&6
19934 test -n "$CC" && break
19937 if test -z "$CC"; then
19941 # Extract the first word of "$ac_prog", so it can be a program name with args.
19942 set dummy $ac_prog; ac_word=$2
19943 echo "$as_me:$LINENO: checking for $ac_word" >&5
19944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19948 if test -n "$ac_ct_CC"; then
19949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19952 for as_dir in $PATH
19955 test -z "$as_dir" && as_dir=.
19956 for ac_exec_ext in '' $ac_executable_extensions; do
19957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19958 ac_cv_prog_ac_ct_CC="$ac_prog"
19959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19968 if test -n "$ac_ct_CC"; then
19969 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19970 echo "${ECHO_T}$ac_ct_CC" >&6
19972 echo "$as_me:$LINENO: result: no" >&5
19973 echo "${ECHO_T}no" >&6
19976 test -n "$ac_ct_CC" && break
19985 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19986 See \`config.log' for more details." >&5
19987 echo "$as_me: error: no acceptable C compiler found in \$PATH
19988 See \`config.log' for more details." >&2;}
19989 { (exit 1); exit 1; }; }
19991 # Provide some information about the compiler.
19992 echo "$as_me:$LINENO:" \
19993 "checking for C compiler version" >&5
19994 ac_compiler=`set X $ac_compile; echo $2`
19995 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19996 (eval $ac_compiler --version </dev/null >&5) 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }
20000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20001 (eval $ac_compiler -v </dev/null >&5) 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }
20005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20006 (eval $ac_compiler -V </dev/null >&5) 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }
20011 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20012 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
20013 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20034 rm -f conftest.$ac_objext
20035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036 (eval $ac_compile) 2>conftest.er1
20038 grep -v '^ *+' conftest.er1 >conftest.err
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } &&
20043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; } &&
20049 { ac_try='test -s conftest.$ac_objext'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 ac_compiler_gnu=yes
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20066 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20067 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
20068 GCC=`test $ac_compiler_gnu = yes && echo yes`
20069 ac_test_CFLAGS=${CFLAGS+set}
20070 ac_save_CFLAGS=$CFLAGS
20072 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20073 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
20074 if test "${ac_cv_prog_cc_g+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20092 rm -f conftest.$ac_objext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20094 (eval $ac_compile) 2>conftest.er1
20096 grep -v '^ *+' conftest.er1 >conftest.err
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
20101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; } &&
20107 { ac_try='test -s conftest.$ac_objext'
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 ac_cv_prog_cc_g=yes
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20122 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20123 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
20124 if test "$ac_test_CFLAGS" = set; then
20125 CFLAGS=$ac_save_CFLAGS
20126 elif test $ac_cv_prog_cc_g = yes; then
20127 if test "$GCC" = yes; then
20133 if test "$GCC" = yes; then
20139 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
20140 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
20141 if test "${ac_cv_prog_cc_stdc+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 ac_cv_prog_cc_stdc=no
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 #include <stdarg.h>
20154 #include <sys/types.h>
20155 #include <sys/stat.h>
20156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20157 struct buf { int x; };
20158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20159 static char *e (p, i)
20165 static char *f (char * (*g) (char **, int), char **p, ...)
20170 s = g (p, va_arg (v,int));
20175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20176 function prototypes and stuff, but not '\xHH' hex character constants.
20177 These don't provoke an error unfortunately, instead are silently treated
20178 as 'x'. The following induces an error, until -std1 is added to get
20179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20180 array size at least. It's necessary to write '\x00'==0 to get something
20181 that's true only with -std1. */
20182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20184 int test (int i, double x);
20185 struct s1 {int (*f) (int a);};
20186 struct s2 {int (*f) (double a);};
20187 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20193 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20198 # Don't try gcc -ansi; that turns off useful extensions and
20199 # breaks some systems' header files.
20200 # AIX -qlanglvl=ansi
20201 # Ultrix and OSF/1 -std1
20202 # HP-UX 10.20 and later -Ae
20203 # HP-UX older versions -Aa -D_HPUX_SOURCE
20204 # SVR4 -Xc -D__EXTENSIONS__
20205 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20207 CC="$ac_save_CC $ac_arg"
20208 rm -f conftest.$ac_objext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210 (eval $ac_compile) 2>conftest.er1
20212 grep -v '^ *+' conftest.er1 >conftest.err
20214 cat conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } &&
20217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; } &&
20223 { ac_try='test -s conftest.$ac_objext'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 ac_cv_prog_cc_stdc=$ac_arg
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20236 rm -f conftest.err conftest.$ac_objext
20238 rm -f conftest.$ac_ext conftest.$ac_objext
20243 case "x$ac_cv_prog_cc_stdc" in
20245 echo "$as_me:$LINENO: result: none needed" >&5
20246 echo "${ECHO_T}none needed" >&6 ;;
20248 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
20249 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
20250 CC="$CC $ac_cv_prog_cc_stdc" ;;
20253 # Some people use a C++ compiler to compile C. Since we use `exit',
20254 # in C++ we need to declare it. In case someone uses the same compiler
20255 # for both compiling C and C++ we need to have the C++ compiler decide
20256 # the declaration of exit, since it's the most demanding environment.
20257 cat >conftest.$ac_ext <<_ACEOF
20258 @%:@ifndef __cplusplus
20262 rm -f conftest.$ac_objext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20264 (eval $ac_compile) 2>conftest.er1
20266 grep -v '^ *+' conftest.er1 >conftest.err
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; } &&
20277 { ac_try='test -s conftest.$ac_objext'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 for ac_declaration in \
20285 'extern "C" void std::exit (int) throw (); using std::exit;' \
20286 'extern "C" void std::exit (int); using std::exit;' \
20287 'extern "C" void exit (int) throw ();' \
20288 'extern "C" void exit (int);' \
20291 cat >conftest.$ac_ext <<_ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20298 @%:@include <stdlib.h>
20307 rm -f conftest.$ac_objext
20308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20309 (eval $ac_compile) 2>conftest.er1
20311 grep -v '^ *+' conftest.er1 >conftest.err
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
20316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; } &&
20322 { ac_try='test -s conftest.$ac_objext'
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20336 cat >conftest.$ac_ext <<_ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20351 rm -f conftest.$ac_objext
20352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20353 (eval $ac_compile) 2>conftest.er1
20355 grep -v '^ *+' conftest.er1 >conftest.err
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
20360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; } &&
20366 { ac_try='test -s conftest.$ac_objext'
20367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368 (eval $ac_try) 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; }; then
20374 echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20381 if test -n "$ac_declaration"; then
20382 echo '#ifdef __cplusplus' >>confdefs.h
20383 echo $ac_declaration >>confdefs.h
20384 echo '#endif' >>confdefs.h
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20394 ac_cpp='$CPP $CPPFLAGS'
20395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20399 depcc="$CC" am_compiler_list=
20401 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20402 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20403 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20406 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20407 # We make a subdir and do the tests there. Otherwise we can end up
20408 # making bogus files that we don't know about and never remove. For
20409 # instance it was reported that on HP-UX the gcc test will end up
20410 # making a dummy file named `D' -- because `-MD' means `put the output
20413 # Copy depcomp to subdir because otherwise we won't find it if we're
20414 # using a relative directory.
20415 cp "$am_depcomp" conftest.dir
20417 # We will build objects and dependencies in a subdirectory because
20418 # it helps to detect inapplicable dependency modes. For instance
20419 # both Tru64's cc and ICC support -MD to output dependencies as a
20420 # side effect of compilation, but ICC will put the dependencies in
20421 # the current directory while Tru64 will put them in the object
20425 am_cv_CC_dependencies_compiler_type=none
20426 if test "$am_compiler_list" = ""; then
20427 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20429 for depmode in $am_compiler_list; do
20430 # Setup a source with many dependencies, because some compilers
20431 # like to wrap large dependency lists on column 80 (with \), and
20432 # we should not choose a depcomp mode which is confused by this.
20434 # We need to recreate these files for each test, as the compiler may
20435 # overwrite some of them when testing with obscure command lines.
20436 # This happens at least with the AIX C compiler.
20438 for i in 1 2 3 4 5 6; do
20439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20440 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20441 # Solaris 8's {/usr,}/bin/sh.
20442 touch sub/conftst$i.h
20444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20448 # after this tag, mechanisms are not by side-effect, so they'll
20449 # only be used when explicitly requested
20450 if test "x$enable_dependency_tracking" = xyes; then
20458 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20459 # mode. It turns out that the SunPro C++ compiler does not properly
20460 # handle `-M -o', and we need to detect this.
20461 if depmode=$depmode \
20462 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20464 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20465 >/dev/null 2>conftest.err &&
20466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20467 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20469 # icc doesn't choke on unknown options, it will just issue warnings
20470 # or remarks (even with -Werror). So we grep stderr for any message
20471 # that says an option was ignored or not supported.
20472 # When given -MP, icc 7.0 and 7.1 complain thusly:
20473 # icc: Command line warning: ignoring option '-M'; no argument required
20474 # The diagnosis changed in icc 8.0:
20475 # icc: Command line remark: option '-MP' not supported
20476 if (grep 'ignoring option' conftest.err ||
20477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20478 am_cv_CC_dependencies_compiler_type=$depmode
20485 rm -rf conftest.dir
20487 am_cv_CC_dependencies_compiler_type=none
20491 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20492 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20493 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20498 test "x$enable_dependency_tracking" != xno \
20499 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20500 am__fastdepCC_TRUE=
20501 am__fastdepCC_FALSE='#'
20503 am__fastdepCC_TRUE='#'
20504 am__fastdepCC_FALSE=
20509 # By default we simply use the C compiler to build assembly code.
20511 test "${CCAS+set}" = set || CCAS=$CC
20512 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
20518 echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
20519 echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6
20521 save_CFLAGS="$CFLAGS"
20522 CFLAGS="$CFLAGS -Wall"
20524 cat >conftest.$ac_ext <<_ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20539 rm -f conftest.$ac_objext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20541 (eval $ac_compile) 2>conftest.er1
20543 grep -v '^ *+' conftest.er1 >conftest.err
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try='test -s conftest.$ac_objext'
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20568 CFLAGS="$save_CFLAGS"
20570 if test "X$flag_ok" = Xyes ; then
20577 echo "$as_me:$LINENO: result: $flag_ok" >&5
20578 echo "${ECHO_T}$flag_ok" >&6
20581 if test "x$GST_WALL" = "xyes"; then
20582 ERROR_CFLAGS="$GST_ERROR -Wall"
20584 if test "x$GST_CVS" = "xyes"; then
20586 echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5
20587 echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6
20589 save_CFLAGS="$CFLAGS"
20590 CFLAGS="$CFLAGS -Werror"
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20607 rm -f conftest.$ac_objext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20609 (eval $ac_compile) 2>conftest.er1
20611 grep -v '^ *+' conftest.er1 >conftest.err
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try='test -s conftest.$ac_objext'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20636 CFLAGS="$save_CFLAGS"
20638 if test "X$flag_ok" = Xyes ; then
20639 ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
20642 ERROR_CFLAGS="$ERROR_CFLAGS"
20645 echo "$as_me:$LINENO: result: $flag_ok" >&5
20646 echo "${ECHO_T}$flag_ok" >&6
20654 ac_cpp='$CXXCPP $CPPFLAGS'
20655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20658 if test -n "$ac_tool_prefix"; then
20659 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20663 echo "$as_me:$LINENO: checking for $ac_word" >&5
20664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20665 if test "${ac_cv_prog_CXX+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 if test -n "$CXX"; then
20669 ac_cv_prog_CXX="$CXX" # Let the user override the test.
20671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20672 for as_dir in $PATH
20675 test -z "$as_dir" && as_dir=.
20676 for ac_exec_ext in '' $ac_executable_extensions; do
20677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20678 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20687 CXX=$ac_cv_prog_CXX
20688 if test -n "$CXX"; then
20689 echo "$as_me:$LINENO: result: $CXX" >&5
20690 echo "${ECHO_T}$CXX" >&6
20692 echo "$as_me:$LINENO: result: no" >&5
20693 echo "${ECHO_T}no" >&6
20696 test -n "$CXX" && break
20699 if test -z "$CXX"; then
20701 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20703 # Extract the first word of "$ac_prog", so it can be a program name with args.
20704 set dummy $ac_prog; ac_word=$2
20705 echo "$as_me:$LINENO: checking for $ac_word" >&5
20706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20707 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 if test -n "$ac_ct_CXX"; then
20711 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20714 for as_dir in $PATH
20717 test -z "$as_dir" && as_dir=.
20718 for ac_exec_ext in '' $ac_executable_extensions; do
20719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20720 ac_cv_prog_ac_ct_CXX="$ac_prog"
20721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20729 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20730 if test -n "$ac_ct_CXX"; then
20731 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20732 echo "${ECHO_T}$ac_ct_CXX" >&6
20734 echo "$as_me:$LINENO: result: no" >&5
20735 echo "${ECHO_T}no" >&6
20738 test -n "$ac_ct_CXX" && break
20740 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
20746 # Provide some information about the compiler.
20747 echo "$as_me:$LINENO:" \
20748 "checking for C++ compiler version" >&5
20749 ac_compiler=`set X $ac_compile; echo $2`
20750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20751 (eval $ac_compiler --version </dev/null >&5) 2>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }
20755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20756 (eval $ac_compiler -v </dev/null >&5) 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }
20760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20761 (eval $ac_compiler -V </dev/null >&5) 2>&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }
20766 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20767 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
20768 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20769 echo $ECHO_N "(cached) $ECHO_C" >&6
20771 cat >conftest.$ac_ext <<_ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20789 rm -f conftest.$ac_objext
20790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20791 (eval $ac_compile) 2>conftest.er1
20793 grep -v '^ *+' conftest.er1 >conftest.err
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
20798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_compiler_gnu=yes
20812 echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20818 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20821 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20822 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
20823 GXX=`test $ac_compiler_gnu = yes && echo yes`
20824 ac_test_CXXFLAGS=${CXXFLAGS+set}
20825 ac_save_CXXFLAGS=$CXXFLAGS
20827 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20828 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
20829 if test "${ac_cv_prog_cxx_g+set}" = set; then
20830 echo $ECHO_N "(cached) $ECHO_C" >&6
20832 cat >conftest.$ac_ext <<_ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20847 rm -f conftest.$ac_objext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20849 (eval $ac_compile) 2>conftest.er1
20851 grep -v '^ *+' conftest.er1 >conftest.err
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858 (eval $ac_try) 2>&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; } &&
20862 { ac_try='test -s conftest.$ac_objext'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 ac_cv_prog_cxx_g=yes
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ac_cv_prog_cxx_g=no
20875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20877 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20878 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
20879 if test "$ac_test_CXXFLAGS" = set; then
20880 CXXFLAGS=$ac_save_CXXFLAGS
20881 elif test $ac_cv_prog_cxx_g = yes; then
20882 if test "$GXX" = yes; then
20888 if test "$GXX" = yes; then
20894 for ac_declaration in \
20896 'extern "C" void std::exit (int) throw (); using std::exit;' \
20897 'extern "C" void std::exit (int); using std::exit;' \
20898 'extern "C" void exit (int) throw ();' \
20899 'extern "C" void exit (int);' \
20902 cat >conftest.$ac_ext <<_ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h. */
20909 @%:@include <stdlib.h>
20918 rm -f conftest.$ac_objext
20919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20920 (eval $ac_compile) 2>conftest.er1
20922 grep -v '^ *+' conftest.er1 >conftest.err
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
20927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929 (eval $ac_try) 2>&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; } &&
20933 { ac_try='test -s conftest.$ac_objext'
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; }; then
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20962 rm -f conftest.$ac_objext
20963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20964 (eval $ac_compile) 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } &&
20971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20973 (eval $ac_try) 2>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); }; } &&
20977 { ac_try='test -s conftest.$ac_objext'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20992 if test -n "$ac_declaration"; then
20993 echo '#ifdef __cplusplus' >>confdefs.h
20994 echo $ac_declaration >>confdefs.h
20995 echo '#endif' >>confdefs.h
20999 ac_cpp='$CPP $CPPFLAGS'
21000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21004 depcc="$CXX" am_compiler_list=
21006 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
21007 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
21008 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21012 # We make a subdir and do the tests there. Otherwise we can end up
21013 # making bogus files that we don't know about and never remove. For
21014 # instance it was reported that on HP-UX the gcc test will end up
21015 # making a dummy file named `D' -- because `-MD' means `put the output
21018 # Copy depcomp to subdir because otherwise we won't find it if we're
21019 # using a relative directory.
21020 cp "$am_depcomp" conftest.dir
21022 # We will build objects and dependencies in a subdirectory because
21023 # it helps to detect inapplicable dependency modes. For instance
21024 # both Tru64's cc and ICC support -MD to output dependencies as a
21025 # side effect of compilation, but ICC will put the dependencies in
21026 # the current directory while Tru64 will put them in the object
21030 am_cv_CXX_dependencies_compiler_type=none
21031 if test "$am_compiler_list" = ""; then
21032 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21034 for depmode in $am_compiler_list; do
21035 # Setup a source with many dependencies, because some compilers
21036 # like to wrap large dependency lists on column 80 (with \), and
21037 # we should not choose a depcomp mode which is confused by this.
21039 # We need to recreate these files for each test, as the compiler may
21040 # overwrite some of them when testing with obscure command lines.
21041 # This happens at least with the AIX C compiler.
21043 for i in 1 2 3 4 5 6; do
21044 echo '#include "conftst'$i'.h"' >> sub/conftest.c
21045 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21046 # Solaris 8's {/usr,}/bin/sh.
21047 touch sub/conftst$i.h
21049 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21053 # after this tag, mechanisms are not by side-effect, so they'll
21054 # only be used when explicitly requested
21055 if test "x$enable_dependency_tracking" = xyes; then
21063 # We check with `-c' and `-o' for the sake of the "dashmstdout"
21064 # mode. It turns out that the SunPro C++ compiler does not properly
21065 # handle `-M -o', and we need to detect this.
21066 if depmode=$depmode \
21067 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21069 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21070 >/dev/null 2>conftest.err &&
21071 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21072 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
21073 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21074 # icc doesn't choke on unknown options, it will just issue warnings
21075 # or remarks (even with -Werror). So we grep stderr for any message
21076 # that says an option was ignored or not supported.
21077 # When given -MP, icc 7.0 and 7.1 complain thusly:
21078 # icc: Command line warning: ignoring option '-M'; no argument required
21079 # The diagnosis changed in icc 8.0:
21080 # icc: Command line remark: option '-MP' not supported
21081 if (grep 'ignoring option' conftest.err ||
21082 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21083 am_cv_CXX_dependencies_compiler_type=$depmode
21090 rm -rf conftest.dir
21092 am_cv_CXX_dependencies_compiler_type=none
21096 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
21097 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
21098 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
21103 test "x$enable_dependency_tracking" != xno \
21104 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
21105 am__fastdepCXX_TRUE=
21106 am__fastdepCXX_FALSE='#'
21108 am__fastdepCXX_TRUE='#'
21109 am__fastdepCXX_FALSE=
21113 # Extract the first word of "$CXX", so it can be a program name with args.
21114 set dummy $CXX; ac_word=$2
21115 echo "$as_me:$LINENO: checking for $ac_word" >&5
21116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21117 if test "${ac_cv_prog_HAVE_CXX+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 if test -n "$HAVE_CXX"; then
21121 ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
21123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21124 for as_dir in $PATH
21127 test -z "$as_dir" && as_dir=.
21128 for ac_exec_ext in '' $ac_executable_extensions; do
21129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21130 ac_cv_prog_HAVE_CXX="yes"
21131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21137 test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
21140 HAVE_CXX=$ac_cv_prog_HAVE_CXX
21141 if test -n "$HAVE_CXX"; then
21142 echo "$as_me:$LINENO: result: $HAVE_CXX" >&5
21143 echo "${ECHO_T}$HAVE_CXX" >&6
21145 echo "$as_me:$LINENO: result: no" >&5
21146 echo "${ECHO_T}no" >&6
21150 ac_cpp='$CXXCPP $CPPFLAGS'
21151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21154 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21155 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21156 if test -z "$CXXCPP"; then
21157 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21160 # Double quotes because CXXCPP needs to be expanded
21161 for CXXCPP in "$CXX -E" "/lib/cpp"
21163 ac_preproc_ok=false
21164 for ac_cxx_preproc_warn_flag in '' yes
21166 # Use a header file that comes with gcc, so configuring glibc
21167 # with a fresh cross-compiler works.
21168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21169 # <limits.h> exists even on freestanding compilers.
21170 # On the NeXT, cc -E runs the code through the compiler's parser,
21171 # not just through cpp. "Syntax error" is here to catch this case.
21172 cat >conftest.$ac_ext <<_ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21179 @%:@ include <limits.h>
21181 @%:@ include <assert.h>
21185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21188 grep -v '^ *+' conftest.er1 >conftest.err
21190 cat conftest.err >&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } >/dev/null; then
21193 if test -s conftest.err; then
21194 ac_cpp_err=$ac_cxx_preproc_warn_flag
21195 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21202 if test -z "$ac_cpp_err"; then
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 # Broken: fails on valid input.
21211 rm -f conftest.err conftest.$ac_ext
21213 # OK, works on sane cases. Now check whether non-existent headers
21214 # can be detected and how.
21215 cat >conftest.$ac_ext <<_ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21221 @%:@include <ac_nonexistent.h>
21223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21226 grep -v '^ *+' conftest.er1 >conftest.err
21228 cat conftest.err >&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } >/dev/null; then
21231 if test -s conftest.err; then
21232 ac_cpp_err=$ac_cxx_preproc_warn_flag
21233 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21240 if test -z "$ac_cpp_err"; then
21241 # Broken: success on invalid input.
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 # Passes both tests.
21251 rm -f conftest.err conftest.$ac_ext
21254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21255 rm -f conftest.err conftest.$ac_ext
21256 if $ac_preproc_ok; then
21261 ac_cv_prog_CXXCPP=$CXXCPP
21264 CXXCPP=$ac_cv_prog_CXXCPP
21266 ac_cv_prog_CXXCPP=$CXXCPP
21268 echo "$as_me:$LINENO: result: $CXXCPP" >&5
21269 echo "${ECHO_T}$CXXCPP" >&6
21270 ac_preproc_ok=false
21271 for ac_cxx_preproc_warn_flag in '' yes
21273 # Use a header file that comes with gcc, so configuring glibc
21274 # with a fresh cross-compiler works.
21275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21276 # <limits.h> exists even on freestanding compilers.
21277 # On the NeXT, cc -E runs the code through the compiler's parser,
21278 # not just through cpp. "Syntax error" is here to catch this case.
21279 cat >conftest.$ac_ext <<_ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21286 @%:@ include <limits.h>
21288 @%:@ include <assert.h>
21292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21295 grep -v '^ *+' conftest.er1 >conftest.err
21297 cat conftest.err >&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } >/dev/null; then
21300 if test -s conftest.err; then
21301 ac_cpp_err=$ac_cxx_preproc_warn_flag
21302 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21309 if test -z "$ac_cpp_err"; then
21312 echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21315 # Broken: fails on valid input.
21318 rm -f conftest.err conftest.$ac_ext
21320 # OK, works on sane cases. Now check whether non-existent headers
21321 # can be detected and how.
21322 cat >conftest.$ac_ext <<_ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21328 @%:@include <ac_nonexistent.h>
21330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21333 grep -v '^ *+' conftest.er1 >conftest.err
21335 cat conftest.err >&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } >/dev/null; then
21338 if test -s conftest.err; then
21339 ac_cpp_err=$ac_cxx_preproc_warn_flag
21340 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21347 if test -z "$ac_cpp_err"; then
21348 # Broken: success on invalid input.
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 # Passes both tests.
21358 rm -f conftest.err conftest.$ac_ext
21361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21362 rm -f conftest.err conftest.$ac_ext
21363 if $ac_preproc_ok; then
21366 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21367 See \`config.log' for more details." >&5
21368 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21369 See \`config.log' for more details." >&2;}
21370 { (exit 1); exit 1; }; }
21374 ac_cpp='$CPP $CPPFLAGS'
21375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21380 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
21381 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
21382 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 ac_check_lib_save_LIBS=$LIBS
21386 LIBS="-lcposix $LIBS"
21387 cat >conftest.$ac_ext <<_ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21394 /* Override any gcc2 internal prototype to avoid an error. */
21398 /* We use char because int might match the return type of a gcc2
21399 builtin and then its argument prototype would still apply. */
21409 rm -f conftest.$ac_objext conftest$ac_exeext
21410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21411 (eval $ac_link) 2>conftest.er1
21413 grep -v '^ *+' conftest.er1 >conftest.err
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } &&
21418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; } &&
21424 { ac_try='test -s conftest$ac_exeext'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21430 ac_cv_lib_cposix_strerror=yes
21432 echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21435 ac_cv_lib_cposix_strerror=no
21437 rm -f conftest.err conftest.$ac_objext \
21438 conftest$ac_exeext conftest.$ac_ext
21439 LIBS=$ac_check_lib_save_LIBS
21441 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
21442 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
21443 if test $ac_cv_lib_cposix_strerror = yes; then
21444 LIBS="$LIBS -lcposix"
21450 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21451 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21452 if test "${ac_cv_header_stdc+set}" = set; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 #include <stdlib.h>
21462 #include <stdarg.h>
21463 #include <string.h>
21474 rm -f conftest.$ac_objext
21475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21476 (eval $ac_compile) 2>conftest.er1
21478 grep -v '^ *+' conftest.er1 >conftest.err
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } &&
21483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21485 (eval $ac_try) 2>&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); }; } &&
21489 { ac_try='test -s conftest.$ac_objext'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; }; then
21495 ac_cv_header_stdc=yes
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 ac_cv_header_stdc=no
21502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21504 if test $ac_cv_header_stdc = yes; then
21505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 #include <string.h>
21515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21516 $EGREP "memchr" >/dev/null 2>&1; then
21519 ac_cv_header_stdc=no
21525 if test $ac_cv_header_stdc = yes; then
21526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21527 cat >conftest.$ac_ext <<_ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 #include <stdlib.h>
21536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21537 $EGREP "free" >/dev/null 2>&1; then
21540 ac_cv_header_stdc=no
21546 if test $ac_cv_header_stdc = yes; then
21547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21548 if test "$cross_compiling" = yes; then
21551 cat >conftest.$ac_ext <<_ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21558 #if ((' ' & 0x0FF) == 0x020)
21559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21562 # define ISLOWER(c) \
21563 (('a' <= (c) && (c) <= 'i') \
21564 || ('j' <= (c) && (c) <= 'r') \
21565 || ('s' <= (c) && (c) <= 'z'))
21566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21574 for (i = 0; i < 256; i++)
21575 if (XOR (islower (i), ISLOWER (i))
21576 || toupper (i) != TOUPPER (i))
21581 rm -f conftest$ac_exeext
21582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21583 (eval $ac_link) 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21594 echo "$as_me: program exited with status $ac_status" >&5
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21598 ( exit $ac_status )
21599 ac_cv_header_stdc=no
21601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21605 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21606 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21607 if test $ac_cv_header_stdc = yes; then
21609 cat >>confdefs.h <<\_ACEOF
21610 @%:@define STDC_HEADERS 1
21615 echo "$as_me:$LINENO: checking for inline" >&5
21616 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21617 if test "${ac_cv_c_inline+set}" = set; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 for ac_kw in inline __inline__ __inline; do
21622 cat >conftest.$ac_ext <<_ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 #ifndef __cplusplus
21630 static $ac_kw foo_t static_foo () {return 0; }
21631 $ac_kw foo_t foo () {return 0; }
21635 rm -f conftest.$ac_objext
21636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21637 (eval $ac_compile) 2>conftest.er1
21639 grep -v '^ *+' conftest.er1 >conftest.err
21641 cat conftest.err >&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } &&
21644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; } &&
21650 { ac_try='test -s conftest.$ac_objext'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }; then
21656 ac_cv_c_inline=$ac_kw; break
21658 echo "$as_me: failed program was:" >&5
21659 sed 's/^/| /' conftest.$ac_ext >&5
21662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21666 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21667 echo "${ECHO_T}$ac_cv_c_inline" >&6
21670 case $ac_cv_c_inline in
21673 case $ac_cv_c_inline in
21675 *) ac_val=$ac_cv_c_inline;;
21677 cat >>confdefs.h <<_ACEOF
21678 #ifndef __cplusplus
21679 #define inline $ac_val
21686 # Extract the first word of "pkg-config", so it can be a program name with args.
21687 set dummy pkg-config; ac_word=$2
21688 echo "$as_me:$LINENO: checking for $ac_word" >&5
21689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21690 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 if test -n "$HAVE_PKGCONFIG"; then
21694 ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
21696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21697 for as_dir in $PATH
21700 test -z "$as_dir" && as_dir=.
21701 for ac_exec_ext in '' $ac_executable_extensions; do
21702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21703 ac_cv_prog_HAVE_PKGCONFIG="yes"
21704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21710 test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
21713 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
21714 if test -n "$HAVE_PKGCONFIG"; then
21715 echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
21716 echo "${ECHO_T}$HAVE_PKGCONFIG" >&6
21718 echo "$as_me:$LINENO: result: no" >&5
21719 echo "${ECHO_T}no" >&6
21723 if test "x$HAVE_PKGCONFIG" = "xno"; then
21724 { { echo "$as_me:$LINENO: error: you need to have pkgconfig installed !" >&5
21725 echo "$as_me: error: you need to have pkgconfig installed !" >&2;}
21726 { (exit 1); exit 1; }; }
21730 GST_REQUIRED=0.10.3
21731 GST_MAJORMINOR=0.10
21736 if test -z "$PKG_CONFIG"; then
21737 # Extract the first word of "pkg-config", so it can be a program name with args.
21738 set dummy pkg-config; ac_word=$2
21739 echo "$as_me:$LINENO: checking for $ac_word" >&5
21740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21741 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21742 echo $ECHO_N "(cached) $ECHO_C" >&6
21744 case $PKG_CONFIG in
21746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21750 for as_dir in $PATH
21753 test -z "$as_dir" && as_dir=.
21754 for ac_exec_ext in '' $ac_executable_extensions; do
21755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21763 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21769 if test -n "$PKG_CONFIG"; then
21770 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21771 echo "${ECHO_T}$PKG_CONFIG" >&6
21773 echo "$as_me:$LINENO: result: no" >&5
21774 echo "${ECHO_T}no" >&6
21779 if test "$PKG_CONFIG" = "no" ; then
21780 echo "*** The pkg-config script could not be found. Make sure it is"
21781 echo "*** in your path, or set the PKG_CONFIG environment variable"
21782 echo "*** to the full path to pkg-config."
21783 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21785 PKG_CONFIG_MIN_VERSION=0.9.0
21786 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21787 echo "$as_me:$LINENO: checking for \
21788 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
21789 echo $ECHO_N "checking for \
21790 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
21792 if $PKG_CONFIG --exists "\
21793 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
21794 echo "$as_me:$LINENO: result: yes" >&5
21795 echo "${ECHO_T}yes" >&6
21798 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
21799 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
21800 GST_CFLAGS=`$PKG_CONFIG --cflags "\
21801 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
21802 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
21803 echo "${ECHO_T}$GST_CFLAGS" >&6
21805 echo "$as_me:$LINENO: checking GST_LIBS" >&5
21806 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
21807 GST_LIBS=`$PKG_CONFIG --libs "\
21808 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
21809 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
21810 echo "${ECHO_T}$GST_LIBS" >&6
21814 ## If we have a custom action on failure, don't print errors, but
21815 ## do set a variable so people can do so.
21816 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
21817 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
21824 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21825 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21829 if test $succeeded = yes; then
21836 if test "x$HAVE_GST" = "xno"; then
21837 { { echo "$as_me:$LINENO: error: you need gstreamer development packages installed !" >&5
21838 echo "$as_me: error: you need gstreamer development packages installed !" >&2;}
21839 { (exit 1); exit 1; }; }
21842 if test "x$USE_DEBUG" = xyes; then
21843 GST_CFLAGS="$GST_CFLAGS -g"
21854 if test -z "$PKG_CONFIG"; then
21855 # Extract the first word of "pkg-config", so it can be a program name with args.
21856 set dummy pkg-config; ac_word=$2
21857 echo "$as_me:$LINENO: checking for $ac_word" >&5
21858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21859 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21860 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 case $PKG_CONFIG in
21864 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21868 for as_dir in $PATH
21871 test -z "$as_dir" && as_dir=.
21872 for ac_exec_ext in '' $ac_executable_extensions; do
21873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21874 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21881 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21885 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21887 if test -n "$PKG_CONFIG"; then
21888 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21889 echo "${ECHO_T}$PKG_CONFIG" >&6
21891 echo "$as_me:$LINENO: result: no" >&5
21892 echo "${ECHO_T}no" >&6
21897 if test "$PKG_CONFIG" = "no" ; then
21898 echo "*** The pkg-config script could not be found. Make sure it is"
21899 echo "*** in your path, or set the PKG_CONFIG environment variable"
21900 echo "*** to the full path to pkg-config."
21901 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21903 PKG_CONFIG_MIN_VERSION=0.9.0
21904 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21905 echo "$as_me:$LINENO: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
21906 echo $ECHO_N "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
21908 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
21909 echo "$as_me:$LINENO: result: yes" >&5
21910 echo "${ECHO_T}yes" >&6
21913 echo "$as_me:$LINENO: checking GST_BASE_CFLAGS" >&5
21914 echo $ECHO_N "checking GST_BASE_CFLAGS... $ECHO_C" >&6
21915 GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21916 echo "$as_me:$LINENO: result: $GST_BASE_CFLAGS" >&5
21917 echo "${ECHO_T}$GST_BASE_CFLAGS" >&6
21919 echo "$as_me:$LINENO: checking GST_BASE_LIBS" >&5
21920 echo $ECHO_N "checking GST_BASE_LIBS... $ECHO_C" >&6
21921 GST_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21922 echo "$as_me:$LINENO: result: $GST_BASE_LIBS" >&5
21923 echo "${ECHO_T}$GST_BASE_LIBS" >&6
21927 ## If we have a custom action on failure, don't print errors, but
21928 ## do set a variable so people can do so.
21929 GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21936 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21937 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21941 if test $succeeded = yes; then
21942 HAVE_GST_BASE="yes"
21948 if test "x$HAVE_GST_BASE" = "xno"; then
21949 { { echo "$as_me:$LINENO: error: no GStreamer Base Libs found" >&5
21950 echo "$as_me: error: no GStreamer Base Libs found" >&2;}
21951 { (exit 1); exit 1; }; }
21960 if test -z "$PKG_CONFIG"; then
21961 # Extract the first word of "pkg-config", so it can be a program name with args.
21962 set dummy pkg-config; ac_word=$2
21963 echo "$as_me:$LINENO: checking for $ac_word" >&5
21964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21965 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21966 echo $ECHO_N "(cached) $ECHO_C" >&6
21968 case $PKG_CONFIG in
21970 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21974 for as_dir in $PATH
21977 test -z "$as_dir" && as_dir=.
21978 for ac_exec_ext in '' $ac_executable_extensions; do
21979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21980 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21987 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21991 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21993 if test -n "$PKG_CONFIG"; then
21994 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21995 echo "${ECHO_T}$PKG_CONFIG" >&6
21997 echo "$as_me:$LINENO: result: no" >&5
21998 echo "${ECHO_T}no" >&6
22003 if test "$PKG_CONFIG" = "no" ; then
22004 echo "*** The pkg-config script could not be found. Make sure it is"
22005 echo "*** in your path, or set the PKG_CONFIG environment variable"
22006 echo "*** to the full path to pkg-config."
22007 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22009 PKG_CONFIG_MIN_VERSION=0.9.0
22010 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22011 echo "$as_me:$LINENO: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
22012 echo $ECHO_N "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
22014 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
22015 echo "$as_me:$LINENO: result: yes" >&5
22016 echo "${ECHO_T}yes" >&6
22019 echo "$as_me:$LINENO: checking GST_PLUGINS_BASE_CFLAGS" >&5
22020 echo $ECHO_N "checking GST_PLUGINS_BASE_CFLAGS... $ECHO_C" >&6
22021 GST_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22022 echo "$as_me:$LINENO: result: $GST_PLUGINS_BASE_CFLAGS" >&5
22023 echo "${ECHO_T}$GST_PLUGINS_BASE_CFLAGS" >&6
22025 echo "$as_me:$LINENO: checking GST_PLUGINS_BASE_LIBS" >&5
22026 echo $ECHO_N "checking GST_PLUGINS_BASE_LIBS... $ECHO_C" >&6
22027 GST_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22028 echo "$as_me:$LINENO: result: $GST_PLUGINS_BASE_LIBS" >&5
22029 echo "${ECHO_T}$GST_PLUGINS_BASE_LIBS" >&6
22031 GST_PLUGINS_BASE_CFLAGS=""
22032 GST_PLUGINS_BASE_LIBS=""
22033 ## If we have a custom action on failure, don't print errors, but
22034 ## do set a variable so people can do so.
22035 GST_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22042 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22043 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22047 if test $succeeded = yes; then
22048 HAVE_GST_PLUGINS="yes"
22050 HAVE_GST_PLUGINS="no"
22054 if test "x$HAVE_GST_PLUGINS" = "xno"; then
22055 { { echo "$as_me:$LINENO: error: no GStreamer Plugins Libs found" >&5
22056 echo "$as_me: error: no GStreamer Plugins Libs found" >&2;}
22057 { (exit 1); exit 1; }; }
22063 plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
22066 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).*'
22069 ac_config_files="$ac_config_files Makefile src/Makefile m4/Makefile"
22070 cat >confcache <<\_ACEOF
22071 # This file is a shell script that caches the results of configure
22072 # tests run on this system so they can be shared between configure
22073 # scripts and configure runs, see configure's option --config-cache.
22074 # It is not useful on other systems. If it contains results you don't
22075 # want to keep, you may remove or edit it.
22077 # config.status only pays attention to the cache file if you give it
22078 # the --recheck option to rerun configure.
22080 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22081 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22082 # following values.
22086 # The following way of writing the cache mishandles newlines in values,
22087 # but we know of no workaround that is simple, portable, and efficient.
22088 # So, don't put newlines in cache variables' values.
22089 # Ultrix sh set writes to stderr and can't be redirected directly,
22090 # and sets the high bit in the cache file unless we assign to the vars.
22093 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22095 # `set' does not quote correctly, so add quotes (double-quote
22096 # substitution turns \\\\ into \\, and sed turns \\ into \).
22099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22102 # `set' quotes correctly as required by POSIX, so do not add quotes.
22104 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22111 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22113 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22115 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22116 if test -w $cache_file; then
22117 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22118 cat confcache >$cache_file
22120 echo "not updating unwritable cache $cache_file"
22125 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22126 # Let make expand exec_prefix.
22127 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22129 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22130 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22131 # trailing colons and then remove the whole line if VPATH becomes empty
22132 # (actually we leave an empty line to preserve line numbers).
22133 if test "x$srcdir" = x.; then
22134 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22135 s/:*\$(srcdir):*/:/;
22136 s/:*\${srcdir}:*/:/;
22138 s/^\([^=]*=[ ]*\):*/\1/;
22144 DEFS=-DHAVE_CONFIG_H
22148 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
22149 # 1. Remove the extension, and $U if already installed.
22150 ac_i=`echo "$ac_i" |
22151 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22153 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22154 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22156 LIB@&t@OBJS=$ac_libobjs
22158 LTLIBOBJS=$ac_ltlibobjs
22161 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22162 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22163 Usually this means the macro was only invoked conditionally." >&5
22164 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22165 Usually this means the macro was only invoked conditionally." >&2;}
22166 { (exit 1); exit 1; }; }
22168 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22169 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22170 Usually this means the macro was only invoked conditionally." >&5
22171 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22172 Usually this means the macro was only invoked conditionally." >&2;}
22173 { (exit 1); exit 1; }; }
22175 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22176 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22177 Usually this means the macro was only invoked conditionally." >&5
22178 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22179 Usually this means the macro was only invoked conditionally." >&2;}
22180 { (exit 1); exit 1; }; }
22182 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22183 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22184 Usually this means the macro was only invoked conditionally." >&5
22185 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22186 Usually this means the macro was only invoked conditionally." >&2;}
22187 { (exit 1); exit 1; }; }
22189 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22190 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22191 Usually this means the macro was only invoked conditionally." >&5
22192 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22193 Usually this means the macro was only invoked conditionally." >&2;}
22194 { (exit 1); exit 1; }; }
22196 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22197 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22198 Usually this means the macro was only invoked conditionally." >&5
22199 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22200 Usually this means the macro was only invoked conditionally." >&2;}
22201 { (exit 1); exit 1; }; }
22204 : ${CONFIG_STATUS=./config.status}
22205 ac_clean_files_save=$ac_clean_files
22206 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22207 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22208 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22209 cat >$CONFIG_STATUS <<_ACEOF
22211 # Generated by $as_me.
22212 # Run this file to recreate the current configuration.
22213 # Compiler output produced by configure, useful for debugging
22214 # configure, is in config.log if it exists.
22217 ac_cs_recheck=false
22219 SHELL=\${CONFIG_SHELL-$SHELL}
22222 cat >>$CONFIG_STATUS <<\_ACEOF
22223 ## --------------------- ##
22224 ## M4sh Initialization. ##
22225 ## --------------------- ##
22227 # Be Bourne compatible
22228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22231 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22232 # is contrary to our usage. Disable this feature.
22233 alias -g '${1+"$@"}'='"$@"'
22234 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22237 DUALCASE=1; export DUALCASE # for MKS sh
22239 # Support unset when possible.
22240 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22247 # Work around bugs in pre-3.0 UWIN ksh.
22248 $as_unset ENV MAIL MAILPATH
22255 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22256 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22257 LC_TELEPHONE LC_TIME
22259 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22260 eval $as_var=C; export $as_var
22266 # Required to use basename.
22267 if expr a : '\(a\)' >/dev/null 2>&1; then
22273 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22274 as_basename=basename
22280 # Name of the executable.
22281 as_me=`$as_basename "$0" ||
22282 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22283 X"$0" : 'X\(//\)$' \| \
22284 X"$0" : 'X\(/\)$' \| \
22285 . : '\(.\)' 2>/dev/null ||
22287 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22288 /^X\/\(\/\/\)$/{ s//\1/; q; }
22289 /^X\/\(\/\).*/{ s//\1/; q; }
22293 # PATH needs CR, and LINENO needs CR and PATH.
22294 # Avoid depending upon Character Ranges.
22295 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22296 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22297 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22298 as_cr_digits='0123456789'
22299 as_cr_alnum=$as_cr_Letters$as_cr_digits
22301 # The user is always right.
22302 if test "${PATH_SEPARATOR+set}" != set; then
22303 echo "#! /bin/sh" >conf$$.sh
22304 echo "exit 0" >>conf$$.sh
22306 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22315 as_lineno_1=$LINENO
22316 as_lineno_2=$LINENO
22317 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22318 test "x$as_lineno_1" != "x$as_lineno_2" &&
22319 test "x$as_lineno_3" = "x$as_lineno_2" || {
22320 # Find who we are. Look in the path if we contain no path at all
22323 *[\\/]* ) as_myself=$0 ;;
22324 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22325 for as_dir in $PATH
22328 test -z "$as_dir" && as_dir=.
22329 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22334 # We did not find ourselves, most probably we were run as `sh COMMAND'
22335 # in which case we are not to be found in the path.
22336 if test "x$as_myself" = x; then
22339 if test ! -f "$as_myself"; then
22340 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22341 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22342 { (exit 1); exit 1; }; }
22344 case $CONFIG_SHELL in
22346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22347 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22350 test -z "$as_dir" && as_dir=.
22351 for as_base in sh bash ksh sh5; do
22354 if ("$as_dir/$as_base" -c '
22355 as_lineno_1=$LINENO
22356 as_lineno_2=$LINENO
22357 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22358 test "x$as_lineno_1" != "x$as_lineno_2" &&
22359 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22360 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22361 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22362 CONFIG_SHELL=$as_dir/$as_base
22363 export CONFIG_SHELL
22364 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22372 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22373 # uniformly replaced by the line number. The first 'sed' inserts a
22374 # line-number line before each line; the second 'sed' does the real
22375 # work. The second script uses 'N' to pair each line-number line
22376 # with the numbered line, and appends trailing '-' during
22377 # substitution so that $LINENO is not a special case at line end.
22378 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22379 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22380 sed '=' <$as_myself |
22385 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22388 s,^['$as_cr_digits']*\n,,
22389 ' >$as_me.lineno &&
22390 chmod +x $as_me.lineno ||
22391 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22392 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22393 { (exit 1); exit 1; }; }
22395 # Don't try to exec as it changes $[0], causing all sort of problems
22396 # (the dirname of $[0] is not the place where we might find the
22397 # original and so on. Autoconf is especially sensible to this).
22399 # Exit status is that of the last command.
22404 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22405 *c*,-n*) ECHO_N= ECHO_C='
22407 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22408 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22411 if expr a : '\(a\)' >/dev/null 2>&1; then
22417 rm -f conf$$ conf$$.exe conf$$.file
22419 if ln -s conf$$.file conf$$ 2>/dev/null; then
22420 # We could just check for DJGPP; but this test a) works b) is more generic
22421 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22422 if test -f conf$$.exe; then
22423 # Don't use ln at all; we don't have any links
22428 elif ln conf$$.file conf$$ 2>/dev/null; then
22433 rm -f conf$$ conf$$.exe conf$$.file
22435 if mkdir -p . 2>/dev/null; then
22438 test -d ./-p && rmdir ./-p
22442 as_executable_p="test -f"
22444 # Sed expression to map a string onto a valid CPP name.
22445 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22447 # Sed expression to map a string onto a valid variable name.
22448 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22452 # We need space, tab and new line, in precisely that order.
22462 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22463 # report actual input values of CONFIG_FILES etc. instead of their
22464 # values after options handling. Logging --version etc. is OK.
22468 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
22469 @%:@@%:@ Running $as_me. @%:@@%:@
22474 This file was extended by $as_me, which was
22475 generated by GNU Autoconf 2.59. Invocation command line was
22477 CONFIG_FILES = $CONFIG_FILES
22478 CONFIG_HEADERS = $CONFIG_HEADERS
22479 CONFIG_LINKS = $CONFIG_LINKS
22480 CONFIG_COMMANDS = $CONFIG_COMMANDS
22484 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22488 # Files that config.status was made for.
22489 if test -n "$ac_config_files"; then
22490 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22493 if test -n "$ac_config_headers"; then
22494 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22497 if test -n "$ac_config_links"; then
22498 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22501 if test -n "$ac_config_commands"; then
22502 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22505 cat >>$CONFIG_STATUS <<\_ACEOF
22508 \`$as_me' instantiates files from templates according to the
22509 current configuration.
22511 Usage: $0 [OPTIONS] [FILE]...
22513 -h, --help print this help, then exit
22514 -V, --version print version number, then exit
22515 -q, --quiet do not print progress messages
22516 -d, --debug don't remove temporary files
22517 --recheck update $as_me by reconfiguring in the same conditions
22518 --file=FILE[:TEMPLATE]
22519 instantiate the configuration file FILE
22520 --header=FILE[:TEMPLATE]
22521 instantiate the configuration header FILE
22523 Configuration files:
22526 Configuration headers:
22529 Configuration commands:
22532 Report bugs to <bug-autoconf@gnu.org>."
22535 cat >>$CONFIG_STATUS <<_ACEOF
22538 configured by $0, generated by GNU Autoconf 2.59,
22539 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22541 Copyright (C) 2003 Free Software Foundation, Inc.
22542 This config.status script is free software; the Free Software Foundation
22543 gives unlimited permission to copy, distribute and modify it."
22548 cat >>$CONFIG_STATUS <<\_ACEOF
22549 # If no file are specified by the user, then we need to provide default
22550 # value. By we need to know if files were specified by the user.
22556 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22557 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22565 *) # This is not an option, so the user has probably given explicit
22568 ac_need_defaults=false;;
22572 # Handling of the options.
22574 cat >>$CONFIG_STATUS <<\_ACEOF
22575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22577 --version | --vers* | -V )
22578 echo "$ac_cs_version"; exit 0 ;;
22580 # Conflict between --help and --header
22581 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22582 Try \`$0 --help' for more information." >&5
22583 echo "$as_me: error: ambiguous option: $1
22584 Try \`$0 --help' for more information." >&2;}
22585 { (exit 1); exit 1; }; };;
22586 --help | --hel | -h )
22587 echo "$ac_cs_usage"; exit 0 ;;
22588 --debug | --d* | -d )
22590 --file | --fil | --fi | --f )
22592 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22593 ac_need_defaults=false;;
22594 --header | --heade | --head | --hea )
22596 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22597 ac_need_defaults=false;;
22598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22599 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22602 # This is an error.
22603 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22604 Try \`$0 --help' for more information." >&5
22605 echo "$as_me: error: unrecognized option: $1
22606 Try \`$0 --help' for more information." >&2;}
22607 { (exit 1); exit 1; }; } ;;
22609 *) ac_config_targets="$ac_config_targets $1" ;;
22615 ac_configure_extra_args=
22617 if $ac_cs_silent; then
22619 ac_configure_extra_args="$ac_configure_extra_args --silent"
22623 cat >>$CONFIG_STATUS <<_ACEOF
22624 if \$ac_cs_recheck; then
22625 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22626 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22631 cat >>$CONFIG_STATUS <<_ACEOF
22633 # INIT-COMMANDS section.
22636 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22642 cat >>$CONFIG_STATUS <<\_ACEOF
22643 for ac_config_target in $ac_config_targets
22645 case "$ac_config_target" in
22646 # Handling of arguments.
22647 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22648 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22649 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22650 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22651 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22652 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22653 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22654 { (exit 1); exit 1; }; };;
22658 # If the user did not use the arguments to specify the items to instantiate,
22659 # then the envvar interface is used. Set only those that are not.
22660 # We use the long form for the default assignment because of an extremely
22661 # bizarre bug on SunOS 4.1.3.
22662 if $ac_need_defaults; then
22663 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22664 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22665 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22668 # Have a temporary directory for convenience. Make it in the build tree
22669 # simply because there is no reason to put it here, and in addition,
22670 # creating and moving files from /tmp can sometimes cause problems.
22671 # Create a temporary directory, and hook for its removal unless debugging.
22674 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22675 trap '{ (exit 1); exit 1; }' 1 2 13 15
22678 # Create a (secure) tmp directory for tmp files.
22681 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22682 test -n "$tmp" && test -d "$tmp"
22685 tmp=./confstat$$-$RANDOM
22686 (umask 077 && mkdir $tmp)
22689 echo "$me: cannot create a temporary directory in ." >&2
22690 { (exit 1); exit 1; }
22695 cat >>$CONFIG_STATUS <<_ACEOF
22698 # CONFIG_FILES section.
22701 # No need to generate the scripts if there are no CONFIG_FILES.
22702 # This happens for instance when ./config.status config.h
22703 if test -n "\$CONFIG_FILES"; then
22704 # Protect against being on the right side of a sed subst in config.status.
22705 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22706 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22707 s,@SHELL@,$SHELL,;t t
22708 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22709 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22710 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22711 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22712 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22713 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22714 s,@exec_prefix@,$exec_prefix,;t t
22715 s,@prefix@,$prefix,;t t
22716 s,@program_transform_name@,$program_transform_name,;t t
22717 s,@bindir@,$bindir,;t t
22718 s,@sbindir@,$sbindir,;t t
22719 s,@libexecdir@,$libexecdir,;t t
22720 s,@datadir@,$datadir,;t t
22721 s,@sysconfdir@,$sysconfdir,;t t
22722 s,@sharedstatedir@,$sharedstatedir,;t t
22723 s,@localstatedir@,$localstatedir,;t t
22724 s,@libdir@,$libdir,;t t
22725 s,@includedir@,$includedir,;t t
22726 s,@oldincludedir@,$oldincludedir,;t t
22727 s,@infodir@,$infodir,;t t
22728 s,@mandir@,$mandir,;t t
22729 s,@build_alias@,$build_alias,;t t
22730 s,@host_alias@,$host_alias,;t t
22731 s,@target_alias@,$target_alias,;t t
22732 s,@DEFS@,$DEFS,;t t
22733 s,@ECHO_C@,$ECHO_C,;t t
22734 s,@ECHO_N@,$ECHO_N,;t t
22735 s,@ECHO_T@,$ECHO_T,;t t
22736 s,@LIBS@,$LIBS,;t t
22737 s,@build@,$build,;t t
22738 s,@build_cpu@,$build_cpu,;t t
22739 s,@build_vendor@,$build_vendor,;t t
22740 s,@build_os@,$build_os,;t t
22741 s,@host@,$host,;t t
22742 s,@host_cpu@,$host_cpu,;t t
22743 s,@host_vendor@,$host_vendor,;t t
22744 s,@host_os@,$host_os,;t t
22745 s,@target@,$target,;t t
22746 s,@target_cpu@,$target_cpu,;t t
22747 s,@target_vendor@,$target_vendor,;t t
22748 s,@target_os@,$target_os,;t t
22749 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22750 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22751 s,@MAINT@,$MAINT,;t t
22752 s,@GST_PLUGINS_VERSION@,$GST_PLUGINS_VERSION,;t t
22753 s,@GST_PLUGINS_VERSION_RELEASE@,$GST_PLUGINS_VERSION_RELEASE,;t t
22754 s,@GST_PLUGINS_VERSION_MAJOR@,$GST_PLUGINS_VERSION_MAJOR,;t t
22755 s,@GST_PLUGINS_VERSION_MINOR@,$GST_PLUGINS_VERSION_MINOR,;t t
22756 s,@GST_PLUGINS_VERSION_MICRO@,$GST_PLUGINS_VERSION_MICRO,;t t
22757 s,@GST_PLUGINS_VERSION_NANO@,$GST_PLUGINS_VERSION_NANO,;t t
22758 s,@PACKAGE@,$PACKAGE,;t t
22759 s,@VERSION@,$VERSION,;t t
22760 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22761 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22762 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22763 s,@CYGPATH_W@,$CYGPATH_W,;t t
22764 s,@ACLOCAL@,$ACLOCAL,;t t
22765 s,@AUTOCONF@,$AUTOCONF,;t t
22766 s,@AUTOMAKE@,$AUTOMAKE,;t t
22767 s,@AUTOHEADER@,$AUTOHEADER,;t t
22768 s,@MAKEINFO@,$MAKEINFO,;t t
22769 s,@AMTAR@,$AMTAR,;t t
22770 s,@install_sh@,$install_sh,;t t
22771 s,@STRIP@,$STRIP,;t t
22772 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22773 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22774 s,@mkdir_p@,$mkdir_p,;t t
22776 s,@SET_MAKE@,$SET_MAKE,;t t
22777 s,@am__leading_dot@,$am__leading_dot,;t t
22779 s,@CFLAGS@,$CFLAGS,;t t
22780 s,@LDFLAGS@,$LDFLAGS,;t t
22781 s,@CPPFLAGS@,$CPPFLAGS,;t t
22782 s,@ac_ct_CC@,$ac_ct_CC,;t t
22783 s,@EXEEXT@,$EXEEXT,;t t
22784 s,@OBJEXT@,$OBJEXT,;t t
22785 s,@DEPDIR@,$DEPDIR,;t t
22786 s,@am__include@,$am__include,;t t
22787 s,@am__quote@,$am__quote,;t t
22788 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22789 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22790 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22791 s,@CCDEPMODE@,$CCDEPMODE,;t t
22792 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22793 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22794 s,@EGREP@,$EGREP,;t t
22795 s,@LN_S@,$LN_S,;t t
22796 s,@ECHO@,$ECHO,;t t
22798 s,@ac_ct_AR@,$ac_ct_AR,;t t
22799 s,@RANLIB@,$RANLIB,;t t
22800 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22803 s,@CXXFLAGS@,$CXXFLAGS,;t t
22804 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22805 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22806 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22807 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22808 s,@CXXCPP@,$CXXCPP,;t t
22810 s,@FFLAGS@,$FFLAGS,;t t
22811 s,@ac_ct_F77@,$ac_ct_F77,;t t
22812 s,@LIBTOOL@,$LIBTOOL,;t t
22813 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
22814 s,@CCAS@,$CCAS,;t t
22815 s,@CCASFLAGS@,$CCASFLAGS,;t t
22816 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
22817 s,@HAVE_CXX@,$HAVE_CXX,;t t
22818 s,@HAVE_PKGCONFIG@,$HAVE_PKGCONFIG,;t t
22819 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22820 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
22821 s,@GST_LIBS@,$GST_LIBS,;t t
22822 s,@GST_MAJORMINOR@,$GST_MAJORMINOR,;t t
22823 s,@GST_BASE_CFLAGS@,$GST_BASE_CFLAGS,;t t
22824 s,@GST_BASE_LIBS@,$GST_BASE_LIBS,;t t
22825 s,@GST_PLUGINS_BASE_CFLAGS@,$GST_PLUGINS_BASE_CFLAGS,;t t
22826 s,@GST_PLUGINS_BASE_LIBS@,$GST_PLUGINS_BASE_LIBS,;t t
22827 s,@plugindir@,$plugindir,;t t
22828 s,@GST_PLUGIN_LDFLAGS@,$GST_PLUGIN_LDFLAGS,;t t
22829 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
22830 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22835 cat >>$CONFIG_STATUS <<\_ACEOF
22836 # Split the substitutions into bite-sized pieces for seds with
22837 # small command number limits, like on Digital OSF/1 and HP-UX.
22838 ac_max_sed_lines=48
22839 ac_sed_frag=1 # Number of current file.
22840 ac_beg=1 # First line for current file.
22841 ac_end=$ac_max_sed_lines # Line after last line for current file.
22844 while $ac_more_lines; do
22845 if test $ac_beg -gt 1; then
22846 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22848 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22850 if test ! -s $tmp/subs.frag; then
22851 ac_more_lines=false
22853 # The purpose of the label and of the branching condition is to
22854 # speed up the sed processing (if there are no `@' at all, there
22855 # is no need to browse any of the substitutions).
22856 # These are the two extra sed commands mentioned above.
22858 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22859 if test -z "$ac_sed_cmds"; then
22860 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22862 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22864 ac_sed_frag=`expr $ac_sed_frag + 1`
22866 ac_end=`expr $ac_end + $ac_max_sed_lines`
22869 if test -z "$ac_sed_cmds"; then
22872 fi # test -n "$CONFIG_FILES"
22875 cat >>$CONFIG_STATUS <<\_ACEOF
22876 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22877 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22879 - | *:- | *:-:* ) # input from stdin
22881 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22883 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22884 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22885 * ) ac_file_in=$ac_file.in ;;
22888 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22889 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22891 X"$ac_file" : 'X\(//\)[^/]' \| \
22892 X"$ac_file" : 'X\(//\)$' \| \
22893 X"$ac_file" : 'X\(/\)' \| \
22894 . : '\(.\)' 2>/dev/null ||
22896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22898 /^X\(\/\/\)$/{ s//\1/; q; }
22899 /^X\(\/\).*/{ s//\1/; q; }
22901 { if $as_mkdir_p; then
22906 while test ! -d "$as_dir"; do
22907 as_dirs="$as_dir $as_dirs"
22908 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22910 X"$as_dir" : 'X\(//\)[^/]' \| \
22911 X"$as_dir" : 'X\(//\)$' \| \
22912 X"$as_dir" : 'X\(/\)' \| \
22913 . : '\(.\)' 2>/dev/null ||
22915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22917 /^X\(\/\/\)$/{ s//\1/; q; }
22918 /^X\(\/\).*/{ s//\1/; q; }
22921 test ! -n "$as_dirs" || mkdir $as_dirs
22922 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22923 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22924 { (exit 1); exit 1; }; }; }
22928 if test "$ac_dir" != .; then
22929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22930 # A "../" for each directory in $ac_dir_suffix.
22931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22933 ac_dir_suffix= ac_top_builddir=
22937 .) # No --srcdir option. We are building in place.
22939 if test -z "$ac_top_builddir"; then
22942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22944 [\\/]* | ?:[\\/]* ) # Absolute path.
22945 ac_srcdir=$srcdir$ac_dir_suffix;
22946 ac_top_srcdir=$srcdir ;;
22947 *) # Relative path.
22948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22952 # Do not use `cd foo && pwd` to compute absolute paths, because
22953 # the directories may not exist.
22955 .) ac_abs_builddir="$ac_dir";;
22958 .) ac_abs_builddir=`pwd`;;
22959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22963 case $ac_abs_builddir in
22964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22966 case ${ac_top_builddir}. in
22967 .) ac_abs_top_builddir=$ac_abs_builddir;;
22968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22972 case $ac_abs_builddir in
22973 .) ac_abs_srcdir=$ac_srcdir;;
22976 .) ac_abs_srcdir=$ac_abs_builddir;;
22977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22981 case $ac_abs_builddir in
22982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22984 case $ac_top_srcdir in
22985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22993 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22994 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22997 # Let's still pretend it is `configure' which instantiates (i.e., don't
22998 # use $as_me), people would be surprised to read:
22999 # /* config.h. Generated by config.status. */
23000 if test x"$ac_file" = x-; then
23003 configure_input="$ac_file. "
23005 configure_input=$configure_input"Generated from `echo $ac_file_in |
23006 sed 's,.*/,,'` by configure."
23008 # First look for the input files in the build tree, otherwise in the
23010 ac_file_inputs=`IFS=:
23011 for f in $ac_file_in; do
23013 -) echo $tmp/stdin ;;
23015 # Absolute (can't be DOS-style, as IFS=:)
23016 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23017 echo "$as_me: error: cannot find input file: $f" >&2;}
23018 { (exit 1); exit 1; }; }
23021 if test -f "$f"; then
23024 elif test -f "$srcdir/$f"; then
23029 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23030 echo "$as_me: error: cannot find input file: $f" >&2;}
23031 { (exit 1); exit 1; }; }
23034 done` || { (exit 1); exit 1; }
23036 if test x"$ac_file" != x-; then
23037 { echo "$as_me:$LINENO: creating $ac_file" >&5
23038 echo "$as_me: creating $ac_file" >&6;}
23042 cat >>$CONFIG_STATUS <<_ACEOF
23046 cat >>$CONFIG_STATUS <<\_ACEOF
23048 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23049 s,@configure_input@,$configure_input,;t t
23050 s,@srcdir@,$ac_srcdir,;t t
23051 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23052 s,@top_srcdir@,$ac_top_srcdir,;t t
23053 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23054 s,@builddir@,$ac_builddir,;t t
23055 s,@abs_builddir@,$ac_abs_builddir,;t t
23056 s,@top_builddir@,$ac_top_builddir,;t t
23057 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23058 s,@INSTALL@,$ac_INSTALL,;t t
23059 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23061 if test x"$ac_file" != x-; then
23062 mv $tmp/out $ac_file
23070 cat >>$CONFIG_STATUS <<\_ACEOF
23073 # CONFIG_HEADER section.
23076 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23077 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23079 # ac_d sets the value in "#define NAME VALUE" lines.
23080 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23081 ac_dB='[ ].*$,\1#\2'
23084 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23085 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23086 ac_uB='$,\1#\2define\3'
23090 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23091 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23093 - | *:- | *:-:* ) # input from stdin
23095 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23096 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23097 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23099 * ) ac_file_in=$ac_file.in ;;
23102 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23103 echo "$as_me: creating $ac_file" >&6;}
23105 # First look for the input files in the build tree, otherwise in the
23107 ac_file_inputs=`IFS=:
23108 for f in $ac_file_in; do
23110 -) echo $tmp/stdin ;;
23112 # Absolute (can't be DOS-style, as IFS=:)
23113 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23114 echo "$as_me: error: cannot find input file: $f" >&2;}
23115 { (exit 1); exit 1; }; }
23116 # Do quote $f, to prevent DOS paths from being IFS'd.
23119 if test -f "$f"; then
23122 elif test -f "$srcdir/$f"; then
23127 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23128 echo "$as_me: error: cannot find input file: $f" >&2;}
23129 { (exit 1); exit 1; }; }
23132 done` || { (exit 1); exit 1; }
23133 # Remove the trailing spaces.
23134 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23138 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23139 # `conftest.undefs', that substitutes the proper values into
23140 # config.h.in to produce config.h. The first handles `#define'
23141 # templates, and the second `#undef' templates.
23142 # And first: Protect against being on the right side of a sed subst in
23143 # config.status. Protect against being in an unquoted here document
23144 # in config.status.
23145 rm -f conftest.defines conftest.undefs
23146 # Using a here document instead of a string reduces the quoting nightmare.
23147 # Putting comments in sed scripts is not portable.
23149 # `end' is used to avoid that the second main sed command (meant for
23150 # 0-ary CPP macros) applies to n-ary macro definitions.
23151 # See the Autoconf documentation for `clear'.
23152 cat >confdef2sed.sed <<\_ACEOF
23157 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23159 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23162 # If some macros were called several times there might be several times
23163 # the same #defines, which is useless. Nevertheless, we may not want to
23164 # sort them, since we want the *last* AC-DEFINE to be honored.
23165 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23166 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23167 rm -f confdef2sed.sed
23169 # This sed command replaces #undef with comments. This is necessary, for
23170 # example, in the case of _POSIX_SOURCE, which is predefined and required
23171 # on some systems where configure will not decide to define it.
23172 cat >>conftest.undefs <<\_ACEOF
23173 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23176 # Break up conftest.defines because some shells have a limit on the size
23177 # of here documents, and old seds have small limits too (100 cmds).
23178 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23179 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23180 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23181 echo ' :' >>$CONFIG_STATUS
23182 rm -f conftest.tail
23183 while grep . conftest.defines >/dev/null
23185 # Write a limited-size here document to $tmp/defines.sed.
23186 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23187 # Speed up: don't consider the non `#define' lines.
23188 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23189 # Work around the forget-to-reset-the-flag bug.
23190 echo 't clr' >>$CONFIG_STATUS
23191 echo ': clr' >>$CONFIG_STATUS
23192 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23194 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23196 mv $tmp/out $tmp/in
23198 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23199 rm -f conftest.defines
23200 mv conftest.tail conftest.defines
23202 rm -f conftest.defines
23203 echo ' fi # grep' >>$CONFIG_STATUS
23204 echo >>$CONFIG_STATUS
23206 # Break up conftest.undefs because some shells have a limit on the size
23207 # of here documents, and old seds have small limits too (100 cmds).
23208 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23209 rm -f conftest.tail
23210 while grep . conftest.undefs >/dev/null
23212 # Write a limited-size here document to $tmp/undefs.sed.
23213 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23214 # Speed up: don't consider the non `#undef'
23215 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23216 # Work around the forget-to-reset-the-flag bug.
23217 echo 't clr' >>$CONFIG_STATUS
23218 echo ': clr' >>$CONFIG_STATUS
23219 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23221 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23223 mv $tmp/out $tmp/in
23225 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23226 rm -f conftest.undefs
23227 mv conftest.tail conftest.undefs
23229 rm -f conftest.undefs
23231 cat >>$CONFIG_STATUS <<\_ACEOF
23232 # Let's still pretend it is `configure' which instantiates (i.e., don't
23233 # use $as_me), people would be surprised to read:
23234 # /* config.h. Generated by config.status. */
23235 if test x"$ac_file" = x-; then
23236 echo "/* Generated by configure. */" >$tmp/config.h
23238 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23240 cat $tmp/in >>$tmp/config.h
23242 if test x"$ac_file" != x-; then
23243 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23244 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23245 echo "$as_me: $ac_file is unchanged" >&6;}
23247 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23248 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23249 X"$ac_file" : 'X\(//\)[^/]' \| \
23250 X"$ac_file" : 'X\(//\)$' \| \
23251 X"$ac_file" : 'X\(/\)' \| \
23252 . : '\(.\)' 2>/dev/null ||
23254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23256 /^X\(\/\/\)$/{ s//\1/; q; }
23257 /^X\(\/\).*/{ s//\1/; q; }
23259 { if $as_mkdir_p; then
23264 while test ! -d "$as_dir"; do
23265 as_dirs="$as_dir $as_dirs"
23266 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23267 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23268 X"$as_dir" : 'X\(//\)[^/]' \| \
23269 X"$as_dir" : 'X\(//\)$' \| \
23270 X"$as_dir" : 'X\(/\)' \| \
23271 . : '\(.\)' 2>/dev/null ||
23273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23274 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23275 /^X\(\/\/\)$/{ s//\1/; q; }
23276 /^X\(\/\).*/{ s//\1/; q; }
23279 test ! -n "$as_dirs" || mkdir $as_dirs
23280 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23281 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23282 { (exit 1); exit 1; }; }; }
23285 mv $tmp/config.h $ac_file
23289 rm -f $tmp/config.h
23291 # Compute $ac_file's index in $config_headers.
23293 for _am_header in $config_headers :; do
23294 case $_am_header in
23295 $ac_file | $ac_file:* )
23298 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23301 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23302 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23303 X$ac_file : 'X\(//\)[^/]' \| \
23304 X$ac_file : 'X\(//\)$' \| \
23305 X$ac_file : 'X\(/\)' \| \
23306 . : '\(.\)' 2>/dev/null ||
23308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23310 /^X\(\/\/\)$/{ s//\1/; q; }
23311 /^X\(\/\).*/{ s//\1/; q; }
23312 s/.*/./; q'`/stamp-h$_am_stamp_count
23315 cat >>$CONFIG_STATUS <<\_ACEOF
23318 # CONFIG_COMMANDS section.
23320 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23321 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23322 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23323 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23324 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23325 X"$ac_dest" : 'X\(//\)[^/]' \| \
23326 X"$ac_dest" : 'X\(//\)$' \| \
23327 X"$ac_dest" : 'X\(/\)' \| \
23328 . : '\(.\)' 2>/dev/null ||
23330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23332 /^X\(\/\/\)$/{ s//\1/; q; }
23333 /^X\(\/\).*/{ s//\1/; q; }
23335 { if $as_mkdir_p; then
23340 while test ! -d "$as_dir"; do
23341 as_dirs="$as_dir $as_dirs"
23342 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23344 X"$as_dir" : 'X\(//\)[^/]' \| \
23345 X"$as_dir" : 'X\(//\)$' \| \
23346 X"$as_dir" : 'X\(/\)' \| \
23347 . : '\(.\)' 2>/dev/null ||
23349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23351 /^X\(\/\/\)$/{ s//\1/; q; }
23352 /^X\(\/\).*/{ s//\1/; q; }
23355 test ! -n "$as_dirs" || mkdir $as_dirs
23356 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23357 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23358 { (exit 1); exit 1; }; }; }
23362 if test "$ac_dir" != .; then
23363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23364 # A "../" for each directory in $ac_dir_suffix.
23365 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23367 ac_dir_suffix= ac_top_builddir=
23371 .) # No --srcdir option. We are building in place.
23373 if test -z "$ac_top_builddir"; then
23376 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23378 [\\/]* | ?:[\\/]* ) # Absolute path.
23379 ac_srcdir=$srcdir$ac_dir_suffix;
23380 ac_top_srcdir=$srcdir ;;
23381 *) # Relative path.
23382 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23383 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23386 # Do not use `cd foo && pwd` to compute absolute paths, because
23387 # the directories may not exist.
23389 .) ac_abs_builddir="$ac_dir";;
23392 .) ac_abs_builddir=`pwd`;;
23393 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23394 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23397 case $ac_abs_builddir in
23398 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23400 case ${ac_top_builddir}. in
23401 .) ac_abs_top_builddir=$ac_abs_builddir;;
23402 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23403 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23406 case $ac_abs_builddir in
23407 .) ac_abs_srcdir=$ac_srcdir;;
23410 .) ac_abs_srcdir=$ac_abs_builddir;;
23411 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23412 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23415 case $ac_abs_builddir in
23416 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23418 case $ac_top_srcdir in
23419 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23420 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23421 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23426 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23427 echo "$as_me: executing $ac_dest commands" >&6;}
23429 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23430 # Strip MF so we end up with the name of the file.
23431 mf=`echo "$mf" | sed -e 's/:.*$//'`
23432 # Check whether this is an Automake generated Makefile or not.
23433 # We used to match only the files named `Makefile.in', but
23434 # some people rename them; so instead we look at the file content.
23435 # Grep'ing the first line is not enough: some people post-process
23436 # each Makefile.in and add a new line on top of each file to say so.
23437 # So let's grep whole file.
23438 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23439 dirpart=`(dirname "$mf") 2>/dev/null ||
23440 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23441 X"$mf" : 'X\(//\)[^/]' \| \
23442 X"$mf" : 'X\(//\)$' \| \
23443 X"$mf" : 'X\(/\)' \| \
23444 . : '\(.\)' 2>/dev/null ||
23446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23448 /^X\(\/\/\)$/{ s//\1/; q; }
23449 /^X\(\/\).*/{ s//\1/; q; }
23454 grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
23455 # Extract the definition of DEP_FILES from the Makefile without
23457 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23458 test -z "$DEPDIR" && continue
23459 # When using ansi2knr, U may be empty or an underscore; expand it
23460 U=`sed -n 's/^U = //p' < "$mf"`
23461 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23462 # We invoke sed twice because it is the simplest approach to
23463 # changing $(DEPDIR) to its actual value in the expansion.
23464 for file in `sed -n '
23465 /^DEP_FILES = .*\\\\$/ {
23474 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23475 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23476 # Make sure the directory exists.
23477 test -f "$dirpart/$file" && continue
23478 fdir=`(dirname "$file") 2>/dev/null ||
23479 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23480 X"$file" : 'X\(//\)[^/]' \| \
23481 X"$file" : 'X\(//\)$' \| \
23482 X"$file" : 'X\(/\)' \| \
23483 . : '\(.\)' 2>/dev/null ||
23485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23486 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23487 /^X\(\/\/\)$/{ s//\1/; q; }
23488 /^X\(\/\).*/{ s//\1/; q; }
23490 { if $as_mkdir_p; then
23491 mkdir -p $dirpart/$fdir
23493 as_dir=$dirpart/$fdir
23495 while test ! -d "$as_dir"; do
23496 as_dirs="$as_dir $as_dirs"
23497 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23499 X"$as_dir" : 'X\(//\)[^/]' \| \
23500 X"$as_dir" : 'X\(//\)$' \| \
23501 X"$as_dir" : 'X\(/\)' \| \
23502 . : '\(.\)' 2>/dev/null ||
23504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23506 /^X\(\/\/\)$/{ s//\1/; q; }
23507 /^X\(\/\).*/{ s//\1/; q; }
23510 test ! -n "$as_dirs" || mkdir $as_dirs
23511 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23512 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23513 { (exit 1); exit 1; }; }; }
23515 # echo "creating $dirpart/$file"
23516 echo '# dummy' > "$dirpart/$file"
23524 cat >>$CONFIG_STATUS <<\_ACEOF
23526 { (exit 0); exit 0; }
23528 chmod +x $CONFIG_STATUS
23529 ac_clean_files=$ac_clean_files_save
23532 # configure is writing to config.log, and then calls config.status.
23533 # config.status does its own redirection, appending to config.log.
23534 # Unfortunately, on DOS this fails, as config.log is still kept open
23535 # by configure, so config.status won't be able to write to it; its
23536 # output is simply discarded. So we exec the FD to /dev/null,
23537 # effectively closing config.log, so it can be properly (re)opened and
23538 # appended to by config.status. When coming back to configure, we
23539 # need to make the FD available again.
23540 if test "$no_create" != yes; then
23542 ac_config_status_args=
23543 test "$silent" = yes &&
23544 ac_config_status_args="$ac_config_status_args --quiet"
23546 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23548 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23549 # would make configure fail if this is the last instruction.
23550 $ac_cs_success || { (exit 1); exit 1; }