2 # From configure.ac Revision: 1.7 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.040304.
6 # Report bugs to <martin.quinson@ens-lyon.fr>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
262 elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
273 if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292 echo_test_string="`eval $cmd`" &&
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
309 # So, first we look for a working echo in the user's PATH.
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
362 # maybe with a smaller string...
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 # Oops. We lost completely, so just stick with echo.
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 tagnames=${tagnames+${tagnames},}CXX
399 tagnames=${tagnames+${tagnames},}F77
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
417 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
424 # Identity of this package.
426 PACKAGE_TARNAME='gras'
427 PACKAGE_VERSION='0.0.040304'
428 PACKAGE_STRING='GRAS 0.0.040304'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
431 ac_unique_file="src/include/gras.h"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
436 # include <sys/types.h>
439 # include <sys/stat.h>
450 # if !STDC_HEADERS && HAVE_MEMORY_H
456 # include <strings.h>
459 # include <inttypes.h>
469 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 LIBOBJS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT BASH WARNING LTLIBOBJS'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
958 \`configure' configures GRAS 0.0.040304 to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 --target=TARGET configure for building compilers for TARGET [HOST]
1023 if test -n "$ac_init_help"; then
1024 case $ac_init_help in
1025 short | recursive ) echo "Configuration of GRAS 0.0.040304:";;
1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-dependency-tracking speeds up one-time build
1039 --enable-dependency-tracking do not reject slow dependency extractors
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-maintainer-mode enable make rules and dependencies not useful
1042 (and sometimes confusing) to the casual installer
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1051 include additional configurations [automatic]
1053 Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1061 CXX C++ compiler command
1062 CXXFLAGS C++ compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1070 Report bugs to <martin.quinson@ens-lyon.fr>.
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 ac_dir_suffix= ac_top_builddir=
1090 .) # No --srcdir option. We are building in place.
1092 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1108 .) ac_abs_builddir="$ac_dir";;
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1155 $ac_configure --help
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1166 GRAS configure 0.0.040304
1167 generated by GNU Autoconf 2.59
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1180 It was created by GRAS $as_me 0.0.040304, which was
1181 generated by GNU Autoconf 2.59. Invocation command line was
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1240 ac_must_keep_next=false
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269 -* ) ac_must_keep_next=true ;;
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log. We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1298 # The following way of writing the cache mishandles newlines in values,
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1321 for ac_var in $ac_subst_vars
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1328 if test -n "$ac_subst_files"; then
1335 for ac_var in $ac_subst_files
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -s confdefs.h; then
1350 sed "/^$/d" confdefs.h | sort
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361 for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 # Predefined preprocessor variables.
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407 for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1416 if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1433 # Check that the precious variables saved in the cache have kept the same
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457 echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459 echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476 if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521 if test -f $ac_dir/install-sh; then
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 elif test -f $ac_dir/install.sh; then
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 elif test -f $ac_dir/shtool; then
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538 { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544 # Make sure we can run config.sub.
1545 $ac_config_sub sun4 >/dev/null 2>&1 ||
1546 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1547 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1548 { (exit 1); exit 1; }; }
1550 echo "$as_me:$LINENO: checking build system type" >&5
1551 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1552 if test "${ac_cv_build+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 ac_cv_build_alias=$build_alias
1556 test -z "$ac_cv_build_alias" &&
1557 ac_cv_build_alias=`$ac_config_guess`
1558 test -z "$ac_cv_build_alias" &&
1559 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1560 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1561 { (exit 1); exit 1; }; }
1562 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1564 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1568 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1569 echo "${ECHO_T}$ac_cv_build" >&6
1571 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576 echo "$as_me:$LINENO: checking host system type" >&5
1577 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1578 if test "${ac_cv_host+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 ac_cv_host_alias=$host_alias
1582 test -z "$ac_cv_host_alias" &&
1583 ac_cv_host_alias=$ac_cv_build_alias
1584 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1586 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1590 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1591 echo "${ECHO_T}$ac_cv_host" >&6
1593 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598 echo "$as_me:$LINENO: checking target system type" >&5
1599 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1600 if test "${ac_cv_target+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 ac_cv_target_alias=$target_alias
1604 test "x$ac_cv_target_alias" = "x" &&
1605 ac_cv_target_alias=$ac_cv_host_alias
1606 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1607 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1608 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1609 { (exit 1); exit 1; }; }
1612 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1613 echo "${ECHO_T}$ac_cv_target" >&6
1614 target=$ac_cv_target
1615 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620 # The aliases save the names the user supplied, while $host etc.
1621 # will get canonicalized.
1622 test -n "$target_alias" &&
1623 test "$program_prefix$program_suffix$program_transform_name" = \
1625 program_prefix=${target_alias}-
1627 ac_cpp='$CPP $CPPFLAGS'
1628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1633 ac_config_headers="$ac_config_headers src/gras_config.h"
1635 am__api_version="1.8"
1636 # Find a good install program. We prefer a C program (faster),
1637 # so one script is as good as another. But avoid the broken or
1638 # incompatible versions:
1639 # SysV /etc/install, /usr/sbin/install
1640 # SunOS /usr/etc/install
1641 # IRIX /sbin/install
1643 # AmigaOS /C/install, which installs bootblocks on floppy discs
1644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1647 # OS/2's system install, which has a completely different semantic
1648 # ./install, which can be erroneously created by make from ./install.sh.
1649 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651 if test -z "$INSTALL"; then
1652 if test "${ac_cv_path_install+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 # Account for people who put trailing slashes in PATH elements.
1662 ./ | .// | /cC/* | \
1663 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1664 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1667 # OSF1 and SCO ODT 3.0 have their own names for install.
1668 # Don't use installbsd from OSF since it installs stuff as root
1670 for ac_prog in ginstall scoinst install; do
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1673 if test $ac_prog = install &&
1674 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675 # AIX install. It has an incompatible calling convention.
1677 elif test $ac_prog = install &&
1678 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679 # program-specific install script used by HP pwplus--don't use.
1682 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1694 if test "${ac_cv_path_install+set}" = set; then
1695 INSTALL=$ac_cv_path_install
1697 # As a last resort, use the slow shell script. We don't cache a
1698 # path for INSTALL within a source directory, because that will
1699 # break other packages using the cache if that directory is
1700 # removed, or if the path is relative.
1701 INSTALL=$ac_install_sh
1704 echo "$as_me:$LINENO: result: $INSTALL" >&5
1705 echo "${ECHO_T}$INSTALL" >&6
1707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1708 # It thinks the first close brace ends the variable substitution.
1709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1715 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1716 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1719 echo timestamp > conftest.file
1720 # Do `set' in a subshell so we don't clobber the current shell's
1721 # arguments. Must try -L first in case configure is actually a
1722 # symlink; some systems play weird games with the mod time of symlinks
1723 # (eg FreeBSD returns the mod time of the symlink's containing
1726 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1727 if test "$*" = "X"; then
1729 set X `ls -t $srcdir/configure conftest.file`
1732 if test "$*" != "X $srcdir/configure conftest.file" \
1733 && test "$*" != "X conftest.file $srcdir/configure"; then
1735 # If neither matched, then we have a broken ls. This can happen
1736 # if, for instance, CONFIG_SHELL is bash and it inherits a
1737 # broken ls alias from the environment. This has actually
1738 # happened. Such a system could not be considered "sane".
1739 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1740 alias in your environment" >&5
1741 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1742 alias in your environment" >&2;}
1743 { (exit 1); exit 1; }; }
1746 test "$2" = conftest.file
1752 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1753 Check your system clock" >&5
1754 echo "$as_me: error: newly created file is older than distributed files!
1755 Check your system clock" >&2;}
1756 { (exit 1); exit 1; }; }
1758 echo "$as_me:$LINENO: result: yes" >&5
1759 echo "${ECHO_T}yes" >&6
1760 test "$program_prefix" != NONE &&
1761 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1762 # Use a double $ so make ignores it.
1763 test "$program_suffix" != NONE &&
1764 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1765 # Double any \ or $. echo might interpret backslashes.
1766 # By default was `s,x,x', remove it if useless.
1767 cat <<\_ACEOF >conftest.sed
1768 s/[\\$]/&&/g;s/;s,x,x,$//
1770 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1773 # expand $ac_aux_dir to an absolute path
1774 am_aux_dir=`cd $ac_aux_dir && pwd`
1776 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1777 # Use eval to expand $SHELL
1778 if eval "$MISSING --run true"; then
1779 am_missing_run="$MISSING --run "
1782 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1783 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1786 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1787 # Keeping the `.' argument allows $(mkdir_p) to be used without
1788 # argument. Indeed, we sometimes output rules like
1789 # $(mkdir_p) $(somedir)
1790 # where $(somedir) is conditionally defined.
1791 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1792 # expensive solution, as it forces Make to start a sub-shell.)
1793 mkdir_p='mkdir -p -- .'
1795 # On NextStep and OpenStep, the `mkdir' command does not
1796 # recognize any option. It will interpret all options as
1797 # directories to create, and then abort because `.' already
1799 for d in ./-p ./--version;
1801 test -d $d && rmdir $d
1803 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1804 if test -f "$ac_aux_dir/mkinstalldirs"; then
1805 mkdir_p='$(mkinstalldirs)'
1807 mkdir_p='$(install_sh) -d'
1811 for ac_prog in gawk mawk nawk awk
1813 # Extract the first word of "$ac_prog", so it can be a program name with args.
1814 set dummy $ac_prog; ac_word=$2
1815 echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817 if test "${ac_cv_prog_AWK+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 if test -n "$AWK"; then
1821 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 ac_cv_prog_AWK="$ac_prog"
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 if test -n "$AWK"; then
1841 echo "$as_me:$LINENO: result: $AWK" >&5
1842 echo "${ECHO_T}$AWK" >&6
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1848 test -n "$AWK" && break
1851 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1852 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1853 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1854 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 cat >conftest.make <<\_ACEOF
1859 @echo 'ac_maketemp="$(MAKE)"'
1861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1862 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1863 if test -n "$ac_maketemp"; then
1864 eval ac_cv_prog_make_${ac_make}_set=yes
1866 eval ac_cv_prog_make_${ac_make}_set=no
1870 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1877 SET_MAKE="MAKE=${MAKE-make}"
1880 rm -rf .tst 2>/dev/null
1881 mkdir .tst 2>/dev/null
1882 if test -d .tst; then
1887 rmdir .tst 2>/dev/null
1889 # test to see if srcdir already configured
1890 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1891 test -f $srcdir/config.status; then
1892 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1893 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # test whether we have cygpath
1898 if test -z "$CYGPATH_W"; then
1899 if (cygpath --version) >/dev/null 2>/dev/null; then
1900 CYGPATH_W='cygpath -w'
1907 # Define the identity of the package.
1909 VERSION='0.0.040304'
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE "$PACKAGE"
1917 cat >>confdefs.h <<_ACEOF
1918 #define VERSION "$VERSION"
1921 # Some tools Automake needs.
1923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1938 AMTAR=${AMTAR-"${am_missing_run}tar"}
1940 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1942 # Installed binaries are usually stripped using `strip' when the user
1943 # run `make install-strip'. However `strip' might not be the right
1944 # tool to use in cross-compilation environments, therefore Automake
1945 # will honor the `STRIP' environment variable to overrule this program.
1946 if test "$cross_compiling" != no; then
1947 if test -n "$ac_tool_prefix"; then
1948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1949 set dummy ${ac_tool_prefix}strip; ac_word=$2
1950 echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952 if test "${ac_cv_prog_STRIP+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 if test -n "$STRIP"; then
1956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 STRIP=$ac_cv_prog_STRIP
1975 if test -n "$STRIP"; then
1976 echo "$as_me:$LINENO: result: $STRIP" >&5
1977 echo "${ECHO_T}$STRIP" >&6
1979 echo "$as_me:$LINENO: result: no" >&5
1980 echo "${ECHO_T}no" >&6
1984 if test -z "$ac_cv_prog_STRIP"; then
1986 # Extract the first word of "strip", so it can be a program name with args.
1987 set dummy strip; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$ac_ct_STRIP"; then
1994 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_ac_ct_STRIP="strip"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2014 if test -n "$ac_ct_STRIP"; then
2015 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2016 echo "${ECHO_T}$ac_ct_STRIP" >&6
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2024 STRIP="$ac_cv_prog_STRIP"
2028 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2030 # We need awk for the "check" target. The system "awk" is bad on
2036 # Check whether --enable-shared or --disable-shared was given.
2037 if test "${enable_shared+set}" = set; then
2038 enableval="$enable_shared"
2039 p=${PACKAGE-default}
2041 yes) enable_shared=yes ;;
2042 no) enable_shared=no ;;
2045 # Look at the argument we got. We use all the common list separators.
2046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2047 for pkg in $enableval; do
2049 if test "X$pkg" = "X$p"; then
2060 # Check whether --enable-static or --disable-static was given.
2061 if test "${enable_static+set}" = set; then
2062 enableval="$enable_static"
2063 p=${PACKAGE-default}
2065 yes) enable_static=yes ;;
2066 no) enable_static=no ;;
2069 # Look at the argument we got. We use all the common list separators.
2070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2071 for pkg in $enableval; do
2073 if test "X$pkg" = "X$p"; then
2084 # Check whether --enable-fast-install or --disable-fast-install was given.
2085 if test "${enable_fast_install+set}" = set; then
2086 enableval="$enable_fast_install"
2087 p=${PACKAGE-default}
2089 yes) enable_fast_install=yes ;;
2090 no) enable_fast_install=no ;;
2092 enable_fast_install=no
2093 # Look at the argument we got. We use all the common list separators.
2094 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2095 for pkg in $enableval; do
2097 if test "X$pkg" = "X$p"; then
2098 enable_fast_install=yes
2105 enable_fast_install=yes
2108 DEPDIR="${am__leading_dot}deps"
2110 ac_config_commands="$ac_config_commands depfiles"
2113 am_make=${MAKE-make}
2114 cat > confinc << 'END'
2119 # If we don't find an include directive, just comment out the code.
2120 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2121 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2125 # First try GNU make style include.
2126 echo "include confinc" > confmf
2127 # We grep out `Entering directory' and `Leaving directory'
2128 # messages which can occur if `w' ends up in MAKEFLAGS.
2129 # In particular we don't look at `^make:' because GNU make might
2130 # be invoked under some other name (usually "gmake"), in which
2131 # case it prints its new name instead of `make'.
2132 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2137 # Now try BSD make style include.
2138 if test "$am__include" = "#"; then
2139 echo '.include "confinc"' > confmf
2140 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2141 am__include=.include
2148 echo "$as_me:$LINENO: result: $_am_result" >&5
2149 echo "${ECHO_T}$_am_result" >&6
2150 rm -f confinc confmf
2152 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2153 if test "${enable_dependency_tracking+set}" = set; then
2154 enableval="$enable_dependency_tracking"
2157 if test "x$enable_dependency_tracking" != xno; then
2158 am_depcomp="$ac_aux_dir/depcomp"
2163 if test "x$enable_dependency_tracking" != xno; then
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 if test -n "$ac_tool_prefix"; then
2179 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2180 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC="$CC" # Let the user override the test.
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 if test -n "$CC"; then
2207 echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2210 echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2215 if test -z "$ac_cv_prog_CC"; then
2217 # Extract the first word of "gcc", so it can be a program name with args.
2218 set dummy gcc; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 if test -n "$ac_ct_CC"; then
2225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_prog_ac_ct_CC="gcc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 echo "${ECHO_T}$ac_ct_CC" >&6
2248 echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2257 if test -z "$CC"; then
2258 if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2260 set dummy ${ac_tool_prefix}cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 if test -n "$CC"; then
2267 ac_cv_prog_CC="$CC" # Let the user override the test.
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_CC="${ac_tool_prefix}cc"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 if test -n "$CC"; then
2287 echo "$as_me:$LINENO: result: $CC" >&5
2288 echo "${ECHO_T}$CC" >&6
2290 echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2295 if test -z "$ac_cv_prog_CC"; then
2297 # Extract the first word of "cc", so it can be a program name with args.
2298 set dummy cc; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 if test -n "$ac_ct_CC"; then
2305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_ac_ct_CC="cc"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2324 if test -n "$ac_ct_CC"; then
2325 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2326 echo "${ECHO_T}$ac_ct_CC" >&6
2328 echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2338 if test -z "$CC"; then
2339 # Extract the first word of "cc", so it can be a program name with args.
2340 set dummy cc; ac_word=$2
2341 echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 test -z "$as_dir" && as_dir=.
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2358 ac_prog_rejected=yes
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 if test $ac_prog_rejected = yes; then
2369 # We found a bogon in the path, so make sure we never use it.
2370 set dummy $ac_cv_prog_CC
2372 if test $# != 0; then
2373 # We chose a different compiler from the bogus one.
2374 # However, it has the same basename, so the bogon will be chosen
2375 # first if we set CC to just the basename; use the full file name.
2377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2383 if test -n "$CC"; then
2384 echo "$as_me:$LINENO: result: $CC" >&5
2385 echo "${ECHO_T}$CC" >&6
2387 echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6
2392 if test -z "$CC"; then
2393 if test -n "$ac_tool_prefix"; then
2396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$CC"; then
2404 ac_cv_prog_CC="$CC" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 if test -n "$CC"; then
2424 echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6
2427 echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2431 test -n "$CC" && break
2434 if test -z "$CC"; then
2438 # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_ac_ct_CC="$ac_prog"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6
2469 echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2473 test -n "$ac_ct_CC" && break
2482 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: no acceptable C compiler found in \$PATH
2485 See \`config.log' for more details." >&2;}
2486 { (exit 1); exit 1; }; }
2488 # Provide some information about the compiler.
2489 echo "$as_me:$LINENO:" \
2490 "checking for C compiler version" >&5
2491 ac_compiler=`set X $ac_compile; echo $2`
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2493 (eval $ac_compiler --version </dev/null >&5) 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }
2497 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2498 (eval $ac_compiler -v </dev/null >&5) 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }
2502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2503 (eval $ac_compiler -V </dev/null >&5) 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }
2508 cat >conftest.$ac_ext <<_ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 ac_clean_files_save=$ac_clean_files
2524 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2525 # Try to create an executable without -o first, disregard a.out.
2526 # It will help us diagnose broken compilers, and finding out an intuition
2528 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2529 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2530 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2531 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2532 (eval $ac_link_default) 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; then
2536 # Find the output, starting from the most likely. This scheme is
2537 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2540 # Be careful to initialize this variable, since it used to be cached.
2541 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2543 # b.out is created by i960 compilers.
2544 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2546 test -f "$ac_file" || continue
2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2551 # This is the source file.
2554 # We found the default executable, but exeext='' is most
2558 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559 # FIXME: I believe we export ac_cv_exeext for Libtool,
2560 # but it would be cool to find out if it's true. Does anybody
2561 # maintain Libtool? --akim.
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2572 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&2;}
2576 { (exit 77); exit 77; }; }
2579 ac_exeext=$ac_cv_exeext
2580 echo "$as_me:$LINENO: result: $ac_file" >&5
2581 echo "${ECHO_T}$ac_file" >&6
2583 # Check the compiler produces executables we can run. If not, either
2584 # the compiler is broken, or we cross compile.
2585 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590 if { ac_try='./$ac_file'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2598 if test "$cross_compiling" = maybe; then
2601 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2602 If you meant to cross compile, use \`--host'.
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot run C compiled programs.
2605 If you meant to cross compile, use \`--host'.
2606 See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2611 echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2614 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2615 ac_clean_files=$ac_clean_files_save
2616 # Check the compiler produces executables we can run. If not, either
2617 # the compiler is broken, or we cross compile.
2618 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2619 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2620 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2621 echo "${ECHO_T}$cross_compiling" >&6
2623 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2624 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2626 (eval $ac_link) 2>&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; then
2630 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2631 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2632 # work properly (i.e., refer to `conftest.exe'), while it won't with
2634 for ac_file in conftest.exe conftest conftest.*; do
2635 test -f "$ac_file" || continue
2637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2638 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2645 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2646 See \`config.log' for more details." >&5
2647 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2648 See \`config.log' for more details." >&2;}
2649 { (exit 1); exit 1; }; }
2652 rm -f conftest$ac_cv_exeext
2653 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2654 echo "${ECHO_T}$ac_cv_exeext" >&6
2656 rm -f conftest.$ac_ext
2657 EXEEXT=$ac_cv_exeext
2659 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2660 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2661 if test "${ac_cv_objext+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 cat >conftest.$ac_ext <<_ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2679 rm -f conftest.o conftest.obj
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; then
2685 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2696 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2697 See \`config.log' for more details." >&5
2698 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2699 See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }
2703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2705 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2706 echo "${ECHO_T}$ac_cv_objext" >&6
2707 OBJEXT=$ac_cv_objext
2709 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2710 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2711 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 cat >conftest.$ac_ext <<_ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>conftest.er1
2736 grep -v '^ *+' conftest.er1 >conftest.err
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2764 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2766 GCC=`test $ac_compiler_gnu = yes && echo yes`
2767 ac_test_CFLAGS=${CFLAGS+set}
2768 ac_save_CFLAGS=$CFLAGS
2770 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2772 if test "${ac_cv_prog_cc_g+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>conftest.er1
2794 grep -v '^ *+' conftest.er1 >conftest.err
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2822 if test "$ac_test_CFLAGS" = set; then
2823 CFLAGS=$ac_save_CFLAGS
2824 elif test $ac_cv_prog_cc_g = yes; then
2825 if test "$GCC" = yes; then
2831 if test "$GCC" = yes; then
2837 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2838 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2839 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 ac_cv_prog_cc_stdc=no
2844 cat >conftest.$ac_ext <<_ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2852 #include <sys/types.h>
2853 #include <sys/stat.h>
2854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2855 struct buf { int x; };
2856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2857 static char *e (p, i)
2863 static char *f (char * (*g) (char **, int), char **p, ...)
2868 s = g (p, va_arg (v,int));
2873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2874 function prototypes and stuff, but not '\xHH' hex character constants.
2875 These don't provoke an error unfortunately, instead are silently treated
2876 as 'x'. The following induces an error, until -std1 is added to get
2877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2878 array size at least. It's necessary to write '\x00'==0 to get something
2879 that's true only with -std1. */
2880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2882 int test (int i, double x);
2883 struct s1 {int (*f) (int a);};
2884 struct s2 {int (*f) (double a);};
2885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2896 # Don't try gcc -ansi; that turns off useful extensions and
2897 # breaks some systems' header files.
2898 # AIX -qlanglvl=ansi
2899 # Ultrix and OSF/1 -std1
2900 # HP-UX 10.20 and later -Ae
2901 # HP-UX older versions -Aa -D_HPUX_SOURCE
2902 # SVR4 -Xc -D__EXTENSIONS__
2903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2905 CC="$ac_save_CC $ac_arg"
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 ac_cv_prog_cc_stdc=$ac_arg
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2934 rm -f conftest.err conftest.$ac_objext
2936 rm -f conftest.$ac_ext conftest.$ac_objext
2941 case "x$ac_cv_prog_cc_stdc" in
2943 echo "$as_me:$LINENO: result: none needed" >&5
2944 echo "${ECHO_T}none needed" >&6 ;;
2946 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2948 CC="$CC $ac_cv_prog_cc_stdc" ;;
2951 # Some people use a C++ compiler to compile C. Since we use `exit',
2952 # in C++ we need to declare it. In case someone uses the same compiler
2953 # for both compiling C and C++ we need to have the C++ compiler decide
2954 # the declaration of exit, since it's the most demanding environment.
2955 cat >conftest.$ac_ext <<_ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962 (eval $ac_compile) 2>conftest.er1
2964 grep -v '^ *+' conftest.er1 >conftest.err
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 for ac_declaration in \
2983 'extern "C" void std::exit (int) throw (); using std::exit;' \
2984 'extern "C" void std::exit (int); using std::exit;' \
2985 'extern "C" void exit (int) throw ();' \
2986 'extern "C" void exit (int);' \
2989 cat >conftest.$ac_ext <<_ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007 (eval $ac_compile) 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; } &&
3020 { ac_try='test -s conftest.$ac_objext'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3049 rm -f conftest.$ac_objext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051 (eval $ac_compile) 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; }; then
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3079 if test -n "$ac_declaration"; then
3080 echo '#ifdef __cplusplus' >>confdefs.h
3081 echo $ac_declaration >>confdefs.h
3082 echo '#endif' >>confdefs.h
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 depcc="$CC" am_compiler_list=
3099 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3100 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3101 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3105 # We make a subdir and do the tests there. Otherwise we can end up
3106 # making bogus files that we don't know about and never remove. For
3107 # instance it was reported that on HP-UX the gcc test will end up
3108 # making a dummy file named `D' -- because `-MD' means `put the output
3111 # Copy depcomp to subdir because otherwise we won't find it if we're
3112 # using a relative directory.
3113 cp "$am_depcomp" conftest.dir
3115 # We will build objects and dependencies in a subdirectory because
3116 # it helps to detect inapplicable dependency modes. For instance
3117 # both Tru64's cc and ICC support -MD to output dependencies as a
3118 # side effect of compilation, but ICC will put the dependencies in
3119 # the current directory while Tru64 will put them in the object
3123 am_cv_CC_dependencies_compiler_type=none
3124 if test "$am_compiler_list" = ""; then
3125 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3127 for depmode in $am_compiler_list; do
3128 # Setup a source with many dependencies, because some compilers
3129 # like to wrap large dependency lists on column 80 (with \), and
3130 # we should not choose a depcomp mode which is confused by this.
3132 # We need to recreate these files for each test, as the compiler may
3133 # overwrite some of them when testing with obscure command lines.
3134 # This happens at least with the AIX C compiler.
3136 for i in 1 2 3 4 5 6; do
3137 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3138 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3139 # Solaris 8's {/usr,}/bin/sh.
3140 touch sub/conftst$i.h
3142 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3146 # after this tag, mechanisms are not by side-effect, so they'll
3147 # only be used when explicitly requested
3148 if test "x$enable_dependency_tracking" = xyes; then
3156 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3157 # mode. It turns out that the SunPro C++ compiler does not properly
3158 # handle `-M -o', and we need to detect this.
3159 if depmode=$depmode \
3160 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3162 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3163 >/dev/null 2>conftest.err &&
3164 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3165 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3166 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3167 # icc doesn't choke on unknown options, it will just issue warnings
3168 # or remarks (even with -Werror). So we grep stderr for any message
3169 # that says an option was ignored or not supported.
3170 # When given -MP, icc 7.0 and 7.1 complain thusly:
3171 # icc: Command line warning: ignoring option '-M'; no argument required
3172 # The diagnosis changed in icc 8.0:
3173 # icc: Command line remark: option '-MP' not supported
3174 if (grep 'ignoring option' conftest.err ||
3175 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3176 am_cv_CC_dependencies_compiler_type=$depmode
3185 am_cv_CC_dependencies_compiler_type=none
3189 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3190 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3196 test "x$enable_dependency_tracking" != xno \
3197 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3199 am__fastdepCC_FALSE='#'
3201 am__fastdepCC_TRUE='#'
3202 am__fastdepCC_FALSE=
3206 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3207 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3208 if test "${lt_cv_path_SED+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 # Loop through the user's path and test for sed and gsed.
3212 # Then use that list of sed's as ones to test for truncation.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 for lt_ac_prog in sed gsed; do
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3221 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3228 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3229 # along with /bin/sed that truncates output.
3230 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3231 test ! -f $lt_ac_sed && break
3232 cat /dev/null > conftest.in
3234 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3235 # Check for GNU sed and select it if it is found.
3236 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3237 lt_cv_path_SED=$lt_ac_sed
3241 cat conftest.in conftest.in >conftest.tmp
3242 mv conftest.tmp conftest.in
3243 cp conftest.in conftest.nl
3245 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3246 cmp -s conftest.out conftest.nl || break
3247 # 10000 chars as input seems more than enough
3248 test $lt_ac_count -gt 10 && break
3249 lt_ac_count=`expr $lt_ac_count + 1`
3250 if test $lt_ac_count -gt $lt_ac_max; then
3251 lt_ac_max=$lt_ac_count
3252 lt_cv_path_SED=$lt_ac_sed
3260 echo "$as_me:$LINENO: result: $SED" >&5
3261 echo "${ECHO_T}$SED" >&6
3263 echo "$as_me:$LINENO: checking for egrep" >&5
3264 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3265 if test "${ac_cv_prog_egrep+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3269 then ac_cv_prog_egrep='grep -E'
3270 else ac_cv_prog_egrep='egrep'
3273 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3274 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3275 EGREP=$ac_cv_prog_egrep
3279 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3280 if test "${with_gnu_ld+set}" = set; then
3281 withval="$with_gnu_ld"
3282 test "$withval" = no || with_gnu_ld=yes
3287 if test "$GCC" = yes; then
3288 # Check if gcc -print-prog-name=ld gives a path.
3289 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3290 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3293 # gcc leaves a trailing carriage return which upsets mingw
3294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3299 # Accept absolute paths.
3301 re_direlt='/[^/][^/]*/\.\./'
3302 # Canonicalize the pathname of ld
3303 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3304 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3305 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3307 test -z "$LD" && LD="$ac_prog"
3310 # If it fails, then pretend we aren't using GCC.
3314 # If it is relative, then search for the first ld in PATH.
3318 elif test "$with_gnu_ld" = yes; then
3319 echo "$as_me:$LINENO: checking for GNU ld" >&5
3320 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3322 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3323 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3325 if test "${lt_cv_path_LD+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 if test -z "$LD"; then
3329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3330 for ac_dir in $PATH; do
3332 test -z "$ac_dir" && ac_dir=.
3333 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3334 lt_cv_path_LD="$ac_dir/$ac_prog"
3335 # Check to see if the program is GNU ld. I'd rather use --version,
3336 # but apparently some GNU ld's only accept -v.
3337 # Break only if it was the GNU/non-GNU ld that we prefer.
3338 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3339 *GNU* | *'with BFD'*)
3340 test "$with_gnu_ld" != no && break
3343 test "$with_gnu_ld" != yes && break
3350 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3355 if test -n "$LD"; then
3356 echo "$as_me:$LINENO: result: $LD" >&5
3357 echo "${ECHO_T}$LD" >&6
3359 echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3362 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3363 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3364 { (exit 1); exit 1; }; }
3365 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3366 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3367 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3371 case `$LD -v 2>&1 </dev/null` in
3372 *GNU* | *'with BFD'*)
3373 lt_cv_prog_gnu_ld=yes
3376 lt_cv_prog_gnu_ld=no
3380 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3381 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3382 with_gnu_ld=$lt_cv_prog_gnu_ld
3385 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3386 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3387 if test "${lt_cv_ld_reload_flag+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 lt_cv_ld_reload_flag='-r'
3392 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3393 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3394 reload_flag=$lt_cv_ld_reload_flag
3395 case $reload_flag in
3397 *) reload_flag=" $reload_flag" ;;
3399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3401 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3402 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3403 if test "${lt_cv_path_NM+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 if test -n "$NM"; then
3407 # Let the user override the test.
3410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3411 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3413 test -z "$ac_dir" && ac_dir=.
3414 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3415 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3416 # Check to see if the nm accepts a BSD-compat flag.
3417 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3418 # nm: unknown option "B" ignored
3419 # Tru64's nm complains that /dev/null is an invalid object file
3420 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3421 */dev/null* | *'Invalid file or object type'*)
3422 lt_cv_path_NM="$tmp_nm -B"
3426 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3428 lt_cv_path_NM="$tmp_nm -p"
3432 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3433 continue # so that we can try to find one that supports BSD flags
3440 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3443 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3444 echo "${ECHO_T}$lt_cv_path_NM" >&6
3447 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3448 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3450 if test "$LN_S" = "ln -s"; then
3451 echo "$as_me:$LINENO: result: yes" >&5
3452 echo "${ECHO_T}yes" >&6
3454 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3455 echo "${ECHO_T}no, using $LN_S" >&6
3458 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3459 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3460 if test "${lt_cv_deplibs_check_method+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 lt_cv_file_magic_cmd='$MAGIC_CMD'
3464 lt_cv_file_magic_test_file=
3465 lt_cv_deplibs_check_method='unknown'
3466 # Need to set the preceding variable on all platforms that support
3467 # interlibrary dependencies.
3468 # 'none' -- dependencies not supported.
3469 # `unknown' -- same as none, but documents that we really don't know.
3470 # 'pass_all' -- all dependencies passed with no checks.
3471 # 'test_compile' -- check by making test program.
3472 # 'file_magic [[regex]]' -- check by looking for files in library path
3473 # which responds to the $file_magic_cmd with a given extended regex.
3474 # If you have `file' or equivalent on your system and you're not sure
3475 # whether `pass_all' will *always* work, you probably want this one.
3479 lt_cv_deplibs_check_method=pass_all
3483 lt_cv_deplibs_check_method=pass_all
3487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3488 lt_cv_file_magic_cmd='/usr/bin/file -L'
3489 lt_cv_file_magic_test_file=/shlib/libc.so
3493 # func_win32_libid is a shell function defined in ltmain.sh
3494 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3495 lt_cv_file_magic_cmd='func_win32_libid'
3499 # Base MSYS/MinGW do not provide the 'file' command needed by
3500 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3501 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3502 lt_cv_file_magic_cmd='$OBJDUMP -f'
3505 darwin* | rhapsody*)
3506 lt_cv_deplibs_check_method=pass_all
3509 freebsd* | kfreebsd*-gnu)
3510 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3513 # Not sure whether the presence of OpenBSD here was a mistake.
3514 # Let's accept both of them until this is cleared up.
3515 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3516 lt_cv_file_magic_cmd=/usr/bin/file
3517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3521 lt_cv_deplibs_check_method=pass_all
3526 lt_cv_deplibs_check_method=pass_all
3529 hpux10.20* | hpux11*)
3530 lt_cv_file_magic_cmd=/usr/bin/file
3533 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3534 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3537 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]'
3538 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3542 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3547 irix5* | irix6* | nonstopux*)
3549 *-32|*"-32 ") libmagic=32-bit;;
3550 *-n32|*"-n32 ") libmagic=N32;;
3551 *-64|*"-64 ") libmagic=64-bit;;
3552 *) libmagic=never-match;;
3554 lt_cv_deplibs_check_method=pass_all
3557 # This must be Linux ELF.
3559 lt_cv_deplibs_check_method=pass_all
3562 netbsd* | knetbsd*-gnu)
3563 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3572 lt_cv_file_magic_cmd=/usr/bin/file
3573 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3577 lt_cv_deplibs_check_method=unknown
3581 lt_cv_file_magic_cmd=/usr/bin/file
3582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3586 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3590 osf3* | osf4* | osf5*)
3591 lt_cv_deplibs_check_method=pass_all
3595 lt_cv_deplibs_check_method=pass_all
3599 lt_cv_deplibs_check_method=pass_all
3602 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3603 case $host_vendor in
3605 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]'
3606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3609 lt_cv_deplibs_check_method=pass_all
3612 lt_cv_file_magic_cmd='/bin/file'
3613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3616 lt_cv_file_magic_cmd='/bin/file'
3617 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3618 lt_cv_file_magic_test_file=/lib/libc.so
3621 lt_cv_deplibs_check_method=pass_all
3626 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3627 lt_cv_deplibs_check_method=pass_all
3632 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3634 file_magic_cmd=$lt_cv_file_magic_cmd
3635 deplibs_check_method=$lt_cv_deplibs_check_method
3636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3641 # If no C compiler was specified, use CC.
3644 # Allow CC to be a program name with arguments.
3648 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3649 if test "${enable_libtool_lock+set}" = set; then
3650 enableval="$enable_libtool_lock"
3653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3655 # Some flags need to be propagated to the compiler or linker for good
3659 # Find out which ABI we are using.
3660 echo 'int i;' > conftest.$ac_ext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; then
3666 case `/usr/bin/file conftest.$ac_objext` in
3678 # Find out which ABI we are using.
3679 echo '#line 3679 "configure"' > conftest.$ac_ext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; then
3685 if test "$lt_cv_prog_gnu_ld" = yes; then
3686 case `/usr/bin/file conftest.$ac_objext` in
3688 LD="${LD-ld} -melf32bsmip"
3691 LD="${LD-ld} -melf32bmipn32"
3694 LD="${LD-ld} -melf64bmip"
3698 case `/usr/bin/file conftest.$ac_objext` in
3714 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3715 # Find out which ABI we are using.
3716 echo 'int i;' > conftest.$ac_ext
3717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718 (eval $ac_compile) 2>&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; then
3722 case "`/usr/bin/file conftest.o`" in
3726 LD="${LD-ld} -m elf_i386"
3728 ppc64-*linux*|powerpc64-*linux*)
3729 LD="${LD-ld} -m elf32ppclinux"
3732 LD="${LD-ld} -m elf_s390"
3735 LD="${LD-ld} -m elf32_sparc"
3742 LD="${LD-ld} -m elf_x86_64"
3744 ppc*-*linux*|powerpc*-*linux*)
3745 LD="${LD-ld} -m elf64ppc"
3748 LD="${LD-ld} -m elf64_s390"
3751 LD="${LD-ld} -m elf64_sparc"
3761 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3762 SAVE_CFLAGS="$CFLAGS"
3763 CFLAGS="$CFLAGS -belf"
3764 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3765 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3766 if test "${lt_cv_cc_needs_belf+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792 (eval $ac_link) 2>conftest.er1
3794 grep -v '^ *+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest$ac_exeext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 lt_cv_cc_needs_belf=yes
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3816 lt_cv_cc_needs_belf=no
3818 rm -f conftest.err conftest.$ac_objext \
3819 conftest$ac_exeext conftest.$ac_ext
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3828 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3829 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3830 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3831 CFLAGS="$SAVE_CFLAGS"
3837 need_locks="$enable_libtool_lock"
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3846 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3847 # On Suns, sometimes $CPP names a directory.
3848 if test -n "$CPP" && test -d "$CPP"; then
3851 if test -z "$CPP"; then
3852 if test "${ac_cv_prog_CPP+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 # Double quotes because CPP needs to be expanded
3856 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3859 for ac_c_preproc_warn_flag in '' yes
3861 # Use a header file that comes with gcc, so configuring glibc
3862 # with a fresh cross-compiler works.
3863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3864 # <limits.h> exists even on freestanding compilers.
3865 # On the NeXT, cc -E runs the code through the compiler's parser,
3866 # not just through cpp. "Syntax error" is here to catch this case.
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3874 # include <limits.h>
3876 # include <assert.h>
3880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3883 grep -v '^ *+' conftest.er1 >conftest.err
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } >/dev/null; then
3888 if test -s conftest.err; then
3889 ac_cpp_err=$ac_c_preproc_warn_flag
3890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3897 if test -z "$ac_cpp_err"; then
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 # Broken: fails on valid input.
3906 rm -f conftest.err conftest.$ac_ext
3908 # OK, works on sane cases. Now check whether non-existent headers
3909 # can be detected and how.
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 #include <ac_nonexistent.h>
3918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null; then
3926 if test -s conftest.err; then
3927 ac_cpp_err=$ac_c_preproc_warn_flag
3928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3935 if test -z "$ac_cpp_err"; then
3936 # Broken: success on invalid input.
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 # Passes both tests.
3946 rm -f conftest.err conftest.$ac_ext
3949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3950 rm -f conftest.err conftest.$ac_ext
3951 if $ac_preproc_ok; then
3963 echo "$as_me:$LINENO: result: $CPP" >&5
3964 echo "${ECHO_T}$CPP" >&6
3966 for ac_c_preproc_warn_flag in '' yes
3968 # Use a header file that comes with gcc, so configuring glibc
3969 # with a fresh cross-compiler works.
3970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971 # <limits.h> exists even on freestanding compilers.
3972 # On the NeXT, cc -E runs the code through the compiler's parser,
3973 # not just through cpp. "Syntax error" is here to catch this case.
3974 cat >conftest.$ac_ext <<_ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 # include <limits.h>
3983 # include <assert.h>
3987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3990 grep -v '^ *+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } >/dev/null; then
3995 if test -s conftest.err; then
3996 ac_cpp_err=$ac_c_preproc_warn_flag
3997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4004 if test -z "$ac_cpp_err"; then
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 # Broken: fails on valid input.
4013 rm -f conftest.err conftest.$ac_ext
4015 # OK, works on sane cases. Now check whether non-existent headers
4016 # can be detected and how.
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 #include <ac_nonexistent.h>
4025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4028 grep -v '^ *+' conftest.er1 >conftest.err
4030 cat conftest.err >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } >/dev/null; then
4033 if test -s conftest.err; then
4034 ac_cpp_err=$ac_c_preproc_warn_flag
4035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4042 if test -z "$ac_cpp_err"; then
4043 # Broken: success on invalid input.
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 # Passes both tests.
4053 rm -f conftest.err conftest.$ac_ext
4056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4057 rm -f conftest.err conftest.$ac_ext
4058 if $ac_preproc_ok; then
4061 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4062 See \`config.log' for more details." >&5
4063 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details." >&2;}
4065 { (exit 1); exit 1; }; }
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4076 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4077 if test "${ac_cv_header_stdc+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try='test -s conftest.$ac_objext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_cv_header_stdc=yes
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 ac_cv_header_stdc=no
4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129 if test $ac_cv_header_stdc = yes; then
4130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev/null 2>&1; then
4144 ac_cv_header_stdc=no
4150 if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162 $EGREP "free" >/dev/null 2>&1; then
4165 ac_cv_header_stdc=no
4171 if test $ac_cv_header_stdc = yes; then
4172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4173 if test "$cross_compiling" = yes; then
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4183 #if ((' ' & 0x0FF) == 0x020)
4184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4187 # define ISLOWER(c) \
4188 (('a' <= (c) && (c) <= 'i') \
4189 || ('j' <= (c) && (c) <= 'r') \
4190 || ('s' <= (c) && (c) <= 'z'))
4191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4199 for (i = 0; i < 256; i++)
4200 if (XOR (islower (i), ISLOWER (i))
4201 || toupper (i) != TOUPPER (i))
4206 rm -f conftest$ac_exeext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4208 (eval $ac_link) 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4219 echo "$as_me: program exited with status $ac_status" >&5
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_cv_header_stdc=no
4226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4230 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4231 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4232 if test $ac_cv_header_stdc = yes; then
4234 cat >>confdefs.h <<\_ACEOF
4235 #define STDC_HEADERS 1
4240 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4251 inttypes.h stdint.h unistd.h
4253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4254 echo "$as_me:$LINENO: checking for $ac_header" >&5
4255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 $ac_includes_default
4267 #include <$ac_header>
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>conftest.er1
4273 grep -v '^ *+' conftest.er1 >conftest.err
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } &&
4278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 eval "$as_ac_Header=yes"
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 eval "$as_ac_Header=no"
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302 cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312 for ac_header in dlfcn.h
4314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4316 echo "$as_me:$LINENO: checking for $ac_header" >&5
4317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4324 # Is the header compilable?
4325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4334 #include <$ac_header>
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; } &&
4351 { ac_try='test -s conftest.$ac_objext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_header_compiler=yes
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 ac_header_compiler=no
4364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4366 echo "${ECHO_T}$ac_header_compiler" >&6
4368 # Is the header present?
4369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <$ac_header>
4379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } >/dev/null; then
4387 if test -s conftest.err; then
4388 ac_cpp_err=$ac_c_preproc_warn_flag
4389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4396 if test -z "$ac_cpp_err"; then
4397 ac_header_preproc=yes
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 ac_header_preproc=no
4404 rm -f conftest.err conftest.$ac_ext
4405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4406 echo "${ECHO_T}$ac_header_preproc" >&6
4408 # So? What about this header?
4409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4415 ac_header_preproc=yes
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4432 ## ----------------------------------------- ##
4433 ## Report this to martin.quinson@ens-lyon.fr ##
4434 ## ----------------------------------------- ##
4437 sed "s/^/$as_me: WARNING: /" >&2
4440 echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 eval "$as_ac_Header=\$ac_header_preproc"
4447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4452 cat >>confdefs.h <<_ACEOF
4453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4461 ac_cpp='$CXXCPP $CPPFLAGS'
4462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4465 if test -n "$ac_tool_prefix"; then
4466 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_prog_CXX+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$CXX"; then
4476 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 if test -n "$CXX"; then
4496 echo "$as_me:$LINENO: result: $CXX" >&5
4497 echo "${ECHO_T}$CXX" >&6
4499 echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4503 test -n "$CXX" && break
4506 if test -z "$CXX"; then
4508 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4510 # Extract the first word of "$ac_prog", so it can be a program name with args.
4511 set dummy $ac_prog; ac_word=$2
4512 echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 if test -n "$ac_ct_CXX"; then
4518 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_ac_ct_CXX="$ac_prog"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4537 if test -n "$ac_ct_CXX"; then
4538 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4539 echo "${ECHO_T}$ac_ct_CXX" >&6
4541 echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6
4545 test -n "$ac_ct_CXX" && break
4547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4553 # Provide some information about the compiler.
4554 echo "$as_me:$LINENO:" \
4555 "checking for C++ compiler version" >&5
4556 ac_compiler=`set X $ac_compile; echo $2`
4557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4558 (eval $ac_compiler --version </dev/null >&5) 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }
4562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4563 (eval $ac_compiler -v </dev/null >&5) 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }
4567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4568 (eval $ac_compiler -V </dev/null >&5) 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }
4573 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1 >conftest.err
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4628 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4629 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4630 GXX=`test $ac_compiler_gnu = yes && echo yes`
4631 ac_test_CXXFLAGS=${CXXFLAGS+set}
4632 ac_save_CXXFLAGS=$CXXFLAGS
4634 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4635 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4636 if test "${ac_cv_prog_cxx_g+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>conftest.er1
4658 grep -v '^ *+' conftest.er1 >conftest.err
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_prog_cxx_g=yes
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4685 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4686 if test "$ac_test_CXXFLAGS" = set; then
4687 CXXFLAGS=$ac_save_CXXFLAGS
4688 elif test $ac_cv_prog_cxx_g = yes; then
4689 if test "$GXX" = yes; then
4695 if test "$GXX" = yes; then
4701 for ac_declaration in \
4703 'extern "C" void std::exit (int) throw (); using std::exit;' \
4704 'extern "C" void std::exit (int); using std::exit;' \
4705 'extern "C" void exit (int) throw ();' \
4706 'extern "C" void exit (int);' \
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4725 rm -f conftest.$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727 (eval $ac_compile) 2>conftest.er1
4729 grep -v '^ *+' conftest.er1 >conftest.err
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } &&
4734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; } &&
4740 { ac_try='test -s conftest.$ac_objext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754 cat >conftest.$ac_ext <<_ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4799 if test -n "$ac_declaration"; then
4800 echo '#ifdef __cplusplus' >>confdefs.h
4801 echo $ac_declaration >>confdefs.h
4802 echo '#endif' >>confdefs.h
4806 ac_cpp='$CXXCPP $CPPFLAGS'
4807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4811 depcc="$CXX" am_compiler_list=
4813 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4814 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4815 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4819 # We make a subdir and do the tests there. Otherwise we can end up
4820 # making bogus files that we don't know about and never remove. For
4821 # instance it was reported that on HP-UX the gcc test will end up
4822 # making a dummy file named `D' -- because `-MD' means `put the output
4825 # Copy depcomp to subdir because otherwise we won't find it if we're
4826 # using a relative directory.
4827 cp "$am_depcomp" conftest.dir
4829 # We will build objects and dependencies in a subdirectory because
4830 # it helps to detect inapplicable dependency modes. For instance
4831 # both Tru64's cc and ICC support -MD to output dependencies as a
4832 # side effect of compilation, but ICC will put the dependencies in
4833 # the current directory while Tru64 will put them in the object
4837 am_cv_CXX_dependencies_compiler_type=none
4838 if test "$am_compiler_list" = ""; then
4839 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4841 for depmode in $am_compiler_list; do
4842 # Setup a source with many dependencies, because some compilers
4843 # like to wrap large dependency lists on column 80 (with \), and
4844 # we should not choose a depcomp mode which is confused by this.
4846 # We need to recreate these files for each test, as the compiler may
4847 # overwrite some of them when testing with obscure command lines.
4848 # This happens at least with the AIX C compiler.
4850 for i in 1 2 3 4 5 6; do
4851 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4852 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4853 # Solaris 8's {/usr,}/bin/sh.
4854 touch sub/conftst$i.h
4856 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4860 # after this tag, mechanisms are not by side-effect, so they'll
4861 # only be used when explicitly requested
4862 if test "x$enable_dependency_tracking" = xyes; then
4870 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4871 # mode. It turns out that the SunPro C++ compiler does not properly
4872 # handle `-M -o', and we need to detect this.
4873 if depmode=$depmode \
4874 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4876 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4877 >/dev/null 2>conftest.err &&
4878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4879 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4881 # icc doesn't choke on unknown options, it will just issue warnings
4882 # or remarks (even with -Werror). So we grep stderr for any message
4883 # that says an option was ignored or not supported.
4884 # When given -MP, icc 7.0 and 7.1 complain thusly:
4885 # icc: Command line warning: ignoring option '-M'; no argument required
4886 # The diagnosis changed in icc 8.0:
4887 # icc: Command line remark: option '-MP' not supported
4888 if (grep 'ignoring option' conftest.err ||
4889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4890 am_cv_CXX_dependencies_compiler_type=$depmode
4899 am_cv_CXX_dependencies_compiler_type=none
4903 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4904 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4905 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4910 test "x$enable_dependency_tracking" != xno \
4911 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4912 am__fastdepCXX_TRUE=
4913 am__fastdepCXX_FALSE='#'
4915 am__fastdepCXX_TRUE='#'
4916 am__fastdepCXX_FALSE=
4921 ac_cpp='$CXXCPP $CPPFLAGS'
4922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4925 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4926 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4927 if test -z "$CXXCPP"; then
4928 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 # Double quotes because CXXCPP needs to be expanded
4932 for CXXCPP in "$CXX -E" "/lib/cpp"
4935 for ac_cxx_preproc_warn_flag in '' yes
4937 # Use a header file that comes with gcc, so configuring glibc
4938 # with a fresh cross-compiler works.
4939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940 # <limits.h> exists even on freestanding compilers.
4941 # On the NeXT, cc -E runs the code through the compiler's parser,
4942 # not just through cpp. "Syntax error" is here to catch this case.
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4950 # include <limits.h>
4952 # include <assert.h>
4956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4959 grep -v '^ *+' conftest.er1 >conftest.err
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } >/dev/null; then
4964 if test -s conftest.err; then
4965 ac_cpp_err=$ac_cxx_preproc_warn_flag
4966 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4973 if test -z "$ac_cpp_err"; then
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4979 # Broken: fails on valid input.
4982 rm -f conftest.err conftest.$ac_ext
4984 # OK, works on sane cases. Now check whether non-existent headers
4985 # can be detected and how.
4986 cat >conftest.$ac_ext <<_ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 #include <ac_nonexistent.h>
4994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_cxx_preproc_warn_flag
5004 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5011 if test -z "$ac_cpp_err"; then
5012 # Broken: success on invalid input.
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5018 # Passes both tests.
5022 rm -f conftest.err conftest.$ac_ext
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then
5032 ac_cv_prog_CXXCPP=$CXXCPP
5035 CXXCPP=$ac_cv_prog_CXXCPP
5037 ac_cv_prog_CXXCPP=$CXXCPP
5039 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5040 echo "${ECHO_T}$CXXCPP" >&6
5042 for ac_cxx_preproc_warn_flag in '' yes
5044 # Use a header file that comes with gcc, so configuring glibc
5045 # with a fresh cross-compiler works.
5046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047 # <limits.h> exists even on freestanding compilers.
5048 # On the NeXT, cc -E runs the code through the compiler's parser,
5049 # not just through cpp. "Syntax error" is here to catch this case.
5050 cat >conftest.$ac_ext <<_ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5057 # include <limits.h>
5059 # include <assert.h>
5063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5066 grep -v '^ *+' conftest.er1 >conftest.err
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } >/dev/null; then
5071 if test -s conftest.err; then
5072 ac_cpp_err=$ac_cxx_preproc_warn_flag
5073 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5080 if test -z "$ac_cpp_err"; then
5083 echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5086 # Broken: fails on valid input.
5089 rm -f conftest.err conftest.$ac_ext
5091 # OK, works on sane cases. Now check whether non-existent headers
5092 # can be detected and how.
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 #include <ac_nonexistent.h>
5101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5104 grep -v '^ *+' conftest.er1 >conftest.err
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null; then
5109 if test -s conftest.err; then
5110 ac_cpp_err=$ac_cxx_preproc_warn_flag
5111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5118 if test -z "$ac_cpp_err"; then
5119 # Broken: success on invalid input.
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5125 # Passes both tests.
5129 rm -f conftest.err conftest.$ac_ext
5132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133 rm -f conftest.err conftest.$ac_ext
5134 if $ac_preproc_ok; then
5137 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5138 See \`config.log' for more details." >&5
5139 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5140 See \`config.log' for more details." >&2;}
5141 { (exit 1); exit 1; }; }
5145 ac_cpp='$CXXCPP $CPPFLAGS'
5146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5152 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5153 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5155 if test -n "$ac_tool_prefix"; then
5156 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_F77+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test -n "$F77"; then
5166 ac_cv_prog_F77="$F77" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 if test -n "$F77"; then
5186 echo "$as_me:$LINENO: result: $F77" >&5
5187 echo "${ECHO_T}$F77" >&6
5189 echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5193 test -n "$F77" && break
5196 if test -z "$F77"; then
5198 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5200 # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 if test -n "$ac_ct_F77"; then
5208 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ac_ct_F77="$ac_prog"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5227 if test -n "$ac_ct_F77"; then
5228 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5229 echo "${ECHO_T}$ac_ct_F77" >&6
5231 echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6
5235 test -n "$ac_ct_F77" && break
5242 # Provide some information about the compiler.
5243 echo "$as_me:5243:" \
5244 "checking for Fortran 77 compiler version" >&5
5245 ac_compiler=`set X $ac_compile; echo $2`
5246 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5247 (eval $ac_compiler --version </dev/null >&5) 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }
5251 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5252 (eval $ac_compiler -v </dev/null >&5) 2>&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }
5256 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5257 (eval $ac_compiler -V </dev/null >&5) 2>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }
5263 # If we don't use `.F' as extension, the preprocessor is not run on the
5264 # input file. (Note that this only needs to work for GNU compilers.)
5267 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5268 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5269 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 cat >conftest.$ac_ext <<_ACEOF
5280 rm -f conftest.$ac_objext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>conftest.er1
5284 grep -v '^ *+' conftest.er1 >conftest.err
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; } &&
5295 { ac_try='test -s conftest.$ac_objext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5309 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5312 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5313 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5315 ac_test_FFLAGS=${FFLAGS+set}
5316 ac_save_FFLAGS=$FFLAGS
5318 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5319 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5320 if test "${ac_cv_prog_f77_g+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 cat >conftest.$ac_ext <<_ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_cv_prog_f77_g=yes
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5360 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5361 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5362 if test "$ac_test_FFLAGS" = set; then
5363 FFLAGS=$ac_save_FFLAGS
5364 elif test $ac_cv_prog_f77_g = yes; then
5365 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5371 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5378 G77=`test $ac_compiler_gnu = yes && echo yes`
5380 ac_cpp='$CPP $CPPFLAGS'
5381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5389 # find the maximum length of command line arguments
5390 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5391 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5392 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 # On DJGPP, this test can blow up pretty badly due to problems in libc
5401 # (any single argument exceeding 2000 bytes causes a buffer overrun
5402 # during glob expansion). Even if it were fixed, the result of this
5403 # check would be larger than it should be.
5404 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5408 # Under GNU Hurd, this test is not required because there is
5409 # no limit to the length of command line arguments.
5410 # Libtool will interpret -1 as no limit whatsoever
5411 lt_cv_sys_max_cmd_len=-1;
5415 # On Win9x/ME, this test blows up -- it succeeds, but takes
5416 # about 5 minutes as the teststring grows exponentially.
5417 # Worse, since 9x/ME are not pre-emptively multitasking,
5418 # you end up with a "frozen" computer, even though with patience
5419 # the test eventually succeeds (with a max line length of 256k).
5420 # Instead, let's just punt: use the minimum linelength reported by
5421 # all of the supported platforms: 8192 (on NT/2K/XP).
5422 lt_cv_sys_max_cmd_len=8192;
5426 # On AmigaOS with pdksh, this test takes hours, literally.
5427 # So we just punt and use a minimum line length of 8192.
5428 lt_cv_sys_max_cmd_len=8192;
5432 # If test is not a shell built-in, we'll probably end up computing a
5433 # maximum length that is only half of the actual maximum length, but
5435 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5436 = "XX$teststring") >/dev/null 2>&1 &&
5437 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5438 lt_cv_sys_max_cmd_len=$new_result &&
5439 test $i != 17 # 1/2 MB should be enough
5442 teststring=$teststring$teststring
5445 # Add a significant safety factor because C++ compilers can tack on massive
5446 # amounts of additional arguments before passing them to the linker.
5447 # It appears as though 1/2 is a usable value.
5448 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5454 if test -n $lt_cv_sys_max_cmd_len ; then
5455 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5456 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5458 echo "$as_me:$LINENO: result: none" >&5
5459 echo "${ECHO_T}none" >&6
5465 # Check for command to grab the raw symbol name followed by C symbol from nm.
5466 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5467 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5468 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 # These are sane defaults that work on at least a few old systems.
5473 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5475 # Character class describing NM global symbol codes.
5476 symcode='[BCDEGRST]'
5478 # Regexp to match symbols that can be accessed directly from C.
5479 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5481 # Transform the above into a raw symbol and a C symbol.
5482 symxfrm='\1 \2\3 \3'
5484 # Transform an extracted symbol line into a proper C declaration
5485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5487 # Transform an extracted symbol line into symbol name and symbol address
5488 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'"
5490 # Define system-specific variables.
5495 cygwin* | mingw* | pw32*)
5496 symcode='[ABCDGISTW]'
5498 hpux*) # Its linker distinguishes data from code symbols
5499 if test "$host_cpu" = ia64; then
5500 symcode='[ABCDEGRST]'
5502 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5503 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'"
5506 symcode='[BCDEGRST]'
5509 symcode='[BCDEGQRST]'
5519 # Handle CRLF in mingw tool chain
5523 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5527 # If we're using GNU nm, then use its standard symbol codes.
5528 case `$NM -V 2>&1` in
5529 *GNU* | *'with BFD'*)
5530 symcode='[ABCDGIRSTW]' ;;
5533 # Try without a prefix undercore, then with it.
5534 for ac_symprfx in "" "_"; do
5536 # Write the raw and C identifiers.
5537 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5539 # Check to see that the pipe works correctly.
5543 cat > conftest.$ac_ext <<EOF
5548 void nm_test_func(){}
5552 int main(){nm_test_var='a';nm_test_func();return(0);}
5555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5556 (eval $ac_compile) 2>&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; then
5560 # Now try to grab the symbols.
5562 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5563 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && test -s "$nlist"; then
5567 # Try sorting and uniquifying the output.
5568 if sort "$nlist" | uniq > "$nlist"T; then
5569 mv -f "$nlist"T "$nlist"
5574 # Make sure that we snagged all the symbols we need.
5575 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5576 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5577 cat <<EOF > conftest.$ac_ext
5583 # Now generate the symbol file.
5584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5586 cat <<EOF >> conftest.$ac_ext
5587 #if defined (__STDC__) && __STDC__
5588 # define lt_ptr_t void *
5590 # define lt_ptr_t char *
5594 /* The mapping between symbol names and symbols. */
5599 lt_preloaded_symbols[] =
5602 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5603 cat <<\EOF >> conftest.$ac_ext
5611 # Now try linking the two files.
5612 mv conftest.$ac_objext conftstm.$ac_objext
5613 lt_save_LIBS="$LIBS"
5614 lt_save_CFLAGS="$CFLAGS"
5615 LIBS="conftstm.$ac_objext"
5616 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618 (eval $ac_link) 2>&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5624 LIBS="$lt_save_LIBS"
5625 CFLAGS="$lt_save_CFLAGS"
5627 echo "cannot find nm_test_func in $nlist" >&5
5630 echo "cannot find nm_test_var in $nlist" >&5
5633 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5636 echo "$progname: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5639 rm -f conftest* conftst*
5641 # Do not use the global_symbol_pipe unless it works.
5642 if test "$pipe_works" = yes; then
5645 lt_cv_sys_global_symbol_pipe=
5651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5652 lt_cv_sys_global_symbol_to_cdecl=
5654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5655 echo "$as_me:$LINENO: result: failed" >&5
5656 echo "${ECHO_T}failed" >&6
5658 echo "$as_me:$LINENO: result: ok" >&5
5659 echo "${ECHO_T}ok" >&6
5662 echo "$as_me:$LINENO: checking for objdir" >&5
5663 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5664 if test "${lt_cv_objdir+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 rm -f .libs 2>/dev/null
5668 mkdir .libs 2>/dev/null
5669 if test -d .libs; then
5672 # MS-DOS does not allow filenames that begin with a dot.
5675 rmdir .libs 2>/dev/null
5677 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5678 echo "${ECHO_T}$lt_cv_objdir" >&6
5679 objdir=$lt_cv_objdir
5687 # AIX sometimes has problems with the GCC collect2 program. For some
5688 # reason, if we set the COLLECT_NAMES environment variable, the problems
5689 # vanish in a puff of smoke.
5690 if test "X${COLLECT_NAMES+set}" != Xset; then
5692 export COLLECT_NAMES
5697 # Sed substitution that helps us do robust quoting. It backslashifies
5698 # metacharacters that are still active within double-quoted strings.
5699 Xsed='sed -e s/^X//'
5700 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5702 # Same as above, but do not quote variable references.
5703 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5705 # Sed substitution to delay expansion of an escaped shell variable in a
5706 # double_quote_subst'ed string.
5707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5709 # Sed substitution to avoid accidental globbing in evaled expressions
5710 no_glob_subst='s/\*/\\\*/g'
5716 default_ofile=libtool
5717 can_build_shared=yes
5719 # All known linkers require a `.a' archive for static linking (except M$VC,
5720 # which needs '.lib').
5722 ltmain="$ac_aux_dir/ltmain.sh"
5723 ofile="$default_ofile"
5724 with_gnu_ld="$lt_cv_prog_gnu_ld"
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}ar; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_AR+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 if test -n "$AR"; then
5735 ac_cv_prog_AR="$AR" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_AR="${ac_tool_prefix}ar"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 if test -n "$AR"; then
5755 echo "$as_me:$LINENO: result: $AR" >&5
5756 echo "${ECHO_T}$AR" >&6
5758 echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5763 if test -z "$ac_cv_prog_AR"; then
5765 # Extract the first word of "ar", so it can be a program name with args.
5766 set dummy ar; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 if test -n "$ac_ct_AR"; then
5773 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_AR="ar"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5793 if test -n "$ac_ct_AR"; then
5794 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5795 echo "${ECHO_T}$ac_ct_AR" >&6
5797 echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5809 echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811 if test "${ac_cv_prog_RANLIB+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 if test -n "$RANLIB"; then
5815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 RANLIB=$ac_cv_prog_RANLIB
5834 if test -n "$RANLIB"; then
5835 echo "$as_me:$LINENO: result: $RANLIB" >&5
5836 echo "${ECHO_T}$RANLIB" >&6
5838 echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6
5843 if test -z "$ac_cv_prog_RANLIB"; then
5844 ac_ct_RANLIB=$RANLIB
5845 # Extract the first word of "ranlib", so it can be a program name with args.
5846 set dummy ranlib; ac_word=$2
5847 echo "$as_me:$LINENO: checking for $ac_word" >&5
5848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 if test -n "$ac_ct_RANLIB"; then
5853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_ac_ct_RANLIB="ranlib"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5873 if test -n "$ac_ct_RANLIB"; then
5874 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5875 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5877 echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6
5881 RANLIB=$ac_ct_RANLIB
5883 RANLIB="$ac_cv_prog_RANLIB"
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 if test -n "$STRIP"; then
5895 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 STRIP=$ac_cv_prog_STRIP
5914 if test -n "$STRIP"; then
5915 echo "$as_me:$LINENO: result: $STRIP" >&5
5916 echo "${ECHO_T}$STRIP" >&6
5918 echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5923 if test -z "$ac_cv_prog_STRIP"; then
5925 # Extract the first word of "strip", so it can be a program name with args.
5926 set dummy strip; ac_word=$2
5927 echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5929 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 if test -n "$ac_ct_STRIP"; then
5933 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_prog_ac_ct_STRIP="strip"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5952 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5953 if test -n "$ac_ct_STRIP"; then
5954 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5955 echo "${ECHO_T}$ac_ct_STRIP" >&6
5957 echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5963 STRIP="$ac_cv_prog_STRIP"
5968 old_CFLAGS="$CFLAGS"
5970 # Set sane defaults for various variables
5971 test -z "$AR" && AR=ar
5972 test -z "$AR_FLAGS" && AR_FLAGS=cru
5973 test -z "$AS" && AS=as
5974 test -z "$CC" && CC=cc
5975 test -z "$LTCC" && LTCC=$CC
5976 test -z "$DLLTOOL" && DLLTOOL=dlltool
5977 test -z "$LD" && LD=ld
5978 test -z "$LN_S" && LN_S="ln -s"
5979 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5980 test -z "$NM" && NM=nm
5981 test -z "$SED" && SED=sed
5982 test -z "$OBJDUMP" && OBJDUMP=objdump
5983 test -z "$RANLIB" && RANLIB=:
5984 test -z "$STRIP" && STRIP=:
5985 test -z "$ac_objext" && ac_objext=o
5987 # Determine commands to create old-style static archives.
5988 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5989 old_postinstall_cmds='chmod 644 $oldlib'
5990 old_postuninstall_cmds=
5992 if test -n "$RANLIB"; then
5995 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5998 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6001 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6004 # Only perform the check for file, if the check method requires it
6005 case $deplibs_check_method in
6007 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6008 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6009 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6010 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6018 lt_save_MAGIC_CMD="$MAGIC_CMD"
6019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6021 for ac_dir in $ac_dummy; do
6023 test -z "$ac_dir" && ac_dir=.
6024 if test -f $ac_dir/${ac_tool_prefix}file; then
6025 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6026 if test -n "$file_magic_test_file"; then
6027 case $deplibs_check_method in
6029 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6032 $EGREP "$file_magic_regex" > /dev/null; then
6037 *** Warning: the command libtool uses to detect shared libraries,
6038 *** $file_magic_cmd, produces output that libtool cannot recognize.
6039 *** The result is that libtool may fail to recognize shared libraries
6040 *** as such. This will affect the creation of libtool libraries that
6041 *** depend on shared libraries, but programs linked with such libtool
6042 *** libraries will work regardless of this problem. Nevertheless, you
6043 *** may want to report the problem to your system manager and/or to
6044 *** bug-libtool@gnu.org
6054 MAGIC_CMD="$lt_save_MAGIC_CMD"
6059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6060 if test -n "$MAGIC_CMD"; then
6061 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6062 echo "${ECHO_T}$MAGIC_CMD" >&6
6064 echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6
6068 if test -z "$lt_cv_path_MAGIC_CMD"; then
6069 if test -n "$ac_tool_prefix"; then
6070 echo "$as_me:$LINENO: checking for file" >&5
6071 echo $ECHO_N "checking for file... $ECHO_C" >&6
6072 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6080 lt_save_MAGIC_CMD="$MAGIC_CMD"
6081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6082 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6083 for ac_dir in $ac_dummy; do
6085 test -z "$ac_dir" && ac_dir=.
6086 if test -f $ac_dir/file; then
6087 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6088 if test -n "$file_magic_test_file"; then
6089 case $deplibs_check_method in
6091 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6093 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6094 $EGREP "$file_magic_regex" > /dev/null; then
6099 *** Warning: the command libtool uses to detect shared libraries,
6100 *** $file_magic_cmd, produces output that libtool cannot recognize.
6101 *** The result is that libtool may fail to recognize shared libraries
6102 *** as such. This will affect the creation of libtool libraries that
6103 *** depend on shared libraries, but programs linked with such libtool
6104 *** libraries will work regardless of this problem. Nevertheless, you
6105 *** may want to report the problem to your system manager and/or to
6106 *** bug-libtool@gnu.org
6116 MAGIC_CMD="$lt_save_MAGIC_CMD"
6121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6122 if test -n "$MAGIC_CMD"; then
6123 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6124 echo "${ECHO_T}$MAGIC_CMD" >&6
6126 echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6
6142 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6143 if test "${enable_libtool_lock+set}" = set; then
6144 enableval="$enable_libtool_lock"
6147 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6150 # Check whether --with-pic or --without-pic was given.
6151 if test "${with_pic+set}" = set; then
6157 test -z "$pic_mode" && pic_mode=default
6159 # Use C for the default configuration in the libtool script
6163 ac_cpp='$CPP $CPPFLAGS'
6164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169 # Source file extension for C test sources.
6172 # Object file extension for compiled C test sources.
6176 # Code to be used in simple compile tests
6177 lt_simple_compile_test_code="int some_variable = 0;\n"
6179 # Code to be used in simple link tests
6180 lt_simple_link_test_code='int main(){return(0);}\n'
6183 # If no C compiler was specified, use CC.
6186 # Allow CC to be a program name with arguments.
6191 # Check for any special shared library compilation flags.
6194 if test "$GCC" = no; then
6197 lt_prog_cc_shlib='-belf'
6201 if test -n "$lt_prog_cc_shlib"; then
6202 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6203 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6204 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6206 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6207 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6208 lt_cv_prog_cc_can_build_shared=no
6214 # Check to make sure the static flag actually works.
6216 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6217 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6218 if test "${lt_prog_compiler_static_works+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 lt_prog_compiler_static_works=no
6222 save_LDFLAGS="$LDFLAGS"
6223 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6224 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6226 # The compiler can only warn and ignore the option if not recognized
6227 # So say no if there are warnings
6228 if test -s conftest.err; then
6229 # Append any errors to the config.log.
6230 cat conftest.err 1>&5
6232 lt_prog_compiler_static_works=yes
6236 LDFLAGS="$save_LDFLAGS"
6239 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6240 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6242 if test x"$lt_prog_compiler_static_works" = xyes; then
6245 lt_prog_compiler_static=
6251 lt_prog_compiler_no_builtin_flag=
6253 if test "$GCC" = yes; then
6254 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6257 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6258 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6259 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 lt_cv_prog_compiler_rtti_exceptions=no
6263 ac_outfile=conftest.$ac_objext
6264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6265 lt_compiler_flag="-fno-rtti -fno-exceptions"
6266 # Insert the option either (1) after the last *FLAGS variable, or
6267 # (2) before a word containing "conftest.", or (3) at the end.
6268 # Note that $ac_compile itself does not contain backslashes and begins
6269 # with a dollar sign (not a hyphen), so the echo should work correctly.
6270 # The option is referenced via a variable to avoid confusing sed.
6271 lt_compile=`echo "$ac_compile" | $SED \
6272 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6274 -e 's:$: $lt_compiler_flag:'`
6275 (eval echo "\"\$as_me:6275: $lt_compile\"" >&5)
6276 (eval "$lt_compile" 2>conftest.err)
6278 cat conftest.err >&5
6279 echo "$as_me:6279: \$? = $ac_status" >&5
6280 if (exit $ac_status) && test -s "$ac_outfile"; then
6281 # The compiler can only warn and ignore the option if not recognized
6282 # So say no if there are warnings
6283 if test ! -s conftest.err; then
6284 lt_cv_prog_compiler_rtti_exceptions=yes
6290 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6291 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6293 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6294 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6301 lt_prog_compiler_wl=
6302 lt_prog_compiler_pic=
6303 lt_prog_compiler_static=
6305 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6306 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6308 if test "$GCC" = yes; then
6309 lt_prog_compiler_wl='-Wl,'
6310 lt_prog_compiler_static='-static'
6314 # All AIX code is PIC.
6315 if test "$host_cpu" = ia64; then
6316 # AIX 5 now supports IA64 processor
6317 lt_prog_compiler_static='-Bstatic'
6322 # FIXME: we need at least 68020 code to build shared libraries, but
6323 # adding the `-m68020' flag to GCC prevents building anything better,
6325 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6328 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6329 # PIC is the default for these OSes.
6332 mingw* | pw32* | os2*)
6333 # This hack is so that the source file can tell whether it is being
6334 # built for inclusion in a dll (and should export symbols for example).
6335 lt_prog_compiler_pic='-DDLL_EXPORT'
6338 darwin* | rhapsody*)
6339 # PIC is the default on this platform
6340 # Common symbols not allowed in MH_DYLIB files
6341 lt_prog_compiler_pic='-fno-common'
6345 # Just because we use GCC doesn't mean we suddenly get shared libraries
6346 # on systems that don't support them.
6347 lt_prog_compiler_can_build_shared=no
6352 if test -d /usr/nec; then
6353 lt_prog_compiler_pic=-Kconform_pic
6358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6365 lt_prog_compiler_pic='-fPIC'
6371 lt_prog_compiler_pic='-fPIC'
6375 # PORTME Check for flag to pass linker flags through the system compiler.
6378 lt_prog_compiler_wl='-Wl,'
6379 if test "$host_cpu" = ia64; then
6380 # AIX 5 now supports IA64 processor
6381 lt_prog_compiler_static='-Bstatic'
6383 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6387 mingw* | pw32* | os2*)
6388 # This hack is so that the source file can tell whether it is being
6389 # built for inclusion in a dll (and should export symbols for example).
6390 lt_prog_compiler_pic='-DDLL_EXPORT'
6393 hpux9* | hpux10* | hpux11*)
6394 lt_prog_compiler_wl='-Wl,'
6395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6402 lt_prog_compiler_pic='+Z'
6405 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6406 lt_prog_compiler_static='${wl}-a ${wl}archive'
6409 irix5* | irix6* | nonstopux*)
6410 lt_prog_compiler_wl='-Wl,'
6411 # PIC (with -KPIC) is the default.
6412 lt_prog_compiler_static='-non_shared'
6416 lt_prog_compiler_pic='-KPIC'
6417 lt_prog_compiler_static='-Bstatic'
6423 lt_prog_compiler_wl='-Wl,'
6424 lt_prog_compiler_pic='-KPIC'
6425 lt_prog_compiler_static='-static'
6428 lt_prog_compiler_wl='-Wl,'
6429 # All Alpha code is PIC.
6430 lt_prog_compiler_static='-non_shared'
6435 osf3* | osf4* | osf5*)
6436 lt_prog_compiler_wl='-Wl,'
6437 # All OSF/1 code is PIC.
6438 lt_prog_compiler_static='-non_shared'
6442 lt_prog_compiler_pic='-Kpic'
6443 lt_prog_compiler_static='-dn'
6447 lt_prog_compiler_wl='-Wl,'
6448 lt_prog_compiler_pic='-KPIC'
6449 lt_prog_compiler_static='-Bstatic'
6453 lt_prog_compiler_wl='-Qoption ld '
6454 lt_prog_compiler_pic='-PIC'
6455 lt_prog_compiler_static='-Bstatic'
6458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6459 lt_prog_compiler_wl='-Wl,'
6460 lt_prog_compiler_pic='-KPIC'
6461 lt_prog_compiler_static='-Bstatic'
6465 if test -d /usr/nec ;then
6466 lt_prog_compiler_pic='-Kconform_pic'
6467 lt_prog_compiler_static='-Bstatic'
6472 lt_prog_compiler_pic='-pic'
6473 lt_prog_compiler_static='-Bstatic'
6477 lt_prog_compiler_can_build_shared=no
6482 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6483 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6486 # Check to make sure the PIC flag actually works.
6488 if test -n "$lt_prog_compiler_pic"; then
6490 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6491 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6492 if test "${lt_prog_compiler_pic_works+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 lt_prog_compiler_pic_works=no
6496 ac_outfile=conftest.$ac_objext
6497 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6498 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6499 # Insert the option either (1) after the last *FLAGS variable, or
6500 # (2) before a word containing "conftest.", or (3) at the end.
6501 # Note that $ac_compile itself does not contain backslashes and begins
6502 # with a dollar sign (not a hyphen), so the echo should work correctly.
6503 # The option is referenced via a variable to avoid confusing sed.
6504 lt_compile=`echo "$ac_compile" | $SED \
6505 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6507 -e 's:$: $lt_compiler_flag:'`
6508 (eval echo "\"\$as_me:6508: $lt_compile\"" >&5)
6509 (eval "$lt_compile" 2>conftest.err)
6511 cat conftest.err >&5
6512 echo "$as_me:6512: \$? = $ac_status" >&5
6513 if (exit $ac_status) && test -s "$ac_outfile"; then
6514 # The compiler can only warn and ignore the option if not recognized
6515 # So say no if there are warnings
6516 if test ! -s conftest.err; then
6517 lt_prog_compiler_pic_works=yes
6523 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6524 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6526 if test x"$lt_prog_compiler_pic_works" = xyes; then
6527 case $lt_prog_compiler_pic in
6529 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6532 lt_prog_compiler_pic=
6533 lt_prog_compiler_can_build_shared=no
6538 # For platforms which do not support PIC, -DPIC is meaningless:
6540 lt_prog_compiler_pic=
6543 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6547 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6548 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6549 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 lt_cv_prog_compiler_c_o=no
6553 $rm -r conftest 2>/dev/null
6557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6559 lt_compiler_flag="-o out/conftest2.$ac_objext"
6560 # Insert the option either (1) after the last *FLAGS variable, or
6561 # (2) before a word containing "conftest.", or (3) at the end.
6562 # Note that $ac_compile itself does not contain backslashes and begins
6563 # with a dollar sign (not a hyphen), so the echo should work correctly.
6564 lt_compile=`echo "$ac_compile" | $SED \
6565 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6567 -e 's:$: $lt_compiler_flag:'`
6568 (eval echo "\"\$as_me:6568: $lt_compile\"" >&5)
6569 (eval "$lt_compile" 2>out/conftest.err)
6571 cat out/conftest.err >&5
6572 echo "$as_me:6572: \$? = $ac_status" >&5
6573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6575 # The compiler can only warn and ignore the option if not recognized
6576 # So say no if there are warnings
6577 if test ! -s out/conftest.err; then
6578 lt_cv_prog_compiler_c_o=yes
6583 # SGI C++ compiler will create directory out/ii_files/ for
6584 # template instantiation
6585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6586 $rm out/* && rmdir out
6592 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6596 hard_links="nottested"
6597 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6598 # do not overwrite the value of need_locks provided by the user
6599 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6605 ln conftest.a conftest.b 2>&5 || hard_links=no
6606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6607 echo "$as_me:$LINENO: result: $hard_links" >&5
6608 echo "${ECHO_T}$hard_links" >&6
6609 if test "$hard_links" = no; then
6610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6618 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6622 allow_undefined_flag=
6623 enable_shared_with_static_runtimes=no
6625 archive_expsym_cmds=
6626 old_archive_From_new_cmds=
6627 old_archive_from_expsyms_cmds=
6628 export_dynamic_flag_spec=
6629 whole_archive_flag_spec=
6630 thread_safe_flag_spec=
6631 hardcode_libdir_flag_spec=
6632 hardcode_libdir_flag_spec_ld=
6633 hardcode_libdir_separator=
6636 hardcode_shlibpath_var=unsupported
6637 link_all_deplibs=unknown
6638 hardcode_automatic=no
6641 always_export_symbols=no
6642 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6643 # include_expsyms should be a list of space-separated symbols to be *always*
6644 # included in the symbol list
6646 # exclude_expsyms can be an extended regexp of symbols to exclude
6647 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6648 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6649 # as well as any symbol that contains `d'.
6650 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6652 # platforms (ab)use it in PIC code, but their linkers get confused if
6653 # the symbol is explicitly referenced. Since portable code cannot
6654 # rely on this symbol name, it's probably fine to never include it in
6655 # preloaded symbol tables.
6656 extract_expsyms_cmds=
6659 cygwin* | mingw* | pw32*)
6660 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6661 # When not using gcc, we currently assume that we are using
6662 # Microsoft Visual C++.
6663 if test "$GCC" != yes; then
6673 if test "$with_gnu_ld" = yes; then
6674 # If archive_cmds runs LD, not CC, wlarc should be empty
6677 # See if GNU ld supports shared libraries.
6679 aix3* | aix4* | aix5*)
6680 # On AIX/PPC, the GNU linker is very broken
6681 if test "$host_cpu" != ia64; then
6685 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6686 *** to be unable to reliably create shared libraries on AIX.
6687 *** Therefore, libtool is disabling shared libraries support. If you
6688 *** really care for shared libraries, you may want to modify your PATH
6689 *** so that a non-GNU linker is found, and then restart.
6696 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)'
6697 hardcode_libdir_flag_spec='-L$libdir'
6698 hardcode_minus_L=yes
6700 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6701 # that the semantics of dynamic libraries on AmigaOS, at least up
6702 # to version 4, is to share data among multiple programs linked
6703 # with the same dynamic library. Since this doesn't match the
6704 # behavior of shared libraries on other platforms, we can't use
6710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6711 allow_undefined_flag=unsupported
6712 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6713 # support --undefined. This deserves some investigation. FIXME
6714 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6720 cygwin* | mingw* | pw32*)
6721 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6722 # as there is no search path for DLLs.
6723 hardcode_libdir_flag_spec='-L$libdir'
6724 allow_undefined_flag=unsupported
6725 always_export_symbols=no
6726 enable_shared_with_static_runtimes=yes
6727 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6729 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6731 # If the export-symbols file already is a .def file (1st line
6732 # is EXPORTS), use it as is; otherwise, prepend...
6733 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6734 cp $export_symbols $output_objdir/$soname.def;
6736 echo EXPORTS > $output_objdir/$soname.def;
6737 cat $export_symbols >> $output_objdir/$soname.def;
6739 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6745 netbsd* | knetbsd*-gnu)
6746 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6747 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6756 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6760 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6761 *** create shared libraries on Solaris systems. Therefore, libtool
6762 *** is disabling shared libraries support. We urge you to upgrade GNU
6763 *** binutils to release 2.9.1 or newer. Another option is to modify
6764 *** your PATH or compiler configuration so that the native linker is
6765 *** used, and then restart.
6768 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6777 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6780 hardcode_shlibpath_var=no
6784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6785 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6786 archive_cmds="$tmp_archive_cmds"
6787 supports_anon_versioning=no
6788 case `$LD -v 2>/dev/null` in
6789 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6792 *\ 2.11.*) ;; # other 2.11 versions
6793 *) supports_anon_versioning=yes ;;
6795 if test $supports_anon_versioning = yes; then
6796 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6798 $echo "local: *; };" >> $output_objdir/$libname.ver~
6799 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6801 archive_expsym_cmds="$tmp_archive_cmds"
6810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6819 if test "$ld_shlibs" = yes; then
6820 runpath_var=LD_RUN_PATH
6821 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6822 export_dynamic_flag_spec='${wl}--export-dynamic'
6823 # ancient GNU ld didn't support --whole-archive et. al.
6824 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6825 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6827 whole_archive_flag_spec=
6831 # PORTME fill in a description of your system's linker (not GNU ld)
6834 allow_undefined_flag=unsupported
6835 always_export_symbols=yes
6836 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'
6837 # Note: this linker hardcodes the directories in LIBPATH if there
6838 # are no directories specified by -L.
6839 hardcode_minus_L=yes
6840 if test "$GCC" = yes && test -z "$link_static_flag"; then
6841 # Neither direct hardcoding nor static linking is supported with a
6843 hardcode_direct=unsupported
6848 if test "$host_cpu" = ia64; then
6849 # On IA64, the linker does run time linking by default, so we don't
6850 # have to do anything special.
6851 aix_use_runtimelinking=no
6852 exp_sym_flag='-Bexport'
6855 # If we're using GNU nm, then we don't want the "-C" option.
6856 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6857 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6858 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'
6860 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'
6862 aix_use_runtimelinking=no
6864 # Test if we are trying to use run time linking or normal
6865 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6866 # need to do runtime linking.
6867 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6868 for ld_flag in $LDFLAGS; do
6869 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6870 aix_use_runtimelinking=yes
6876 exp_sym_flag='-bexport'
6877 no_entry_flag='-bnoentry'
6880 # When large executables or shared objects are built, AIX ld can
6881 # have problems creating the table of contents. If linking a library
6882 # or program results in "error TOC overflow" add -mminimal-toc to
6883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6888 hardcode_libdir_separator=':'
6889 link_all_deplibs=yes
6891 if test "$GCC" = yes; then
6892 case $host_os in aix4.012|aix4.012.*)
6893 # We only want to do this on AIX 4.2 and lower, the check
6894 # below for broken collect2 doesn't work under 4.3+
6895 collect2name=`${CC} -print-prog-name=collect2`
6896 if test -f "$collect2name" && \
6897 strings "$collect2name" | grep resolve_lib_name >/dev/null
6899 # We have reworked collect2
6902 # We have old collect2
6903 hardcode_direct=unsupported
6904 # It fails to find uninstalled libraries when the uninstalled
6905 # path is not listed in the libpath. Setting hardcode_minus_L
6906 # to unsupported forces relinking
6907 hardcode_minus_L=yes
6908 hardcode_libdir_flag_spec='-L$libdir'
6909 hardcode_libdir_separator=
6912 shared_flag='-shared'
6915 if test "$host_cpu" = ia64; then
6916 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6917 # chokes on -Wl,-G. The following line is correct:
6920 if test "$aix_use_runtimelinking" = yes; then
6921 shared_flag='${wl}-G'
6923 shared_flag='${wl}-bM:SRE'
6928 # It seems that -bexpall does not export symbols beginning with
6929 # underscore (_), so it is better to generate a list of symbols to export.
6930 always_export_symbols=yes
6931 if test "$aix_use_runtimelinking" = yes; then
6932 # Warning - without using the other runtime loading flags (-brtl),
6933 # -berok will link without error, but may produce a broken library.
6934 allow_undefined_flag='-berok'
6935 # Determine the default libpath from the value encoded in an empty executable.
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>conftest.er1
6955 grep -v '^ *+' conftest.er1 >conftest.err
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try='test -s conftest$ac_exeext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6975 # Check for a 64-bit object if we didn't find anything.
6976 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; }
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6983 rm -f conftest.err conftest.$ac_objext \
6984 conftest$ac_exeext conftest.$ac_ext
6985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6987 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6988 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"
6990 if test "$host_cpu" = ia64; then
6991 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6992 allow_undefined_flag="-z nodefs"
6993 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"
6995 # Determine the default libpath from the value encoded in an empty executable.
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest$ac_exeext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7035 # Check for a 64-bit object if we didn't find anything.
7036 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; }
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7043 rm -f conftest.err conftest.$ac_objext \
7044 conftest$ac_exeext conftest.$ac_ext
7045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7047 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7048 # Warning - without using the other run time loading flags,
7049 # -berok will link without error, but may produce a broken library.
7050 no_undefined_flag=' ${wl}-bernotok'
7051 allow_undefined_flag=' ${wl}-berok'
7052 # -bexpall does not export symbols beginning with underscore (_)
7053 always_export_symbols=yes
7054 # Exported symbols can be pulled into shared objects from archives
7055 whole_archive_flag_spec=' '
7056 archive_cmds_need_lc=yes
7057 # This is similar to how AIX traditionally builds it's shared libraries.
7058 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'
7064 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)'
7065 hardcode_libdir_flag_spec='-L$libdir'
7066 hardcode_minus_L=yes
7067 # see comment about different semantics on the GNU ld section
7072 export_dynamic_flag_spec=-rdynamic
7075 cygwin* | mingw* | pw32*)
7076 # When not using gcc, we currently assume that we are using
7077 # Microsoft Visual C++.
7078 # hardcode_libdir_flag_spec is actually meaningless, as there is
7079 # no search path for DLLs.
7080 hardcode_libdir_flag_spec=' '
7081 allow_undefined_flag=unsupported
7082 # Tell ltmain to make .lib files, not .a files.
7084 # Tell ltmain to make .dll files, not .so files.
7086 # FIXME: Setting linknames here is a bad hack.
7087 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7088 # The linker will automatically build a .lib file if we build a DLL.
7089 old_archive_From_new_cmds='true'
7090 # FIXME: Should let the user specify the lib program.
7091 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7092 fix_srcfile_path='`cygpath -w "$srcfile"`'
7093 enable_shared_with_static_runtimes=yes
7096 darwin* | rhapsody*)
7097 if test "$GXX" = yes ; then
7098 archive_cmds_need_lc=no
7100 rhapsody* | darwin1.[012])
7101 allow_undefined_flag='-undefined suppress'
7104 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7105 allow_undefined_flag='-flat_namespace -undefined suppress'
7107 case ${MACOSX_DEPLOYMENT_TARGET} in
7109 allow_undefined_flag='-flat_namespace -undefined suppress'
7112 allow_undefined_flag='-undefined dynamic_lookup'
7118 lt_int_apple_cc_single_mod=no
7119 output_verbose_link_cmd='echo'
7120 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7121 lt_int_apple_cc_single_mod=yes
7123 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7124 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7126 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7128 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7129 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7130 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7131 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7133 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7135 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}'
7137 hardcode_automatic=yes
7138 hardcode_shlibpath_var=unsupported
7139 whole_archive_flag_spec='-all_load $convenience'
7140 link_all_deplibs=yes
7147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7148 hardcode_libdir_flag_spec='-L$libdir'
7149 hardcode_shlibpath_var=no
7156 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7157 # support. Future versions do this automatically, but an explicit c++rt0.o
7158 # does not break anything, and helps significantly (at the cost of a little
7161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7162 hardcode_libdir_flag_spec='-R$libdir'
7164 hardcode_shlibpath_var=no
7167 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7171 hardcode_minus_L=yes
7172 hardcode_shlibpath_var=no
7175 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7176 freebsd* | kfreebsd*-gnu)
7177 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7178 hardcode_libdir_flag_spec='-R$libdir'
7180 hardcode_shlibpath_var=no
7184 if test "$GCC" = yes; then
7185 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'
7187 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'
7189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7190 hardcode_libdir_separator=:
7193 # hardcode_minus_L: Not really in the search PATH,
7194 # but as the default location of the library.
7195 hardcode_minus_L=yes
7196 export_dynamic_flag_spec='${wl}-E'
7200 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7203 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7206 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7212 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7215 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7219 if test "$with_gnu_ld" = no; then
7222 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7223 hardcode_libdir_flag_spec_ld='+b $libdir'
7224 hardcode_libdir_separator=:
7226 hardcode_shlibpath_var=no
7229 hardcode_libdir_flag_spec='-L$libdir'
7231 hardcode_shlibpath_var=no
7233 # hardcode_minus_L: Not really in the search PATH,
7234 # but as the default location of the library.
7235 hardcode_minus_L=yes
7238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7239 hardcode_libdir_separator=:
7241 export_dynamic_flag_spec='${wl}-E'
7243 # hardcode_minus_L: Not really in the search PATH,
7244 # but as the default location of the library.
7245 hardcode_minus_L=yes
7251 irix5* | irix6* | nonstopux*)
7252 if test "$GCC" = yes; then
7253 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'
7255 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'
7256 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7259 hardcode_libdir_separator=:
7260 link_all_deplibs=yes
7263 netbsd* | knetbsd*-gnu)
7264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7267 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7269 hardcode_libdir_flag_spec='-R$libdir'
7271 hardcode_shlibpath_var=no
7275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7278 hardcode_libdir_separator=:
7279 hardcode_shlibpath_var=no
7284 hardcode_shlibpath_var=no
7285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7286 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7288 export_dynamic_flag_spec='${wl}-E'
7291 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7293 hardcode_libdir_flag_spec='-R$libdir'
7296 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7297 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7304 hardcode_libdir_flag_spec='-L$libdir'
7305 hardcode_minus_L=yes
7306 allow_undefined_flag=unsupported
7307 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'
7308 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7312 if test "$GCC" = yes; then
7313 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7314 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'
7316 allow_undefined_flag=' -expect_unresolved \*'
7317 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'
7319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7320 hardcode_libdir_separator=:
7323 osf4* | osf5*) # as osf3* with the addition of -msym flag
7324 if test "$GCC" = yes; then
7325 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7326 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'
7327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7329 allow_undefined_flag=' -expect_unresolved \*'
7330 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'
7331 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7332 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7334 # Both c and cxx compiler support -rpath directly
7335 hardcode_libdir_flag_spec='-rpath $libdir'
7337 hardcode_libdir_separator=:
7341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342 hardcode_shlibpath_var=no
7343 export_dynamic_flag_spec='${wl}-Bexport'
7344 runpath_var=LD_RUN_PATH
7345 hardcode_runpath_var=yes
7349 no_undefined_flag=' -z text'
7350 if test "$GCC" = yes; then
7351 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7352 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7353 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7355 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7356 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7357 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7359 hardcode_libdir_flag_spec='-R$libdir'
7360 hardcode_shlibpath_var=no
7362 solaris2.[0-5] | solaris2.[0-5].*) ;;
7363 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7364 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7366 link_all_deplibs=yes
7370 if test "x$host_vendor" = xsequent; then
7371 # Use $CC to link under sequent, because it throws in some extra .o
7372 # files that make .init and .fini sections work.
7373 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7375 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7377 hardcode_libdir_flag_spec='-L$libdir'
7379 hardcode_minus_L=yes
7380 hardcode_shlibpath_var=no
7384 case $host_vendor in
7386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387 hardcode_direct=yes # is this really true???
7390 ## LD is ld it makes a PLAMLIB
7391 ## CC just makes a GrossModule.
7392 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7393 reload_cmds='$CC -r -o $output$reload_objs'
7397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7398 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7401 runpath_var='LD_RUN_PATH'
7402 hardcode_shlibpath_var=no
7406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7407 hardcode_shlibpath_var=no
7408 export_dynamic_flag_spec='-Bexport'
7412 if test -d /usr/nec; then
7413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7414 hardcode_shlibpath_var=no
7415 runpath_var=LD_RUN_PATH
7416 hardcode_runpath_var=yes
7422 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7425 hardcode_shlibpath_var=no
7426 hardcode_runpath_var=yes
7427 runpath_var=LD_RUN_PATH
7430 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7431 no_undefined_flag='${wl}-z ${wl}text'
7432 if test "$GCC" = yes; then
7433 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7435 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7437 runpath_var='LD_RUN_PATH'
7438 hardcode_shlibpath_var=no
7442 no_undefined_flag=' -z text'
7443 # $CC -shared without GNU ld will not create a library from C++
7444 # object files and a static libstdc++, better avoid it by now
7445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7446 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7448 hardcode_libdir_flag_spec=
7449 hardcode_shlibpath_var=no
7450 runpath_var='LD_RUN_PATH'
7454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455 hardcode_libdir_flag_spec='-L$libdir'
7456 hardcode_shlibpath_var=no
7465 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7466 echo "${ECHO_T}$ld_shlibs" >&6
7467 test "$ld_shlibs" = no && can_build_shared=no
7469 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7470 if test "$GCC" = yes; then
7471 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7475 # Do we need to explicitly link libc?
7477 case "x$archive_cmds_need_lc" in
7479 # Assume -lc should be added
7480 archive_cmds_need_lc=yes
7482 if test "$enable_shared" = yes && test "$GCC" = yes; then
7483 case $archive_cmds in
7485 # FIXME: we may have to deal with multi-command sequences.
7488 # Test whether the compiler implicitly links with -lc since on some
7489 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7490 # to ld, don't add -lc before -lgcc.
7491 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7492 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497 (eval $ac_compile) 2>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } 2>conftest.err; then
7503 libobjs=conftest.$ac_objext
7505 wl=$lt_prog_compiler_wl
7511 lt_save_allow_undefined_flag=$allow_undefined_flag
7512 allow_undefined_flag=
7513 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7514 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }
7519 archive_cmds_need_lc=no
7521 archive_cmds_need_lc=yes
7523 allow_undefined_flag=$lt_save_allow_undefined_flag
7525 cat conftest.err 1>&5
7528 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7529 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7536 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7537 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7539 libname_spec='lib$name'
7547 shlibpath_overrides_runpath=unknown
7549 dynamic_linker="$host_os ld.so"
7550 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7551 if test "$GCC" = yes; then
7552 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7553 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7554 # if the path contains ";" then we assume it to be the separator
7555 # otherwise default to the standard path separator (i.e. ":") - it is
7556 # assumed that no part of a normal pathname contains ";" but that should
7557 # okay in the real world where ";" in dirpaths is itself problematic.
7558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7563 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7565 need_lib_prefix=unknown
7566 hardcode_into_libs=no
7568 # when you set need_version to no, make sure it does not cause -set_version
7569 # flags to be left without arguments
7570 need_version=unknown
7575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7576 shlibpath_var=LIBPATH
7578 # AIX 3 has no versioning support, so we append a major version to the name.
7579 soname_spec='${libname}${release}${shared_ext}$major'
7586 hardcode_into_libs=yes
7587 if test "$host_cpu" = ia64; then
7588 # AIX 5 supports IA64
7589 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7590 shlibpath_var=LD_LIBRARY_PATH
7592 # With GCC up to 2.95.x, collect2 would create an import file
7593 # for dependence libraries. The import file would start with
7594 # the line `#! .'. This would cause the generated library to
7595 # depend on `.', always an invalid library. This was fixed in
7596 # development snapshots of GCC prior to 3.0.
7598 aix4 | aix4.[01] | aix4.[01].*)
7599 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7601 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7608 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7609 # soname into executable. Probably we can add versioning support to
7610 # collect2, so additional links can be useful in future.
7611 if test "$aix_use_runtimelinking" = yes; then
7612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7613 # instead of lib<name>.a to let people know that these are not
7614 # typical AIX shared libraries.
7615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7617 # We preserve .a as extension for shared libraries through AIX4.2
7618 # and later when we are not doing run time linking.
7619 library_names_spec='${libname}${release}.a $libname.a'
7620 soname_spec='${libname}${release}${shared_ext}$major'
7622 shlibpath_var=LIBPATH
7627 library_names_spec='$libname.ixlibrary $libname.a'
7628 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7629 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'
7633 library_names_spec='${libname}${shared_ext}'
7634 dynamic_linker="$host_os ld.so"
7635 shlibpath_var=LIBRARY_PATH
7641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642 soname_spec='${libname}${release}${shared_ext}$major'
7643 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7644 shlibpath_var=LD_LIBRARY_PATH
7645 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7646 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7647 # the default ld.so.conf also contains /usr/contrib/lib and
7648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7649 # libtool to hard-code these into programs
7652 cygwin* | mingw* | pw32*)
7653 version_type=windows
7658 case $GCC,$host_os in
7659 yes,cygwin* | yes,mingw* | yes,pw32*)
7660 library_names_spec='$libname.dll.a'
7661 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7662 postinstall_cmds='base_file=`basename \${file}`~
7663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7664 dldir=$destdir/`dirname \$dlpath`~
7665 test -d \$dldir || mkdir -p \$dldir~
7666 $install_prog $dir/$dlname \$dldir/$dlname'
7667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7668 dlpath=$dir/\$dldll~
7670 shlibpath_overrides_runpath=yes
7674 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7679 # MinGW DLLs use traditional 'lib' prefix
7680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7682 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7683 # It is most probably a Windows format PATH printed by
7684 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7685 # path with ; separators, and with drive letters. We can handle the
7686 # drive letters (cygwin fileutils understands them), so leave them,
7687 # especially as we might pass files found there to a mingw objdump,
7688 # which wouldn't understand a cygwinified path. Ahh.
7689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7695 # pw32 DLLs use 'pw' prefix rather than 'lib'
7696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7705 dynamic_linker='Win32 ld.exe'
7706 # FIXME: first we should search . and the directory the executable is in
7710 darwin* | rhapsody*)
7711 dynamic_linker="$host_os dyld"
7715 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7716 soname_spec='${libname}${release}${major}$shared_ext'
7717 shlibpath_overrides_runpath=yes
7718 shlibpath_var=DYLD_LIBRARY_PATH
7719 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7720 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7721 if test "$GCC" = yes; then
7722 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"`
7724 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7734 soname_spec='${libname}${release}${shared_ext}$major'
7735 shlibpath_var=LD_LIBRARY_PATH
7746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7747 soname_spec='${libname}${release}${shared_ext}$major'
7748 shlibpath_var=LD_LIBRARY_PATH
7749 shlibpath_overrides_runpath=no
7750 hardcode_into_libs=yes
7751 dynamic_linker='GNU ld.so'
7755 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7756 version_type=freebsd-$objformat
7757 case $version_type in
7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7768 shlibpath_var=LD_LIBRARY_PATH
7771 shlibpath_overrides_runpath=yes
7773 freebsd3.01* | freebsdelf3.01*)
7774 shlibpath_overrides_runpath=yes
7775 hardcode_into_libs=yes
7778 shlibpath_overrides_runpath=no
7779 hardcode_into_libs=yes
7788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7789 soname_spec='${libname}${release}${shared_ext}$major'
7790 shlibpath_var=LD_LIBRARY_PATH
7791 hardcode_into_libs=yes
7794 hpux9* | hpux10* | hpux11*)
7795 # Give a soname corresponding to the major version so that dld.sl refuses to
7796 # link against other versions.
7803 hardcode_into_libs=yes
7804 dynamic_linker="$host_os dld.so"
7805 shlibpath_var=LD_LIBRARY_PATH
7806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808 soname_spec='${libname}${release}${shared_ext}$major'
7809 if test "X$HPUX_IA64_MODE" = X32; then
7810 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7812 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7818 hardcode_into_libs=yes
7819 dynamic_linker="$host_os dld.sl"
7820 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7823 soname_spec='${libname}${release}${shared_ext}$major'
7824 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7829 dynamic_linker="$host_os dld.sl"
7830 shlibpath_var=SHLIB_PATH
7831 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7833 soname_spec='${libname}${release}${shared_ext}$major'
7836 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7837 postinstall_cmds='chmod 555 $lib'
7840 irix5* | irix6* | nonstopux*)
7842 nonstopux*) version_type=nonstopux ;;
7844 if test "$lt_cv_prog_gnu_ld" = yes; then
7852 soname_spec='${libname}${release}${shared_ext}$major'
7853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7855 irix5* | nonstopux*)
7859 case $LD in # libtool.m4 will add one of these switches to LD
7860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7861 libsuff= shlibsuff= libmagic=32-bit;;
7862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7863 libsuff=32 shlibsuff=N32 libmagic=N32;;
7864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7865 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7866 *) libsuff= shlibsuff= libmagic=never-match;;
7870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7871 shlibpath_overrides_runpath=no
7872 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7873 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7874 hardcode_into_libs=yes
7877 # No shared lib support for Linux oldld, aout, or coff.
7878 linux*oldld* | linux*aout* | linux*coff*)
7882 # This must be Linux ELF.
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888 soname_spec='${libname}${release}${shared_ext}$major'
7889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7890 shlibpath_var=LD_LIBRARY_PATH
7891 shlibpath_overrides_runpath=no
7892 # This implies no fast_install, which is unacceptable.
7893 # Some rework will be needed to allow for fast_install
7894 # before this can be enabled.
7895 hardcode_into_libs=yes
7897 # Append ld.so.conf contents to the search path
7898 if test -f /etc/ld.so.conf; then
7899 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7900 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7903 # We used to test for /lib/ld.so.1 and disable shared libraries on
7904 # powerpc, because MkLinux only supported shared libraries with the
7905 # GNU dynamic linker. Since this was broken with cross compilers,
7906 # most powerpc-linux boxes support dynamic linking these days and
7907 # people can always --disable-shared, the test was removed, and we
7908 # assume the GNU/Linux dynamic linker is in use.
7909 dynamic_linker='GNU/Linux ld.so'
7916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7917 soname_spec='${libname}${release}${shared_ext}$major'
7918 shlibpath_var=LD_LIBRARY_PATH
7919 shlibpath_overrides_runpath=no
7920 hardcode_into_libs=yes
7921 dynamic_linker='GNU ld.so'
7928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7931 dynamic_linker='NetBSD (a.out) ld.so'
7933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7934 soname_spec='${libname}${release}${shared_ext}$major'
7935 dynamic_linker='NetBSD ld.elf_so'
7937 shlibpath_var=LD_LIBRARY_PATH
7938 shlibpath_overrides_runpath=yes
7939 hardcode_into_libs=yes
7944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7945 shlibpath_var=LD_LIBRARY_PATH
7946 shlibpath_overrides_runpath=yes
7953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7954 soname_spec='${libname}${release}${shared_ext}$major'
7955 shlibpath_var=LD_LIBRARY_PATH
7956 shlibpath_overrides_runpath=yes
7963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7965 shlibpath_var=LD_LIBRARY_PATH
7966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7968 openbsd2.[89] | openbsd2.[89].*)
7969 shlibpath_overrides_runpath=no
7972 shlibpath_overrides_runpath=yes
7976 shlibpath_overrides_runpath=yes
7981 libname_spec='$name'
7984 library_names_spec='$libname${shared_ext} $libname.a'
7985 dynamic_linker='OS/2 ld.exe'
7986 shlibpath_var=LIBPATH
7989 osf3* | osf4* | osf5*)
7993 soname_spec='${libname}${release}${shared_ext}$major'
7994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7995 shlibpath_var=LD_LIBRARY_PATH
7996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8002 soname_spec='${libname}${release}${shared_ext}$major'
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004 shlibpath_var=LD_LIBRARY_PATH
8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8012 soname_spec='${libname}${release}${shared_ext}$major'
8013 shlibpath_var=LD_LIBRARY_PATH
8014 shlibpath_overrides_runpath=yes
8015 hardcode_into_libs=yes
8016 # ldd complains unless libraries are executable
8017 postinstall_cmds='chmod +x $lib'
8022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8024 shlibpath_var=LD_LIBRARY_PATH
8025 shlibpath_overrides_runpath=yes
8026 if test "$with_gnu_ld" = yes; then
8032 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
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 case $host_vendor in
8039 shlibpath_overrides_runpath=no
8041 export_dynamic_flag_spec='${wl}-Blargedynsym'
8042 runpath_var=LD_RUN_PATH
8050 shlibpath_overrides_runpath=no
8051 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8057 if test -d /usr/nec ;then
8059 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8060 soname_spec='$libname${shared_ext}.$major'
8061 shlibpath_var=LD_LIBRARY_PATH
8067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8068 soname_spec='${libname}${release}${shared_ext}$major'
8069 shlibpath_var=LD_LIBRARY_PATH
8076 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8077 echo "${ECHO_T}$dynamic_linker" >&6
8078 test "$dynamic_linker" = no && can_build_shared=no
8080 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8083 if test -n "$hardcode_libdir_flag_spec" || \
8084 test -n "$runpath_var " || \
8085 test "X$hardcode_automatic"="Xyes" ; then
8087 # We can hardcode non-existant directories.
8088 if test "$hardcode_direct" != no &&
8089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8090 # have to relink, otherwise we might link with an installed library
8091 # when we should be linking with a yet-to-be-installed one
8092 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8093 test "$hardcode_minus_L" != no; then
8094 # Linking always hardcodes the temporary library directory.
8095 hardcode_action=relink
8097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8098 hardcode_action=immediate
8101 # We cannot hardcode anything, or else we can only hardcode existing
8103 hardcode_action=unsupported
8105 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8106 echo "${ECHO_T}$hardcode_action" >&6
8108 if test "$hardcode_action" = relink; then
8109 # Fast installation is not supported
8110 enable_fast_install=no
8111 elif test "$shlibpath_overrides_runpath" = yes ||
8112 test "$enable_shared" = no; then
8113 # Fast installation is not necessary
8114 enable_fast_install=needless
8119 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8120 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8121 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8122 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8123 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8124 echo "$as_me:$LINENO: result: yes" >&5
8125 echo "${ECHO_T}yes" >&6
8127 # FIXME - insert some real tests, host_os isn't really good enough
8130 if test -n "$STRIP" ; then
8131 striplib="$STRIP -x"
8132 echo "$as_me:$LINENO: result: yes" >&5
8133 echo "${ECHO_T}yes" >&6
8135 echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8140 echo "$as_me:$LINENO: result: no" >&5
8141 echo "${ECHO_T}no" >&6
8146 if test "x$enable_dlopen" != xyes; then
8147 enable_dlopen=unknown
8148 enable_dlopen_self=unknown
8149 enable_dlopen_self_static=unknown
8156 lt_cv_dlopen="load_add_on"
8158 lt_cv_dlopen_self=yes
8162 lt_cv_dlopen="LoadLibrary"
8167 lt_cv_dlopen="dlopen"
8172 # if libdl is installed we need to link against it
8173 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8174 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 ac_check_lib_save_LIBS=$LIBS
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8187 /* Override any gcc2 internal prototype to avoid an error. */
8191 /* We use char because int might match the return type of a gcc2
8192 builtin and then its argument prototype would still apply. */
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204 (eval $ac_link) 2>conftest.er1
8206 grep -v '^ *+' conftest.er1 >conftest.err
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_cv_lib_dl_dlopen=yes
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_cv_lib_dl_dlopen=no
8230 rm -f conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8232 LIBS=$ac_check_lib_save_LIBS
8234 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8235 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8236 if test $ac_cv_lib_dl_dlopen = yes; then
8237 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8242 lt_cv_dlopen_self=yes
8249 echo "$as_me:$LINENO: checking for shl_load" >&5
8250 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8251 if test "${ac_cv_func_shl_load+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8262 #define shl_load innocuous_shl_load
8264 /* System header to define __stub macros and hopefully few prototypes,
8265 which can conflict with char shl_load (); below.
8266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8267 <limits.h> exists even on freestanding compilers. */
8270 # include <limits.h>
8272 # include <assert.h>
8277 /* Override any gcc2 internal prototype to avoid an error. */
8282 /* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8285 /* The GNU C library defines this for functions which it implements
8286 to always fail with ENOSYS. Some functions are actually named
8287 something starting with __ and the normal name is an alias. */
8288 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8291 char (*f) () = shl_load;
8300 return f != shl_load;
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307 (eval $ac_link) 2>conftest.er1
8309 grep -v '^ *+' conftest.er1 >conftest.err
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; } &&
8320 { ac_try='test -s conftest$ac_exeext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 ac_cv_func_shl_load=yes
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8331 ac_cv_func_shl_load=no
8333 rm -f conftest.err conftest.$ac_objext \
8334 conftest$ac_exeext conftest.$ac_ext
8336 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8337 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8338 if test $ac_cv_func_shl_load = yes; then
8339 lt_cv_dlopen="shl_load"
8341 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8342 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8343 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 ac_check_lib_save_LIBS=$LIBS
8348 cat >conftest.$ac_ext <<_ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8355 /* Override any gcc2 internal prototype to avoid an error. */
8359 /* We use char because int might match the return type of a gcc2
8360 builtin and then its argument prototype would still apply. */
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>conftest.er1
8374 grep -v '^ *+' conftest.er1 >conftest.err
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; } &&
8385 { ac_try='test -s conftest$ac_exeext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_cv_lib_dld_shl_load=yes
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 ac_cv_lib_dld_shl_load=no
8398 rm -f conftest.err conftest.$ac_objext \
8399 conftest$ac_exeext conftest.$ac_ext
8400 LIBS=$ac_check_lib_save_LIBS
8402 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8403 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8404 if test $ac_cv_lib_dld_shl_load = yes; then
8405 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8407 echo "$as_me:$LINENO: checking for dlopen" >&5
8408 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8409 if test "${ac_cv_func_dlopen+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 cat >conftest.$ac_ext <<_ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8420 #define dlopen innocuous_dlopen
8422 /* System header to define __stub macros and hopefully few prototypes,
8423 which can conflict with char dlopen (); below.
8424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8425 <limits.h> exists even on freestanding compilers. */
8428 # include <limits.h>
8430 # include <assert.h>
8435 /* Override any gcc2 internal prototype to avoid an error. */
8440 /* We use char because int might match the return type of a gcc2
8441 builtin and then its argument prototype would still apply. */
8443 /* The GNU C library defines this for functions which it implements
8444 to always fail with ENOSYS. Some functions are actually named
8445 something starting with __ and the normal name is an alias. */
8446 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8449 char (*f) () = dlopen;
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465 (eval $ac_link) 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest$ac_exeext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_func_dlopen=yes
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_cv_func_dlopen=no
8491 rm -f conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
8494 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8495 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8496 if test $ac_cv_func_dlopen = yes; then
8497 lt_cv_dlopen="dlopen"
8499 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8500 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 ac_check_lib_save_LIBS=$LIBS
8506 cat >conftest.$ac_ext <<_ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8513 /* Override any gcc2 internal prototype to avoid an error. */
8517 /* We use char because int might match the return type of a gcc2
8518 builtin and then its argument prototype would still apply. */
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530 (eval $ac_link) 2>conftest.er1
8532 grep -v '^ *+' conftest.er1 >conftest.err
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } &&
8537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest$ac_exeext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_cv_lib_dl_dlopen=yes
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ac_cv_lib_dl_dlopen=no
8556 rm -f conftest.err conftest.$ac_objext \
8557 conftest$ac_exeext conftest.$ac_ext
8558 LIBS=$ac_check_lib_save_LIBS
8560 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8561 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8562 if test $ac_cv_lib_dl_dlopen = yes; then
8563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8565 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8566 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8567 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 ac_check_lib_save_LIBS=$LIBS
8572 cat >conftest.$ac_ext <<_ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8579 /* Override any gcc2 internal prototype to avoid an error. */
8583 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596 (eval $ac_link) 2>conftest.er1
8598 grep -v '^ *+' conftest.er1 >conftest.err
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
8603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; } &&
8609 { ac_try='test -s conftest$ac_exeext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_cv_lib_svld_dlopen=yes
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 ac_cv_lib_svld_dlopen=no
8622 rm -f conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 LIBS=$ac_check_lib_save_LIBS
8626 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8627 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8628 if test $ac_cv_lib_svld_dlopen = yes; then
8629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8631 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8632 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8633 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 ac_check_lib_save_LIBS=$LIBS
8638 cat >conftest.$ac_ext <<_ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8645 /* Override any gcc2 internal prototype to avoid an error. */
8649 /* We use char because int might match the return type of a gcc2
8650 builtin and then its argument prototype would still apply. */
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8662 (eval $ac_link) 2>conftest.er1
8664 grep -v '^ *+' conftest.er1 >conftest.err
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try='test -s conftest$ac_exeext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 ac_cv_lib_dld_dld_link=yes
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686 ac_cv_lib_dld_dld_link=no
8688 rm -f conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8690 LIBS=$ac_check_lib_save_LIBS
8692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8693 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8694 if test $ac_cv_lib_dld_dld_link = yes; then
8695 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8716 if test "x$lt_cv_dlopen" != xno; then
8722 case $lt_cv_dlopen in
8724 save_CPPFLAGS="$CPPFLAGS"
8725 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8727 save_LDFLAGS="$LDFLAGS"
8728 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8731 LIBS="$lt_cv_dlopen_libs $LIBS"
8733 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8734 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8735 if test "${lt_cv_dlopen_self+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 if test "$cross_compiling" = yes; then :
8739 lt_cv_dlopen_self=cross
8741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8742 lt_status=$lt_dlunknown
8743 cat > conftest.$ac_ext <<EOF
8744 #line 8744 "configure"
8745 #include "confdefs.h"
8754 # define LT_DLGLOBAL RTLD_GLOBAL
8757 # define LT_DLGLOBAL DL_GLOBAL
8759 # define LT_DLGLOBAL 0
8763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8764 find out it does not work in some platform. */
8765 #ifndef LT_DLLAZY_OR_NOW
8767 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8770 # define LT_DLLAZY_OR_NOW DL_LAZY
8773 # define LT_DLLAZY_OR_NOW RTLD_NOW
8776 # define LT_DLLAZY_OR_NOW DL_NOW
8778 # define LT_DLLAZY_OR_NOW 0
8786 extern "C" void exit (int);
8789 void fnord() { int i=42;}
8792 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8793 int status = $lt_dlunknown;
8797 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8798 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8799 /* dlclose (self); */
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806 (eval $ac_link) 2>&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8810 (./conftest; exit; ) 2>/dev/null
8813 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8814 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8815 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8818 # compilation failed
8819 lt_cv_dlopen_self=no
8826 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8827 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8829 if test "x$lt_cv_dlopen_self" = xyes; then
8830 LDFLAGS="$LDFLAGS $link_static_flag"
8831 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8832 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8833 if test "${lt_cv_dlopen_self_static+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 if test "$cross_compiling" = yes; then :
8837 lt_cv_dlopen_self_static=cross
8839 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8840 lt_status=$lt_dlunknown
8841 cat > conftest.$ac_ext <<EOF
8842 #line 8842 "configure"
8843 #include "confdefs.h"
8852 # define LT_DLGLOBAL RTLD_GLOBAL
8855 # define LT_DLGLOBAL DL_GLOBAL
8857 # define LT_DLGLOBAL 0
8861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8862 find out it does not work in some platform. */
8863 #ifndef LT_DLLAZY_OR_NOW
8865 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8868 # define LT_DLLAZY_OR_NOW DL_LAZY
8871 # define LT_DLLAZY_OR_NOW RTLD_NOW
8874 # define LT_DLLAZY_OR_NOW DL_NOW
8876 # define LT_DLLAZY_OR_NOW 0
8884 extern "C" void exit (int);
8887 void fnord() { int i=42;}
8890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8891 int status = $lt_dlunknown;
8895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8896 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8897 /* dlclose (self); */
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8908 (./conftest; exit; ) 2>/dev/null
8911 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8912 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8913 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8916 # compilation failed
8917 lt_cv_dlopen_self_static=no
8924 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8925 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8928 CPPFLAGS="$save_CPPFLAGS"
8929 LDFLAGS="$save_LDFLAGS"
8934 case $lt_cv_dlopen_self in
8935 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8936 *) enable_dlopen_self=unknown ;;
8939 case $lt_cv_dlopen_self_static in
8940 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8941 *) enable_dlopen_self_static=unknown ;;
8946 # Report which librarie types wil actually be built
8947 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8949 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8950 echo "${ECHO_T}$can_build_shared" >&6
8952 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8954 test "$can_build_shared" = "no" && enable_shared=no
8956 # On AIX, shared libraries and static libraries use the same namespace, and
8957 # are all built from PIC.
8960 test "$enable_shared" = yes && enable_static=no
8961 if test -n "$RANLIB"; then
8962 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8963 postinstall_cmds='$RANLIB $lib'
8968 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8969 test "$enable_shared" = yes && enable_static=no
8972 darwin* | rhapsody*)
8973 if test "$GCC" = yes; then
8974 archive_cmds_need_lc=no
8976 rhapsody* | darwin1.[012])
8977 allow_undefined_flag='-undefined suppress'
8980 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8981 allow_undefined_flag='-flat_namespace -undefined suppress'
8983 case ${MACOSX_DEPLOYMENT_TARGET} in
8985 allow_undefined_flag='-flat_namespace -undefined suppress'
8988 allow_undefined_flag='-undefined dynamic_lookup'
8994 output_verbose_link_cmd='echo'
8995 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8996 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8997 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8998 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}'
8999 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}'
9001 hardcode_automatic=yes
9002 hardcode_shlibpath_var=unsupported
9003 whole_archive_flag_spec='-all_load $convenience'
9004 link_all_deplibs=yes
9010 echo "$as_me:$LINENO: result: $enable_shared" >&5
9011 echo "${ECHO_T}$enable_shared" >&6
9013 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9014 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9015 # Make sure either enable_shared or enable_static is yes.
9016 test "$enable_shared" = yes || enable_static=yes
9017 echo "$as_me:$LINENO: result: $enable_static" >&5
9018 echo "${ECHO_T}$enable_static" >&6
9020 # The else clause should only fire when bootstrapping the
9021 # libtool distribution, otherwise you forgot to ship ltmain.sh
9022 # with your package, and you will get complaints that there are
9023 # no rules to generate ltmain.sh.
9024 if test -f "$ltmain"; then
9025 # See if we are running on zsh, and set the options which allow our commands through
9026 # without removal of \ escapes.
9027 if test -n "${ZSH_VERSION+set}" ; then
9028 setopt NO_GLOB_SUBST
9030 # Now quote all the things that may contain metacharacters while being
9031 # careful not to overquote the AC_SUBSTed values. We take copies of the
9032 # variables and quote the copies for generation of the libtool script.
9033 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9035 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9036 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9037 deplibs_check_method reload_flag reload_cmds need_locks \
9038 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9039 lt_cv_sys_global_symbol_to_c_name_address \
9040 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9041 old_postinstall_cmds old_postuninstall_cmds \
9045 lt_prog_compiler_wl \
9046 lt_prog_compiler_pic \
9047 lt_prog_compiler_static \
9048 lt_prog_compiler_no_builtin_flag \
9049 export_dynamic_flag_spec \
9050 thread_safe_flag_spec \
9051 whole_archive_flag_spec \
9052 enable_shared_with_static_runtimes \
9054 old_archive_from_new_cmds \
9059 compiler_lib_search_path \
9061 archive_expsym_cmds \
9063 postuninstall_cmds \
9064 old_archive_from_expsyms_cmds \
9065 allow_undefined_flag \
9067 export_symbols_cmds \
9068 hardcode_libdir_flag_spec \
9069 hardcode_libdir_flag_spec_ld \
9070 hardcode_libdir_separator \
9071 hardcode_automatic \
9073 module_expsym_cmds \
9074 lt_cv_prog_compiler_c_o \
9079 old_archive_cmds | \
9080 old_archive_from_new_cmds | \
9082 archive_expsym_cmds | \
9084 module_expsym_cmds | \
9085 old_archive_from_expsyms_cmds | \
9086 export_symbols_cmds | \
9087 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9088 postinstall_cmds | postuninstall_cmds | \
9089 old_postinstall_cmds | old_postuninstall_cmds | \
9090 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9091 # Double-quote double-evaled strings.
9092 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9095 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9101 *'\$0 --fallback-echo"')
9102 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9107 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9109 { echo "$as_me:$LINENO: creating $ofile" >&5
9110 echo "$as_me: creating $ofile" >&6;}
9112 cat <<__EOF__ >> "$cfgfile"
9115 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9116 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9117 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9119 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9120 # Free Software Foundation, Inc.
9122 # This file is part of GNU Libtool:
9123 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9125 # This program is free software; you can redistribute it and/or modify
9126 # it under the terms of the GNU General Public License as published by
9127 # the Free Software Foundation; either version 2 of the License, or
9128 # (at your option) any later version.
9130 # This program is distributed in the hope that it will be useful, but
9131 # WITHOUT ANY WARRANTY; without even the implied warranty of
9132 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9133 # General Public License for more details.
9135 # You should have received a copy of the GNU General Public License
9136 # along with this program; if not, write to the Free Software
9137 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9139 # As a special exception to the GNU General Public License, if you
9140 # distribute this file as part of a program that contains a
9141 # configuration script generated by Autoconf, you may include it under
9142 # the same distribution terms that you use for the rest of that program.
9144 # A sed program that does not truncate output.
9147 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9148 Xsed="$SED -e s/^X//"
9150 # The HP-UX ksh and POSIX shell print the target directory to stdout
9152 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9154 # The names of the tagged configurations supported by this script.
9157 # ### BEGIN LIBTOOL CONFIG
9159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9161 # Shell to use when invoking shell scripts.
9164 # Whether or not to build shared libraries.
9165 build_libtool_libs=$enable_shared
9167 # Whether or not to build static libraries.
9168 build_old_libs=$enable_static
9170 # Whether or not to add -lc for building shared libraries.
9171 build_libtool_need_lc=$archive_cmds_need_lc
9173 # Whether or not to disallow shared libs when runtime libs are static
9174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9176 # Whether or not to optimize for fast installation.
9177 fast_install=$enable_fast_install
9180 host_alias=$host_alias
9183 # An echo program that does not interpret backslashes.
9188 AR_FLAGS=$lt_AR_FLAGS
9193 # A language-specific compiler.
9196 # Is the compiler the GNU C compiler?
9202 # The linker used to build libraries.
9205 # Whether we need hard or soft links.
9208 # A BSD-compatible nm program.
9211 # A symbol stripping program
9214 # Used to examine libraries when file_magic_cmd begins "file"
9215 MAGIC_CMD=$MAGIC_CMD
9217 # Used on cygwin: DLL creation program.
9220 # Used on cygwin: object dumper.
9223 # Used on cygwin: assembler.
9226 # The name of the directory that contains temporary libtool files.
9229 # How to create reloadable object files.
9230 reload_flag=$lt_reload_flag
9231 reload_cmds=$lt_reload_cmds
9233 # How to pass a linker flag through the compiler.
9234 wl=$lt_lt_prog_compiler_wl
9236 # Object file suffix (normally "o").
9239 # Old archive suffix (normally "a").
9242 # Shared library suffix (normally ".so").
9243 shrext_cmds='$shrext_cmds'
9245 # Executable file suffix (normally "").
9248 # Additional compiler flags for building library objects.
9249 pic_flag=$lt_lt_prog_compiler_pic
9252 # What is the maximum length of a command?
9253 max_cmd_len=$lt_cv_sys_max_cmd_len
9255 # Does compiler simultaneously support -c and -o options?
9256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9258 # Must we lock files when doing compilation ?
9259 need_locks=$lt_need_locks
9261 # Do we need the lib prefix for modules?
9262 need_lib_prefix=$need_lib_prefix
9264 # Do we need a version for libraries?
9265 need_version=$need_version
9267 # Whether dlopen is supported.
9268 dlopen_support=$enable_dlopen
9270 # Whether dlopen of programs is supported.
9271 dlopen_self=$enable_dlopen_self
9273 # Whether dlopen of statically linked programs is supported.
9274 dlopen_self_static=$enable_dlopen_self_static
9276 # Compiler flag to prevent dynamic linking.
9277 link_static_flag=$lt_lt_prog_compiler_static
9279 # Compiler flag to turn off builtin functions.
9280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9282 # Compiler flag to allow reflexive dlopens.
9283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9285 # Compiler flag to generate shared objects directly from archives.
9286 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9288 # Compiler flag to generate thread-safe objects.
9289 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9291 # Library versioning type.
9292 version_type=$version_type
9294 # Format of library name prefix.
9295 libname_spec=$lt_libname_spec
9297 # List of archive names. First name is the real one, the rest are links.
9298 # The last name is the one that the linker finds with -lNAME.
9299 library_names_spec=$lt_library_names_spec
9301 # The coded name of the library, if different from the real name.
9302 soname_spec=$lt_soname_spec
9304 # Commands used to build and install an old-style archive.
9306 old_archive_cmds=$lt_old_archive_cmds
9307 old_postinstall_cmds=$lt_old_postinstall_cmds
9308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9310 # Create an old-style archive from a shared archive.
9311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9313 # Create a temporary old-style archive to link instead of a shared archive.
9314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9316 # Commands used to build and install a shared archive.
9317 archive_cmds=$lt_archive_cmds
9318 archive_expsym_cmds=$lt_archive_expsym_cmds
9319 postinstall_cmds=$lt_postinstall_cmds
9320 postuninstall_cmds=$lt_postuninstall_cmds
9322 # Commands used to build a loadable module (assumed same as above if empty)
9323 module_cmds=$lt_module_cmds
9324 module_expsym_cmds=$lt_module_expsym_cmds
9326 # Commands to strip libraries.
9327 old_striplib=$lt_old_striplib
9328 striplib=$lt_striplib
9330 # Dependencies to place before the objects being linked to create a
9332 predep_objects=$lt_predep_objects
9334 # Dependencies to place after the objects being linked to create a
9336 postdep_objects=$lt_postdep_objects
9338 # Dependencies to place before the objects being linked to create a
9342 # Dependencies to place after the objects being linked to create a
9344 postdeps=$lt_postdeps
9346 # The library search path used internally by the compiler when linking
9348 compiler_lib_search_path=$lt_compiler_lib_search_path
9350 # Method to check whether dependent libraries are shared objects.
9351 deplibs_check_method=$lt_deplibs_check_method
9353 # Command to use when deplibs_check_method == file_magic.
9354 file_magic_cmd=$lt_file_magic_cmd
9356 # Flag that allows shared libraries with undefined symbols to be built.
9357 allow_undefined_flag=$lt_allow_undefined_flag
9359 # Flag that forces no undefined symbols.
9360 no_undefined_flag=$lt_no_undefined_flag
9362 # Commands used to finish a libtool library installation in a directory.
9363 finish_cmds=$lt_finish_cmds
9365 # Same as above, but a single script fragment to be evaled but not shown.
9366 finish_eval=$lt_finish_eval
9368 # Take the output of nm and produce a listing of raw symbols and C names.
9369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9371 # Transform the output of nm in a proper C declaration
9372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9374 # Transform the output of nm in a C name address pair
9375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9377 # This is the shared library runtime path variable.
9378 runpath_var=$runpath_var
9380 # This is the shared library path variable.
9381 shlibpath_var=$shlibpath_var
9383 # Is shlibpath searched before the hard-coded library search path?
9384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9386 # How to hardcode a shared library path into an executable.
9387 hardcode_action=$hardcode_action
9389 # Whether we should hardcode library paths into libraries.
9390 hardcode_into_libs=$hardcode_into_libs
9392 # Flag to hardcode \$libdir into a binary during linking.
9393 # This must work even if \$libdir does not exist.
9394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9396 # If ld is used when linking, flag to hardcode \$libdir into
9397 # a binary during linking. This must work even if \$libdir does
9399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9401 # Whether we need a single -rpath flag with a separated argument.
9402 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9404 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9406 hardcode_direct=$hardcode_direct
9408 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9410 hardcode_minus_L=$hardcode_minus_L
9412 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9413 # the resulting binary.
9414 hardcode_shlibpath_var=$hardcode_shlibpath_var
9416 # Set to yes if building a shared library automatically hardcodes DIR into the library
9417 # and all subsequent libraries and executables linked against it.
9418 hardcode_automatic=$hardcode_automatic
9420 # Variables whose values should be saved in libtool wrapper scripts and
9421 # restored at relink time.
9422 variables_saved_for_relink="$variables_saved_for_relink"
9424 # Whether libtool must link a program against all its dependency libraries.
9425 link_all_deplibs=$link_all_deplibs
9427 # Compile-time system search path for libraries
9428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9430 # Run-time system search path for libraries
9431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9433 # Fix the shell variable \$srcfile for the compiler.
9434 fix_srcfile_path="$fix_srcfile_path"
9436 # Set to yes if exported symbols are required.
9437 always_export_symbols=$always_export_symbols
9439 # The commands to list exported symbols.
9440 export_symbols_cmds=$lt_export_symbols_cmds
9442 # The commands to extract the exported symbol list from a shared archive.
9443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9445 # Symbols that should not be listed in the preloaded symbols.
9446 exclude_expsyms=$lt_exclude_expsyms
9448 # Symbols that must always be exported.
9449 include_expsyms=$lt_include_expsyms
9451 # ### END LIBTOOL CONFIG
9458 cat <<\EOF >> "$cfgfile"
9460 # AIX sometimes has problems with the GCC collect2 program. For some
9461 # reason, if we set the COLLECT_NAMES environment variable, the problems
9462 # vanish in a puff of smoke.
9463 if test "X${COLLECT_NAMES+set}" != Xset; then
9465 export COLLECT_NAMES
9471 # We use sed instead of cat because bash on DJGPP gets confused if
9472 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9473 # text mode, it properly converts lines to CR/LF. This bash problem
9474 # is reportedly fixed, but why not run on old versions too?
9475 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9477 mv -f "$cfgfile" "$ofile" || \
9478 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9482 # If there is no Makefile yet, we rely on a make rule to execute
9483 # `config.status --recheck' to rerun these tests and create the
9484 # libtool script then.
9485 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9486 if test -f "$ltmain_in"; then
9487 test -f Makefile && make "$ltmain"
9493 ac_cpp='$CPP $CPPFLAGS'
9494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9501 # Check whether --with-tags or --without-tags was given.
9502 if test "${with_tags+set}" = set; then
9503 withval="$with_tags"
9507 if test -f "$ltmain" && test -n "$tagnames"; then
9508 if test ! -f "${ofile}"; then
9509 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9510 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9513 if test -z "$LTCC"; then
9514 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9515 if test -z "$LTCC"; then
9516 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9517 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9520 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9524 # Extract list of available tagged configurations in $ofile.
9525 # Note that this assumes the entire list is on one line.
9526 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9529 for tagname in $tagnames; do
9531 # Check whether tagname contains only valid characters
9532 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9534 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9535 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9536 { (exit 1); exit 1; }; }
9540 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9542 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9543 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9544 { (exit 1); exit 1; }; }
9547 # Update the list of available tags.
9548 if test -n "$tagname"; then
9549 echo appending configuration tag \"$tagname\" to $ofile
9553 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9555 ac_cpp='$CXXCPP $CPPFLAGS'
9556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9563 archive_cmds_need_lc_CXX=no
9564 allow_undefined_flag_CXX=
9565 always_export_symbols_CXX=no
9566 archive_expsym_cmds_CXX=
9567 export_dynamic_flag_spec_CXX=
9568 hardcode_direct_CXX=no
9569 hardcode_libdir_flag_spec_CXX=
9570 hardcode_libdir_flag_spec_ld_CXX=
9571 hardcode_libdir_separator_CXX=
9572 hardcode_minus_L_CXX=no
9573 hardcode_automatic_CXX=no
9575 module_expsym_cmds_CXX=
9576 link_all_deplibs_CXX=unknown
9577 old_archive_cmds_CXX=$old_archive_cmds
9578 no_undefined_flag_CXX=
9579 whole_archive_flag_spec_CXX=
9580 enable_shared_with_static_runtimes_CXX=no
9582 # Dependencies to place before and after the object being linked:
9584 postdep_objects_CXX=
9587 compiler_lib_search_path_CXX=
9589 # Source file extension for C++ test sources.
9592 # Object file extension for compiled C++ test sources.
9596 # Code to be used in simple compile tests
9597 lt_simple_compile_test_code="int some_variable = 0;\n"
9599 # Code to be used in simple link tests
9600 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9602 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9604 # If no C compiler was specified, use CC.
9607 # Allow CC to be a program name with arguments.
9611 # Allow CC to be a program name with arguments.
9616 lt_save_with_gnu_ld=$with_gnu_ld
9617 lt_save_path_LD=$lt_cv_path_LD
9618 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9619 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9621 unset lt_cv_prog_gnu_ld
9623 if test -n "${lt_cv_path_LDCXX+set}"; then
9624 lt_cv_path_LD=$lt_cv_path_LDCXX
9628 test -z "${LDCXX+set}" || LD=$LDCXX
9632 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9634 # We don't want -fno-exception wen compiling C++ code, so set the
9635 # no_builtin_flag separately
9636 if test "$GXX" = yes; then
9637 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9639 lt_prog_compiler_no_builtin_flag_CXX=
9642 if test "$GXX" = yes; then
9643 # Set up default GNU C++ configuration
9646 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9647 if test "${with_gnu_ld+set}" = set; then
9648 withval="$with_gnu_ld"
9649 test "$withval" = no || with_gnu_ld=yes
9654 if test "$GCC" = yes; then
9655 # Check if gcc -print-prog-name=ld gives a path.
9656 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9657 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9660 # gcc leaves a trailing carriage return which upsets mingw
9661 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9663 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9666 # Accept absolute paths.
9668 re_direlt='/[^/][^/]*/\.\./'
9669 # Canonicalize the pathname of ld
9670 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9671 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9672 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9674 test -z "$LD" && LD="$ac_prog"
9677 # If it fails, then pretend we aren't using GCC.
9681 # If it is relative, then search for the first ld in PATH.
9685 elif test "$with_gnu_ld" = yes; then
9686 echo "$as_me:$LINENO: checking for GNU ld" >&5
9687 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9689 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9690 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9692 if test "${lt_cv_path_LD+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 if test -z "$LD"; then
9696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9697 for ac_dir in $PATH; do
9699 test -z "$ac_dir" && ac_dir=.
9700 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9701 lt_cv_path_LD="$ac_dir/$ac_prog"
9702 # Check to see if the program is GNU ld. I'd rather use --version,
9703 # but apparently some GNU ld's only accept -v.
9704 # Break only if it was the GNU/non-GNU ld that we prefer.
9705 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9706 *GNU* | *'with BFD'*)
9707 test "$with_gnu_ld" != no && break
9710 test "$with_gnu_ld" != yes && break
9717 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9722 if test -n "$LD"; then
9723 echo "$as_me:$LINENO: result: $LD" >&5
9724 echo "${ECHO_T}$LD" >&6
9726 echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6
9729 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9730 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9731 { (exit 1); exit 1; }; }
9732 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9733 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9734 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9738 case `$LD -v 2>&1 </dev/null` in
9739 *GNU* | *'with BFD'*)
9740 lt_cv_prog_gnu_ld=yes
9743 lt_cv_prog_gnu_ld=no
9747 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9748 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9749 with_gnu_ld=$lt_cv_prog_gnu_ld
9753 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9754 # archiving commands below assume that GNU ld is being used.
9755 if test "$with_gnu_ld" = yes; then
9756 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757 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'
9759 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9762 # If archive_cmds runs LD, not CC, wlarc should be empty
9763 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9764 # investigate it a little bit more. (MM)
9767 # ancient GNU ld didn't support --whole-archive et. al.
9768 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9769 grep 'no-whole-archive' > /dev/null; then
9770 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9772 whole_archive_flag_spec_CXX=
9778 # A generic and very simple default shared library creation
9779 # command for GNU C++ for the case where it uses the native
9780 # linker, instead of GNU ld. If possible, this setting should
9781 # overridden to take advantage of the native linker features on
9782 # the platform it is being used on.
9783 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9786 # Commands to make compiler produce verbose output that lists
9787 # what "hidden" libraries, object files and flags are used when
9788 # linking a shared library.
9789 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9797 # PORTME: fill in a description of your system's C++ link characteristics
9798 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9799 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9803 # FIXME: insert proper C++ library support
9807 if test "$host_cpu" = ia64; then
9808 # On IA64, the linker does run time linking by default, so we don't
9809 # have to do anything special.
9810 aix_use_runtimelinking=no
9811 exp_sym_flag='-Bexport'
9814 aix_use_runtimelinking=no
9816 # Test if we are trying to use run time linking or normal
9817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9818 # need to do runtime linking.
9819 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9820 for ld_flag in $LDFLAGS; do
9823 aix_use_runtimelinking=yes
9830 exp_sym_flag='-bexport'
9831 no_entry_flag='-bnoentry'
9834 # When large executables or shared objects are built, AIX ld can
9835 # have problems creating the table of contents. If linking a library
9836 # or program results in "error TOC overflow" add -mminimal-toc to
9837 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9838 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9841 hardcode_direct_CXX=yes
9842 hardcode_libdir_separator_CXX=':'
9843 link_all_deplibs_CXX=yes
9845 if test "$GXX" = yes; then
9846 case $host_os in aix4.012|aix4.012.*)
9847 # We only want to do this on AIX 4.2 and lower, the check
9848 # below for broken collect2 doesn't work under 4.3+
9849 collect2name=`${CC} -print-prog-name=collect2`
9850 if test -f "$collect2name" && \
9851 strings "$collect2name" | grep resolve_lib_name >/dev/null
9853 # We have reworked collect2
9854 hardcode_direct_CXX=yes
9856 # We have old collect2
9857 hardcode_direct_CXX=unsupported
9858 # It fails to find uninstalled libraries when the uninstalled
9859 # path is not listed in the libpath. Setting hardcode_minus_L
9860 # to unsupported forces relinking
9861 hardcode_minus_L_CXX=yes
9862 hardcode_libdir_flag_spec_CXX='-L$libdir'
9863 hardcode_libdir_separator_CXX=
9866 shared_flag='-shared'
9869 if test "$host_cpu" = ia64; then
9870 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9871 # chokes on -Wl,-G. The following line is correct:
9874 if test "$aix_use_runtimelinking" = yes; then
9875 shared_flag='${wl}-G'
9877 shared_flag='${wl}-bM:SRE'
9882 # It seems that -bexpall does not export symbols beginning with
9883 # underscore (_), so it is better to generate a list of symbols to export.
9884 always_export_symbols_CXX=yes
9885 if test "$aix_use_runtimelinking" = yes; then
9886 # Warning - without using the other runtime loading flags (-brtl),
9887 # -berok will link without error, but may produce a broken library.
9888 allow_undefined_flag_CXX='-berok'
9889 # Determine the default libpath from the value encoded in an empty executable.
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907 (eval $ac_link) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest$ac_exeext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9929 # Check for a 64-bit object if we didn't find anything.
9930 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; }
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9937 rm -f conftest.err conftest.$ac_objext \
9938 conftest$ac_exeext conftest.$ac_ext
9939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9941 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9943 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"
9945 if test "$host_cpu" = ia64; then
9946 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9947 allow_undefined_flag_CXX="-z nodefs"
9948 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"
9950 # Determine the default libpath from the value encoded in an empty executable.
9951 cat >conftest.$ac_ext <<_ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968 (eval $ac_link) 2>conftest.er1
9970 grep -v '^ *+' conftest.er1 >conftest.err
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; } &&
9981 { ac_try='test -s conftest$ac_exeext'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9990 # Check for a 64-bit object if we didn't find anything.
9991 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; }
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9998 rm -f conftest.err conftest.$ac_objext \
9999 conftest$ac_exeext conftest.$ac_ext
10000 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10002 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10003 # Warning - without using the other run time loading flags,
10004 # -berok will link without error, but may produce a broken library.
10005 no_undefined_flag_CXX=' ${wl}-bernotok'
10006 allow_undefined_flag_CXX=' ${wl}-berok'
10007 # -bexpall does not export symbols beginning with underscore (_)
10008 always_export_symbols_CXX=yes
10009 # Exported symbols can be pulled into shared objects from archives
10010 whole_archive_flag_spec_CXX=' '
10011 archive_cmds_need_lc_CXX=yes
10012 # This is similar to how AIX traditionally builds it's shared libraries.
10013 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'
10018 case $cc_basename in
10020 # FIXME: insert proper C++ library support
10026 cygwin* | mingw* | pw32*)
10027 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10028 # as there is no search path for DLLs.
10029 hardcode_libdir_flag_spec_CXX='-L$libdir'
10030 allow_undefined_flag_CXX=unsupported
10031 always_export_symbols_CXX=no
10032 enable_shared_with_static_runtimes_CXX=yes
10034 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10035 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'
10036 # If the export-symbols file already is a .def file (1st line
10037 # is EXPORTS), use it as is; otherwise, prepend...
10038 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10039 cp $export_symbols $output_objdir/$soname.def;
10041 echo EXPORTS > $output_objdir/$soname.def;
10042 cat $export_symbols >> $output_objdir/$soname.def;
10044 $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'
10050 darwin* | rhapsody*)
10051 if test "$GXX" = yes; then
10052 archive_cmds_need_lc_CXX=no
10054 rhapsody* | darwin1.[012])
10055 allow_undefined_flag_CXX='-undefined suppress'
10058 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10059 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10061 case ${MACOSX_DEPLOYMENT_TARGET} in
10063 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10066 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10072 lt_int_apple_cc_single_mod=no
10073 output_verbose_link_cmd='echo'
10074 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10075 lt_int_apple_cc_single_mod=yes
10077 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10078 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10080 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10082 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10084 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10085 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10086 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}'
10088 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10090 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}'
10091 hardcode_direct_CXX=no
10092 hardcode_automatic_CXX=yes
10093 hardcode_shlibpath_var_CXX=unsupported
10094 whole_archive_flag_spec_CXX='-all_load $convenience'
10095 link_all_deplibs_CXX=yes
10102 case $cc_basename in
10104 # FIXME: insert proper C++ library support
10108 # Green Hills C++ Compiler
10109 # FIXME: insert proper C++ library support
10113 # FIXME: insert proper C++ library support
10119 # C++ shared libraries reported to be fairly broken before switch to ELF
10123 archive_cmds_need_lc_CXX=no
10125 freebsd* | kfreebsd*-gnu)
10126 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10133 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10134 hardcode_libdir_separator_CXX=:
10135 export_dynamic_flag_spec_CXX='${wl}-E'
10136 hardcode_direct_CXX=yes
10137 hardcode_minus_L_CXX=yes # Not in the search PATH,
10138 # but as the default
10139 # location of the library.
10141 case $cc_basename in
10143 # FIXME: insert proper C++ library support
10147 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'
10148 # Commands to make compiler produce verbose output that lists
10149 # what "hidden" libraries, object files and flags are used when
10150 # linking a shared library.
10152 # There doesn't appear to be a way to prevent this compiler from
10153 # explicitly linking system object files so we need to strip them
10154 # from the output so that they don't get included in the library
10156 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'
10159 if test "$GXX" = yes; then
10160 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'
10162 # FIXME: insert proper C++ library support
10169 if test $with_gnu_ld = no; then
10170 case "$host_cpu" in
10172 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10173 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10174 hardcode_libdir_separator_CXX=:
10177 hardcode_libdir_flag_spec_CXX='-L$libdir'
10180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10181 hardcode_libdir_separator_CXX=:
10182 export_dynamic_flag_spec_CXX='${wl}-E'
10186 case "$host_cpu" in
10188 hardcode_direct_CXX=no
10189 hardcode_shlibpath_var_CXX=no
10192 hardcode_direct_CXX=no
10193 hardcode_shlibpath_var_CXX=no
10194 hardcode_minus_L_CXX=yes # Not in the search PATH,
10195 # but as the default
10196 # location of the library.
10199 hardcode_direct_CXX=yes
10200 hardcode_minus_L_CXX=yes # Not in the search PATH,
10201 # but as the default
10202 # location of the library.
10206 case $cc_basename in
10208 # FIXME: insert proper C++ library support
10212 case "$host_cpu" in
10214 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10217 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10220 # Commands to make compiler produce verbose output that lists
10221 # what "hidden" libraries, object files and flags are used when
10222 # linking a shared library.
10224 # There doesn't appear to be a way to prevent this compiler from
10225 # explicitly linking system object files so we need to strip them
10226 # from the output so that they don't get included in the library
10228 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'
10231 if test "$GXX" = yes; then
10232 if test $with_gnu_ld = no; then
10233 case "$host_cpu" in
10235 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10238 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'
10243 # FIXME: insert proper C++ library support
10250 case $cc_basename in
10253 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10255 # Archives containing C++ object files must be created using
10256 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10257 # necessary to make sure instantiated templates are included
10259 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10262 if test "$GXX" = yes; then
10263 if test "$with_gnu_ld" = no; then
10264 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10266 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'
10269 link_all_deplibs_CXX=yes
10272 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10273 hardcode_libdir_separator_CXX=:
10276 case $cc_basename in
10278 # Kuck and Associates, Inc. (KAI) C++ Compiler
10280 # KCC will only create a shared library if the output file
10281 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10282 # to its proper name (with version) after linking.
10283 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'
10284 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'
10285 # Commands to make compiler produce verbose output that lists
10286 # what "hidden" libraries, object files and flags are used when
10287 # linking a shared library.
10289 # There doesn't appear to be a way to prevent this compiler from
10290 # explicitly linking system object files so we need to strip them
10291 # from the output so that they don't get included in the library
10293 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'
10295 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10296 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10298 # Archives containing C++ object files must be created using
10299 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10300 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10305 archive_cmds_need_lc_CXX=no
10306 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10307 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'
10308 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10309 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10310 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10314 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10315 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'
10317 runpath_var=LD_RUN_PATH
10318 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10319 hardcode_libdir_separator_CXX=:
10321 # Commands to make compiler produce verbose output that lists
10322 # what "hidden" libraries, object files and flags are used when
10323 # linking a shared library.
10325 # There doesn't appear to be a way to prevent this compiler from
10326 # explicitly linking system object files so we need to strip them
10327 # from the output so that they don't get included in the library
10329 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'
10334 # FIXME: insert proper C++ library support
10338 # FIXME: insert proper C++ library support
10342 case $cc_basename in
10344 # FIXME: insert proper C++ library support
10348 # FIXME: insert proper C++ library support
10353 netbsd* | knetbsd*-gnu)
10354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10355 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10357 hardcode_libdir_flag_spec_CXX='-R$libdir'
10358 hardcode_direct_CXX=yes
10359 hardcode_shlibpath_var_CXX=no
10361 # Workaround some broken pre-1.5 toolchains
10362 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10365 case $cc_basename in
10367 # Kuck and Associates, Inc. (KAI) C++ Compiler
10369 # KCC will only create a shared library if the output file
10370 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10371 # to its proper name (with version) after linking.
10372 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'
10374 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10375 hardcode_libdir_separator_CXX=:
10377 # Archives containing C++ object files must be created using
10378 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10379 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10383 # Rational C++ 2.4.1
10384 # FIXME: insert proper C++ library support
10388 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10389 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10391 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10392 hardcode_libdir_separator_CXX=:
10394 # Commands to make compiler produce verbose output that lists
10395 # what "hidden" libraries, object files and flags are used when
10396 # linking a shared library.
10398 # There doesn't appear to be a way to prevent this compiler from
10399 # explicitly linking system object files so we need to strip them
10400 # from the output so that they don't get included in the library
10402 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'
10405 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10406 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10407 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10410 hardcode_libdir_separator_CXX=:
10412 # Commands to make compiler produce verbose output that lists
10413 # what "hidden" libraries, object files and flags are used when
10414 # linking a shared library.
10415 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10418 # FIXME: insert proper C++ library support
10425 case $cc_basename in
10427 # Kuck and Associates, Inc. (KAI) C++ Compiler
10429 # KCC will only create a shared library if the output file
10430 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10431 # to its proper name (with version) after linking.
10432 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'
10434 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10435 hardcode_libdir_separator_CXX=:
10437 # Archives containing C++ object files must be created using
10438 # the KAI C++ compiler.
10439 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10442 # Rational C++ 2.4.1
10443 # FIXME: insert proper C++ library support
10447 allow_undefined_flag_CXX=' -expect_unresolved \*'
10448 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10449 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10450 echo "-hidden">> $lib.exp~
10451 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10454 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10455 hardcode_libdir_separator_CXX=:
10457 # Commands to make compiler produce verbose output that lists
10458 # what "hidden" libraries, object files and flags are used when
10459 # linking a shared library.
10461 # There doesn't appear to be a way to prevent this compiler from
10462 # explicitly linking system object files so we need to strip them
10463 # from the output so that they don't get included in the library
10465 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'
10468 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10469 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10470 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10472 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10473 hardcode_libdir_separator_CXX=:
10475 # Commands to make compiler produce verbose output that lists
10476 # what "hidden" libraries, object files and flags are used when
10477 # linking a shared library.
10478 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10481 # FIXME: insert proper C++ library support
10488 # FIXME: insert proper C++ library support
10492 archive_cmds_need_lc_CXX=no
10493 case $cc_basename in
10495 # FIXME: insert proper C++ library support
10499 # FIXME: insert proper C++ library support
10505 case $cc_basename in
10508 # FIXME: insert proper C++ library support
10513 # FIXME: insert proper C++ library support
10517 # FIXME: insert proper C++ library support
10523 case $cc_basename in
10525 # Sun C++ 4.2, 5.x and Centerline C++
10526 no_undefined_flag_CXX=' -zdefs'
10527 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10528 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10529 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10531 hardcode_libdir_flag_spec_CXX='-R$libdir'
10532 hardcode_shlibpath_var_CXX=no
10534 solaris2.0-5 | solaris2.0-5.*) ;;
10536 # The C++ compiler is used as linker so we must use $wl
10537 # flag to pass the commands to the underlying system
10539 # Supported since Solaris 2.6 (maybe 2.5.1?)
10540 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10543 link_all_deplibs_CXX=yes
10545 # Commands to make compiler produce verbose output that lists
10546 # what "hidden" libraries, object files and flags are used when
10547 # linking a shared library.
10549 # There doesn't appear to be a way to prevent this compiler from
10550 # explicitly linking system object files so we need to strip them
10551 # from the output so that they don't get included in the library
10553 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10555 # Archives containing C++ object files must be created using
10556 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10557 # necessary to make sure instantiated templates are included
10559 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10562 # Green Hills C++ Compiler
10563 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10565 # The C++ compiler must be used to create the archive.
10566 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10569 # GNU C++ compiler with Solaris linker
10570 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10571 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10572 if $CC --version | grep -v '^2\.7' > /dev/null; then
10573 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10574 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10575 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10577 # Commands to make compiler produce verbose output that lists
10578 # what "hidden" libraries, object files and flags are used when
10579 # linking a shared library.
10580 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10582 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10584 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10585 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10586 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10588 # Commands to make compiler produce verbose output that lists
10589 # what "hidden" libraries, object files and flags are used when
10590 # linking a shared library.
10591 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10594 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10599 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10600 archive_cmds_need_lc_CXX=no
10603 case $cc_basename in
10605 # NonStop-UX NCC 3.20
10606 # FIXME: insert proper C++ library support
10610 # FIXME: insert proper C++ library support
10616 # FIXME: insert proper C++ library support
10620 # FIXME: insert proper C++ library support
10624 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10625 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10626 test "$ld_shlibs_CXX" = no && can_build_shared=no
10632 cat > conftest.$ac_ext <<EOF
10636 Foo (void) { a = 0; }
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643 (eval $ac_compile) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; then
10647 # Parse the compiler output and extract the necessary
10648 # objects, libraries and library flags.
10650 # Sentinel used to keep track of whether or not we are before
10651 # the conftest object file.
10652 pre_test_object_deps_done=no
10654 # The `*' in the case matches for architectures that use `case' in
10655 # $output_verbose_cmd can trigger glob expansion during the loop
10656 # eval without this substitution.
10657 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10659 for p in `eval $output_verbose_link_cmd`; do
10663 # Some compilers place space between "-{L,R}" and the path.
10664 # Remove the space.
10665 if test $p = "-L" \
10666 || test $p = "-R"; then
10673 if test "$pre_test_object_deps_done" = no; then
10676 # Internal compiler library paths should come after those
10677 # provided the user. The postdeps already come after the
10678 # user supplied libs so there is no need to process them.
10679 if test -z "$compiler_lib_search_path_CXX"; then
10680 compiler_lib_search_path_CXX="${prev}${p}"
10682 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10685 # The "-l" case would never come before the object being
10686 # linked, so don't bother handling this case.
10689 if test -z "$postdeps_CXX"; then
10690 postdeps_CXX="${prev}${p}"
10692 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10698 # This assumes that the test object file only shows up
10699 # once in the compiler output.
10700 if test "$p" = "conftest.$objext"; then
10701 pre_test_object_deps_done=yes
10705 if test "$pre_test_object_deps_done" = no; then
10706 if test -z "$predep_objects_CXX"; then
10707 predep_objects_CXX="$p"
10709 predep_objects_CXX="$predep_objects_CXX $p"
10712 if test -z "$postdep_objects_CXX"; then
10713 postdep_objects_CXX="$p"
10715 postdep_objects_CXX="$postdep_objects_CXX $p"
10720 *) ;; # Ignore the rest.
10728 echo "libtool.m4: error: problem compiling CXX test program"
10731 $rm -f confest.$objext
10733 case " $postdeps_CXX " in
10734 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10737 lt_prog_compiler_wl_CXX=
10738 lt_prog_compiler_pic_CXX=
10739 lt_prog_compiler_static_CXX=
10741 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10742 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10744 # C++ specific cases for pic, static, wl, etc.
10745 if test "$GXX" = yes; then
10746 lt_prog_compiler_wl_CXX='-Wl,'
10747 lt_prog_compiler_static_CXX='-static'
10751 # All AIX code is PIC.
10752 if test "$host_cpu" = ia64; then
10753 # AIX 5 now supports IA64 processor
10754 lt_prog_compiler_static_CXX='-Bstatic'
10758 # FIXME: we need at least 68020 code to build shared libraries, but
10759 # adding the `-m68020' flag to GCC prevents building anything better,
10761 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10763 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10764 # PIC is the default for these OSes.
10766 mingw* | os2* | pw32*)
10767 # This hack is so that the source file can tell whether it is being
10768 # built for inclusion in a dll (and should export symbols for example).
10769 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10771 darwin* | rhapsody*)
10772 # PIC is the default on this platform
10773 # Common symbols not allowed in MH_DYLIB files
10774 lt_prog_compiler_pic_CXX='-fno-common'
10777 # DJGPP does not support shared libraries at all
10778 lt_prog_compiler_pic_CXX=
10781 if test -d /usr/nec; then
10782 lt_prog_compiler_pic_CXX=-Kconform_pic
10786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10787 # not for PA HP-UX.
10788 case "$host_cpu" in
10792 lt_prog_compiler_pic_CXX='-fPIC'
10797 lt_prog_compiler_pic_CXX='-fPIC'
10803 # All AIX code is PIC.
10804 if test "$host_cpu" = ia64; then
10805 # AIX 5 now supports IA64 processor
10806 lt_prog_compiler_static_CXX='-Bstatic'
10808 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10812 case $cc_basename in
10814 # Green Hills C++ Compiler
10815 # _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"
10820 case $cc_basename in
10822 lt_prog_compiler_pic_CXX='-KPIC'
10825 # Green Hills C++ Compiler
10826 lt_prog_compiler_pic_CXX='-pic'
10832 freebsd* | kfreebsd*-gnu)
10833 # FreeBSD uses GNU C++
10835 hpux9* | hpux10* | hpux11*)
10836 case $cc_basename in
10838 lt_prog_compiler_wl_CXX='-Wl,'
10839 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10840 if test "$host_cpu" != ia64; then
10841 lt_prog_compiler_pic_CXX='+Z'
10845 lt_prog_compiler_wl_CXX='-Wl,'
10846 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10847 case "$host_cpu" in
10852 lt_prog_compiler_pic_CXX='+Z'
10860 irix5* | irix6* | nonstopux*)
10861 case $cc_basename in
10863 lt_prog_compiler_wl_CXX='-Wl,'
10864 lt_prog_compiler_static_CXX='-non_shared'
10865 # CC pic flag -KPIC is the default.
10872 case $cc_basename in
10875 lt_prog_compiler_wl_CXX='--backend -Wl,'
10876 lt_prog_compiler_pic_CXX='-fPIC'
10880 lt_prog_compiler_wl_CXX='-Wl,'
10881 lt_prog_compiler_pic_CXX='-KPIC'
10882 lt_prog_compiler_static_CXX='-static'
10886 # Make sure the PIC flag is empty. It appears that all Alpha
10887 # Linux and Compaq Tru64 Unix objects are PIC.
10888 lt_prog_compiler_pic_CXX=
10889 lt_prog_compiler_static_CXX='-non_shared'
10900 case $cc_basename in
10902 lt_prog_compiler_pic_CXX='-W c,exportall'
10908 netbsd* | knetbsd*-gnu)
10910 osf3* | osf4* | osf5*)
10911 case $cc_basename in
10913 lt_prog_compiler_wl_CXX='--backend -Wl,'
10916 # Rational C++ 2.4.1
10917 lt_prog_compiler_pic_CXX='-pic'
10920 # Digital/Compaq C++
10921 lt_prog_compiler_wl_CXX='-Wl,'
10922 # Make sure the PIC flag is empty. It appears that all Alpha
10923 # Linux and Compaq Tru64 Unix objects are PIC.
10924 lt_prog_compiler_pic_CXX=
10925 lt_prog_compiler_static_CXX='-non_shared'
10934 case $cc_basename in
10936 lt_prog_compiler_pic_CXX='-fPIC'
10943 case $cc_basename in
10945 # Sun C++ 4.2, 5.x and Centerline C++
10946 lt_prog_compiler_pic_CXX='-KPIC'
10947 lt_prog_compiler_static_CXX='-Bstatic'
10948 lt_prog_compiler_wl_CXX='-Qoption ld '
10951 # Green Hills C++ Compiler
10952 lt_prog_compiler_pic_CXX='-PIC'
10959 case $cc_basename in
10962 lt_prog_compiler_pic_CXX='-pic'
10963 lt_prog_compiler_static_CXX='-Bstatic'
10967 lt_prog_compiler_pic_CXX='-pic'
10974 case $cc_basename in
10976 # NonStop-UX NCC 3.20
10977 lt_prog_compiler_pic_CXX='-KPIC'
10988 lt_prog_compiler_can_build_shared_CXX=no
10993 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10994 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10997 # Check to make sure the PIC flag actually works.
10999 if test -n "$lt_prog_compiler_pic_CXX"; then
11001 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11003 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 lt_prog_compiler_pic_works_CXX=no
11007 ac_outfile=conftest.$ac_objext
11008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11009 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11010 # Insert the option either (1) after the last *FLAGS variable, or
11011 # (2) before a word containing "conftest.", or (3) at the end.
11012 # Note that $ac_compile itself does not contain backslashes and begins
11013 # with a dollar sign (not a hyphen), so the echo should work correctly.
11014 # The option is referenced via a variable to avoid confusing sed.
11015 lt_compile=`echo "$ac_compile" | $SED \
11016 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11018 -e 's:$: $lt_compiler_flag:'`
11019 (eval echo "\"\$as_me:11019: $lt_compile\"" >&5)
11020 (eval "$lt_compile" 2>conftest.err)
11022 cat conftest.err >&5
11023 echo "$as_me:11023: \$? = $ac_status" >&5
11024 if (exit $ac_status) && test -s "$ac_outfile"; then
11025 # The compiler can only warn and ignore the option if not recognized
11026 # So say no if there are warnings
11027 if test ! -s conftest.err; then
11028 lt_prog_compiler_pic_works_CXX=yes
11034 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11035 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11037 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11038 case $lt_prog_compiler_pic_CXX in
11040 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11043 lt_prog_compiler_pic_CXX=
11044 lt_prog_compiler_can_build_shared_CXX=no
11049 # For platforms which do not support PIC, -DPIC is meaningless:
11051 lt_prog_compiler_pic_CXX=
11054 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11058 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11059 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11060 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 lt_cv_prog_compiler_c_o_CXX=no
11064 $rm -r conftest 2>/dev/null
11068 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11070 lt_compiler_flag="-o out/conftest2.$ac_objext"
11071 # Insert the option either (1) after the last *FLAGS variable, or
11072 # (2) before a word containing "conftest.", or (3) at the end.
11073 # Note that $ac_compile itself does not contain backslashes and begins
11074 # with a dollar sign (not a hyphen), so the echo should work correctly.
11075 lt_compile=`echo "$ac_compile" | $SED \
11076 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11078 -e 's:$: $lt_compiler_flag:'`
11079 (eval echo "\"\$as_me:11079: $lt_compile\"" >&5)
11080 (eval "$lt_compile" 2>out/conftest.err)
11082 cat out/conftest.err >&5
11083 echo "$as_me:11083: \$? = $ac_status" >&5
11084 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11086 # The compiler can only warn and ignore the option if not recognized
11087 # So say no if there are warnings
11088 if test ! -s out/conftest.err; then
11089 lt_cv_prog_compiler_c_o_CXX=yes
11094 # SGI C++ compiler will create directory out/ii_files/ for
11095 # template instantiation
11096 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11097 $rm out/* && rmdir out
11103 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11104 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11107 hard_links="nottested"
11108 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11109 # do not overwrite the value of need_locks provided by the user
11110 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11111 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11116 ln conftest.a conftest.b 2>&5 || hard_links=no
11117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11118 echo "$as_me:$LINENO: result: $hard_links" >&5
11119 echo "${ECHO_T}$hard_links" >&6
11120 if test "$hard_links" = no; then
11121 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11122 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11129 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11130 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11135 # If we're using GNU nm, then we don't want the "-C" option.
11136 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11137 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11138 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'
11140 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'
11144 export_symbols_cmds_CXX="$ltdll_cmds"
11147 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11150 link_all_deplibs_CXX=no
11153 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11157 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11158 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11159 test "$ld_shlibs_CXX" = no && can_build_shared=no
11161 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11162 if test "$GCC" = yes; then
11163 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11167 # Do we need to explicitly link libc?
11169 case "x$archive_cmds_need_lc_CXX" in
11171 # Assume -lc should be added
11172 archive_cmds_need_lc_CXX=yes
11174 if test "$enable_shared" = yes && test "$GCC" = yes; then
11175 case $archive_cmds_CXX in
11177 # FIXME: we may have to deal with multi-command sequences.
11180 # Test whether the compiler implicitly links with -lc since on some
11181 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11182 # to ld, don't add -lc before -lgcc.
11183 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11184 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189 (eval $ac_compile) 2>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } 2>conftest.err; then
11195 libobjs=conftest.$ac_objext
11197 wl=$lt_prog_compiler_wl_CXX
11203 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11204 allow_undefined_flag_CXX=
11205 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11206 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }
11211 archive_cmds_need_lc_CXX=no
11213 archive_cmds_need_lc_CXX=yes
11215 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11217 cat conftest.err 1>&5
11220 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11221 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11228 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11229 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11230 library_names_spec=
11231 libname_spec='lib$name'
11235 postuninstall_cmds=
11239 shlibpath_overrides_runpath=unknown
11241 dynamic_linker="$host_os ld.so"
11242 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11243 if test "$GCC" = yes; then
11244 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11245 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11246 # if the path contains ";" then we assume it to be the separator
11247 # otherwise default to the standard path separator (i.e. ":") - it is
11248 # assumed that no part of a normal pathname contains ";" but that should
11249 # okay in the real world where ";" in dirpaths is itself problematic.
11250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11255 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11257 need_lib_prefix=unknown
11258 hardcode_into_libs=no
11260 # when you set need_version to no, make sure it does not cause -set_version
11261 # flags to be left without arguments
11262 need_version=unknown
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11268 shlibpath_var=LIBPATH
11270 # AIX 3 has no versioning support, so we append a major version to the name.
11271 soname_spec='${libname}${release}${shared_ext}$major'
11278 hardcode_into_libs=yes
11279 if test "$host_cpu" = ia64; then
11280 # AIX 5 supports IA64
11281 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11282 shlibpath_var=LD_LIBRARY_PATH
11284 # With GCC up to 2.95.x, collect2 would create an import file
11285 # for dependence libraries. The import file would start with
11286 # the line `#! .'. This would cause the generated library to
11287 # depend on `.', always an invalid library. This was fixed in
11288 # development snapshots of GCC prior to 3.0.
11290 aix4 | aix4.[01] | aix4.[01].*)
11291 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11293 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11296 can_build_shared=no
11300 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11301 # soname into executable. Probably we can add versioning support to
11302 # collect2, so additional links can be useful in future.
11303 if test "$aix_use_runtimelinking" = yes; then
11304 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11305 # instead of lib<name>.a to let people know that these are not
11306 # typical AIX shared libraries.
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309 # We preserve .a as extension for shared libraries through AIX4.2
11310 # and later when we are not doing run time linking.
11311 library_names_spec='${libname}${release}.a $libname.a'
11312 soname_spec='${libname}${release}${shared_ext}$major'
11314 shlibpath_var=LIBPATH
11319 library_names_spec='$libname.ixlibrary $libname.a'
11320 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11321 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'
11325 library_names_spec='${libname}${shared_ext}'
11326 dynamic_linker="$host_os ld.so"
11327 shlibpath_var=LIBRARY_PATH
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11338 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11339 # the default ld.so.conf also contains /usr/contrib/lib and
11340 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11341 # libtool to hard-code these into programs
11344 cygwin* | mingw* | pw32*)
11345 version_type=windows
11350 case $GCC,$host_os in
11351 yes,cygwin* | yes,mingw* | yes,pw32*)
11352 library_names_spec='$libname.dll.a'
11353 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11354 postinstall_cmds='base_file=`basename \${file}`~
11355 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11356 dldir=$destdir/`dirname \$dlpath`~
11357 test -d \$dldir || mkdir -p \$dldir~
11358 $install_prog $dir/$dlname \$dldir/$dlname'
11359 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11360 dlpath=$dir/\$dldll~
11362 shlibpath_overrides_runpath=yes
11366 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11367 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11368 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11371 # MinGW DLLs use traditional 'lib' prefix
11372 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11373 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11374 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11375 # It is most probably a Windows format PATH printed by
11376 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11377 # path with ; separators, and with drive letters. We can handle the
11378 # drive letters (cygwin fileutils understands them), so leave them,
11379 # especially as we might pass files found there to a mingw objdump,
11380 # which wouldn't understand a cygwinified path. Ahh.
11381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11387 # pw32 DLLs use 'pw' prefix rather than 'lib'
11388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11394 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11397 dynamic_linker='Win32 ld.exe'
11398 # FIXME: first we should search . and the directory the executable is in
11402 darwin* | rhapsody*)
11403 dynamic_linker="$host_os dyld"
11404 version_type=darwin
11407 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11408 soname_spec='${libname}${release}${major}$shared_ext'
11409 shlibpath_overrides_runpath=yes
11410 shlibpath_var=DYLD_LIBRARY_PATH
11411 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11412 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11413 if test "$GCC" = yes; then
11414 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"`
11416 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11418 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11426 soname_spec='${libname}${release}${shared_ext}$major'
11427 shlibpath_var=LD_LIBRARY_PATH
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11439 soname_spec='${libname}${release}${shared_ext}$major'
11440 shlibpath_var=LD_LIBRARY_PATH
11441 shlibpath_overrides_runpath=no
11442 hardcode_into_libs=yes
11443 dynamic_linker='GNU ld.so'
11447 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11448 version_type=freebsd-$objformat
11449 case $version_type in
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11460 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11465 freebsd3.01* | freebsdelf3.01*)
11466 shlibpath_overrides_runpath=yes
11467 hardcode_into_libs=yes
11470 shlibpath_overrides_runpath=no
11471 hardcode_into_libs=yes
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 hardcode_into_libs=yes
11486 hpux9* | hpux10* | hpux11*)
11487 # Give a soname corresponding to the major version so that dld.sl refuses to
11488 # link against other versions.
11492 case "$host_cpu" in
11495 hardcode_into_libs=yes
11496 dynamic_linker="$host_os dld.so"
11497 shlibpath_var=LD_LIBRARY_PATH
11498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 if test "X$HPUX_IA64_MODE" = X32; then
11502 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11504 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11510 hardcode_into_libs=yes
11511 dynamic_linker="$host_os dld.sl"
11512 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 soname_spec='${libname}${release}${shared_ext}$major'
11516 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11521 dynamic_linker="$host_os dld.sl"
11522 shlibpath_var=SHLIB_PATH
11523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11528 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11529 postinstall_cmds='chmod 555 $lib'
11532 irix5* | irix6* | nonstopux*)
11534 nonstopux*) version_type=nonstopux ;;
11536 if test "$lt_cv_prog_gnu_ld" = yes; then
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11547 irix5* | nonstopux*)
11548 libsuff= shlibsuff=
11551 case $LD in # libtool.m4 will add one of these switches to LD
11552 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11553 libsuff= shlibsuff= libmagic=32-bit;;
11554 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11555 libsuff=32 shlibsuff=N32 libmagic=N32;;
11556 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11557 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11558 *) libsuff= shlibsuff= libmagic=never-match;;
11562 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11563 shlibpath_overrides_runpath=no
11564 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11565 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11566 hardcode_into_libs=yes
11569 # No shared lib support for Linux oldld, aout, or coff.
11570 linux*oldld* | linux*aout* | linux*coff*)
11574 # This must be Linux ELF.
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580 soname_spec='${libname}${release}${shared_ext}$major'
11581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 # This implies no fast_install, which is unacceptable.
11585 # Some rework will be needed to allow for fast_install
11586 # before this can be enabled.
11587 hardcode_into_libs=yes
11589 # Append ld.so.conf contents to the search path
11590 if test -f /etc/ld.so.conf; then
11591 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11592 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11595 # We used to test for /lib/ld.so.1 and disable shared libraries on
11596 # powerpc, because MkLinux only supported shared libraries with the
11597 # GNU dynamic linker. Since this was broken with cross compilers,
11598 # most powerpc-linux boxes support dynamic linking these days and
11599 # people can always --disable-shared, the test was removed, and we
11600 # assume the GNU/Linux dynamic linker is in use.
11601 dynamic_linker='GNU/Linux ld.so'
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11609 soname_spec='${libname}${release}${shared_ext}$major'
11610 shlibpath_var=LD_LIBRARY_PATH
11611 shlibpath_overrides_runpath=no
11612 hardcode_into_libs=yes
11613 dynamic_linker='GNU ld.so'
11620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11623 dynamic_linker='NetBSD (a.out) ld.so'
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11626 soname_spec='${libname}${release}${shared_ext}$major'
11627 dynamic_linker='NetBSD ld.elf_so'
11629 shlibpath_var=LD_LIBRARY_PATH
11630 shlibpath_overrides_runpath=yes
11631 hardcode_into_libs=yes
11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 shlibpath_overrides_runpath=yes
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646 soname_spec='${libname}${release}${shared_ext}$major'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 shlibpath_overrides_runpath=yes
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11657 shlibpath_var=LD_LIBRARY_PATH
11658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11660 openbsd2.[89] | openbsd2.[89].*)
11661 shlibpath_overrides_runpath=no
11664 shlibpath_overrides_runpath=yes
11668 shlibpath_overrides_runpath=yes
11673 libname_spec='$name'
11676 library_names_spec='$libname${shared_ext} $libname.a'
11677 dynamic_linker='OS/2 ld.exe'
11678 shlibpath_var=LIBPATH
11681 osf3* | osf4* | osf5*)
11685 soname_spec='${libname}${release}${shared_ext}$major'
11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11687 shlibpath_var=LD_LIBRARY_PATH
11688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696 shlibpath_var=LD_LIBRARY_PATH
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 shlibpath_overrides_runpath=yes
11707 hardcode_into_libs=yes
11708 # ldd complains unless libraries are executable
11709 postinstall_cmds='chmod +x $lib'
11714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=yes
11718 if test "$with_gnu_ld" = yes; then
11724 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 case $host_vendor in
11731 shlibpath_overrides_runpath=no
11733 export_dynamic_flag_spec='${wl}-Blargedynsym'
11734 runpath_var=LD_RUN_PATH
11742 shlibpath_overrides_runpath=no
11743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11749 if test -d /usr/nec ;then
11751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11752 soname_spec='$libname${shared_ext}.$major'
11753 shlibpath_var=LD_LIBRARY_PATH
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 shlibpath_var=LD_LIBRARY_PATH
11768 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11769 echo "${ECHO_T}$dynamic_linker" >&6
11770 test "$dynamic_linker" = no && can_build_shared=no
11772 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11773 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11774 hardcode_action_CXX=
11775 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11776 test -n "$runpath_var CXX" || \
11777 test "X$hardcode_automatic_CXX"="Xyes" ; then
11779 # We can hardcode non-existant directories.
11780 if test "$hardcode_direct_CXX" != no &&
11781 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11782 # have to relink, otherwise we might link with an installed library
11783 # when we should be linking with a yet-to-be-installed one
11784 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11785 test "$hardcode_minus_L_CXX" != no; then
11786 # Linking always hardcodes the temporary library directory.
11787 hardcode_action_CXX=relink
11789 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11790 hardcode_action_CXX=immediate
11793 # We cannot hardcode anything, or else we can only hardcode existing
11795 hardcode_action_CXX=unsupported
11797 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11798 echo "${ECHO_T}$hardcode_action_CXX" >&6
11800 if test "$hardcode_action_CXX" = relink; then
11801 # Fast installation is not supported
11802 enable_fast_install=no
11803 elif test "$shlibpath_overrides_runpath" = yes ||
11804 test "$enable_shared" = no; then
11805 # Fast installation is not necessary
11806 enable_fast_install=needless
11811 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11812 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11813 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11814 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11815 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11816 echo "$as_me:$LINENO: result: yes" >&5
11817 echo "${ECHO_T}yes" >&6
11819 # FIXME - insert some real tests, host_os isn't really good enough
11822 if test -n "$STRIP" ; then
11823 striplib="$STRIP -x"
11824 echo "$as_me:$LINENO: result: yes" >&5
11825 echo "${ECHO_T}yes" >&6
11827 echo "$as_me:$LINENO: result: no" >&5
11828 echo "${ECHO_T}no" >&6
11832 echo "$as_me:$LINENO: result: no" >&5
11833 echo "${ECHO_T}no" >&6
11838 if test "x$enable_dlopen" != xyes; then
11839 enable_dlopen=unknown
11840 enable_dlopen_self=unknown
11841 enable_dlopen_self_static=unknown
11848 lt_cv_dlopen="load_add_on"
11850 lt_cv_dlopen_self=yes
11854 lt_cv_dlopen="LoadLibrary"
11859 lt_cv_dlopen="dlopen"
11864 # if libdl is installed we need to link against it
11865 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 ac_check_lib_save_LIBS=$LIBS
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11879 /* Override any gcc2 internal prototype to avoid an error. */
11883 /* We use char because int might match the return type of a gcc2
11884 builtin and then its argument prototype would still apply. */
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>conftest.er1
11898 grep -v '^ *+' conftest.er1 >conftest.err
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; } &&
11909 { ac_try='test -s conftest$ac_exeext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ac_cv_lib_dl_dlopen=yes
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_cv_lib_dl_dlopen=no
11922 rm -f conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11926 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11927 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11928 if test $ac_cv_lib_dl_dlopen = yes; then
11929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11932 lt_cv_dlopen="dyld"
11934 lt_cv_dlopen_self=yes
11941 echo "$as_me:$LINENO: checking for shl_load" >&5
11942 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11943 if test "${ac_cv_func_shl_load+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11954 #define shl_load innocuous_shl_load
11956 /* System header to define __stub macros and hopefully few prototypes,
11957 which can conflict with char shl_load (); below.
11958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959 <limits.h> exists even on freestanding compilers. */
11962 # include <limits.h>
11964 # include <assert.h>
11969 /* Override any gcc2 internal prototype to avoid an error. */
11974 /* We use char because int might match the return type of a gcc2
11975 builtin and then its argument prototype would still apply. */
11977 /* The GNU C library defines this for functions which it implements
11978 to always fail with ENOSYS. Some functions are actually named
11979 something starting with __ and the normal name is an alias. */
11980 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11983 char (*f) () = shl_load;
11992 return f != shl_load;
11997 rm -f conftest.$ac_objext conftest$ac_exeext
11998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11999 (eval $ac_link) 2>conftest.er1
12001 grep -v '^ *+' conftest.er1 >conftest.err
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; } &&
12012 { ac_try='test -s conftest$ac_exeext'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 ac_cv_func_shl_load=yes
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12023 ac_cv_func_shl_load=no
12025 rm -f conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12028 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12029 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12030 if test $ac_cv_func_shl_load = yes; then
12031 lt_cv_dlopen="shl_load"
12033 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12034 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 ac_check_lib_save_LIBS=$LIBS
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12047 /* Override any gcc2 internal prototype to avoid an error. */
12051 /* We use char because int might match the return type of a gcc2
12052 builtin and then its argument prototype would still apply. */
12062 rm -f conftest.$ac_objext conftest$ac_exeext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12064 (eval $ac_link) 2>conftest.er1
12066 grep -v '^ *+' conftest.er1 >conftest.err
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 ac_cv_lib_dld_shl_load=yes
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 ac_cv_lib_dld_shl_load=no
12090 rm -f conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_check_lib_save_LIBS
12094 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12095 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12096 if test $ac_cv_lib_dld_shl_load = yes; then
12097 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12099 echo "$as_me:$LINENO: checking for dlopen" >&5
12100 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12101 if test "${ac_cv_func_dlopen+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 cat >conftest.$ac_ext <<_ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12112 #define dlopen innocuous_dlopen
12114 /* System header to define __stub macros and hopefully few prototypes,
12115 which can conflict with char dlopen (); below.
12116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12117 <limits.h> exists even on freestanding compilers. */
12120 # include <limits.h>
12122 # include <assert.h>
12127 /* Override any gcc2 internal prototype to avoid an error. */
12132 /* We use char because int might match the return type of a gcc2
12133 builtin and then its argument prototype would still apply. */
12135 /* The GNU C library defines this for functions which it implements
12136 to always fail with ENOSYS. Some functions are actually named
12137 something starting with __ and the normal name is an alias. */
12138 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12141 char (*f) () = dlopen;
12150 return f != dlopen;
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12157 (eval $ac_link) 2>conftest.er1
12159 grep -v '^ *+' conftest.er1 >conftest.err
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
12164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try='test -s conftest$ac_exeext'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 ac_cv_func_dlopen=yes
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_cv_func_dlopen=no
12183 rm -f conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12186 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12187 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12188 if test $ac_cv_func_dlopen = yes; then
12189 lt_cv_dlopen="dlopen"
12191 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12192 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12193 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 ac_check_lib_save_LIBS=$LIBS
12198 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12205 /* Override any gcc2 internal prototype to avoid an error. */
12209 /* We use char because int might match the return type of a gcc2
12210 builtin and then its argument prototype would still apply. */
12220 rm -f conftest.$ac_objext conftest$ac_exeext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222 (eval $ac_link) 2>conftest.er1
12224 grep -v '^ *+' conftest.er1 >conftest.err
12226 cat conftest.err >&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } &&
12229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest$ac_exeext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_cv_lib_dl_dlopen=yes
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_cv_lib_dl_dlopen=no
12248 rm -f conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250 LIBS=$ac_check_lib_save_LIBS
12252 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12253 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12254 if test $ac_cv_lib_dl_dlopen = yes; then
12255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12257 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12258 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12259 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 ac_check_lib_save_LIBS=$LIBS
12263 LIBS="-lsvld $LIBS"
12264 cat >conftest.$ac_ext <<_ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12271 /* Override any gcc2 internal prototype to avoid an error. */
12275 /* We use char because int might match the return type of a gcc2
12276 builtin and then its argument prototype would still apply. */
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12288 (eval $ac_link) 2>conftest.er1
12290 grep -v '^ *+' conftest.er1 >conftest.err
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; } &&
12301 { ac_try='test -s conftest$ac_exeext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_lib_svld_dlopen=yes
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_cv_lib_svld_dlopen=no
12314 rm -f conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
12316 LIBS=$ac_check_lib_save_LIBS
12318 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12319 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12320 if test $ac_cv_lib_svld_dlopen = yes; then
12321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12323 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12324 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12325 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 ac_check_lib_save_LIBS=$LIBS
12330 cat >conftest.$ac_ext <<_ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12337 /* Override any gcc2 internal prototype to avoid an error. */
12341 /* We use char because int might match the return type of a gcc2
12342 builtin and then its argument prototype would still apply. */
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; } &&
12367 { ac_try='test -s conftest$ac_exeext'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_cv_lib_dld_dld_link=yes
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 ac_cv_lib_dld_dld_link=no
12380 rm -f conftest.err conftest.$ac_objext \
12381 conftest$ac_exeext conftest.$ac_ext
12382 LIBS=$ac_check_lib_save_LIBS
12384 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12385 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12386 if test $ac_cv_lib_dld_dld_link = yes; then
12387 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12408 if test "x$lt_cv_dlopen" != xno; then
12414 case $lt_cv_dlopen in
12416 save_CPPFLAGS="$CPPFLAGS"
12417 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12419 save_LDFLAGS="$LDFLAGS"
12420 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12423 LIBS="$lt_cv_dlopen_libs $LIBS"
12425 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12426 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12427 if test "${lt_cv_dlopen_self+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 if test "$cross_compiling" = yes; then :
12431 lt_cv_dlopen_self=cross
12433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12434 lt_status=$lt_dlunknown
12435 cat > conftest.$ac_ext <<EOF
12436 #line 12436 "configure"
12437 #include "confdefs.h"
12446 # define LT_DLGLOBAL RTLD_GLOBAL
12449 # define LT_DLGLOBAL DL_GLOBAL
12451 # define LT_DLGLOBAL 0
12455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12456 find out it does not work in some platform. */
12457 #ifndef LT_DLLAZY_OR_NOW
12459 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12462 # define LT_DLLAZY_OR_NOW DL_LAZY
12465 # define LT_DLLAZY_OR_NOW RTLD_NOW
12468 # define LT_DLLAZY_OR_NOW DL_NOW
12470 # define LT_DLLAZY_OR_NOW 0
12478 extern "C" void exit (int);
12481 void fnord() { int i=42;}
12484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12485 int status = $lt_dlunknown;
12489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12490 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12491 /* dlclose (self); */
12497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12498 (eval $ac_link) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12502 (./conftest; exit; ) 2>/dev/null
12504 case x$lt_status in
12505 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12506 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12507 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12510 # compilation failed
12511 lt_cv_dlopen_self=no
12518 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12519 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12521 if test "x$lt_cv_dlopen_self" = xyes; then
12522 LDFLAGS="$LDFLAGS $link_static_flag"
12523 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12524 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12525 if test "${lt_cv_dlopen_self_static+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 if test "$cross_compiling" = yes; then :
12529 lt_cv_dlopen_self_static=cross
12531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12532 lt_status=$lt_dlunknown
12533 cat > conftest.$ac_ext <<EOF
12534 #line 12534 "configure"
12535 #include "confdefs.h"
12544 # define LT_DLGLOBAL RTLD_GLOBAL
12547 # define LT_DLGLOBAL DL_GLOBAL
12549 # define LT_DLGLOBAL 0
12553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12554 find out it does not work in some platform. */
12555 #ifndef LT_DLLAZY_OR_NOW
12557 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12560 # define LT_DLLAZY_OR_NOW DL_LAZY
12563 # define LT_DLLAZY_OR_NOW RTLD_NOW
12566 # define LT_DLLAZY_OR_NOW DL_NOW
12568 # define LT_DLLAZY_OR_NOW 0
12576 extern "C" void exit (int);
12579 void fnord() { int i=42;}
12582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12583 int status = $lt_dlunknown;
12587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12588 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12589 /* dlclose (self); */
12595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12596 (eval $ac_link) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12600 (./conftest; exit; ) 2>/dev/null
12602 case x$lt_status in
12603 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12604 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12605 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12608 # compilation failed
12609 lt_cv_dlopen_self_static=no
12616 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12617 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12620 CPPFLAGS="$save_CPPFLAGS"
12621 LDFLAGS="$save_LDFLAGS"
12626 case $lt_cv_dlopen_self in
12627 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12628 *) enable_dlopen_self=unknown ;;
12631 case $lt_cv_dlopen_self_static in
12632 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12633 *) enable_dlopen_self_static=unknown ;;
12638 # The else clause should only fire when bootstrapping the
12639 # libtool distribution, otherwise you forgot to ship ltmain.sh
12640 # with your package, and you will get complaints that there are
12641 # no rules to generate ltmain.sh.
12642 if test -f "$ltmain"; then
12643 # See if we are running on zsh, and set the options which allow our commands through
12644 # without removal of \ escapes.
12645 if test -n "${ZSH_VERSION+set}" ; then
12646 setopt NO_GLOB_SUBST
12648 # Now quote all the things that may contain metacharacters while being
12649 # careful not to overquote the AC_SUBSTed values. We take copies of the
12650 # variables and quote the copies for generation of the libtool script.
12651 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12653 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12654 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12655 deplibs_check_method reload_flag reload_cmds need_locks \
12656 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12657 lt_cv_sys_global_symbol_to_c_name_address \
12658 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12659 old_postinstall_cmds old_postuninstall_cmds \
12663 lt_prog_compiler_wl_CXX \
12664 lt_prog_compiler_pic_CXX \
12665 lt_prog_compiler_static_CXX \
12666 lt_prog_compiler_no_builtin_flag_CXX \
12667 export_dynamic_flag_spec_CXX \
12668 thread_safe_flag_spec_CXX \
12669 whole_archive_flag_spec_CXX \
12670 enable_shared_with_static_runtimes_CXX \
12671 old_archive_cmds_CXX \
12672 old_archive_from_new_cmds_CXX \
12673 predep_objects_CXX \
12674 postdep_objects_CXX \
12677 compiler_lib_search_path_CXX \
12679 archive_expsym_cmds_CXX \
12680 postinstall_cmds_CXX \
12681 postuninstall_cmds_CXX \
12682 old_archive_from_expsyms_cmds_CXX \
12683 allow_undefined_flag_CXX \
12684 no_undefined_flag_CXX \
12685 export_symbols_cmds_CXX \
12686 hardcode_libdir_flag_spec_CXX \
12687 hardcode_libdir_flag_spec_ld_CXX \
12688 hardcode_libdir_separator_CXX \
12689 hardcode_automatic_CXX \
12691 module_expsym_cmds_CXX \
12692 lt_cv_prog_compiler_c_o_CXX \
12693 exclude_expsyms_CXX \
12694 include_expsyms_CXX; do
12697 old_archive_cmds_CXX | \
12698 old_archive_from_new_cmds_CXX | \
12699 archive_cmds_CXX | \
12700 archive_expsym_cmds_CXX | \
12701 module_cmds_CXX | \
12702 module_expsym_cmds_CXX | \
12703 old_archive_from_expsyms_cmds_CXX | \
12704 export_symbols_cmds_CXX | \
12705 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12706 postinstall_cmds | postuninstall_cmds | \
12707 old_postinstall_cmds | old_postuninstall_cmds | \
12708 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12709 # Double-quote double-evaled strings.
12710 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12713 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12719 *'\$0 --fallback-echo"')
12720 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12726 cat <<__EOF__ >> "$cfgfile"
12727 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12729 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12731 # Shell to use when invoking shell scripts.
12734 # Whether or not to build shared libraries.
12735 build_libtool_libs=$enable_shared
12737 # Whether or not to build static libraries.
12738 build_old_libs=$enable_static
12740 # Whether or not to add -lc for building shared libraries.
12741 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12743 # Whether or not to disallow shared libs when runtime libs are static
12744 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12746 # Whether or not to optimize for fast installation.
12747 fast_install=$enable_fast_install
12750 host_alias=$host_alias
12753 # An echo program that does not interpret backslashes.
12758 AR_FLAGS=$lt_AR_FLAGS
12763 # A language-specific compiler.
12764 CC=$lt_compiler_CXX
12766 # Is the compiler the GNU C compiler?
12772 # The linker used to build libraries.
12775 # Whether we need hard or soft links.
12778 # A BSD-compatible nm program.
12781 # A symbol stripping program
12784 # Used to examine libraries when file_magic_cmd begins "file"
12785 MAGIC_CMD=$MAGIC_CMD
12787 # Used on cygwin: DLL creation program.
12790 # Used on cygwin: object dumper.
12793 # Used on cygwin: assembler.
12796 # The name of the directory that contains temporary libtool files.
12799 # How to create reloadable object files.
12800 reload_flag=$lt_reload_flag
12801 reload_cmds=$lt_reload_cmds
12803 # How to pass a linker flag through the compiler.
12804 wl=$lt_lt_prog_compiler_wl_CXX
12806 # Object file suffix (normally "o").
12807 objext="$ac_objext"
12809 # Old archive suffix (normally "a").
12812 # Shared library suffix (normally ".so").
12813 shrext_cmds='$shrext_cmds'
12815 # Executable file suffix (normally "").
12818 # Additional compiler flags for building library objects.
12819 pic_flag=$lt_lt_prog_compiler_pic_CXX
12822 # What is the maximum length of a command?
12823 max_cmd_len=$lt_cv_sys_max_cmd_len
12825 # Does compiler simultaneously support -c and -o options?
12826 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12828 # Must we lock files when doing compilation ?
12829 need_locks=$lt_need_locks
12831 # Do we need the lib prefix for modules?
12832 need_lib_prefix=$need_lib_prefix
12834 # Do we need a version for libraries?
12835 need_version=$need_version
12837 # Whether dlopen is supported.
12838 dlopen_support=$enable_dlopen
12840 # Whether dlopen of programs is supported.
12841 dlopen_self=$enable_dlopen_self
12843 # Whether dlopen of statically linked programs is supported.
12844 dlopen_self_static=$enable_dlopen_self_static
12846 # Compiler flag to prevent dynamic linking.
12847 link_static_flag=$lt_lt_prog_compiler_static_CXX
12849 # Compiler flag to turn off builtin functions.
12850 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12852 # Compiler flag to allow reflexive dlopens.
12853 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12855 # Compiler flag to generate shared objects directly from archives.
12856 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12858 # Compiler flag to generate thread-safe objects.
12859 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12861 # Library versioning type.
12862 version_type=$version_type
12864 # Format of library name prefix.
12865 libname_spec=$lt_libname_spec
12867 # List of archive names. First name is the real one, the rest are links.
12868 # The last name is the one that the linker finds with -lNAME.
12869 library_names_spec=$lt_library_names_spec
12871 # The coded name of the library, if different from the real name.
12872 soname_spec=$lt_soname_spec
12874 # Commands used to build and install an old-style archive.
12876 old_archive_cmds=$lt_old_archive_cmds_CXX
12877 old_postinstall_cmds=$lt_old_postinstall_cmds
12878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12880 # Create an old-style archive from a shared archive.
12881 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12883 # Create a temporary old-style archive to link instead of a shared archive.
12884 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12886 # Commands used to build and install a shared archive.
12887 archive_cmds=$lt_archive_cmds_CXX
12888 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12889 postinstall_cmds=$lt_postinstall_cmds
12890 postuninstall_cmds=$lt_postuninstall_cmds
12892 # Commands used to build a loadable module (assumed same as above if empty)
12893 module_cmds=$lt_module_cmds_CXX
12894 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12896 # Commands to strip libraries.
12897 old_striplib=$lt_old_striplib
12898 striplib=$lt_striplib
12900 # Dependencies to place before the objects being linked to create a
12902 predep_objects=$lt_predep_objects_CXX
12904 # Dependencies to place after the objects being linked to create a
12906 postdep_objects=$lt_postdep_objects_CXX
12908 # Dependencies to place before the objects being linked to create a
12910 predeps=$lt_predeps_CXX
12912 # Dependencies to place after the objects being linked to create a
12914 postdeps=$lt_postdeps_CXX
12916 # The library search path used internally by the compiler when linking
12917 # a shared library.
12918 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12920 # Method to check whether dependent libraries are shared objects.
12921 deplibs_check_method=$lt_deplibs_check_method
12923 # Command to use when deplibs_check_method == file_magic.
12924 file_magic_cmd=$lt_file_magic_cmd
12926 # Flag that allows shared libraries with undefined symbols to be built.
12927 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12929 # Flag that forces no undefined symbols.
12930 no_undefined_flag=$lt_no_undefined_flag_CXX
12932 # Commands used to finish a libtool library installation in a directory.
12933 finish_cmds=$lt_finish_cmds
12935 # Same as above, but a single script fragment to be evaled but not shown.
12936 finish_eval=$lt_finish_eval
12938 # Take the output of nm and produce a listing of raw symbols and C names.
12939 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12941 # Transform the output of nm in a proper C declaration
12942 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12944 # Transform the output of nm in a C name address pair
12945 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12947 # This is the shared library runtime path variable.
12948 runpath_var=$runpath_var
12950 # This is the shared library path variable.
12951 shlibpath_var=$shlibpath_var
12953 # Is shlibpath searched before the hard-coded library search path?
12954 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12956 # How to hardcode a shared library path into an executable.
12957 hardcode_action=$hardcode_action_CXX
12959 # Whether we should hardcode library paths into libraries.
12960 hardcode_into_libs=$hardcode_into_libs
12962 # Flag to hardcode \$libdir into a binary during linking.
12963 # This must work even if \$libdir does not exist.
12964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12966 # If ld is used when linking, flag to hardcode \$libdir into
12967 # a binary during linking. This must work even if \$libdir does
12969 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12971 # Whether we need a single -rpath flag with a separated argument.
12972 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12974 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12975 # resulting binary.
12976 hardcode_direct=$hardcode_direct_CXX
12978 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12979 # resulting binary.
12980 hardcode_minus_L=$hardcode_minus_L_CXX
12982 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12983 # the resulting binary.
12984 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12986 # Set to yes if building a shared library automatically hardcodes DIR into the library
12987 # and all subsequent libraries and executables linked against it.
12988 hardcode_automatic=$hardcode_automatic_CXX
12990 # Variables whose values should be saved in libtool wrapper scripts and
12991 # restored at relink time.
12992 variables_saved_for_relink="$variables_saved_for_relink"
12994 # Whether libtool must link a program against all its dependency libraries.
12995 link_all_deplibs=$link_all_deplibs_CXX
12997 # Compile-time system search path for libraries
12998 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13000 # Run-time system search path for libraries
13001 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13003 # Fix the shell variable \$srcfile for the compiler.
13004 fix_srcfile_path="$fix_srcfile_path_CXX"
13006 # Set to yes if exported symbols are required.
13007 always_export_symbols=$always_export_symbols_CXX
13009 # The commands to list exported symbols.
13010 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13012 # The commands to extract the exported symbol list from a shared archive.
13013 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13015 # Symbols that should not be listed in the preloaded symbols.
13016 exclude_expsyms=$lt_exclude_expsyms_CXX
13018 # Symbols that must always be exported.
13019 include_expsyms=$lt_include_expsyms_CXX
13021 # ### END LIBTOOL TAG CONFIG: $tagname
13027 # If there is no Makefile yet, we rely on a make rule to execute
13028 # `config.status --recheck' to rerun these tests and create the
13029 # libtool script then.
13030 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13031 if test -f "$ltmain_in"; then
13032 test -f Makefile && make "$ltmain"
13038 ac_cpp='$CPP $CPPFLAGS'
13039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13047 with_gnu_ldcxx=$with_gnu_ld
13048 with_gnu_ld=$lt_save_with_gnu_ld
13049 lt_cv_path_LDCXX=$lt_cv_path_LD
13050 lt_cv_path_LD=$lt_save_path_LD
13051 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13052 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13060 if test -n "$F77" && test "X$F77" != "Xno"; then
13063 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13064 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13065 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13068 archive_cmds_need_lc_F77=no
13069 allow_undefined_flag_F77=
13070 always_export_symbols_F77=no
13071 archive_expsym_cmds_F77=
13072 export_dynamic_flag_spec_F77=
13073 hardcode_direct_F77=no
13074 hardcode_libdir_flag_spec_F77=
13075 hardcode_libdir_flag_spec_ld_F77=
13076 hardcode_libdir_separator_F77=
13077 hardcode_minus_L_F77=no
13078 hardcode_automatic_F77=no
13080 module_expsym_cmds_F77=
13081 link_all_deplibs_F77=unknown
13082 old_archive_cmds_F77=$old_archive_cmds
13083 no_undefined_flag_F77=
13084 whole_archive_flag_spec_F77=
13085 enable_shared_with_static_runtimes_F77=no
13087 # Source file extension for f77 test sources.
13090 # Object file extension for compiled f77 test sources.
13094 # Code to be used in simple compile tests
13095 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13097 # Code to be used in simple link tests
13098 lt_simple_link_test_code=" program t\n end\n"
13100 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13102 # If no C compiler was specified, use CC.
13105 # Allow CC to be a program name with arguments.
13109 # Allow CC to be a program name with arguments.
13114 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13116 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13117 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13118 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13119 echo "${ECHO_T}$can_build_shared" >&6
13121 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13122 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13123 test "$can_build_shared" = "no" && enable_shared=no
13125 # On AIX, shared libraries and static libraries use the same namespace, and
13126 # are all built from PIC.
13129 test "$enable_shared" = yes && enable_static=no
13130 if test -n "$RANLIB"; then
13131 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13132 postinstall_cmds='$RANLIB $lib'
13136 test "$enable_shared" = yes && enable_static=no
13139 echo "$as_me:$LINENO: result: $enable_shared" >&5
13140 echo "${ECHO_T}$enable_shared" >&6
13142 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13143 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13144 # Make sure either enable_shared or enable_static is yes.
13145 test "$enable_shared" = yes || enable_static=yes
13146 echo "$as_me:$LINENO: result: $enable_static" >&5
13147 echo "${ECHO_T}$enable_static" >&6
13149 test "$ld_shlibs_F77" = no && can_build_shared=no
13154 lt_prog_compiler_wl_F77=
13155 lt_prog_compiler_pic_F77=
13156 lt_prog_compiler_static_F77=
13158 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13159 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13161 if test "$GCC" = yes; then
13162 lt_prog_compiler_wl_F77='-Wl,'
13163 lt_prog_compiler_static_F77='-static'
13167 # All AIX code is PIC.
13168 if test "$host_cpu" = ia64; then
13169 # AIX 5 now supports IA64 processor
13170 lt_prog_compiler_static_F77='-Bstatic'
13175 # FIXME: we need at least 68020 code to build shared libraries, but
13176 # adding the `-m68020' flag to GCC prevents building anything better,
13178 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13181 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13182 # PIC is the default for these OSes.
13185 mingw* | pw32* | os2*)
13186 # This hack is so that the source file can tell whether it is being
13187 # built for inclusion in a dll (and should export symbols for example).
13188 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13191 darwin* | rhapsody*)
13192 # PIC is the default on this platform
13193 # Common symbols not allowed in MH_DYLIB files
13194 lt_prog_compiler_pic_F77='-fno-common'
13198 # Just because we use GCC doesn't mean we suddenly get shared libraries
13199 # on systems that don't support them.
13200 lt_prog_compiler_can_build_shared_F77=no
13205 if test -d /usr/nec; then
13206 lt_prog_compiler_pic_F77=-Kconform_pic
13211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13212 # not for PA HP-UX.
13213 case "$host_cpu" in
13218 lt_prog_compiler_pic_F77='-fPIC'
13224 lt_prog_compiler_pic_F77='-fPIC'
13228 # PORTME Check for flag to pass linker flags through the system compiler.
13231 lt_prog_compiler_wl_F77='-Wl,'
13232 if test "$host_cpu" = ia64; then
13233 # AIX 5 now supports IA64 processor
13234 lt_prog_compiler_static_F77='-Bstatic'
13236 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13240 mingw* | pw32* | os2*)
13241 # This hack is so that the source file can tell whether it is being
13242 # built for inclusion in a dll (and should export symbols for example).
13243 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13246 hpux9* | hpux10* | hpux11*)
13247 lt_prog_compiler_wl_F77='-Wl,'
13248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13249 # not for PA HP-UX.
13250 case "$host_cpu" in
13255 lt_prog_compiler_pic_F77='+Z'
13258 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13259 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13262 irix5* | irix6* | nonstopux*)
13263 lt_prog_compiler_wl_F77='-Wl,'
13264 # PIC (with -KPIC) is the default.
13265 lt_prog_compiler_static_F77='-non_shared'
13269 lt_prog_compiler_pic_F77='-KPIC'
13270 lt_prog_compiler_static_F77='-Bstatic'
13276 lt_prog_compiler_wl_F77='-Wl,'
13277 lt_prog_compiler_pic_F77='-KPIC'
13278 lt_prog_compiler_static_F77='-static'
13281 lt_prog_compiler_wl_F77='-Wl,'
13282 # All Alpha code is PIC.
13283 lt_prog_compiler_static_F77='-non_shared'
13288 osf3* | osf4* | osf5*)
13289 lt_prog_compiler_wl_F77='-Wl,'
13290 # All OSF/1 code is PIC.
13291 lt_prog_compiler_static_F77='-non_shared'
13295 lt_prog_compiler_pic_F77='-Kpic'
13296 lt_prog_compiler_static_F77='-dn'
13300 lt_prog_compiler_wl_F77='-Wl,'
13301 lt_prog_compiler_pic_F77='-KPIC'
13302 lt_prog_compiler_static_F77='-Bstatic'
13306 lt_prog_compiler_wl_F77='-Qoption ld '
13307 lt_prog_compiler_pic_F77='-PIC'
13308 lt_prog_compiler_static_F77='-Bstatic'
13311 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13312 lt_prog_compiler_wl_F77='-Wl,'
13313 lt_prog_compiler_pic_F77='-KPIC'
13314 lt_prog_compiler_static_F77='-Bstatic'
13318 if test -d /usr/nec ;then
13319 lt_prog_compiler_pic_F77='-Kconform_pic'
13320 lt_prog_compiler_static_F77='-Bstatic'
13325 lt_prog_compiler_pic_F77='-pic'
13326 lt_prog_compiler_static_F77='-Bstatic'
13330 lt_prog_compiler_can_build_shared_F77=no
13335 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13336 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13339 # Check to make sure the PIC flag actually works.
13341 if test -n "$lt_prog_compiler_pic_F77"; then
13343 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13344 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13345 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 lt_prog_compiler_pic_works_F77=no
13349 ac_outfile=conftest.$ac_objext
13350 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13351 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13352 # Insert the option either (1) after the last *FLAGS variable, or
13353 # (2) before a word containing "conftest.", or (3) at the end.
13354 # Note that $ac_compile itself does not contain backslashes and begins
13355 # with a dollar sign (not a hyphen), so the echo should work correctly.
13356 # The option is referenced via a variable to avoid confusing sed.
13357 lt_compile=`echo "$ac_compile" | $SED \
13358 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13360 -e 's:$: $lt_compiler_flag:'`
13361 (eval echo "\"\$as_me:13361: $lt_compile\"" >&5)
13362 (eval "$lt_compile" 2>conftest.err)
13364 cat conftest.err >&5
13365 echo "$as_me:13365: \$? = $ac_status" >&5
13366 if (exit $ac_status) && test -s "$ac_outfile"; then
13367 # The compiler can only warn and ignore the option if not recognized
13368 # So say no if there are warnings
13369 if test ! -s conftest.err; then
13370 lt_prog_compiler_pic_works_F77=yes
13376 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13377 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13379 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13380 case $lt_prog_compiler_pic_F77 in
13382 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13385 lt_prog_compiler_pic_F77=
13386 lt_prog_compiler_can_build_shared_F77=no
13391 # For platforms which do not support PIC, -DPIC is meaningless:
13393 lt_prog_compiler_pic_F77=
13396 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13400 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13401 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13402 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 lt_cv_prog_compiler_c_o_F77=no
13406 $rm -r conftest 2>/dev/null
13410 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13412 lt_compiler_flag="-o out/conftest2.$ac_objext"
13413 # Insert the option either (1) after the last *FLAGS variable, or
13414 # (2) before a word containing "conftest.", or (3) at the end.
13415 # Note that $ac_compile itself does not contain backslashes and begins
13416 # with a dollar sign (not a hyphen), so the echo should work correctly.
13417 lt_compile=`echo "$ac_compile" | $SED \
13418 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13420 -e 's:$: $lt_compiler_flag:'`
13421 (eval echo "\"\$as_me:13421: $lt_compile\"" >&5)
13422 (eval "$lt_compile" 2>out/conftest.err)
13424 cat out/conftest.err >&5
13425 echo "$as_me:13425: \$? = $ac_status" >&5
13426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13428 # The compiler can only warn and ignore the option if not recognized
13429 # So say no if there are warnings
13430 if test ! -s out/conftest.err; then
13431 lt_cv_prog_compiler_c_o_F77=yes
13436 # SGI C++ compiler will create directory out/ii_files/ for
13437 # template instantiation
13438 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13439 $rm out/* && rmdir out
13445 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13446 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13449 hard_links="nottested"
13450 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13451 # do not overwrite the value of need_locks provided by the user
13452 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13453 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13456 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13458 ln conftest.a conftest.b 2>&5 || hard_links=no
13459 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13460 echo "$as_me:$LINENO: result: $hard_links" >&5
13461 echo "${ECHO_T}$hard_links" >&6
13462 if test "$hard_links" = no; then
13463 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13464 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13471 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13472 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13475 allow_undefined_flag_F77=
13476 enable_shared_with_static_runtimes_F77=no
13478 archive_expsym_cmds_F77=
13479 old_archive_From_new_cmds_F77=
13480 old_archive_from_expsyms_cmds_F77=
13481 export_dynamic_flag_spec_F77=
13482 whole_archive_flag_spec_F77=
13483 thread_safe_flag_spec_F77=
13484 hardcode_libdir_flag_spec_F77=
13485 hardcode_libdir_flag_spec_ld_F77=
13486 hardcode_libdir_separator_F77=
13487 hardcode_direct_F77=no
13488 hardcode_minus_L_F77=no
13489 hardcode_shlibpath_var_F77=unsupported
13490 link_all_deplibs_F77=unknown
13491 hardcode_automatic_F77=no
13493 module_expsym_cmds_F77=
13494 always_export_symbols_F77=no
13495 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13496 # include_expsyms should be a list of space-separated symbols to be *always*
13497 # included in the symbol list
13498 include_expsyms_F77=
13499 # exclude_expsyms can be an extended regexp of symbols to exclude
13500 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13501 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13502 # as well as any symbol that contains `d'.
13503 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13504 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13505 # platforms (ab)use it in PIC code, but their linkers get confused if
13506 # the symbol is explicitly referenced. Since portable code cannot
13507 # rely on this symbol name, it's probably fine to never include it in
13508 # preloaded symbol tables.
13509 extract_expsyms_cmds=
13512 cygwin* | mingw* | pw32*)
13513 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13514 # When not using gcc, we currently assume that we are using
13515 # Microsoft Visual C++.
13516 if test "$GCC" != yes; then
13526 if test "$with_gnu_ld" = yes; then
13527 # If archive_cmds runs LD, not CC, wlarc should be empty
13530 # See if GNU ld supports shared libraries.
13532 aix3* | aix4* | aix5*)
13533 # On AIX/PPC, the GNU linker is very broken
13534 if test "$host_cpu" != ia64; then
13538 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13539 *** to be unable to reliably create shared libraries on AIX.
13540 *** Therefore, libtool is disabling shared libraries support. If you
13541 *** really care for shared libraries, you may want to modify your PATH
13542 *** so that a non-GNU linker is found, and then restart.
13549 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)'
13550 hardcode_libdir_flag_spec_F77='-L$libdir'
13551 hardcode_minus_L_F77=yes
13553 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13554 # that the semantics of dynamic libraries on AmigaOS, at least up
13555 # to version 4, is to share data among multiple programs linked
13556 # with the same dynamic library. Since this doesn't match the
13557 # behavior of shared libraries on other platforms, we can't use
13563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13564 allow_undefined_flag_F77=unsupported
13565 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13566 # support --undefined. This deserves some investigation. FIXME
13567 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13573 cygwin* | mingw* | pw32*)
13574 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13575 # as there is no search path for DLLs.
13576 hardcode_libdir_flag_spec_F77='-L$libdir'
13577 allow_undefined_flag_F77=unsupported
13578 always_export_symbols_F77=no
13579 enable_shared_with_static_runtimes_F77=yes
13580 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13582 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13583 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13584 # If the export-symbols file already is a .def file (1st line
13585 # is EXPORTS), use it as is; otherwise, prepend...
13586 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13587 cp $export_symbols $output_objdir/$soname.def;
13589 echo EXPORTS > $output_objdir/$soname.def;
13590 cat $export_symbols >> $output_objdir/$soname.def;
13592 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13598 netbsd* | knetbsd*-gnu)
13599 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13600 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13603 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13604 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13609 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13613 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13614 *** create shared libraries on Solaris systems. Therefore, libtool
13615 *** is disabling shared libraries support. We urge you to upgrade GNU
13616 *** binutils to release 2.9.1 or newer. Another option is to modify
13617 *** your PATH or compiler configuration so that the native linker is
13618 *** used, and then restart.
13621 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13622 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13623 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13630 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13632 hardcode_direct_F77=yes
13633 hardcode_shlibpath_var_F77=no
13637 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13638 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639 archive_cmds_F77="$tmp_archive_cmds"
13640 supports_anon_versioning=no
13641 case `$LD -v 2>/dev/null` in
13642 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13643 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13644 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13645 *\ 2.11.*) ;; # other 2.11 versions
13646 *) supports_anon_versioning=yes ;;
13648 if test $supports_anon_versioning = yes; then
13649 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13650 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13651 $echo "local: *; };" >> $output_objdir/$libname.ver~
13652 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13654 archive_expsym_cmds_F77="$tmp_archive_cmds"
13656 link_all_deplibs_F77=no
13663 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13664 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13665 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13672 if test "$ld_shlibs_F77" = yes; then
13673 runpath_var=LD_RUN_PATH
13674 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13675 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13676 # ancient GNU ld didn't support --whole-archive et. al.
13677 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13678 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13680 whole_archive_flag_spec_F77=
13684 # PORTME fill in a description of your system's linker (not GNU ld)
13687 allow_undefined_flag_F77=unsupported
13688 always_export_symbols_F77=yes
13689 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'
13690 # Note: this linker hardcodes the directories in LIBPATH if there
13691 # are no directories specified by -L.
13692 hardcode_minus_L_F77=yes
13693 if test "$GCC" = yes && test -z "$link_static_flag"; then
13694 # Neither direct hardcoding nor static linking is supported with a
13696 hardcode_direct_F77=unsupported
13701 if test "$host_cpu" = ia64; then
13702 # On IA64, the linker does run time linking by default, so we don't
13703 # have to do anything special.
13704 aix_use_runtimelinking=no
13705 exp_sym_flag='-Bexport'
13708 # If we're using GNU nm, then we don't want the "-C" option.
13709 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13710 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13711 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'
13713 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'
13715 aix_use_runtimelinking=no
13717 # Test if we are trying to use run time linking or normal
13718 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13719 # need to do runtime linking.
13720 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13721 for ld_flag in $LDFLAGS; do
13722 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13723 aix_use_runtimelinking=yes
13729 exp_sym_flag='-bexport'
13730 no_entry_flag='-bnoentry'
13733 # When large executables or shared objects are built, AIX ld can
13734 # have problems creating the table of contents. If linking a library
13735 # or program results in "error TOC overflow" add -mminimal-toc to
13736 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13737 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13739 archive_cmds_F77=''
13740 hardcode_direct_F77=yes
13741 hardcode_libdir_separator_F77=':'
13742 link_all_deplibs_F77=yes
13744 if test "$GCC" = yes; then
13745 case $host_os in aix4.012|aix4.012.*)
13746 # We only want to do this on AIX 4.2 and lower, the check
13747 # below for broken collect2 doesn't work under 4.3+
13748 collect2name=`${CC} -print-prog-name=collect2`
13749 if test -f "$collect2name" && \
13750 strings "$collect2name" | grep resolve_lib_name >/dev/null
13752 # We have reworked collect2
13753 hardcode_direct_F77=yes
13755 # We have old collect2
13756 hardcode_direct_F77=unsupported
13757 # It fails to find uninstalled libraries when the uninstalled
13758 # path is not listed in the libpath. Setting hardcode_minus_L
13759 # to unsupported forces relinking
13760 hardcode_minus_L_F77=yes
13761 hardcode_libdir_flag_spec_F77='-L$libdir'
13762 hardcode_libdir_separator_F77=
13765 shared_flag='-shared'
13768 if test "$host_cpu" = ia64; then
13769 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13770 # chokes on -Wl,-G. The following line is correct:
13773 if test "$aix_use_runtimelinking" = yes; then
13774 shared_flag='${wl}-G'
13776 shared_flag='${wl}-bM:SRE'
13781 # It seems that -bexpall does not export symbols beginning with
13782 # underscore (_), so it is better to generate a list of symbols to export.
13783 always_export_symbols_F77=yes
13784 if test "$aix_use_runtimelinking" = yes; then
13785 # Warning - without using the other runtime loading flags (-brtl),
13786 # -berok will link without error, but may produce a broken library.
13787 allow_undefined_flag_F77='-berok'
13788 # Determine the default libpath from the value encoded in an empty executable.
13789 cat >conftest.$ac_ext <<_ACEOF
13794 rm -f conftest.$ac_objext conftest$ac_exeext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13796 (eval $ac_link) 2>conftest.er1
13798 grep -v '^ *+' conftest.er1 >conftest.err
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest$ac_exeext'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13818 # Check for a 64-bit object if we didn't find anything.
13819 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; }
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13826 rm -f conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext conftest.$ac_ext
13828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13830 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13831 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"
13833 if test "$host_cpu" = ia64; then
13834 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13835 allow_undefined_flag_F77="-z nodefs"
13836 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"
13838 # Determine the default libpath from the value encoded in an empty executable.
13839 cat >conftest.$ac_ext <<_ACEOF
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest$ac_exeext'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13868 # Check for a 64-bit object if we didn't find anything.
13869 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; }
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13876 rm -f conftest.err conftest.$ac_objext \
13877 conftest$ac_exeext conftest.$ac_ext
13878 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13880 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13881 # Warning - without using the other run time loading flags,
13882 # -berok will link without error, but may produce a broken library.
13883 no_undefined_flag_F77=' ${wl}-bernotok'
13884 allow_undefined_flag_F77=' ${wl}-berok'
13885 # -bexpall does not export symbols beginning with underscore (_)
13886 always_export_symbols_F77=yes
13887 # Exported symbols can be pulled into shared objects from archives
13888 whole_archive_flag_spec_F77=' '
13889 archive_cmds_need_lc_F77=yes
13890 # This is similar to how AIX traditionally builds it's shared libraries.
13891 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'
13897 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)'
13898 hardcode_libdir_flag_spec_F77='-L$libdir'
13899 hardcode_minus_L_F77=yes
13900 # see comment about different semantics on the GNU ld section
13905 export_dynamic_flag_spec_F77=-rdynamic
13908 cygwin* | mingw* | pw32*)
13909 # When not using gcc, we currently assume that we are using
13910 # Microsoft Visual C++.
13911 # hardcode_libdir_flag_spec is actually meaningless, as there is
13912 # no search path for DLLs.
13913 hardcode_libdir_flag_spec_F77=' '
13914 allow_undefined_flag_F77=unsupported
13915 # Tell ltmain to make .lib files, not .a files.
13917 # Tell ltmain to make .dll files, not .so files.
13919 # FIXME: Setting linknames here is a bad hack.
13920 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13921 # The linker will automatically build a .lib file if we build a DLL.
13922 old_archive_From_new_cmds_F77='true'
13923 # FIXME: Should let the user specify the lib program.
13924 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13925 fix_srcfile_path='`cygpath -w "$srcfile"`'
13926 enable_shared_with_static_runtimes_F77=yes
13929 darwin* | rhapsody*)
13930 if test "$GXX" = yes ; then
13931 archive_cmds_need_lc_F77=no
13933 rhapsody* | darwin1.[012])
13934 allow_undefined_flag_F77='-undefined suppress'
13937 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13938 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13940 case ${MACOSX_DEPLOYMENT_TARGET} in
13942 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13945 allow_undefined_flag_F77='-undefined dynamic_lookup'
13951 lt_int_apple_cc_single_mod=no
13952 output_verbose_link_cmd='echo'
13953 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13954 lt_int_apple_cc_single_mod=yes
13956 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13957 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13959 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13961 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13962 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13963 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13964 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13966 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13968 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}'
13969 hardcode_direct_F77=no
13970 hardcode_automatic_F77=yes
13971 hardcode_shlibpath_var_F77=unsupported
13972 whole_archive_flag_spec_F77='-all_load $convenience'
13973 link_all_deplibs_F77=yes
13980 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13981 hardcode_libdir_flag_spec_F77='-L$libdir'
13982 hardcode_shlibpath_var_F77=no
13989 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13990 # support. Future versions do this automatically, but an explicit c++rt0.o
13991 # does not break anything, and helps significantly (at the cost of a little
13994 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13995 hardcode_libdir_flag_spec_F77='-R$libdir'
13996 hardcode_direct_F77=yes
13997 hardcode_shlibpath_var_F77=no
14000 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14002 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14003 hardcode_direct_F77=yes
14004 hardcode_minus_L_F77=yes
14005 hardcode_shlibpath_var_F77=no
14008 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14009 freebsd* | kfreebsd*-gnu)
14010 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14011 hardcode_libdir_flag_spec_F77='-R$libdir'
14012 hardcode_direct_F77=yes
14013 hardcode_shlibpath_var_F77=no
14017 if test "$GCC" = yes; then
14018 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'
14020 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'
14022 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14023 hardcode_libdir_separator_F77=:
14024 hardcode_direct_F77=yes
14026 # hardcode_minus_L: Not really in the search PATH,
14027 # but as the default location of the library.
14028 hardcode_minus_L_F77=yes
14029 export_dynamic_flag_spec_F77='${wl}-E'
14033 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14034 case "$host_cpu" in
14036 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14039 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14043 case "$host_cpu" in
14045 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14048 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14052 if test "$with_gnu_ld" = no; then
14053 case "$host_cpu" in
14055 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14056 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14057 hardcode_libdir_separator_F77=:
14058 hardcode_direct_F77=no
14059 hardcode_shlibpath_var_F77=no
14062 hardcode_libdir_flag_spec_F77='-L$libdir'
14063 hardcode_direct_F77=no
14064 hardcode_shlibpath_var_F77=no
14066 # hardcode_minus_L: Not really in the search PATH,
14067 # but as the default location of the library.
14068 hardcode_minus_L_F77=yes
14071 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14072 hardcode_libdir_separator_F77=:
14073 hardcode_direct_F77=yes
14074 export_dynamic_flag_spec_F77='${wl}-E'
14076 # hardcode_minus_L: Not really in the search PATH,
14077 # but as the default location of the library.
14078 hardcode_minus_L_F77=yes
14084 irix5* | irix6* | nonstopux*)
14085 if test "$GCC" = yes; then
14086 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'
14088 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'
14089 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14091 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14092 hardcode_libdir_separator_F77=:
14093 link_all_deplibs_F77=yes
14096 netbsd* | knetbsd*-gnu)
14097 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14098 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14100 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14102 hardcode_libdir_flag_spec_F77='-R$libdir'
14103 hardcode_direct_F77=yes
14104 hardcode_shlibpath_var_F77=no
14108 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14109 hardcode_direct_F77=yes
14110 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14111 hardcode_libdir_separator_F77=:
14112 hardcode_shlibpath_var_F77=no
14116 hardcode_direct_F77=yes
14117 hardcode_shlibpath_var_F77=no
14118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14119 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14120 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14121 export_dynamic_flag_spec_F77='${wl}-E'
14124 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14125 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14126 hardcode_libdir_flag_spec_F77='-R$libdir'
14129 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14130 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14137 hardcode_libdir_flag_spec_F77='-L$libdir'
14138 hardcode_minus_L_F77=yes
14139 allow_undefined_flag_F77=unsupported
14140 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'
14141 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14145 if test "$GCC" = yes; then
14146 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14147 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'
14149 allow_undefined_flag_F77=' -expect_unresolved \*'
14150 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'
14152 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14153 hardcode_libdir_separator_F77=:
14156 osf4* | osf5*) # as osf3* with the addition of -msym flag
14157 if test "$GCC" = yes; then
14158 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14159 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'
14160 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14162 allow_undefined_flag_F77=' -expect_unresolved \*'
14163 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'
14164 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~
14165 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14167 # Both c and cxx compiler support -rpath directly
14168 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14170 hardcode_libdir_separator_F77=:
14174 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14175 hardcode_shlibpath_var_F77=no
14176 export_dynamic_flag_spec_F77='${wl}-Bexport'
14177 runpath_var=LD_RUN_PATH
14178 hardcode_runpath_var=yes
14182 no_undefined_flag_F77=' -z text'
14183 if test "$GCC" = yes; then
14184 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14185 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14186 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14188 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14189 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14190 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14192 hardcode_libdir_flag_spec_F77='-R$libdir'
14193 hardcode_shlibpath_var_F77=no
14195 solaris2.[0-5] | solaris2.[0-5].*) ;;
14196 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14197 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14199 link_all_deplibs_F77=yes
14203 if test "x$host_vendor" = xsequent; then
14204 # Use $CC to link under sequent, because it throws in some extra .o
14205 # files that make .init and .fini sections work.
14206 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14208 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14210 hardcode_libdir_flag_spec_F77='-L$libdir'
14211 hardcode_direct_F77=yes
14212 hardcode_minus_L_F77=yes
14213 hardcode_shlibpath_var_F77=no
14217 case $host_vendor in
14219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220 hardcode_direct_F77=yes # is this really true???
14223 ## LD is ld it makes a PLAMLIB
14224 ## CC just makes a GrossModule.
14225 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14226 reload_cmds_F77='$CC -r -o $output$reload_objs'
14227 hardcode_direct_F77=no
14230 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14231 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14234 runpath_var='LD_RUN_PATH'
14235 hardcode_shlibpath_var_F77=no
14239 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14240 hardcode_shlibpath_var_F77=no
14241 export_dynamic_flag_spec_F77='-Bexport'
14245 if test -d /usr/nec; then
14246 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14247 hardcode_shlibpath_var_F77=no
14248 runpath_var=LD_RUN_PATH
14249 hardcode_runpath_var=yes
14255 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14256 hardcode_direct_F77=yes
14257 hardcode_minus_L_F77=no
14258 hardcode_shlibpath_var_F77=no
14259 hardcode_runpath_var=yes
14260 runpath_var=LD_RUN_PATH
14263 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14264 no_undefined_flag_F77='${wl}-z ${wl}text'
14265 if test "$GCC" = yes; then
14266 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14268 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14270 runpath_var='LD_RUN_PATH'
14271 hardcode_shlibpath_var_F77=no
14275 no_undefined_flag_F77=' -z text'
14276 # $CC -shared without GNU ld will not create a library from C++
14277 # object files and a static libstdc++, better avoid it by now
14278 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14280 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14281 hardcode_libdir_flag_spec_F77=
14282 hardcode_shlibpath_var_F77=no
14283 runpath_var='LD_RUN_PATH'
14287 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288 hardcode_libdir_flag_spec_F77='-L$libdir'
14289 hardcode_shlibpath_var_F77=no
14298 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14299 echo "${ECHO_T}$ld_shlibs_F77" >&6
14300 test "$ld_shlibs_F77" = no && can_build_shared=no
14302 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14303 if test "$GCC" = yes; then
14304 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14308 # Do we need to explicitly link libc?
14310 case "x$archive_cmds_need_lc_F77" in
14312 # Assume -lc should be added
14313 archive_cmds_need_lc_F77=yes
14315 if test "$enable_shared" = yes && test "$GCC" = yes; then
14316 case $archive_cmds_F77 in
14318 # FIXME: we may have to deal with multi-command sequences.
14321 # Test whether the compiler implicitly links with -lc since on some
14322 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14323 # to ld, don't add -lc before -lgcc.
14324 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14325 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330 (eval $ac_compile) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } 2>conftest.err; then
14336 libobjs=conftest.$ac_objext
14338 wl=$lt_prog_compiler_wl_F77
14344 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14345 allow_undefined_flag_F77=
14346 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14347 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }
14352 archive_cmds_need_lc_F77=no
14354 archive_cmds_need_lc_F77=yes
14356 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14358 cat conftest.err 1>&5
14361 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14362 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14369 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14370 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14371 library_names_spec=
14372 libname_spec='lib$name'
14376 postuninstall_cmds=
14380 shlibpath_overrides_runpath=unknown
14382 dynamic_linker="$host_os ld.so"
14383 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14384 if test "$GCC" = yes; then
14385 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14386 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14387 # if the path contains ";" then we assume it to be the separator
14388 # otherwise default to the standard path separator (i.e. ":") - it is
14389 # assumed that no part of a normal pathname contains ";" but that should
14390 # okay in the real world where ";" in dirpaths is itself problematic.
14391 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14396 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14398 need_lib_prefix=unknown
14399 hardcode_into_libs=no
14401 # when you set need_version to no, make sure it does not cause -set_version
14402 # flags to be left without arguments
14403 need_version=unknown
14408 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14409 shlibpath_var=LIBPATH
14411 # AIX 3 has no versioning support, so we append a major version to the name.
14412 soname_spec='${libname}${release}${shared_ext}$major'
14419 hardcode_into_libs=yes
14420 if test "$host_cpu" = ia64; then
14421 # AIX 5 supports IA64
14422 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14423 shlibpath_var=LD_LIBRARY_PATH
14425 # With GCC up to 2.95.x, collect2 would create an import file
14426 # for dependence libraries. The import file would start with
14427 # the line `#! .'. This would cause the generated library to
14428 # depend on `.', always an invalid library. This was fixed in
14429 # development snapshots of GCC prior to 3.0.
14431 aix4 | aix4.[01] | aix4.[01].*)
14432 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14434 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14437 can_build_shared=no
14441 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14442 # soname into executable. Probably we can add versioning support to
14443 # collect2, so additional links can be useful in future.
14444 if test "$aix_use_runtimelinking" = yes; then
14445 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14446 # instead of lib<name>.a to let people know that these are not
14447 # typical AIX shared libraries.
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450 # We preserve .a as extension for shared libraries through AIX4.2
14451 # and later when we are not doing run time linking.
14452 library_names_spec='${libname}${release}.a $libname.a'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14455 shlibpath_var=LIBPATH
14460 library_names_spec='$libname.ixlibrary $libname.a'
14461 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14462 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'
14466 library_names_spec='${libname}${shared_ext}'
14467 dynamic_linker="$host_os ld.so"
14468 shlibpath_var=LIBRARY_PATH
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14477 shlibpath_var=LD_LIBRARY_PATH
14478 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14479 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14480 # the default ld.so.conf also contains /usr/contrib/lib and
14481 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14482 # libtool to hard-code these into programs
14485 cygwin* | mingw* | pw32*)
14486 version_type=windows
14491 case $GCC,$host_os in
14492 yes,cygwin* | yes,mingw* | yes,pw32*)
14493 library_names_spec='$libname.dll.a'
14494 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14495 postinstall_cmds='base_file=`basename \${file}`~
14496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14497 dldir=$destdir/`dirname \$dlpath`~
14498 test -d \$dldir || mkdir -p \$dldir~
14499 $install_prog $dir/$dlname \$dldir/$dlname'
14500 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14501 dlpath=$dir/\$dldll~
14503 shlibpath_overrides_runpath=yes
14507 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14508 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14509 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14512 # MinGW DLLs use traditional 'lib' prefix
14513 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14514 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14515 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14516 # It is most probably a Windows format PATH printed by
14517 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14518 # path with ; separators, and with drive letters. We can handle the
14519 # drive letters (cygwin fileutils understands them), so leave them,
14520 # especially as we might pass files found there to a mingw objdump,
14521 # which wouldn't understand a cygwinified path. Ahh.
14522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14528 # pw32 DLLs use 'pw' prefix rather than 'lib'
14529 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14535 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14538 dynamic_linker='Win32 ld.exe'
14539 # FIXME: first we should search . and the directory the executable is in
14543 darwin* | rhapsody*)
14544 dynamic_linker="$host_os dyld"
14545 version_type=darwin
14548 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14549 soname_spec='${libname}${release}${major}$shared_ext'
14550 shlibpath_overrides_runpath=yes
14551 shlibpath_var=DYLD_LIBRARY_PATH
14552 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14553 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14554 if test "$GCC" = yes; then
14555 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"`
14557 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14559 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14567 soname_spec='${libname}${release}${shared_ext}$major'
14568 shlibpath_var=LD_LIBRARY_PATH
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14580 soname_spec='${libname}${release}${shared_ext}$major'
14581 shlibpath_var=LD_LIBRARY_PATH
14582 shlibpath_overrides_runpath=no
14583 hardcode_into_libs=yes
14584 dynamic_linker='GNU ld.so'
14588 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14589 version_type=freebsd-$objformat
14590 case $version_type in
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14601 shlibpath_var=LD_LIBRARY_PATH
14604 shlibpath_overrides_runpath=yes
14606 freebsd3.01* | freebsdelf3.01*)
14607 shlibpath_overrides_runpath=yes
14608 hardcode_into_libs=yes
14611 shlibpath_overrides_runpath=no
14612 hardcode_into_libs=yes
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14622 soname_spec='${libname}${release}${shared_ext}$major'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 hardcode_into_libs=yes
14627 hpux9* | hpux10* | hpux11*)
14628 # Give a soname corresponding to the major version so that dld.sl refuses to
14629 # link against other versions.
14633 case "$host_cpu" in
14636 hardcode_into_libs=yes
14637 dynamic_linker="$host_os dld.so"
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 if test "X$HPUX_IA64_MODE" = X32; then
14643 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14645 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14651 hardcode_into_libs=yes
14652 dynamic_linker="$host_os dld.sl"
14653 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656 soname_spec='${libname}${release}${shared_ext}$major'
14657 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14662 dynamic_linker="$host_os dld.sl"
14663 shlibpath_var=SHLIB_PATH
14664 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14669 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14670 postinstall_cmds='chmod 555 $lib'
14673 irix5* | irix6* | nonstopux*)
14675 nonstopux*) version_type=nonstopux ;;
14677 if test "$lt_cv_prog_gnu_ld" = yes; then
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14688 irix5* | nonstopux*)
14689 libsuff= shlibsuff=
14692 case $LD in # libtool.m4 will add one of these switches to LD
14693 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14694 libsuff= shlibsuff= libmagic=32-bit;;
14695 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14696 libsuff=32 shlibsuff=N32 libmagic=N32;;
14697 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14698 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14699 *) libsuff= shlibsuff= libmagic=never-match;;
14703 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14704 shlibpath_overrides_runpath=no
14705 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14706 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14707 hardcode_into_libs=yes
14710 # No shared lib support for Linux oldld, aout, or coff.
14711 linux*oldld* | linux*aout* | linux*coff*)
14715 # This must be Linux ELF.
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 shlibpath_overrides_runpath=no
14725 # This implies no fast_install, which is unacceptable.
14726 # Some rework will be needed to allow for fast_install
14727 # before this can be enabled.
14728 hardcode_into_libs=yes
14730 # Append ld.so.conf contents to the search path
14731 if test -f /etc/ld.so.conf; then
14732 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14733 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14736 # We used to test for /lib/ld.so.1 and disable shared libraries on
14737 # powerpc, because MkLinux only supported shared libraries with the
14738 # GNU dynamic linker. Since this was broken with cross compilers,
14739 # most powerpc-linux boxes support dynamic linking these days and
14740 # people can always --disable-shared, the test was removed, and we
14741 # assume the GNU/Linux dynamic linker is in use.
14742 dynamic_linker='GNU/Linux ld.so'
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14750 soname_spec='${libname}${release}${shared_ext}$major'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath=no
14753 hardcode_into_libs=yes
14754 dynamic_linker='GNU ld.so'
14761 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14764 dynamic_linker='NetBSD (a.out) ld.so'
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 dynamic_linker='NetBSD ld.elf_so'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 shlibpath_overrides_runpath=yes
14772 hardcode_into_libs=yes
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=yes
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787 soname_spec='${libname}${release}${shared_ext}$major'
14788 shlibpath_var=LD_LIBRARY_PATH
14789 shlibpath_overrides_runpath=yes
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14801 openbsd2.[89] | openbsd2.[89].*)
14802 shlibpath_overrides_runpath=no
14805 shlibpath_overrides_runpath=yes
14809 shlibpath_overrides_runpath=yes
14814 libname_spec='$name'
14817 library_names_spec='$libname${shared_ext} $libname.a'
14818 dynamic_linker='OS/2 ld.exe'
14819 shlibpath_var=LIBPATH
14822 osf3* | osf4* | osf5*)
14826 soname_spec='${libname}${release}${shared_ext}$major'
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828 shlibpath_var=LD_LIBRARY_PATH
14829 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14830 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837 shlibpath_var=LD_LIBRARY_PATH
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 shlibpath_overrides_runpath=yes
14848 hardcode_into_libs=yes
14849 # ldd complains unless libraries are executable
14850 postinstall_cmds='chmod +x $lib'
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14856 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14857 shlibpath_var=LD_LIBRARY_PATH
14858 shlibpath_overrides_runpath=yes
14859 if test "$with_gnu_ld" = yes; then
14865 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 soname_spec='${libname}${release}${shared_ext}$major'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 case $host_vendor in
14872 shlibpath_overrides_runpath=no
14874 export_dynamic_flag_spec='${wl}-Blargedynsym'
14875 runpath_var=LD_RUN_PATH
14883 shlibpath_overrides_runpath=no
14884 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14890 if test -d /usr/nec ;then
14892 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14893 soname_spec='$libname${shared_ext}.$major'
14894 shlibpath_var=LD_LIBRARY_PATH
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901 soname_spec='${libname}${release}${shared_ext}$major'
14902 shlibpath_var=LD_LIBRARY_PATH
14909 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14910 echo "${ECHO_T}$dynamic_linker" >&6
14911 test "$dynamic_linker" = no && can_build_shared=no
14913 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14914 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14915 hardcode_action_F77=
14916 if test -n "$hardcode_libdir_flag_spec_F77" || \
14917 test -n "$runpath_var F77" || \
14918 test "X$hardcode_automatic_F77"="Xyes" ; then
14920 # We can hardcode non-existant directories.
14921 if test "$hardcode_direct_F77" != no &&
14922 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14923 # have to relink, otherwise we might link with an installed library
14924 # when we should be linking with a yet-to-be-installed one
14925 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14926 test "$hardcode_minus_L_F77" != no; then
14927 # Linking always hardcodes the temporary library directory.
14928 hardcode_action_F77=relink
14930 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14931 hardcode_action_F77=immediate
14934 # We cannot hardcode anything, or else we can only hardcode existing
14936 hardcode_action_F77=unsupported
14938 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14939 echo "${ECHO_T}$hardcode_action_F77" >&6
14941 if test "$hardcode_action_F77" = relink; then
14942 # Fast installation is not supported
14943 enable_fast_install=no
14944 elif test "$shlibpath_overrides_runpath" = yes ||
14945 test "$enable_shared" = no; then
14946 # Fast installation is not necessary
14947 enable_fast_install=needless
14952 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14953 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14954 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14955 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14956 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14957 echo "$as_me:$LINENO: result: yes" >&5
14958 echo "${ECHO_T}yes" >&6
14960 # FIXME - insert some real tests, host_os isn't really good enough
14963 if test -n "$STRIP" ; then
14964 striplib="$STRIP -x"
14965 echo "$as_me:$LINENO: result: yes" >&5
14966 echo "${ECHO_T}yes" >&6
14968 echo "$as_me:$LINENO: result: no" >&5
14969 echo "${ECHO_T}no" >&6
14973 echo "$as_me:$LINENO: result: no" >&5
14974 echo "${ECHO_T}no" >&6
14981 # The else clause should only fire when bootstrapping the
14982 # libtool distribution, otherwise you forgot to ship ltmain.sh
14983 # with your package, and you will get complaints that there are
14984 # no rules to generate ltmain.sh.
14985 if test -f "$ltmain"; then
14986 # See if we are running on zsh, and set the options which allow our commands through
14987 # without removal of \ escapes.
14988 if test -n "${ZSH_VERSION+set}" ; then
14989 setopt NO_GLOB_SUBST
14991 # Now quote all the things that may contain metacharacters while being
14992 # careful not to overquote the AC_SUBSTed values. We take copies of the
14993 # variables and quote the copies for generation of the libtool script.
14994 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14996 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14997 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14998 deplibs_check_method reload_flag reload_cmds need_locks \
14999 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15000 lt_cv_sys_global_symbol_to_c_name_address \
15001 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15002 old_postinstall_cmds old_postuninstall_cmds \
15006 lt_prog_compiler_wl_F77 \
15007 lt_prog_compiler_pic_F77 \
15008 lt_prog_compiler_static_F77 \
15009 lt_prog_compiler_no_builtin_flag_F77 \
15010 export_dynamic_flag_spec_F77 \
15011 thread_safe_flag_spec_F77 \
15012 whole_archive_flag_spec_F77 \
15013 enable_shared_with_static_runtimes_F77 \
15014 old_archive_cmds_F77 \
15015 old_archive_from_new_cmds_F77 \
15016 predep_objects_F77 \
15017 postdep_objects_F77 \
15020 compiler_lib_search_path_F77 \
15022 archive_expsym_cmds_F77 \
15023 postinstall_cmds_F77 \
15024 postuninstall_cmds_F77 \
15025 old_archive_from_expsyms_cmds_F77 \
15026 allow_undefined_flag_F77 \
15027 no_undefined_flag_F77 \
15028 export_symbols_cmds_F77 \
15029 hardcode_libdir_flag_spec_F77 \
15030 hardcode_libdir_flag_spec_ld_F77 \
15031 hardcode_libdir_separator_F77 \
15032 hardcode_automatic_F77 \
15034 module_expsym_cmds_F77 \
15035 lt_cv_prog_compiler_c_o_F77 \
15036 exclude_expsyms_F77 \
15037 include_expsyms_F77; do
15040 old_archive_cmds_F77 | \
15041 old_archive_from_new_cmds_F77 | \
15042 archive_cmds_F77 | \
15043 archive_expsym_cmds_F77 | \
15044 module_cmds_F77 | \
15045 module_expsym_cmds_F77 | \
15046 old_archive_from_expsyms_cmds_F77 | \
15047 export_symbols_cmds_F77 | \
15048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15049 postinstall_cmds | postuninstall_cmds | \
15050 old_postinstall_cmds | old_postuninstall_cmds | \
15051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15052 # Double-quote double-evaled strings.
15053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15062 *'\$0 --fallback-echo"')
15063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15069 cat <<__EOF__ >> "$cfgfile"
15070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15074 # Shell to use when invoking shell scripts.
15077 # Whether or not to build shared libraries.
15078 build_libtool_libs=$enable_shared
15080 # Whether or not to build static libraries.
15081 build_old_libs=$enable_static
15083 # Whether or not to add -lc for building shared libraries.
15084 build_libtool_need_lc=$archive_cmds_need_lc_F77
15086 # Whether or not to disallow shared libs when runtime libs are static
15087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15089 # Whether or not to optimize for fast installation.
15090 fast_install=$enable_fast_install
15093 host_alias=$host_alias
15096 # An echo program that does not interpret backslashes.
15101 AR_FLAGS=$lt_AR_FLAGS
15106 # A language-specific compiler.
15107 CC=$lt_compiler_F77
15109 # Is the compiler the GNU C compiler?
15115 # The linker used to build libraries.
15118 # Whether we need hard or soft links.
15121 # A BSD-compatible nm program.
15124 # A symbol stripping program
15127 # Used to examine libraries when file_magic_cmd begins "file"
15128 MAGIC_CMD=$MAGIC_CMD
15130 # Used on cygwin: DLL creation program.
15133 # Used on cygwin: object dumper.
15136 # Used on cygwin: assembler.
15139 # The name of the directory that contains temporary libtool files.
15142 # How to create reloadable object files.
15143 reload_flag=$lt_reload_flag
15144 reload_cmds=$lt_reload_cmds
15146 # How to pass a linker flag through the compiler.
15147 wl=$lt_lt_prog_compiler_wl_F77
15149 # Object file suffix (normally "o").
15150 objext="$ac_objext"
15152 # Old archive suffix (normally "a").
15155 # Shared library suffix (normally ".so").
15156 shrext_cmds='$shrext_cmds'
15158 # Executable file suffix (normally "").
15161 # Additional compiler flags for building library objects.
15162 pic_flag=$lt_lt_prog_compiler_pic_F77
15165 # What is the maximum length of a command?
15166 max_cmd_len=$lt_cv_sys_max_cmd_len
15168 # Does compiler simultaneously support -c and -o options?
15169 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15171 # Must we lock files when doing compilation ?
15172 need_locks=$lt_need_locks
15174 # Do we need the lib prefix for modules?
15175 need_lib_prefix=$need_lib_prefix
15177 # Do we need a version for libraries?
15178 need_version=$need_version
15180 # Whether dlopen is supported.
15181 dlopen_support=$enable_dlopen
15183 # Whether dlopen of programs is supported.
15184 dlopen_self=$enable_dlopen_self
15186 # Whether dlopen of statically linked programs is supported.
15187 dlopen_self_static=$enable_dlopen_self_static
15189 # Compiler flag to prevent dynamic linking.
15190 link_static_flag=$lt_lt_prog_compiler_static_F77
15192 # Compiler flag to turn off builtin functions.
15193 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15195 # Compiler flag to allow reflexive dlopens.
15196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15198 # Compiler flag to generate shared objects directly from archives.
15199 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15201 # Compiler flag to generate thread-safe objects.
15202 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15204 # Library versioning type.
15205 version_type=$version_type
15207 # Format of library name prefix.
15208 libname_spec=$lt_libname_spec
15210 # List of archive names. First name is the real one, the rest are links.
15211 # The last name is the one that the linker finds with -lNAME.
15212 library_names_spec=$lt_library_names_spec
15214 # The coded name of the library, if different from the real name.
15215 soname_spec=$lt_soname_spec
15217 # Commands used to build and install an old-style archive.
15219 old_archive_cmds=$lt_old_archive_cmds_F77
15220 old_postinstall_cmds=$lt_old_postinstall_cmds
15221 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15223 # Create an old-style archive from a shared archive.
15224 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15226 # Create a temporary old-style archive to link instead of a shared archive.
15227 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15229 # Commands used to build and install a shared archive.
15230 archive_cmds=$lt_archive_cmds_F77
15231 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15232 postinstall_cmds=$lt_postinstall_cmds
15233 postuninstall_cmds=$lt_postuninstall_cmds
15235 # Commands used to build a loadable module (assumed same as above if empty)
15236 module_cmds=$lt_module_cmds_F77
15237 module_expsym_cmds=$lt_module_expsym_cmds_F77
15239 # Commands to strip libraries.
15240 old_striplib=$lt_old_striplib
15241 striplib=$lt_striplib
15243 # Dependencies to place before the objects being linked to create a
15245 predep_objects=$lt_predep_objects_F77
15247 # Dependencies to place after the objects being linked to create a
15249 postdep_objects=$lt_postdep_objects_F77
15251 # Dependencies to place before the objects being linked to create a
15253 predeps=$lt_predeps_F77
15255 # Dependencies to place after the objects being linked to create a
15257 postdeps=$lt_postdeps_F77
15259 # The library search path used internally by the compiler when linking
15260 # a shared library.
15261 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15263 # Method to check whether dependent libraries are shared objects.
15264 deplibs_check_method=$lt_deplibs_check_method
15266 # Command to use when deplibs_check_method == file_magic.
15267 file_magic_cmd=$lt_file_magic_cmd
15269 # Flag that allows shared libraries with undefined symbols to be built.
15270 allow_undefined_flag=$lt_allow_undefined_flag_F77
15272 # Flag that forces no undefined symbols.
15273 no_undefined_flag=$lt_no_undefined_flag_F77
15275 # Commands used to finish a libtool library installation in a directory.
15276 finish_cmds=$lt_finish_cmds
15278 # Same as above, but a single script fragment to be evaled but not shown.
15279 finish_eval=$lt_finish_eval
15281 # Take the output of nm and produce a listing of raw symbols and C names.
15282 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15284 # Transform the output of nm in a proper C declaration
15285 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15287 # Transform the output of nm in a C name address pair
15288 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15290 # This is the shared library runtime path variable.
15291 runpath_var=$runpath_var
15293 # This is the shared library path variable.
15294 shlibpath_var=$shlibpath_var
15296 # Is shlibpath searched before the hard-coded library search path?
15297 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15299 # How to hardcode a shared library path into an executable.
15300 hardcode_action=$hardcode_action_F77
15302 # Whether we should hardcode library paths into libraries.
15303 hardcode_into_libs=$hardcode_into_libs
15305 # Flag to hardcode \$libdir into a binary during linking.
15306 # This must work even if \$libdir does not exist.
15307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15309 # If ld is used when linking, flag to hardcode \$libdir into
15310 # a binary during linking. This must work even if \$libdir does
15312 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15314 # Whether we need a single -rpath flag with a separated argument.
15315 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15317 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15318 # resulting binary.
15319 hardcode_direct=$hardcode_direct_F77
15321 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15322 # resulting binary.
15323 hardcode_minus_L=$hardcode_minus_L_F77
15325 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15326 # the resulting binary.
15327 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15329 # Set to yes if building a shared library automatically hardcodes DIR into the library
15330 # and all subsequent libraries and executables linked against it.
15331 hardcode_automatic=$hardcode_automatic_F77
15333 # Variables whose values should be saved in libtool wrapper scripts and
15334 # restored at relink time.
15335 variables_saved_for_relink="$variables_saved_for_relink"
15337 # Whether libtool must link a program against all its dependency libraries.
15338 link_all_deplibs=$link_all_deplibs_F77
15340 # Compile-time system search path for libraries
15341 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15343 # Run-time system search path for libraries
15344 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15346 # Fix the shell variable \$srcfile for the compiler.
15347 fix_srcfile_path="$fix_srcfile_path_F77"
15349 # Set to yes if exported symbols are required.
15350 always_export_symbols=$always_export_symbols_F77
15352 # The commands to list exported symbols.
15353 export_symbols_cmds=$lt_export_symbols_cmds_F77
15355 # The commands to extract the exported symbol list from a shared archive.
15356 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15358 # Symbols that should not be listed in the preloaded symbols.
15359 exclude_expsyms=$lt_exclude_expsyms_F77
15361 # Symbols that must always be exported.
15362 include_expsyms=$lt_include_expsyms_F77
15364 # ### END LIBTOOL TAG CONFIG: $tagname
15370 # If there is no Makefile yet, we rely on a make rule to execute
15371 # `config.status --recheck' to rerun these tests and create the
15372 # libtool script then.
15373 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15374 if test -f "$ltmain_in"; then
15375 test -f Makefile && make "$ltmain"
15381 ac_cpp='$CPP $CPPFLAGS'
15382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15394 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15398 # Source file extension for Java test sources.
15401 # Object file extension for compiled Java test sources.
15405 # Code to be used in simple compile tests
15406 lt_simple_compile_test_code="class foo {}\n"
15408 # Code to be used in simple link tests
15409 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15411 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15413 # If no C compiler was specified, use CC.
15416 # Allow CC to be a program name with arguments.
15420 # Allow CC to be a program name with arguments.
15426 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15427 archive_cmds_need_lc_GCJ=no
15430 lt_prog_compiler_no_builtin_flag_GCJ=
15432 if test "$GCC" = yes; then
15433 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15436 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15437 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15438 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 lt_cv_prog_compiler_rtti_exceptions=no
15442 ac_outfile=conftest.$ac_objext
15443 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15444 lt_compiler_flag="-fno-rtti -fno-exceptions"
15445 # Insert the option either (1) after the last *FLAGS variable, or
15446 # (2) before a word containing "conftest.", or (3) at the end.
15447 # Note that $ac_compile itself does not contain backslashes and begins
15448 # with a dollar sign (not a hyphen), so the echo should work correctly.
15449 # The option is referenced via a variable to avoid confusing sed.
15450 lt_compile=`echo "$ac_compile" | $SED \
15451 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15453 -e 's:$: $lt_compiler_flag:'`
15454 (eval echo "\"\$as_me:15454: $lt_compile\"" >&5)
15455 (eval "$lt_compile" 2>conftest.err)
15457 cat conftest.err >&5
15458 echo "$as_me:15458: \$? = $ac_status" >&5
15459 if (exit $ac_status) && test -s "$ac_outfile"; then
15460 # The compiler can only warn and ignore the option if not recognized
15461 # So say no if there are warnings
15462 if test ! -s conftest.err; then
15463 lt_cv_prog_compiler_rtti_exceptions=yes
15469 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15470 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15472 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15473 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15480 lt_prog_compiler_wl_GCJ=
15481 lt_prog_compiler_pic_GCJ=
15482 lt_prog_compiler_static_GCJ=
15484 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15485 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15487 if test "$GCC" = yes; then
15488 lt_prog_compiler_wl_GCJ='-Wl,'
15489 lt_prog_compiler_static_GCJ='-static'
15493 # All AIX code is PIC.
15494 if test "$host_cpu" = ia64; then
15495 # AIX 5 now supports IA64 processor
15496 lt_prog_compiler_static_GCJ='-Bstatic'
15501 # FIXME: we need at least 68020 code to build shared libraries, but
15502 # adding the `-m68020' flag to GCC prevents building anything better,
15504 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15507 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15508 # PIC is the default for these OSes.
15511 mingw* | pw32* | os2*)
15512 # This hack is so that the source file can tell whether it is being
15513 # built for inclusion in a dll (and should export symbols for example).
15514 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15517 darwin* | rhapsody*)
15518 # PIC is the default on this platform
15519 # Common symbols not allowed in MH_DYLIB files
15520 lt_prog_compiler_pic_GCJ='-fno-common'
15524 # Just because we use GCC doesn't mean we suddenly get shared libraries
15525 # on systems that don't support them.
15526 lt_prog_compiler_can_build_shared_GCJ=no
15531 if test -d /usr/nec; then
15532 lt_prog_compiler_pic_GCJ=-Kconform_pic
15537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15538 # not for PA HP-UX.
15539 case "$host_cpu" in
15544 lt_prog_compiler_pic_GCJ='-fPIC'
15550 lt_prog_compiler_pic_GCJ='-fPIC'
15554 # PORTME Check for flag to pass linker flags through the system compiler.
15557 lt_prog_compiler_wl_GCJ='-Wl,'
15558 if test "$host_cpu" = ia64; then
15559 # AIX 5 now supports IA64 processor
15560 lt_prog_compiler_static_GCJ='-Bstatic'
15562 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15566 mingw* | pw32* | os2*)
15567 # This hack is so that the source file can tell whether it is being
15568 # built for inclusion in a dll (and should export symbols for example).
15569 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15572 hpux9* | hpux10* | hpux11*)
15573 lt_prog_compiler_wl_GCJ='-Wl,'
15574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15575 # not for PA HP-UX.
15576 case "$host_cpu" in
15581 lt_prog_compiler_pic_GCJ='+Z'
15584 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15585 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15588 irix5* | irix6* | nonstopux*)
15589 lt_prog_compiler_wl_GCJ='-Wl,'
15590 # PIC (with -KPIC) is the default.
15591 lt_prog_compiler_static_GCJ='-non_shared'
15595 lt_prog_compiler_pic_GCJ='-KPIC'
15596 lt_prog_compiler_static_GCJ='-Bstatic'
15602 lt_prog_compiler_wl_GCJ='-Wl,'
15603 lt_prog_compiler_pic_GCJ='-KPIC'
15604 lt_prog_compiler_static_GCJ='-static'
15607 lt_prog_compiler_wl_GCJ='-Wl,'
15608 # All Alpha code is PIC.
15609 lt_prog_compiler_static_GCJ='-non_shared'
15614 osf3* | osf4* | osf5*)
15615 lt_prog_compiler_wl_GCJ='-Wl,'
15616 # All OSF/1 code is PIC.
15617 lt_prog_compiler_static_GCJ='-non_shared'
15621 lt_prog_compiler_pic_GCJ='-Kpic'
15622 lt_prog_compiler_static_GCJ='-dn'
15626 lt_prog_compiler_wl_GCJ='-Wl,'
15627 lt_prog_compiler_pic_GCJ='-KPIC'
15628 lt_prog_compiler_static_GCJ='-Bstatic'
15632 lt_prog_compiler_wl_GCJ='-Qoption ld '
15633 lt_prog_compiler_pic_GCJ='-PIC'
15634 lt_prog_compiler_static_GCJ='-Bstatic'
15637 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15638 lt_prog_compiler_wl_GCJ='-Wl,'
15639 lt_prog_compiler_pic_GCJ='-KPIC'
15640 lt_prog_compiler_static_GCJ='-Bstatic'
15644 if test -d /usr/nec ;then
15645 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15646 lt_prog_compiler_static_GCJ='-Bstatic'
15651 lt_prog_compiler_pic_GCJ='-pic'
15652 lt_prog_compiler_static_GCJ='-Bstatic'
15656 lt_prog_compiler_can_build_shared_GCJ=no
15661 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15662 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15665 # Check to make sure the PIC flag actually works.
15667 if test -n "$lt_prog_compiler_pic_GCJ"; then
15669 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15670 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15671 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 lt_prog_compiler_pic_works_GCJ=no
15675 ac_outfile=conftest.$ac_objext
15676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15677 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15678 # Insert the option either (1) after the last *FLAGS variable, or
15679 # (2) before a word containing "conftest.", or (3) at the end.
15680 # Note that $ac_compile itself does not contain backslashes and begins
15681 # with a dollar sign (not a hyphen), so the echo should work correctly.
15682 # The option is referenced via a variable to avoid confusing sed.
15683 lt_compile=`echo "$ac_compile" | $SED \
15684 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15686 -e 's:$: $lt_compiler_flag:'`
15687 (eval echo "\"\$as_me:15687: $lt_compile\"" >&5)
15688 (eval "$lt_compile" 2>conftest.err)
15690 cat conftest.err >&5
15691 echo "$as_me:15691: \$? = $ac_status" >&5
15692 if (exit $ac_status) && test -s "$ac_outfile"; then
15693 # The compiler can only warn and ignore the option if not recognized
15694 # So say no if there are warnings
15695 if test ! -s conftest.err; then
15696 lt_prog_compiler_pic_works_GCJ=yes
15702 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15703 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15705 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15706 case $lt_prog_compiler_pic_GCJ in
15708 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15711 lt_prog_compiler_pic_GCJ=
15712 lt_prog_compiler_can_build_shared_GCJ=no
15717 # For platforms which do not support PIC, -DPIC is meaningless:
15719 lt_prog_compiler_pic_GCJ=
15722 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15726 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15727 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15728 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 lt_cv_prog_compiler_c_o_GCJ=no
15732 $rm -r conftest 2>/dev/null
15736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15738 lt_compiler_flag="-o out/conftest2.$ac_objext"
15739 # Insert the option either (1) after the last *FLAGS variable, or
15740 # (2) before a word containing "conftest.", or (3) at the end.
15741 # Note that $ac_compile itself does not contain backslashes and begins
15742 # with a dollar sign (not a hyphen), so the echo should work correctly.
15743 lt_compile=`echo "$ac_compile" | $SED \
15744 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15746 -e 's:$: $lt_compiler_flag:'`
15747 (eval echo "\"\$as_me:15747: $lt_compile\"" >&5)
15748 (eval "$lt_compile" 2>out/conftest.err)
15750 cat out/conftest.err >&5
15751 echo "$as_me:15751: \$? = $ac_status" >&5
15752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15754 # The compiler can only warn and ignore the option if not recognized
15755 # So say no if there are warnings
15756 if test ! -s out/conftest.err; then
15757 lt_cv_prog_compiler_c_o_GCJ=yes
15762 # SGI C++ compiler will create directory out/ii_files/ for
15763 # template instantiation
15764 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15765 $rm out/* && rmdir out
15771 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15772 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15775 hard_links="nottested"
15776 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15777 # do not overwrite the value of need_locks provided by the user
15778 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15779 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15784 ln conftest.a conftest.b 2>&5 || hard_links=no
15785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15786 echo "$as_me:$LINENO: result: $hard_links" >&5
15787 echo "${ECHO_T}$hard_links" >&6
15788 if test "$hard_links" = no; then
15789 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15790 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15797 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15798 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15801 allow_undefined_flag_GCJ=
15802 enable_shared_with_static_runtimes_GCJ=no
15804 archive_expsym_cmds_GCJ=
15805 old_archive_From_new_cmds_GCJ=
15806 old_archive_from_expsyms_cmds_GCJ=
15807 export_dynamic_flag_spec_GCJ=
15808 whole_archive_flag_spec_GCJ=
15809 thread_safe_flag_spec_GCJ=
15810 hardcode_libdir_flag_spec_GCJ=
15811 hardcode_libdir_flag_spec_ld_GCJ=
15812 hardcode_libdir_separator_GCJ=
15813 hardcode_direct_GCJ=no
15814 hardcode_minus_L_GCJ=no
15815 hardcode_shlibpath_var_GCJ=unsupported
15816 link_all_deplibs_GCJ=unknown
15817 hardcode_automatic_GCJ=no
15819 module_expsym_cmds_GCJ=
15820 always_export_symbols_GCJ=no
15821 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15822 # include_expsyms should be a list of space-separated symbols to be *always*
15823 # included in the symbol list
15824 include_expsyms_GCJ=
15825 # exclude_expsyms can be an extended regexp of symbols to exclude
15826 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15827 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15828 # as well as any symbol that contains `d'.
15829 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15830 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15831 # platforms (ab)use it in PIC code, but their linkers get confused if
15832 # the symbol is explicitly referenced. Since portable code cannot
15833 # rely on this symbol name, it's probably fine to never include it in
15834 # preloaded symbol tables.
15835 extract_expsyms_cmds=
15838 cygwin* | mingw* | pw32*)
15839 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15840 # When not using gcc, we currently assume that we are using
15841 # Microsoft Visual C++.
15842 if test "$GCC" != yes; then
15852 if test "$with_gnu_ld" = yes; then
15853 # If archive_cmds runs LD, not CC, wlarc should be empty
15856 # See if GNU ld supports shared libraries.
15858 aix3* | aix4* | aix5*)
15859 # On AIX/PPC, the GNU linker is very broken
15860 if test "$host_cpu" != ia64; then
15864 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15865 *** to be unable to reliably create shared libraries on AIX.
15866 *** Therefore, libtool is disabling shared libraries support. If you
15867 *** really care for shared libraries, you may want to modify your PATH
15868 *** so that a non-GNU linker is found, and then restart.
15875 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)'
15876 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15877 hardcode_minus_L_GCJ=yes
15879 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15880 # that the semantics of dynamic libraries on AmigaOS, at least up
15881 # to version 4, is to share data among multiple programs linked
15882 # with the same dynamic library. Since this doesn't match the
15883 # behavior of shared libraries on other platforms, we can't use
15889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15890 allow_undefined_flag_GCJ=unsupported
15891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15892 # support --undefined. This deserves some investigation. FIXME
15893 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15899 cygwin* | mingw* | pw32*)
15900 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15901 # as there is no search path for DLLs.
15902 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15903 allow_undefined_flag_GCJ=unsupported
15904 always_export_symbols_GCJ=no
15905 enable_shared_with_static_runtimes_GCJ=yes
15906 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15908 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15909 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15910 # If the export-symbols file already is a .def file (1st line
15911 # is EXPORTS), use it as is; otherwise, prepend...
15912 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15913 cp $export_symbols $output_objdir/$soname.def;
15915 echo EXPORTS > $output_objdir/$soname.def;
15916 cat $export_symbols >> $output_objdir/$soname.def;
15918 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15924 netbsd* | knetbsd*-gnu)
15925 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15926 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15929 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15930 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15935 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15939 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15940 *** create shared libraries on Solaris systems. Therefore, libtool
15941 *** is disabling shared libraries support. We urge you to upgrade GNU
15942 *** binutils to release 2.9.1 or newer. Another option is to modify
15943 *** your PATH or compiler configuration so that the native linker is
15944 *** used, and then restart.
15947 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15948 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15949 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15956 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15958 hardcode_direct_GCJ=yes
15959 hardcode_shlibpath_var_GCJ=no
15963 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15964 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15965 archive_cmds_GCJ="$tmp_archive_cmds"
15966 supports_anon_versioning=no
15967 case `$LD -v 2>/dev/null` in
15968 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15969 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15970 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15971 *\ 2.11.*) ;; # other 2.11 versions
15972 *) supports_anon_versioning=yes ;;
15974 if test $supports_anon_versioning = yes; then
15975 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15977 $echo "local: *; };" >> $output_objdir/$libname.ver~
15978 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15980 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15982 link_all_deplibs_GCJ=no
15989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15990 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15991 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15998 if test "$ld_shlibs_GCJ" = yes; then
15999 runpath_var=LD_RUN_PATH
16000 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16001 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16002 # ancient GNU ld didn't support --whole-archive et. al.
16003 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16004 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16006 whole_archive_flag_spec_GCJ=
16010 # PORTME fill in a description of your system's linker (not GNU ld)
16013 allow_undefined_flag_GCJ=unsupported
16014 always_export_symbols_GCJ=yes
16015 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'
16016 # Note: this linker hardcodes the directories in LIBPATH if there
16017 # are no directories specified by -L.
16018 hardcode_minus_L_GCJ=yes
16019 if test "$GCC" = yes && test -z "$link_static_flag"; then
16020 # Neither direct hardcoding nor static linking is supported with a
16022 hardcode_direct_GCJ=unsupported
16027 if test "$host_cpu" = ia64; then
16028 # On IA64, the linker does run time linking by default, so we don't
16029 # have to do anything special.
16030 aix_use_runtimelinking=no
16031 exp_sym_flag='-Bexport'
16034 # If we're using GNU nm, then we don't want the "-C" option.
16035 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16036 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16037 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'
16039 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'
16041 aix_use_runtimelinking=no
16043 # Test if we are trying to use run time linking or normal
16044 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16045 # need to do runtime linking.
16046 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16047 for ld_flag in $LDFLAGS; do
16048 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16049 aix_use_runtimelinking=yes
16055 exp_sym_flag='-bexport'
16056 no_entry_flag='-bnoentry'
16059 # When large executables or shared objects are built, AIX ld can
16060 # have problems creating the table of contents. If linking a library
16061 # or program results in "error TOC overflow" add -mminimal-toc to
16062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16065 archive_cmds_GCJ=''
16066 hardcode_direct_GCJ=yes
16067 hardcode_libdir_separator_GCJ=':'
16068 link_all_deplibs_GCJ=yes
16070 if test "$GCC" = yes; then
16071 case $host_os in aix4.012|aix4.012.*)
16072 # We only want to do this on AIX 4.2 and lower, the check
16073 # below for broken collect2 doesn't work under 4.3+
16074 collect2name=`${CC} -print-prog-name=collect2`
16075 if test -f "$collect2name" && \
16076 strings "$collect2name" | grep resolve_lib_name >/dev/null
16078 # We have reworked collect2
16079 hardcode_direct_GCJ=yes
16081 # We have old collect2
16082 hardcode_direct_GCJ=unsupported
16083 # It fails to find uninstalled libraries when the uninstalled
16084 # path is not listed in the libpath. Setting hardcode_minus_L
16085 # to unsupported forces relinking
16086 hardcode_minus_L_GCJ=yes
16087 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16088 hardcode_libdir_separator_GCJ=
16091 shared_flag='-shared'
16094 if test "$host_cpu" = ia64; then
16095 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16096 # chokes on -Wl,-G. The following line is correct:
16099 if test "$aix_use_runtimelinking" = yes; then
16100 shared_flag='${wl}-G'
16102 shared_flag='${wl}-bM:SRE'
16107 # It seems that -bexpall does not export symbols beginning with
16108 # underscore (_), so it is better to generate a list of symbols to export.
16109 always_export_symbols_GCJ=yes
16110 if test "$aix_use_runtimelinking" = yes; then
16111 # Warning - without using the other runtime loading flags (-brtl),
16112 # -berok will link without error, but may produce a broken library.
16113 allow_undefined_flag_GCJ='-berok'
16114 # Determine the default libpath from the value encoded in an empty executable.
16115 cat >conftest.$ac_ext <<_ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16130 rm -f conftest.$ac_objext conftest$ac_exeext
16131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16132 (eval $ac_link) 2>conftest.er1
16134 grep -v '^ *+' conftest.er1 >conftest.err
16136 cat conftest.err >&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } &&
16139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; } &&
16145 { ac_try='test -s conftest$ac_exeext'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16154 # Check for a 64-bit object if we didn't find anything.
16155 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; }
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16162 rm -f conftest.err conftest.$ac_objext \
16163 conftest$ac_exeext conftest.$ac_ext
16164 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16166 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16167 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"
16169 if test "$host_cpu" = ia64; then
16170 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16171 allow_undefined_flag_GCJ="-z nodefs"
16172 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"
16174 # Determine the default libpath from the value encoded in an empty executable.
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16190 rm -f conftest.$ac_objext conftest$ac_exeext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16192 (eval $ac_link) 2>conftest.er1
16194 grep -v '^ *+' conftest.er1 >conftest.err
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try='test -s conftest$ac_exeext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16214 # Check for a 64-bit object if we didn't find anything.
16215 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; }
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16222 rm -f conftest.err conftest.$ac_objext \
16223 conftest$ac_exeext conftest.$ac_ext
16224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16226 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16227 # Warning - without using the other run time loading flags,
16228 # -berok will link without error, but may produce a broken library.
16229 no_undefined_flag_GCJ=' ${wl}-bernotok'
16230 allow_undefined_flag_GCJ=' ${wl}-berok'
16231 # -bexpall does not export symbols beginning with underscore (_)
16232 always_export_symbols_GCJ=yes
16233 # Exported symbols can be pulled into shared objects from archives
16234 whole_archive_flag_spec_GCJ=' '
16235 archive_cmds_need_lc_GCJ=yes
16236 # This is similar to how AIX traditionally builds it's shared libraries.
16237 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'
16243 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)'
16244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16245 hardcode_minus_L_GCJ=yes
16246 # see comment about different semantics on the GNU ld section
16251 export_dynamic_flag_spec_GCJ=-rdynamic
16254 cygwin* | mingw* | pw32*)
16255 # When not using gcc, we currently assume that we are using
16256 # Microsoft Visual C++.
16257 # hardcode_libdir_flag_spec is actually meaningless, as there is
16258 # no search path for DLLs.
16259 hardcode_libdir_flag_spec_GCJ=' '
16260 allow_undefined_flag_GCJ=unsupported
16261 # Tell ltmain to make .lib files, not .a files.
16263 # Tell ltmain to make .dll files, not .so files.
16265 # FIXME: Setting linknames here is a bad hack.
16266 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16267 # The linker will automatically build a .lib file if we build a DLL.
16268 old_archive_From_new_cmds_GCJ='true'
16269 # FIXME: Should let the user specify the lib program.
16270 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16271 fix_srcfile_path='`cygpath -w "$srcfile"`'
16272 enable_shared_with_static_runtimes_GCJ=yes
16275 darwin* | rhapsody*)
16276 if test "$GXX" = yes ; then
16277 archive_cmds_need_lc_GCJ=no
16279 rhapsody* | darwin1.[012])
16280 allow_undefined_flag_GCJ='-undefined suppress'
16283 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16284 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16286 case ${MACOSX_DEPLOYMENT_TARGET} in
16288 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16291 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16297 lt_int_apple_cc_single_mod=no
16298 output_verbose_link_cmd='echo'
16299 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16300 lt_int_apple_cc_single_mod=yes
16302 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16303 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16305 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16307 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16308 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16309 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16310 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16312 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16314 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}'
16315 hardcode_direct_GCJ=no
16316 hardcode_automatic_GCJ=yes
16317 hardcode_shlibpath_var_GCJ=unsupported
16318 whole_archive_flag_spec_GCJ='-all_load $convenience'
16319 link_all_deplibs_GCJ=yes
16326 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16327 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16328 hardcode_shlibpath_var_GCJ=no
16335 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16336 # support. Future versions do this automatically, but an explicit c++rt0.o
16337 # does not break anything, and helps significantly (at the cost of a little
16340 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16341 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16342 hardcode_direct_GCJ=yes
16343 hardcode_shlibpath_var_GCJ=no
16346 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16348 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16349 hardcode_direct_GCJ=yes
16350 hardcode_minus_L_GCJ=yes
16351 hardcode_shlibpath_var_GCJ=no
16354 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16355 freebsd* | kfreebsd*-gnu)
16356 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16357 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16358 hardcode_direct_GCJ=yes
16359 hardcode_shlibpath_var_GCJ=no
16363 if test "$GCC" = yes; then
16364 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'
16366 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'
16368 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16369 hardcode_libdir_separator_GCJ=:
16370 hardcode_direct_GCJ=yes
16372 # hardcode_minus_L: Not really in the search PATH,
16373 # but as the default location of the library.
16374 hardcode_minus_L_GCJ=yes
16375 export_dynamic_flag_spec_GCJ='${wl}-E'
16379 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16380 case "$host_cpu" in
16382 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16385 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16389 case "$host_cpu" in
16391 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16394 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16398 if test "$with_gnu_ld" = no; then
16399 case "$host_cpu" in
16401 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16402 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16403 hardcode_libdir_separator_GCJ=:
16404 hardcode_direct_GCJ=no
16405 hardcode_shlibpath_var_GCJ=no
16408 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16409 hardcode_direct_GCJ=no
16410 hardcode_shlibpath_var_GCJ=no
16412 # hardcode_minus_L: Not really in the search PATH,
16413 # but as the default location of the library.
16414 hardcode_minus_L_GCJ=yes
16417 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16418 hardcode_libdir_separator_GCJ=:
16419 hardcode_direct_GCJ=yes
16420 export_dynamic_flag_spec_GCJ='${wl}-E'
16422 # hardcode_minus_L: Not really in the search PATH,
16423 # but as the default location of the library.
16424 hardcode_minus_L_GCJ=yes
16430 irix5* | irix6* | nonstopux*)
16431 if test "$GCC" = yes; then
16432 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'
16434 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'
16435 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16437 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16438 hardcode_libdir_separator_GCJ=:
16439 link_all_deplibs_GCJ=yes
16442 netbsd* | knetbsd*-gnu)
16443 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16444 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16446 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16448 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16449 hardcode_direct_GCJ=yes
16450 hardcode_shlibpath_var_GCJ=no
16454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16455 hardcode_direct_GCJ=yes
16456 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16457 hardcode_libdir_separator_GCJ=:
16458 hardcode_shlibpath_var_GCJ=no
16462 hardcode_direct_GCJ=yes
16463 hardcode_shlibpath_var_GCJ=no
16464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16465 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16466 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16467 export_dynamic_flag_spec_GCJ='${wl}-E'
16470 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16471 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16472 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16475 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16476 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16484 hardcode_minus_L_GCJ=yes
16485 allow_undefined_flag_GCJ=unsupported
16486 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'
16487 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16491 if test "$GCC" = yes; then
16492 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16493 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'
16495 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16496 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'
16498 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16499 hardcode_libdir_separator_GCJ=:
16502 osf4* | osf5*) # as osf3* with the addition of -msym flag
16503 if test "$GCC" = yes; then
16504 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16505 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'
16506 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16508 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16509 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'
16510 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~
16511 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16513 # Both c and cxx compiler support -rpath directly
16514 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16516 hardcode_libdir_separator_GCJ=:
16520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521 hardcode_shlibpath_var_GCJ=no
16522 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16523 runpath_var=LD_RUN_PATH
16524 hardcode_runpath_var=yes
16528 no_undefined_flag_GCJ=' -z text'
16529 if test "$GCC" = yes; then
16530 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16531 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16532 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16534 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16536 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16539 hardcode_shlibpath_var_GCJ=no
16541 solaris2.[0-5] | solaris2.[0-5].*) ;;
16542 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16543 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16545 link_all_deplibs_GCJ=yes
16549 if test "x$host_vendor" = xsequent; then
16550 # Use $CC to link under sequent, because it throws in some extra .o
16551 # files that make .init and .fini sections work.
16552 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16554 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16557 hardcode_direct_GCJ=yes
16558 hardcode_minus_L_GCJ=yes
16559 hardcode_shlibpath_var_GCJ=no
16563 case $host_vendor in
16565 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566 hardcode_direct_GCJ=yes # is this really true???
16569 ## LD is ld it makes a PLAMLIB
16570 ## CC just makes a GrossModule.
16571 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16572 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16573 hardcode_direct_GCJ=no
16576 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16577 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16580 runpath_var='LD_RUN_PATH'
16581 hardcode_shlibpath_var_GCJ=no
16585 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586 hardcode_shlibpath_var_GCJ=no
16587 export_dynamic_flag_spec_GCJ='-Bexport'
16591 if test -d /usr/nec; then
16592 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16593 hardcode_shlibpath_var_GCJ=no
16594 runpath_var=LD_RUN_PATH
16595 hardcode_runpath_var=yes
16601 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16602 hardcode_direct_GCJ=yes
16603 hardcode_minus_L_GCJ=no
16604 hardcode_shlibpath_var_GCJ=no
16605 hardcode_runpath_var=yes
16606 runpath_var=LD_RUN_PATH
16609 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16610 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16611 if test "$GCC" = yes; then
16612 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16614 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16616 runpath_var='LD_RUN_PATH'
16617 hardcode_shlibpath_var_GCJ=no
16621 no_undefined_flag_GCJ=' -z text'
16622 # $CC -shared without GNU ld will not create a library from C++
16623 # object files and a static libstdc++, better avoid it by now
16624 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16626 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16627 hardcode_libdir_flag_spec_GCJ=
16628 hardcode_shlibpath_var_GCJ=no
16629 runpath_var='LD_RUN_PATH'
16633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16634 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16635 hardcode_shlibpath_var_GCJ=no
16644 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16645 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16646 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16648 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16649 if test "$GCC" = yes; then
16650 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16654 # Do we need to explicitly link libc?
16656 case "x$archive_cmds_need_lc_GCJ" in
16658 # Assume -lc should be added
16659 archive_cmds_need_lc_GCJ=yes
16661 if test "$enable_shared" = yes && test "$GCC" = yes; then
16662 case $archive_cmds_GCJ in
16664 # FIXME: we may have to deal with multi-command sequences.
16667 # Test whether the compiler implicitly links with -lc since on some
16668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16669 # to ld, don't add -lc before -lgcc.
16670 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16671 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16673 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } 2>conftest.err; then
16682 libobjs=conftest.$ac_objext
16684 wl=$lt_prog_compiler_wl_GCJ
16690 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16691 allow_undefined_flag_GCJ=
16692 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16693 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }
16698 archive_cmds_need_lc_GCJ=no
16700 archive_cmds_need_lc_GCJ=yes
16702 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16704 cat conftest.err 1>&5
16707 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16708 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16715 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16716 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16717 library_names_spec=
16718 libname_spec='lib$name'
16722 postuninstall_cmds=
16726 shlibpath_overrides_runpath=unknown
16728 dynamic_linker="$host_os ld.so"
16729 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16730 if test "$GCC" = yes; then
16731 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16732 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16733 # if the path contains ";" then we assume it to be the separator
16734 # otherwise default to the standard path separator (i.e. ":") - it is
16735 # assumed that no part of a normal pathname contains ";" but that should
16736 # okay in the real world where ";" in dirpaths is itself problematic.
16737 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16744 need_lib_prefix=unknown
16745 hardcode_into_libs=no
16747 # when you set need_version to no, make sure it does not cause -set_version
16748 # flags to be left without arguments
16749 need_version=unknown
16754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16755 shlibpath_var=LIBPATH
16757 # AIX 3 has no versioning support, so we append a major version to the name.
16758 soname_spec='${libname}${release}${shared_ext}$major'
16765 hardcode_into_libs=yes
16766 if test "$host_cpu" = ia64; then
16767 # AIX 5 supports IA64
16768 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16769 shlibpath_var=LD_LIBRARY_PATH
16771 # With GCC up to 2.95.x, collect2 would create an import file
16772 # for dependence libraries. The import file would start with
16773 # the line `#! .'. This would cause the generated library to
16774 # depend on `.', always an invalid library. This was fixed in
16775 # development snapshots of GCC prior to 3.0.
16777 aix4 | aix4.[01] | aix4.[01].*)
16778 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16780 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16783 can_build_shared=no
16787 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16788 # soname into executable. Probably we can add versioning support to
16789 # collect2, so additional links can be useful in future.
16790 if test "$aix_use_runtimelinking" = yes; then
16791 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16792 # instead of lib<name>.a to let people know that these are not
16793 # typical AIX shared libraries.
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796 # We preserve .a as extension for shared libraries through AIX4.2
16797 # and later when we are not doing run time linking.
16798 library_names_spec='${libname}${release}.a $libname.a'
16799 soname_spec='${libname}${release}${shared_ext}$major'
16801 shlibpath_var=LIBPATH
16806 library_names_spec='$libname.ixlibrary $libname.a'
16807 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16808 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'
16812 library_names_spec='${libname}${shared_ext}'
16813 dynamic_linker="$host_os ld.so"
16814 shlibpath_var=LIBRARY_PATH
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 soname_spec='${libname}${release}${shared_ext}$major'
16822 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16823 shlibpath_var=LD_LIBRARY_PATH
16824 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16825 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16826 # the default ld.so.conf also contains /usr/contrib/lib and
16827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16828 # libtool to hard-code these into programs
16831 cygwin* | mingw* | pw32*)
16832 version_type=windows
16837 case $GCC,$host_os in
16838 yes,cygwin* | yes,mingw* | yes,pw32*)
16839 library_names_spec='$libname.dll.a'
16840 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16841 postinstall_cmds='base_file=`basename \${file}`~
16842 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16843 dldir=$destdir/`dirname \$dlpath`~
16844 test -d \$dldir || mkdir -p \$dldir~
16845 $install_prog $dir/$dlname \$dldir/$dlname'
16846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16847 dlpath=$dir/\$dldll~
16849 shlibpath_overrides_runpath=yes
16853 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16854 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16855 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16858 # MinGW DLLs use traditional 'lib' prefix
16859 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16860 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16861 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16862 # It is most probably a Windows format PATH printed by
16863 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16864 # path with ; separators, and with drive letters. We can handle the
16865 # drive letters (cygwin fileutils understands them), so leave them,
16866 # especially as we might pass files found there to a mingw objdump,
16867 # which wouldn't understand a cygwinified path. Ahh.
16868 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16874 # pw32 DLLs use 'pw' prefix rather than 'lib'
16875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16884 dynamic_linker='Win32 ld.exe'
16885 # FIXME: first we should search . and the directory the executable is in
16889 darwin* | rhapsody*)
16890 dynamic_linker="$host_os dyld"
16891 version_type=darwin
16894 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16895 soname_spec='${libname}${release}${major}$shared_ext'
16896 shlibpath_overrides_runpath=yes
16897 shlibpath_var=DYLD_LIBRARY_PATH
16898 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16899 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16900 if test "$GCC" = yes; then
16901 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"`
16903 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16905 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16913 soname_spec='${libname}${release}${shared_ext}$major'
16914 shlibpath_var=LD_LIBRARY_PATH
16925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16926 soname_spec='${libname}${release}${shared_ext}$major'
16927 shlibpath_var=LD_LIBRARY_PATH
16928 shlibpath_overrides_runpath=no
16929 hardcode_into_libs=yes
16930 dynamic_linker='GNU ld.so'
16934 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16935 version_type=freebsd-$objformat
16936 case $version_type in
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16947 shlibpath_var=LD_LIBRARY_PATH
16950 shlibpath_overrides_runpath=yes
16952 freebsd3.01* | freebsdelf3.01*)
16953 shlibpath_overrides_runpath=yes
16954 hardcode_into_libs=yes
16957 shlibpath_overrides_runpath=no
16958 hardcode_into_libs=yes
16967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16968 soname_spec='${libname}${release}${shared_ext}$major'
16969 shlibpath_var=LD_LIBRARY_PATH
16970 hardcode_into_libs=yes
16973 hpux9* | hpux10* | hpux11*)
16974 # Give a soname corresponding to the major version so that dld.sl refuses to
16975 # link against other versions.
16979 case "$host_cpu" in
16982 hardcode_into_libs=yes
16983 dynamic_linker="$host_os dld.so"
16984 shlibpath_var=LD_LIBRARY_PATH
16985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16987 soname_spec='${libname}${release}${shared_ext}$major'
16988 if test "X$HPUX_IA64_MODE" = X32; then
16989 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16991 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16997 hardcode_into_libs=yes
16998 dynamic_linker="$host_os dld.sl"
16999 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17008 dynamic_linker="$host_os dld.sl"
17009 shlibpath_var=SHLIB_PATH
17010 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17012 soname_spec='${libname}${release}${shared_ext}$major'
17015 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17016 postinstall_cmds='chmod 555 $lib'
17019 irix5* | irix6* | nonstopux*)
17021 nonstopux*) version_type=nonstopux ;;
17023 if test "$lt_cv_prog_gnu_ld" = yes; then
17031 soname_spec='${libname}${release}${shared_ext}$major'
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17034 irix5* | nonstopux*)
17035 libsuff= shlibsuff=
17038 case $LD in # libtool.m4 will add one of these switches to LD
17039 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17040 libsuff= shlibsuff= libmagic=32-bit;;
17041 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17042 libsuff=32 shlibsuff=N32 libmagic=N32;;
17043 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17044 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17045 *) libsuff= shlibsuff= libmagic=never-match;;
17049 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17050 shlibpath_overrides_runpath=no
17051 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17052 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17053 hardcode_into_libs=yes
17056 # No shared lib support for Linux oldld, aout, or coff.
17057 linux*oldld* | linux*aout* | linux*coff*)
17061 # This must be Linux ELF.
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17069 shlibpath_var=LD_LIBRARY_PATH
17070 shlibpath_overrides_runpath=no
17071 # This implies no fast_install, which is unacceptable.
17072 # Some rework will be needed to allow for fast_install
17073 # before this can be enabled.
17074 hardcode_into_libs=yes
17076 # Append ld.so.conf contents to the search path
17077 if test -f /etc/ld.so.conf; then
17078 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17079 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17082 # We used to test for /lib/ld.so.1 and disable shared libraries on
17083 # powerpc, because MkLinux only supported shared libraries with the
17084 # GNU dynamic linker. Since this was broken with cross compilers,
17085 # most powerpc-linux boxes support dynamic linking these days and
17086 # people can always --disable-shared, the test was removed, and we
17087 # assume the GNU/Linux dynamic linker is in use.
17088 dynamic_linker='GNU/Linux ld.so'
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 shlibpath_var=LD_LIBRARY_PATH
17098 shlibpath_overrides_runpath=no
17099 hardcode_into_libs=yes
17100 dynamic_linker='GNU ld.so'
17107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17110 dynamic_linker='NetBSD (a.out) ld.so'
17112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 dynamic_linker='NetBSD ld.elf_so'
17116 shlibpath_var=LD_LIBRARY_PATH
17117 shlibpath_overrides_runpath=yes
17118 hardcode_into_libs=yes
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124 shlibpath_var=LD_LIBRARY_PATH
17125 shlibpath_overrides_runpath=yes
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17134 shlibpath_var=LD_LIBRARY_PATH
17135 shlibpath_overrides_runpath=yes
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17144 shlibpath_var=LD_LIBRARY_PATH
17145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17147 openbsd2.[89] | openbsd2.[89].*)
17148 shlibpath_overrides_runpath=no
17151 shlibpath_overrides_runpath=yes
17155 shlibpath_overrides_runpath=yes
17160 libname_spec='$name'
17163 library_names_spec='$libname${shared_ext} $libname.a'
17164 dynamic_linker='OS/2 ld.exe'
17165 shlibpath_var=LIBPATH
17168 osf3* | osf4* | osf5*)
17172 soname_spec='${libname}${release}${shared_ext}$major'
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174 shlibpath_var=LD_LIBRARY_PATH
17175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183 shlibpath_var=LD_LIBRARY_PATH
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17191 soname_spec='${libname}${release}${shared_ext}$major'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 shlibpath_overrides_runpath=yes
17194 hardcode_into_libs=yes
17195 # ldd complains unless libraries are executable
17196 postinstall_cmds='chmod +x $lib'
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17202 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17203 shlibpath_var=LD_LIBRARY_PATH
17204 shlibpath_overrides_runpath=yes
17205 if test "$with_gnu_ld" = yes; then
17211 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214 soname_spec='${libname}${release}${shared_ext}$major'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 case $host_vendor in
17218 shlibpath_overrides_runpath=no
17220 export_dynamic_flag_spec='${wl}-Blargedynsym'
17221 runpath_var=LD_RUN_PATH
17229 shlibpath_overrides_runpath=no
17230 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17236 if test -d /usr/nec ;then
17238 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17239 soname_spec='$libname${shared_ext}.$major'
17240 shlibpath_var=LD_LIBRARY_PATH
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 soname_spec='${libname}${release}${shared_ext}$major'
17248 shlibpath_var=LD_LIBRARY_PATH
17255 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17256 echo "${ECHO_T}$dynamic_linker" >&6
17257 test "$dynamic_linker" = no && can_build_shared=no
17259 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17260 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17261 hardcode_action_GCJ=
17262 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17263 test -n "$runpath_var GCJ" || \
17264 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17266 # We can hardcode non-existant directories.
17267 if test "$hardcode_direct_GCJ" != no &&
17268 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17269 # have to relink, otherwise we might link with an installed library
17270 # when we should be linking with a yet-to-be-installed one
17271 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17272 test "$hardcode_minus_L_GCJ" != no; then
17273 # Linking always hardcodes the temporary library directory.
17274 hardcode_action_GCJ=relink
17276 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17277 hardcode_action_GCJ=immediate
17280 # We cannot hardcode anything, or else we can only hardcode existing
17282 hardcode_action_GCJ=unsupported
17284 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17285 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17287 if test "$hardcode_action_GCJ" = relink; then
17288 # Fast installation is not supported
17289 enable_fast_install=no
17290 elif test "$shlibpath_overrides_runpath" = yes ||
17291 test "$enable_shared" = no; then
17292 # Fast installation is not necessary
17293 enable_fast_install=needless
17298 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17299 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17300 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17301 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17302 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17303 echo "$as_me:$LINENO: result: yes" >&5
17304 echo "${ECHO_T}yes" >&6
17306 # FIXME - insert some real tests, host_os isn't really good enough
17309 if test -n "$STRIP" ; then
17310 striplib="$STRIP -x"
17311 echo "$as_me:$LINENO: result: yes" >&5
17312 echo "${ECHO_T}yes" >&6
17314 echo "$as_me:$LINENO: result: no" >&5
17315 echo "${ECHO_T}no" >&6
17319 echo "$as_me:$LINENO: result: no" >&5
17320 echo "${ECHO_T}no" >&6
17325 if test "x$enable_dlopen" != xyes; then
17326 enable_dlopen=unknown
17327 enable_dlopen_self=unknown
17328 enable_dlopen_self_static=unknown
17335 lt_cv_dlopen="load_add_on"
17337 lt_cv_dlopen_self=yes
17341 lt_cv_dlopen="LoadLibrary"
17346 lt_cv_dlopen="dlopen"
17351 # if libdl is installed we need to link against it
17352 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17353 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17354 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17357 ac_check_lib_save_LIBS=$LIBS
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17366 /* Override any gcc2 internal prototype to avoid an error. */
17370 /* We use char because int might match the return type of a gcc2
17371 builtin and then its argument prototype would still apply. */
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383 (eval $ac_link) 2>conftest.er1
17385 grep -v '^ *+' conftest.er1 >conftest.err
17387 cat conftest.err >&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
17390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_lib_dl_dlopen=yes
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 ac_cv_lib_dl_dlopen=no
17409 rm -f conftest.err conftest.$ac_objext \
17410 conftest$ac_exeext conftest.$ac_ext
17411 LIBS=$ac_check_lib_save_LIBS
17413 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17414 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17415 if test $ac_cv_lib_dl_dlopen = yes; then
17416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17419 lt_cv_dlopen="dyld"
17421 lt_cv_dlopen_self=yes
17428 echo "$as_me:$LINENO: checking for shl_load" >&5
17429 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17430 if test "${ac_cv_func_shl_load+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 cat >conftest.$ac_ext <<_ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17439 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17441 #define shl_load innocuous_shl_load
17443 /* System header to define __stub macros and hopefully few prototypes,
17444 which can conflict with char shl_load (); below.
17445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17446 <limits.h> exists even on freestanding compilers. */
17449 # include <limits.h>
17451 # include <assert.h>
17456 /* Override any gcc2 internal prototype to avoid an error. */
17461 /* We use char because int might match the return type of a gcc2
17462 builtin and then its argument prototype would still apply. */
17464 /* The GNU C library defines this for functions which it implements
17465 to always fail with ENOSYS. Some functions are actually named
17466 something starting with __ and the normal name is an alias. */
17467 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17470 char (*f) () = shl_load;
17479 return f != shl_load;
17484 rm -f conftest.$ac_objext conftest$ac_exeext
17485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17486 (eval $ac_link) 2>conftest.er1
17488 grep -v '^ *+' conftest.er1 >conftest.err
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
17493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495 (eval $ac_try) 2>&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; } &&
17499 { ac_try='test -s conftest$ac_exeext'
17500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501 (eval $ac_try) 2>&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; }; then
17505 ac_cv_func_shl_load=yes
17507 echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17510 ac_cv_func_shl_load=no
17512 rm -f conftest.err conftest.$ac_objext \
17513 conftest$ac_exeext conftest.$ac_ext
17515 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17516 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17517 if test $ac_cv_func_shl_load = yes; then
17518 lt_cv_dlopen="shl_load"
17520 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17521 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17522 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 ac_check_lib_save_LIBS=$LIBS
17527 cat >conftest.$ac_ext <<_ACEOF
17530 cat confdefs.h >>conftest.$ac_ext
17531 cat >>conftest.$ac_ext <<_ACEOF
17532 /* end confdefs.h. */
17534 /* Override any gcc2 internal prototype to avoid an error. */
17538 /* We use char because int might match the return type of a gcc2
17539 builtin and then its argument prototype would still apply. */
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17551 (eval $ac_link) 2>conftest.er1
17553 grep -v '^ *+' conftest.er1 >conftest.err
17555 cat conftest.err >&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); } &&
17558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; } &&
17564 { ac_try='test -s conftest$ac_exeext'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 ac_cv_lib_dld_shl_load=yes
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575 ac_cv_lib_dld_shl_load=no
17577 rm -f conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
17579 LIBS=$ac_check_lib_save_LIBS
17581 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17582 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17583 if test $ac_cv_lib_dld_shl_load = yes; then
17584 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17586 echo "$as_me:$LINENO: checking for dlopen" >&5
17587 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17588 if test "${ac_cv_func_dlopen+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17599 #define dlopen innocuous_dlopen
17601 /* System header to define __stub macros and hopefully few prototypes,
17602 which can conflict with char dlopen (); below.
17603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17604 <limits.h> exists even on freestanding compilers. */
17607 # include <limits.h>
17609 # include <assert.h>
17614 /* Override any gcc2 internal prototype to avoid an error. */
17619 /* We use char because int might match the return type of a gcc2
17620 builtin and then its argument prototype would still apply. */
17622 /* The GNU C library defines this for functions which it implements
17623 to always fail with ENOSYS. Some functions are actually named
17624 something starting with __ and the normal name is an alias. */
17625 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17628 char (*f) () = dlopen;
17637 return f != dlopen;
17642 rm -f conftest.$ac_objext conftest$ac_exeext
17643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17644 (eval $ac_link) 2>conftest.er1
17646 grep -v '^ *+' conftest.er1 >conftest.err
17648 cat conftest.err >&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } &&
17651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try='test -s conftest$ac_exeext'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_cv_func_dlopen=yes
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_cv_func_dlopen=no
17670 rm -f conftest.err conftest.$ac_objext \
17671 conftest$ac_exeext conftest.$ac_ext
17673 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17674 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17675 if test $ac_cv_func_dlopen = yes; then
17676 lt_cv_dlopen="dlopen"
17678 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 ac_check_lib_save_LIBS=$LIBS
17685 cat >conftest.$ac_ext <<_ACEOF
17688 cat confdefs.h >>conftest.$ac_ext
17689 cat >>conftest.$ac_ext <<_ACEOF
17690 /* end confdefs.h. */
17692 /* Override any gcc2 internal prototype to avoid an error. */
17696 /* We use char because int might match the return type of a gcc2
17697 builtin and then its argument prototype would still apply. */
17707 rm -f conftest.$ac_objext conftest$ac_exeext
17708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17709 (eval $ac_link) 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 ac_cv_lib_dl_dlopen=yes
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 ac_cv_lib_dl_dlopen=no
17735 rm -f conftest.err conftest.$ac_objext \
17736 conftest$ac_exeext conftest.$ac_ext
17737 LIBS=$ac_check_lib_save_LIBS
17739 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17740 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17741 if test $ac_cv_lib_dl_dlopen = yes; then
17742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17744 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17745 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17746 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17747 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 ac_check_lib_save_LIBS=$LIBS
17750 LIBS="-lsvld $LIBS"
17751 cat >conftest.$ac_ext <<_ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17758 /* Override any gcc2 internal prototype to avoid an error. */
17762 /* We use char because int might match the return type of a gcc2
17763 builtin and then its argument prototype would still apply. */
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17775 (eval $ac_link) 2>conftest.er1
17777 grep -v '^ *+' conftest.er1 >conftest.err
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest$ac_exeext'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 ac_cv_lib_svld_dlopen=yes
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 ac_cv_lib_svld_dlopen=no
17801 rm -f conftest.err conftest.$ac_objext \
17802 conftest$ac_exeext conftest.$ac_ext
17803 LIBS=$ac_check_lib_save_LIBS
17805 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17806 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17807 if test $ac_cv_lib_svld_dlopen = yes; then
17808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17810 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17811 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17812 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 ac_check_lib_save_LIBS=$LIBS
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17824 /* Override any gcc2 internal prototype to avoid an error. */
17828 /* We use char because int might match the return type of a gcc2
17829 builtin and then its argument prototype would still apply. */
17839 rm -f conftest.$ac_objext conftest$ac_exeext
17840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17841 (eval $ac_link) 2>conftest.er1
17843 grep -v '^ *+' conftest.er1 >conftest.err
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest$ac_exeext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_cv_lib_dld_dld_link=yes
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_cv_lib_dld_dld_link=no
17867 rm -f conftest.err conftest.$ac_objext \
17868 conftest$ac_exeext conftest.$ac_ext
17869 LIBS=$ac_check_lib_save_LIBS
17871 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17872 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17873 if test $ac_cv_lib_dld_dld_link = yes; then
17874 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17895 if test "x$lt_cv_dlopen" != xno; then
17901 case $lt_cv_dlopen in
17903 save_CPPFLAGS="$CPPFLAGS"
17904 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17906 save_LDFLAGS="$LDFLAGS"
17907 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17910 LIBS="$lt_cv_dlopen_libs $LIBS"
17912 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17913 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17914 if test "${lt_cv_dlopen_self+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 if test "$cross_compiling" = yes; then :
17918 lt_cv_dlopen_self=cross
17920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17921 lt_status=$lt_dlunknown
17922 cat > conftest.$ac_ext <<EOF
17923 #line 17923 "configure"
17924 #include "confdefs.h"
17933 # define LT_DLGLOBAL RTLD_GLOBAL
17936 # define LT_DLGLOBAL DL_GLOBAL
17938 # define LT_DLGLOBAL 0
17942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17943 find out it does not work in some platform. */
17944 #ifndef LT_DLLAZY_OR_NOW
17946 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17949 # define LT_DLLAZY_OR_NOW DL_LAZY
17952 # define LT_DLLAZY_OR_NOW RTLD_NOW
17955 # define LT_DLLAZY_OR_NOW DL_NOW
17957 # define LT_DLLAZY_OR_NOW 0
17965 extern "C" void exit (int);
17968 void fnord() { int i=42;}
17971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17972 int status = $lt_dlunknown;
17976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17977 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17978 /* dlclose (self); */
17984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17985 (eval $ac_link) 2>&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17989 (./conftest; exit; ) 2>/dev/null
17991 case x$lt_status in
17992 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17993 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17994 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17997 # compilation failed
17998 lt_cv_dlopen_self=no
18005 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18006 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18008 if test "x$lt_cv_dlopen_self" = xyes; then
18009 LDFLAGS="$LDFLAGS $link_static_flag"
18010 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18011 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18012 if test "${lt_cv_dlopen_self_static+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 if test "$cross_compiling" = yes; then :
18016 lt_cv_dlopen_self_static=cross
18018 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18019 lt_status=$lt_dlunknown
18020 cat > conftest.$ac_ext <<EOF
18021 #line 18021 "configure"
18022 #include "confdefs.h"
18031 # define LT_DLGLOBAL RTLD_GLOBAL
18034 # define LT_DLGLOBAL DL_GLOBAL
18036 # define LT_DLGLOBAL 0
18040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18041 find out it does not work in some platform. */
18042 #ifndef LT_DLLAZY_OR_NOW
18044 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18047 # define LT_DLLAZY_OR_NOW DL_LAZY
18050 # define LT_DLLAZY_OR_NOW RTLD_NOW
18053 # define LT_DLLAZY_OR_NOW DL_NOW
18055 # define LT_DLLAZY_OR_NOW 0
18063 extern "C" void exit (int);
18066 void fnord() { int i=42;}
18069 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18070 int status = $lt_dlunknown;
18074 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18075 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18076 /* dlclose (self); */
18082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18083 (eval $ac_link) 2>&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18087 (./conftest; exit; ) 2>/dev/null
18089 case x$lt_status in
18090 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18091 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18092 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18095 # compilation failed
18096 lt_cv_dlopen_self_static=no
18103 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18104 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18107 CPPFLAGS="$save_CPPFLAGS"
18108 LDFLAGS="$save_LDFLAGS"
18113 case $lt_cv_dlopen_self in
18114 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18115 *) enable_dlopen_self=unknown ;;
18118 case $lt_cv_dlopen_self_static in
18119 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18120 *) enable_dlopen_self_static=unknown ;;
18125 # The else clause should only fire when bootstrapping the
18126 # libtool distribution, otherwise you forgot to ship ltmain.sh
18127 # with your package, and you will get complaints that there are
18128 # no rules to generate ltmain.sh.
18129 if test -f "$ltmain"; then
18130 # See if we are running on zsh, and set the options which allow our commands through
18131 # without removal of \ escapes.
18132 if test -n "${ZSH_VERSION+set}" ; then
18133 setopt NO_GLOB_SUBST
18135 # Now quote all the things that may contain metacharacters while being
18136 # careful not to overquote the AC_SUBSTed values. We take copies of the
18137 # variables and quote the copies for generation of the libtool script.
18138 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18140 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18141 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18142 deplibs_check_method reload_flag reload_cmds need_locks \
18143 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18144 lt_cv_sys_global_symbol_to_c_name_address \
18145 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18146 old_postinstall_cmds old_postuninstall_cmds \
18150 lt_prog_compiler_wl_GCJ \
18151 lt_prog_compiler_pic_GCJ \
18152 lt_prog_compiler_static_GCJ \
18153 lt_prog_compiler_no_builtin_flag_GCJ \
18154 export_dynamic_flag_spec_GCJ \
18155 thread_safe_flag_spec_GCJ \
18156 whole_archive_flag_spec_GCJ \
18157 enable_shared_with_static_runtimes_GCJ \
18158 old_archive_cmds_GCJ \
18159 old_archive_from_new_cmds_GCJ \
18160 predep_objects_GCJ \
18161 postdep_objects_GCJ \
18164 compiler_lib_search_path_GCJ \
18166 archive_expsym_cmds_GCJ \
18167 postinstall_cmds_GCJ \
18168 postuninstall_cmds_GCJ \
18169 old_archive_from_expsyms_cmds_GCJ \
18170 allow_undefined_flag_GCJ \
18171 no_undefined_flag_GCJ \
18172 export_symbols_cmds_GCJ \
18173 hardcode_libdir_flag_spec_GCJ \
18174 hardcode_libdir_flag_spec_ld_GCJ \
18175 hardcode_libdir_separator_GCJ \
18176 hardcode_automatic_GCJ \
18178 module_expsym_cmds_GCJ \
18179 lt_cv_prog_compiler_c_o_GCJ \
18180 exclude_expsyms_GCJ \
18181 include_expsyms_GCJ; do
18184 old_archive_cmds_GCJ | \
18185 old_archive_from_new_cmds_GCJ | \
18186 archive_cmds_GCJ | \
18187 archive_expsym_cmds_GCJ | \
18188 module_cmds_GCJ | \
18189 module_expsym_cmds_GCJ | \
18190 old_archive_from_expsyms_cmds_GCJ | \
18191 export_symbols_cmds_GCJ | \
18192 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18193 postinstall_cmds | postuninstall_cmds | \
18194 old_postinstall_cmds | old_postuninstall_cmds | \
18195 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18196 # Double-quote double-evaled strings.
18197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18206 *'\$0 --fallback-echo"')
18207 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18213 cat <<__EOF__ >> "$cfgfile"
18214 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18216 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18218 # Shell to use when invoking shell scripts.
18221 # Whether or not to build shared libraries.
18222 build_libtool_libs=$enable_shared
18224 # Whether or not to build static libraries.
18225 build_old_libs=$enable_static
18227 # Whether or not to add -lc for building shared libraries.
18228 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18230 # Whether or not to disallow shared libs when runtime libs are static
18231 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18233 # Whether or not to optimize for fast installation.
18234 fast_install=$enable_fast_install
18237 host_alias=$host_alias
18240 # An echo program that does not interpret backslashes.
18245 AR_FLAGS=$lt_AR_FLAGS
18250 # A language-specific compiler.
18251 CC=$lt_compiler_GCJ
18253 # Is the compiler the GNU C compiler?
18259 # The linker used to build libraries.
18262 # Whether we need hard or soft links.
18265 # A BSD-compatible nm program.
18268 # A symbol stripping program
18271 # Used to examine libraries when file_magic_cmd begins "file"
18272 MAGIC_CMD=$MAGIC_CMD
18274 # Used on cygwin: DLL creation program.
18277 # Used on cygwin: object dumper.
18280 # Used on cygwin: assembler.
18283 # The name of the directory that contains temporary libtool files.
18286 # How to create reloadable object files.
18287 reload_flag=$lt_reload_flag
18288 reload_cmds=$lt_reload_cmds
18290 # How to pass a linker flag through the compiler.
18291 wl=$lt_lt_prog_compiler_wl_GCJ
18293 # Object file suffix (normally "o").
18294 objext="$ac_objext"
18296 # Old archive suffix (normally "a").
18299 # Shared library suffix (normally ".so").
18300 shrext_cmds='$shrext_cmds'
18302 # Executable file suffix (normally "").
18305 # Additional compiler flags for building library objects.
18306 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18309 # What is the maximum length of a command?
18310 max_cmd_len=$lt_cv_sys_max_cmd_len
18312 # Does compiler simultaneously support -c and -o options?
18313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18315 # Must we lock files when doing compilation ?
18316 need_locks=$lt_need_locks
18318 # Do we need the lib prefix for modules?
18319 need_lib_prefix=$need_lib_prefix
18321 # Do we need a version for libraries?
18322 need_version=$need_version
18324 # Whether dlopen is supported.
18325 dlopen_support=$enable_dlopen
18327 # Whether dlopen of programs is supported.
18328 dlopen_self=$enable_dlopen_self
18330 # Whether dlopen of statically linked programs is supported.
18331 dlopen_self_static=$enable_dlopen_self_static
18333 # Compiler flag to prevent dynamic linking.
18334 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18336 # Compiler flag to turn off builtin functions.
18337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18339 # Compiler flag to allow reflexive dlopens.
18340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18342 # Compiler flag to generate shared objects directly from archives.
18343 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18345 # Compiler flag to generate thread-safe objects.
18346 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18348 # Library versioning type.
18349 version_type=$version_type
18351 # Format of library name prefix.
18352 libname_spec=$lt_libname_spec
18354 # List of archive names. First name is the real one, the rest are links.
18355 # The last name is the one that the linker finds with -lNAME.
18356 library_names_spec=$lt_library_names_spec
18358 # The coded name of the library, if different from the real name.
18359 soname_spec=$lt_soname_spec
18361 # Commands used to build and install an old-style archive.
18363 old_archive_cmds=$lt_old_archive_cmds_GCJ
18364 old_postinstall_cmds=$lt_old_postinstall_cmds
18365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18367 # Create an old-style archive from a shared archive.
18368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18370 # Create a temporary old-style archive to link instead of a shared archive.
18371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18373 # Commands used to build and install a shared archive.
18374 archive_cmds=$lt_archive_cmds_GCJ
18375 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18376 postinstall_cmds=$lt_postinstall_cmds
18377 postuninstall_cmds=$lt_postuninstall_cmds
18379 # Commands used to build a loadable module (assumed same as above if empty)
18380 module_cmds=$lt_module_cmds_GCJ
18381 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18383 # Commands to strip libraries.
18384 old_striplib=$lt_old_striplib
18385 striplib=$lt_striplib
18387 # Dependencies to place before the objects being linked to create a
18389 predep_objects=$lt_predep_objects_GCJ
18391 # Dependencies to place after the objects being linked to create a
18393 postdep_objects=$lt_postdep_objects_GCJ
18395 # Dependencies to place before the objects being linked to create a
18397 predeps=$lt_predeps_GCJ
18399 # Dependencies to place after the objects being linked to create a
18401 postdeps=$lt_postdeps_GCJ
18403 # The library search path used internally by the compiler when linking
18404 # a shared library.
18405 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18407 # Method to check whether dependent libraries are shared objects.
18408 deplibs_check_method=$lt_deplibs_check_method
18410 # Command to use when deplibs_check_method == file_magic.
18411 file_magic_cmd=$lt_file_magic_cmd
18413 # Flag that allows shared libraries with undefined symbols to be built.
18414 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18416 # Flag that forces no undefined symbols.
18417 no_undefined_flag=$lt_no_undefined_flag_GCJ
18419 # Commands used to finish a libtool library installation in a directory.
18420 finish_cmds=$lt_finish_cmds
18422 # Same as above, but a single script fragment to be evaled but not shown.
18423 finish_eval=$lt_finish_eval
18425 # Take the output of nm and produce a listing of raw symbols and C names.
18426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18428 # Transform the output of nm in a proper C declaration
18429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18431 # Transform the output of nm in a C name address pair
18432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18434 # This is the shared library runtime path variable.
18435 runpath_var=$runpath_var
18437 # This is the shared library path variable.
18438 shlibpath_var=$shlibpath_var
18440 # Is shlibpath searched before the hard-coded library search path?
18441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18443 # How to hardcode a shared library path into an executable.
18444 hardcode_action=$hardcode_action_GCJ
18446 # Whether we should hardcode library paths into libraries.
18447 hardcode_into_libs=$hardcode_into_libs
18449 # Flag to hardcode \$libdir into a binary during linking.
18450 # This must work even if \$libdir does not exist.
18451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18453 # If ld is used when linking, flag to hardcode \$libdir into
18454 # a binary during linking. This must work even if \$libdir does
18456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18458 # Whether we need a single -rpath flag with a separated argument.
18459 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18461 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18462 # resulting binary.
18463 hardcode_direct=$hardcode_direct_GCJ
18465 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18466 # resulting binary.
18467 hardcode_minus_L=$hardcode_minus_L_GCJ
18469 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18470 # the resulting binary.
18471 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18473 # Set to yes if building a shared library automatically hardcodes DIR into the library
18474 # and all subsequent libraries and executables linked against it.
18475 hardcode_automatic=$hardcode_automatic_GCJ
18477 # Variables whose values should be saved in libtool wrapper scripts and
18478 # restored at relink time.
18479 variables_saved_for_relink="$variables_saved_for_relink"
18481 # Whether libtool must link a program against all its dependency libraries.
18482 link_all_deplibs=$link_all_deplibs_GCJ
18484 # Compile-time system search path for libraries
18485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18487 # Run-time system search path for libraries
18488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18490 # Fix the shell variable \$srcfile for the compiler.
18491 fix_srcfile_path="$fix_srcfile_path_GCJ"
18493 # Set to yes if exported symbols are required.
18494 always_export_symbols=$always_export_symbols_GCJ
18496 # The commands to list exported symbols.
18497 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18499 # The commands to extract the exported symbol list from a shared archive.
18500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18502 # Symbols that should not be listed in the preloaded symbols.
18503 exclude_expsyms=$lt_exclude_expsyms_GCJ
18505 # Symbols that must always be exported.
18506 include_expsyms=$lt_include_expsyms_GCJ
18508 # ### END LIBTOOL TAG CONFIG: $tagname
18514 # If there is no Makefile yet, we rely on a make rule to execute
18515 # `config.status --recheck' to rerun these tests and create the
18516 # libtool script then.
18517 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18518 if test -f "$ltmain_in"; then
18519 test -f Makefile && make "$ltmain"
18525 ac_cpp='$CPP $CPPFLAGS'
18526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18541 # Source file extension for RC test sources.
18544 # Object file extension for compiled RC test sources.
18548 # Code to be used in simple compile tests
18549 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18551 # Code to be used in simple link tests
18552 lt_simple_link_test_code="$lt_simple_compile_test_code"
18554 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18556 # If no C compiler was specified, use CC.
18559 # Allow CC to be a program name with arguments.
18563 # Allow CC to be a program name with arguments.
18568 lt_cv_prog_compiler_c_o_RC=yes
18570 # The else clause should only fire when bootstrapping the
18571 # libtool distribution, otherwise you forgot to ship ltmain.sh
18572 # with your package, and you will get complaints that there are
18573 # no rules to generate ltmain.sh.
18574 if test -f "$ltmain"; then
18575 # See if we are running on zsh, and set the options which allow our commands through
18576 # without removal of \ escapes.
18577 if test -n "${ZSH_VERSION+set}" ; then
18578 setopt NO_GLOB_SUBST
18580 # Now quote all the things that may contain metacharacters while being
18581 # careful not to overquote the AC_SUBSTed values. We take copies of the
18582 # variables and quote the copies for generation of the libtool script.
18583 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18585 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18586 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18587 deplibs_check_method reload_flag reload_cmds need_locks \
18588 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18589 lt_cv_sys_global_symbol_to_c_name_address \
18590 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18591 old_postinstall_cmds old_postuninstall_cmds \
18595 lt_prog_compiler_wl_RC \
18596 lt_prog_compiler_pic_RC \
18597 lt_prog_compiler_static_RC \
18598 lt_prog_compiler_no_builtin_flag_RC \
18599 export_dynamic_flag_spec_RC \
18600 thread_safe_flag_spec_RC \
18601 whole_archive_flag_spec_RC \
18602 enable_shared_with_static_runtimes_RC \
18603 old_archive_cmds_RC \
18604 old_archive_from_new_cmds_RC \
18605 predep_objects_RC \
18606 postdep_objects_RC \
18609 compiler_lib_search_path_RC \
18611 archive_expsym_cmds_RC \
18612 postinstall_cmds_RC \
18613 postuninstall_cmds_RC \
18614 old_archive_from_expsyms_cmds_RC \
18615 allow_undefined_flag_RC \
18616 no_undefined_flag_RC \
18617 export_symbols_cmds_RC \
18618 hardcode_libdir_flag_spec_RC \
18619 hardcode_libdir_flag_spec_ld_RC \
18620 hardcode_libdir_separator_RC \
18621 hardcode_automatic_RC \
18623 module_expsym_cmds_RC \
18624 lt_cv_prog_compiler_c_o_RC \
18625 exclude_expsyms_RC \
18626 include_expsyms_RC; do
18629 old_archive_cmds_RC | \
18630 old_archive_from_new_cmds_RC | \
18631 archive_cmds_RC | \
18632 archive_expsym_cmds_RC | \
18634 module_expsym_cmds_RC | \
18635 old_archive_from_expsyms_cmds_RC | \
18636 export_symbols_cmds_RC | \
18637 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18638 postinstall_cmds | postuninstall_cmds | \
18639 old_postinstall_cmds | old_postuninstall_cmds | \
18640 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18641 # Double-quote double-evaled strings.
18642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18651 *'\$0 --fallback-echo"')
18652 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18658 cat <<__EOF__ >> "$cfgfile"
18659 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18661 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18663 # Shell to use when invoking shell scripts.
18666 # Whether or not to build shared libraries.
18667 build_libtool_libs=$enable_shared
18669 # Whether or not to build static libraries.
18670 build_old_libs=$enable_static
18672 # Whether or not to add -lc for building shared libraries.
18673 build_libtool_need_lc=$archive_cmds_need_lc_RC
18675 # Whether or not to disallow shared libs when runtime libs are static
18676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18678 # Whether or not to optimize for fast installation.
18679 fast_install=$enable_fast_install
18682 host_alias=$host_alias
18685 # An echo program that does not interpret backslashes.
18690 AR_FLAGS=$lt_AR_FLAGS
18695 # A language-specific compiler.
18698 # Is the compiler the GNU C compiler?
18704 # The linker used to build libraries.
18707 # Whether we need hard or soft links.
18710 # A BSD-compatible nm program.
18713 # A symbol stripping program
18716 # Used to examine libraries when file_magic_cmd begins "file"
18717 MAGIC_CMD=$MAGIC_CMD
18719 # Used on cygwin: DLL creation program.
18722 # Used on cygwin: object dumper.
18725 # Used on cygwin: assembler.
18728 # The name of the directory that contains temporary libtool files.
18731 # How to create reloadable object files.
18732 reload_flag=$lt_reload_flag
18733 reload_cmds=$lt_reload_cmds
18735 # How to pass a linker flag through the compiler.
18736 wl=$lt_lt_prog_compiler_wl_RC
18738 # Object file suffix (normally "o").
18739 objext="$ac_objext"
18741 # Old archive suffix (normally "a").
18744 # Shared library suffix (normally ".so").
18745 shrext_cmds='$shrext_cmds'
18747 # Executable file suffix (normally "").
18750 # Additional compiler flags for building library objects.
18751 pic_flag=$lt_lt_prog_compiler_pic_RC
18754 # What is the maximum length of a command?
18755 max_cmd_len=$lt_cv_sys_max_cmd_len
18757 # Does compiler simultaneously support -c and -o options?
18758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18760 # Must we lock files when doing compilation ?
18761 need_locks=$lt_need_locks
18763 # Do we need the lib prefix for modules?
18764 need_lib_prefix=$need_lib_prefix
18766 # Do we need a version for libraries?
18767 need_version=$need_version
18769 # Whether dlopen is supported.
18770 dlopen_support=$enable_dlopen
18772 # Whether dlopen of programs is supported.
18773 dlopen_self=$enable_dlopen_self
18775 # Whether dlopen of statically linked programs is supported.
18776 dlopen_self_static=$enable_dlopen_self_static
18778 # Compiler flag to prevent dynamic linking.
18779 link_static_flag=$lt_lt_prog_compiler_static_RC
18781 # Compiler flag to turn off builtin functions.
18782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18784 # Compiler flag to allow reflexive dlopens.
18785 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18787 # Compiler flag to generate shared objects directly from archives.
18788 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18790 # Compiler flag to generate thread-safe objects.
18791 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18793 # Library versioning type.
18794 version_type=$version_type
18796 # Format of library name prefix.
18797 libname_spec=$lt_libname_spec
18799 # List of archive names. First name is the real one, the rest are links.
18800 # The last name is the one that the linker finds with -lNAME.
18801 library_names_spec=$lt_library_names_spec
18803 # The coded name of the library, if different from the real name.
18804 soname_spec=$lt_soname_spec
18806 # Commands used to build and install an old-style archive.
18808 old_archive_cmds=$lt_old_archive_cmds_RC
18809 old_postinstall_cmds=$lt_old_postinstall_cmds
18810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18812 # Create an old-style archive from a shared archive.
18813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18815 # Create a temporary old-style archive to link instead of a shared archive.
18816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18818 # Commands used to build and install a shared archive.
18819 archive_cmds=$lt_archive_cmds_RC
18820 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18821 postinstall_cmds=$lt_postinstall_cmds
18822 postuninstall_cmds=$lt_postuninstall_cmds
18824 # Commands used to build a loadable module (assumed same as above if empty)
18825 module_cmds=$lt_module_cmds_RC
18826 module_expsym_cmds=$lt_module_expsym_cmds_RC
18828 # Commands to strip libraries.
18829 old_striplib=$lt_old_striplib
18830 striplib=$lt_striplib
18832 # Dependencies to place before the objects being linked to create a
18834 predep_objects=$lt_predep_objects_RC
18836 # Dependencies to place after the objects being linked to create a
18838 postdep_objects=$lt_postdep_objects_RC
18840 # Dependencies to place before the objects being linked to create a
18842 predeps=$lt_predeps_RC
18844 # Dependencies to place after the objects being linked to create a
18846 postdeps=$lt_postdeps_RC
18848 # The library search path used internally by the compiler when linking
18849 # a shared library.
18850 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18852 # Method to check whether dependent libraries are shared objects.
18853 deplibs_check_method=$lt_deplibs_check_method
18855 # Command to use when deplibs_check_method == file_magic.
18856 file_magic_cmd=$lt_file_magic_cmd
18858 # Flag that allows shared libraries with undefined symbols to be built.
18859 allow_undefined_flag=$lt_allow_undefined_flag_RC
18861 # Flag that forces no undefined symbols.
18862 no_undefined_flag=$lt_no_undefined_flag_RC
18864 # Commands used to finish a libtool library installation in a directory.
18865 finish_cmds=$lt_finish_cmds
18867 # Same as above, but a single script fragment to be evaled but not shown.
18868 finish_eval=$lt_finish_eval
18870 # Take the output of nm and produce a listing of raw symbols and C names.
18871 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18873 # Transform the output of nm in a proper C declaration
18874 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18876 # Transform the output of nm in a C name address pair
18877 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18879 # This is the shared library runtime path variable.
18880 runpath_var=$runpath_var
18882 # This is the shared library path variable.
18883 shlibpath_var=$shlibpath_var
18885 # Is shlibpath searched before the hard-coded library search path?
18886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18888 # How to hardcode a shared library path into an executable.
18889 hardcode_action=$hardcode_action_RC
18891 # Whether we should hardcode library paths into libraries.
18892 hardcode_into_libs=$hardcode_into_libs
18894 # Flag to hardcode \$libdir into a binary during linking.
18895 # This must work even if \$libdir does not exist.
18896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18898 # If ld is used when linking, flag to hardcode \$libdir into
18899 # a binary during linking. This must work even if \$libdir does
18901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18903 # Whether we need a single -rpath flag with a separated argument.
18904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18906 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18907 # resulting binary.
18908 hardcode_direct=$hardcode_direct_RC
18910 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18911 # resulting binary.
18912 hardcode_minus_L=$hardcode_minus_L_RC
18914 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18915 # the resulting binary.
18916 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18918 # Set to yes if building a shared library automatically hardcodes DIR into the library
18919 # and all subsequent libraries and executables linked against it.
18920 hardcode_automatic=$hardcode_automatic_RC
18922 # Variables whose values should be saved in libtool wrapper scripts and
18923 # restored at relink time.
18924 variables_saved_for_relink="$variables_saved_for_relink"
18926 # Whether libtool must link a program against all its dependency libraries.
18927 link_all_deplibs=$link_all_deplibs_RC
18929 # Compile-time system search path for libraries
18930 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18932 # Run-time system search path for libraries
18933 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18935 # Fix the shell variable \$srcfile for the compiler.
18936 fix_srcfile_path="$fix_srcfile_path_RC"
18938 # Set to yes if exported symbols are required.
18939 always_export_symbols=$always_export_symbols_RC
18941 # The commands to list exported symbols.
18942 export_symbols_cmds=$lt_export_symbols_cmds_RC
18944 # The commands to extract the exported symbol list from a shared archive.
18945 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18947 # Symbols that should not be listed in the preloaded symbols.
18948 exclude_expsyms=$lt_exclude_expsyms_RC
18950 # Symbols that must always be exported.
18951 include_expsyms=$lt_include_expsyms_RC
18953 # ### END LIBTOOL TAG CONFIG: $tagname
18959 # If there is no Makefile yet, we rely on a make rule to execute
18960 # `config.status --recheck' to rerun these tests and create the
18961 # libtool script then.
18962 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18963 if test -f "$ltmain_in"; then
18964 test -f Makefile && make "$ltmain"
18970 ac_cpp='$CPP $CPPFLAGS'
18971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18980 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18981 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18982 { (exit 1); exit 1; }; }
18986 # Append the new tag name to the list of available tags.
18987 if test -n "$tagname" ; then
18988 available_tags="$available_tags $tagname"
18994 # Now substitute the updated list of available tags.
18995 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18996 mv "${ofile}T" "$ofile"
19000 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19001 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19002 { (exit 1); exit 1; }; }
19008 # This can be used to rebuild libtool when needed
19009 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19011 # Always use our own libtool.
19012 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19014 # Prevent multiple expansion
19036 # declare the modules (no optional module)
19038 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19039 ACLOCAL="$ACLOCAL -I acmacro"
19043 ac_cpp='$CPP $CPPFLAGS'
19044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19047 if test -n "$ac_tool_prefix"; then
19048 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19049 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19050 echo "$as_me:$LINENO: checking for $ac_word" >&5
19051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19052 if test "${ac_cv_prog_CC+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19055 if test -n "$CC"; then
19056 ac_cv_prog_CC="$CC" # Let the user override the test.
19058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19059 for as_dir in $PATH
19062 test -z "$as_dir" && as_dir=.
19063 for ac_exec_ext in '' $ac_executable_extensions; do
19064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19065 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19075 if test -n "$CC"; then
19076 echo "$as_me:$LINENO: result: $CC" >&5
19077 echo "${ECHO_T}$CC" >&6
19079 echo "$as_me:$LINENO: result: no" >&5
19080 echo "${ECHO_T}no" >&6
19084 if test -z "$ac_cv_prog_CC"; then
19086 # Extract the first word of "gcc", so it can be a program name with args.
19087 set dummy gcc; ac_word=$2
19088 echo "$as_me:$LINENO: checking for $ac_word" >&5
19089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19093 if test -n "$ac_ct_CC"; then
19094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19097 for as_dir in $PATH
19100 test -z "$as_dir" && as_dir=.
19101 for ac_exec_ext in '' $ac_executable_extensions; do
19102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19103 ac_cv_prog_ac_ct_CC="gcc"
19104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19113 if test -n "$ac_ct_CC"; then
19114 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19115 echo "${ECHO_T}$ac_ct_CC" >&6
19117 echo "$as_me:$LINENO: result: no" >&5
19118 echo "${ECHO_T}no" >&6
19123 CC="$ac_cv_prog_CC"
19126 if test -z "$CC"; then
19127 if test -n "$ac_tool_prefix"; then
19128 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19129 set dummy ${ac_tool_prefix}cc; ac_word=$2
19130 echo "$as_me:$LINENO: checking for $ac_word" >&5
19131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19132 if test "${ac_cv_prog_CC+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19135 if test -n "$CC"; then
19136 ac_cv_prog_CC="$CC" # Let the user override the test.
19138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19139 for as_dir in $PATH
19142 test -z "$as_dir" && as_dir=.
19143 for ac_exec_ext in '' $ac_executable_extensions; do
19144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19145 ac_cv_prog_CC="${ac_tool_prefix}cc"
19146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19155 if test -n "$CC"; then
19156 echo "$as_me:$LINENO: result: $CC" >&5
19157 echo "${ECHO_T}$CC" >&6
19159 echo "$as_me:$LINENO: result: no" >&5
19160 echo "${ECHO_T}no" >&6
19164 if test -z "$ac_cv_prog_CC"; then
19166 # Extract the first word of "cc", so it can be a program name with args.
19167 set dummy cc; ac_word=$2
19168 echo "$as_me:$LINENO: checking for $ac_word" >&5
19169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 if test -n "$ac_ct_CC"; then
19174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19177 for as_dir in $PATH
19180 test -z "$as_dir" && as_dir=.
19181 for ac_exec_ext in '' $ac_executable_extensions; do
19182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19183 ac_cv_prog_ac_ct_CC="cc"
19184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19193 if test -n "$ac_ct_CC"; then
19194 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19195 echo "${ECHO_T}$ac_ct_CC" >&6
19197 echo "$as_me:$LINENO: result: no" >&5
19198 echo "${ECHO_T}no" >&6
19203 CC="$ac_cv_prog_CC"
19207 if test -z "$CC"; then
19208 # Extract the first word of "cc", so it can be a program name with args.
19209 set dummy cc; ac_word=$2
19210 echo "$as_me:$LINENO: checking for $ac_word" >&5
19211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19212 if test "${ac_cv_prog_CC+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19215 if test -n "$CC"; then
19216 ac_cv_prog_CC="$CC" # Let the user override the test.
19218 ac_prog_rejected=no
19219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19220 for as_dir in $PATH
19223 test -z "$as_dir" && as_dir=.
19224 for ac_exec_ext in '' $ac_executable_extensions; do
19225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19226 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19227 ac_prog_rejected=yes
19231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19237 if test $ac_prog_rejected = yes; then
19238 # We found a bogon in the path, so make sure we never use it.
19239 set dummy $ac_cv_prog_CC
19241 if test $# != 0; then
19242 # We chose a different compiler from the bogus one.
19243 # However, it has the same basename, so the bogon will be chosen
19244 # first if we set CC to just the basename; use the full file name.
19246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19252 if test -n "$CC"; then
19253 echo "$as_me:$LINENO: result: $CC" >&5
19254 echo "${ECHO_T}$CC" >&6
19256 echo "$as_me:$LINENO: result: no" >&5
19257 echo "${ECHO_T}no" >&6
19261 if test -z "$CC"; then
19262 if test -n "$ac_tool_prefix"; then
19265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19267 echo "$as_me:$LINENO: checking for $ac_word" >&5
19268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19269 if test "${ac_cv_prog_CC+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19272 if test -n "$CC"; then
19273 ac_cv_prog_CC="$CC" # Let the user override the test.
19275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19276 for as_dir in $PATH
19279 test -z "$as_dir" && as_dir=.
19280 for ac_exec_ext in '' $ac_executable_extensions; do
19281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19282 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19292 if test -n "$CC"; then
19293 echo "$as_me:$LINENO: result: $CC" >&5
19294 echo "${ECHO_T}$CC" >&6
19296 echo "$as_me:$LINENO: result: no" >&5
19297 echo "${ECHO_T}no" >&6
19300 test -n "$CC" && break
19303 if test -z "$CC"; then
19307 # Extract the first word of "$ac_prog", so it can be a program name with args.
19308 set dummy $ac_prog; ac_word=$2
19309 echo "$as_me:$LINENO: checking for $ac_word" >&5
19310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19312 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 if test -n "$ac_ct_CC"; then
19315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19318 for as_dir in $PATH
19321 test -z "$as_dir" && as_dir=.
19322 for ac_exec_ext in '' $ac_executable_extensions; do
19323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19324 ac_cv_prog_ac_ct_CC="$ac_prog"
19325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19334 if test -n "$ac_ct_CC"; then
19335 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19336 echo "${ECHO_T}$ac_ct_CC" >&6
19338 echo "$as_me:$LINENO: result: no" >&5
19339 echo "${ECHO_T}no" >&6
19342 test -n "$ac_ct_CC" && break
19351 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19352 See \`config.log' for more details." >&5
19353 echo "$as_me: error: no acceptable C compiler found in \$PATH
19354 See \`config.log' for more details." >&2;}
19355 { (exit 1); exit 1; }; }
19357 # Provide some information about the compiler.
19358 echo "$as_me:$LINENO:" \
19359 "checking for C compiler version" >&5
19360 ac_compiler=`set X $ac_compile; echo $2`
19361 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19362 (eval $ac_compiler --version </dev/null >&5) 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }
19366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19367 (eval $ac_compiler -v </dev/null >&5) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }
19371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19372 (eval $ac_compiler -V </dev/null >&5) 2>&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }
19377 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19378 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19379 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 cat >conftest.$ac_ext <<_ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19400 rm -f conftest.$ac_objext
19401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19402 (eval $ac_compile) 2>conftest.er1
19404 grep -v '^ *+' conftest.er1 >conftest.err
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; } &&
19415 { ac_try='test -s conftest.$ac_objext'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421 ac_compiler_gnu=yes
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19432 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19434 GCC=`test $ac_compiler_gnu = yes && echo yes`
19435 ac_test_CFLAGS=${CFLAGS+set}
19436 ac_save_CFLAGS=$CFLAGS
19438 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19439 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19440 if test "${ac_cv_prog_cc_g+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 cat >conftest.$ac_ext <<_ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h. */
19458 rm -f conftest.$ac_objext
19459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19460 (eval $ac_compile) 2>conftest.er1
19462 grep -v '^ *+' conftest.er1 >conftest.err
19464 cat conftest.err >&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } &&
19467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19469 (eval $ac_try) 2>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; } &&
19473 { ac_try='test -s conftest.$ac_objext'
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; }; then
19479 ac_cv_prog_cc_g=yes
19481 echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19488 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19490 if test "$ac_test_CFLAGS" = set; then
19491 CFLAGS=$ac_save_CFLAGS
19492 elif test $ac_cv_prog_cc_g = yes; then
19493 if test "$GCC" = yes; then
19499 if test "$GCC" = yes; then
19505 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19506 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19507 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 ac_cv_prog_cc_stdc=no
19512 cat >conftest.$ac_ext <<_ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h. */
19518 #include <stdarg.h>
19520 #include <sys/types.h>
19521 #include <sys/stat.h>
19522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19523 struct buf { int x; };
19524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19525 static char *e (p, i)
19531 static char *f (char * (*g) (char **, int), char **p, ...)
19536 s = g (p, va_arg (v,int));
19541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19542 function prototypes and stuff, but not '\xHH' hex character constants.
19543 These don't provoke an error unfortunately, instead are silently treated
19544 as 'x'. The following induces an error, until -std1 is added to get
19545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19546 array size at least. It's necessary to write '\x00'==0 to get something
19547 that's true only with -std1. */
19548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19550 int test (int i, double x);
19551 struct s1 {int (*f) (int a);};
19552 struct s2 {int (*f) (double a);};
19553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19564 # Don't try gcc -ansi; that turns off useful extensions and
19565 # breaks some systems' header files.
19566 # AIX -qlanglvl=ansi
19567 # Ultrix and OSF/1 -std1
19568 # HP-UX 10.20 and later -Ae
19569 # HP-UX older versions -Aa -D_HPUX_SOURCE
19570 # SVR4 -Xc -D__EXTENSIONS__
19571 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19573 CC="$ac_save_CC $ac_arg"
19574 rm -f conftest.$ac_objext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>conftest.er1
19578 grep -v '^ *+' conftest.er1 >conftest.err
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest.$ac_objext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_cv_prog_cc_stdc=$ac_arg
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19602 rm -f conftest.err conftest.$ac_objext
19604 rm -f conftest.$ac_ext conftest.$ac_objext
19609 case "x$ac_cv_prog_cc_stdc" in
19611 echo "$as_me:$LINENO: result: none needed" >&5
19612 echo "${ECHO_T}none needed" >&6 ;;
19614 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19615 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19616 CC="$CC $ac_cv_prog_cc_stdc" ;;
19619 # Some people use a C++ compiler to compile C. Since we use `exit',
19620 # in C++ we need to declare it. In case someone uses the same compiler
19621 # for both compiling C and C++ we need to have the C++ compiler decide
19622 # the declaration of exit, since it's the most demanding environment.
19623 cat >conftest.$ac_ext <<_ACEOF
19624 #ifndef __cplusplus
19628 rm -f conftest.$ac_objext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19630 (eval $ac_compile) 2>conftest.er1
19632 grep -v '^ *+' conftest.er1 >conftest.err
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
19637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest.$ac_objext'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 for ac_declaration in \
19651 'extern "C" void std::exit (int) throw (); using std::exit;' \
19652 'extern "C" void std::exit (int); using std::exit;' \
19653 'extern "C" void exit (int) throw ();' \
19654 'extern "C" void exit (int);' \
19657 cat >conftest.$ac_ext <<_ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19664 #include <stdlib.h>
19673 rm -f conftest.$ac_objext
19674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19675 (eval $ac_compile) 2>conftest.er1
19677 grep -v '^ *+' conftest.er1 >conftest.err
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } &&
19682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } &&
19688 { ac_try='test -s conftest.$ac_objext'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19702 cat >conftest.$ac_ext <<_ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19717 rm -f conftest.$ac_objext
19718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19719 (eval $ac_compile) 2>conftest.er1
19721 grep -v '^ *+' conftest.er1 >conftest.err
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19747 if test -n "$ac_declaration"; then
19748 echo '#ifdef __cplusplus' >>confdefs.h
19749 echo $ac_declaration >>confdefs.h
19750 echo '#endif' >>confdefs.h
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19760 ac_cpp='$CPP $CPPFLAGS'
19761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19765 depcc="$CC" am_compiler_list=
19767 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19768 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19769 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19772 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19773 # We make a subdir and do the tests there. Otherwise we can end up
19774 # making bogus files that we don't know about and never remove. For
19775 # instance it was reported that on HP-UX the gcc test will end up
19776 # making a dummy file named `D' -- because `-MD' means `put the output
19779 # Copy depcomp to subdir because otherwise we won't find it if we're
19780 # using a relative directory.
19781 cp "$am_depcomp" conftest.dir
19783 # We will build objects and dependencies in a subdirectory because
19784 # it helps to detect inapplicable dependency modes. For instance
19785 # both Tru64's cc and ICC support -MD to output dependencies as a
19786 # side effect of compilation, but ICC will put the dependencies in
19787 # the current directory while Tru64 will put them in the object
19791 am_cv_CC_dependencies_compiler_type=none
19792 if test "$am_compiler_list" = ""; then
19793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19795 for depmode in $am_compiler_list; do
19796 # Setup a source with many dependencies, because some compilers
19797 # like to wrap large dependency lists on column 80 (with \), and
19798 # we should not choose a depcomp mode which is confused by this.
19800 # We need to recreate these files for each test, as the compiler may
19801 # overwrite some of them when testing with obscure command lines.
19802 # This happens at least with the AIX C compiler.
19804 for i in 1 2 3 4 5 6; do
19805 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19806 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19807 # Solaris 8's {/usr,}/bin/sh.
19808 touch sub/conftst$i.h
19810 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19814 # after this tag, mechanisms are not by side-effect, so they'll
19815 # only be used when explicitly requested
19816 if test "x$enable_dependency_tracking" = xyes; then
19824 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19825 # mode. It turns out that the SunPro C++ compiler does not properly
19826 # handle `-M -o', and we need to detect this.
19827 if depmode=$depmode \
19828 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19830 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19831 >/dev/null 2>conftest.err &&
19832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19833 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19835 # icc doesn't choke on unknown options, it will just issue warnings
19836 # or remarks (even with -Werror). So we grep stderr for any message
19837 # that says an option was ignored or not supported.
19838 # When given -MP, icc 7.0 and 7.1 complain thusly:
19839 # icc: Command line warning: ignoring option '-M'; no argument required
19840 # The diagnosis changed in icc 8.0:
19841 # icc: Command line remark: option '-MP' not supported
19842 if (grep 'ignoring option' conftest.err ||
19843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19844 am_cv_CC_dependencies_compiler_type=$depmode
19851 rm -rf conftest.dir
19853 am_cv_CC_dependencies_compiler_type=none
19857 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19858 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19859 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19864 test "x$enable_dependency_tracking" != xno \
19865 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19866 am__fastdepCC_TRUE=
19867 am__fastdepCC_FALSE='#'
19869 am__fastdepCC_TRUE='#'
19870 am__fastdepCC_FALSE=
19874 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19875 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19878 echo timestamp > conftest.file
19879 # Do `set' in a subshell so we don't clobber the current shell's
19880 # arguments. Must try -L first in case configure is actually a
19881 # symlink; some systems play weird games with the mod time of symlinks
19882 # (eg FreeBSD returns the mod time of the symlink's containing
19885 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19886 if test "$*" = "X"; then
19888 set X `ls -t $srcdir/configure conftest.file`
19890 rm -f conftest.file
19891 if test "$*" != "X $srcdir/configure conftest.file" \
19892 && test "$*" != "X conftest.file $srcdir/configure"; then
19894 # If neither matched, then we have a broken ls. This can happen
19895 # if, for instance, CONFIG_SHELL is bash and it inherits a
19896 # broken ls alias from the environment. This has actually
19897 # happened. Such a system could not be considered "sane".
19898 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19899 alias in your environment" >&5
19900 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19901 alias in your environment" >&2;}
19902 { (exit 1); exit 1; }; }
19905 test "$2" = conftest.file
19911 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19912 Check your system clock" >&5
19913 echo "$as_me: error: newly created file is older than distributed files!
19914 Check your system clock" >&2;}
19915 { (exit 1); exit 1; }; }
19917 echo "$as_me:$LINENO: result: yes" >&5
19918 echo "${ECHO_T}yes" >&6
19919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19921 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19922 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 cat >conftest.make <<\_ACEOF
19927 @echo 'ac_maketemp="$(MAKE)"'
19929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19930 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19931 if test -n "$ac_maketemp"; then
19932 eval ac_cv_prog_make_${ac_make}_set=yes
19934 eval ac_cv_prog_make_${ac_make}_set=no
19936 rm -f conftest.make
19938 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19939 echo "$as_me:$LINENO: result: yes" >&5
19940 echo "${ECHO_T}yes" >&6
19943 echo "$as_me:$LINENO: result: no" >&5
19944 echo "${ECHO_T}no" >&6
19945 SET_MAKE="MAKE=${MAKE-make}"
19949 # Check architecture signature
19952 # Checks for header files.
19953 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19954 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19955 if test "${ac_cv_header_stdc+set}" = set; then
19956 echo $ECHO_N "(cached) $ECHO_C" >&6
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 #include <stdlib.h>
19965 #include <stdarg.h>
19966 #include <string.h>
19977 rm -f conftest.$ac_objext
19978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19979 (eval $ac_compile) 2>conftest.er1
19981 grep -v '^ *+' conftest.er1 >conftest.err
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } &&
19986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; } &&
19992 { ac_try='test -s conftest.$ac_objext'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; }; then
19998 ac_cv_header_stdc=yes
20000 echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20003 ac_cv_header_stdc=no
20005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20007 if test $ac_cv_header_stdc = yes; then
20008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 #include <string.h>
20018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20019 $EGREP "memchr" >/dev/null 2>&1; then
20022 ac_cv_header_stdc=no
20028 if test $ac_cv_header_stdc = yes; then
20029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 #include <stdlib.h>
20039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20040 $EGREP "free" >/dev/null 2>&1; then
20043 ac_cv_header_stdc=no
20049 if test $ac_cv_header_stdc = yes; then
20050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20051 if test "$cross_compiling" = yes; then
20054 cat >conftest.$ac_ext <<_ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20061 #if ((' ' & 0x0FF) == 0x020)
20062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20065 # define ISLOWER(c) \
20066 (('a' <= (c) && (c) <= 'i') \
20067 || ('j' <= (c) && (c) <= 'r') \
20068 || ('s' <= (c) && (c) <= 'z'))
20069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20077 for (i = 0; i < 256; i++)
20078 if (XOR (islower (i), ISLOWER (i))
20079 || toupper (i) != TOUPPER (i))
20084 rm -f conftest$ac_exeext
20085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20086 (eval $ac_link) 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; }; then
20097 echo "$as_me: program exited with status $ac_status" >&5
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ( exit $ac_status )
20102 ac_cv_header_stdc=no
20104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20108 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20109 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20110 if test $ac_cv_header_stdc = yes; then
20112 cat >>confdefs.h <<\_ACEOF
20113 #define STDC_HEADERS 1
20122 for ac_header in stddef.h stdlib.h string.h unistd.h
20124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20126 echo "$as_me:$LINENO: checking for $ac_header" >&5
20127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20134 # Is the header compilable?
20135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20137 cat >conftest.$ac_ext <<_ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20143 $ac_includes_default
20144 #include <$ac_header>
20146 rm -f conftest.$ac_objext
20147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20148 (eval $ac_compile) 2>conftest.er1
20150 grep -v '^ *+' conftest.er1 >conftest.err
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } &&
20155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; } &&
20161 { ac_try='test -s conftest.$ac_objext'
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 ac_header_compiler=yes
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20172 ac_header_compiler=no
20174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20176 echo "${ECHO_T}$ac_header_compiler" >&6
20178 # Is the header present?
20179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 #include <$ac_header>
20189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20192 grep -v '^ *+' conftest.er1 >conftest.err
20194 cat conftest.err >&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } >/dev/null; then
20197 if test -s conftest.err; then
20198 ac_cpp_err=$ac_c_preproc_warn_flag
20199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20206 if test -z "$ac_cpp_err"; then
20207 ac_header_preproc=yes
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ac_header_preproc=no
20214 rm -f conftest.err conftest.$ac_ext
20215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20216 echo "${ECHO_T}$ac_header_preproc" >&6
20218 # So? What about this header?
20219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20225 ac_header_preproc=yes
20228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20242 ## ----------------------------------------- ##
20243 ## Report this to martin.quinson@ens-lyon.fr ##
20244 ## ----------------------------------------- ##
20247 sed "s/^/$as_me: WARNING: /" >&2
20250 echo "$as_me:$LINENO: checking for $ac_header" >&5
20251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 eval "$as_ac_Header=\$ac_header_preproc"
20257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20262 cat >>confdefs.h <<_ACEOF
20263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20271 # Checks for typedefs, structures, and compiler characteristics.
20272 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20273 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20274 if test "${ac_cv_c_const+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 cat >conftest.$ac_ext <<_ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20287 /* FIXME: Include the comments suggested by Paul. */
20288 #ifndef __cplusplus
20289 /* Ultrix mips cc rejects this. */
20290 typedef int charset[2];
20292 /* SunOS 4.1.1 cc rejects this. */
20293 char const *const *ccp;
20295 /* NEC SVR4.0.2 mips cc rejects this. */
20296 struct point {int x, y;};
20297 static struct point const zero = {0,0};
20298 /* AIX XL C 1.02.0.0 rejects this.
20299 It does not let you subtract one const X* pointer from another in
20300 an arm of an if-expression whose if-part is not a constant
20302 const char *g = "string";
20303 ccp = &g + (g ? g-g : 0);
20304 /* HPUX 7.0 cc rejects these. */
20307 ccp = (char const *const *) p;
20308 { /* SCO 3.2v4 cc rejects this. */
20310 char const *s = 0 ? (char *) 0 : (char const *) 0;
20314 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20315 int x[] = {25, 17};
20316 const int *foo = &x[0];
20319 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20320 typedef const int *iptr;
20324 { /* AIX XL C 1.02.0.0 rejects this saying
20325 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20326 struct s { int j; const int *ap[3]; };
20327 struct s *b; b->j = 5;
20329 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20330 const int foo = 10;
20338 rm -f conftest.$ac_objext
20339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20340 (eval $ac_compile) 2>conftest.er1
20342 grep -v '^ *+' conftest.er1 >conftest.err
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } &&
20347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; } &&
20353 { ac_try='test -s conftest.$ac_objext'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20368 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20369 echo "${ECHO_T}$ac_cv_c_const" >&6
20370 if test $ac_cv_c_const = no; then
20372 cat >>confdefs.h <<\_ACEOF
20378 echo "$as_me:$LINENO: checking for inline" >&5
20379 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20380 if test "${ac_cv_c_inline+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20384 for ac_kw in inline __inline__ __inline; do
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20391 #ifndef __cplusplus
20393 static $ac_kw foo_t static_foo () {return 0; }
20394 $ac_kw foo_t foo () {return 0; }
20398 rm -f conftest.$ac_objext
20399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20400 (eval $ac_compile) 2>conftest.er1
20402 grep -v '^ *+' conftest.er1 >conftest.err
20404 cat conftest.err >&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } &&
20407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; } &&
20413 { ac_try='test -s conftest.$ac_objext'
20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 (eval $ac_try) 2>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; }; then
20419 ac_cv_c_inline=$ac_kw; break
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20429 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20430 echo "${ECHO_T}$ac_cv_c_inline" >&6
20433 case $ac_cv_c_inline in
20436 case $ac_cv_c_inline in
20438 *) ac_val=$ac_cv_c_inline;;
20440 cat >>confdefs.h <<_ACEOF
20441 #ifndef __cplusplus
20442 #define inline $ac_val
20448 echo "$as_me:$LINENO: checking for size_t" >&5
20449 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20450 if test "${ac_cv_type_size_t+set}" = set; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20453 cat >conftest.$ac_ext <<_ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20459 $ac_includes_default
20465 if (sizeof (size_t))
20471 rm -f conftest.$ac_objext
20472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20473 (eval $ac_compile) 2>conftest.er1
20475 grep -v '^ *+' conftest.er1 >conftest.err
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
20480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; } &&
20486 { ac_try='test -s conftest.$ac_objext'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 ac_cv_type_size_t=yes
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_cv_type_size_t=no
20499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20501 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20502 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20503 if test $ac_cv_type_size_t = yes; then
20507 cat >>confdefs.h <<_ACEOF
20508 #define size_t unsigned
20514 # Checks for library functions.
20516 for ac_header in stdlib.h
20518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20520 echo "$as_me:$LINENO: checking for $ac_header" >&5
20521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20523 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20528 # Is the header compilable?
20529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 $ac_includes_default
20538 #include <$ac_header>
20540 rm -f conftest.$ac_objext
20541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20542 (eval $ac_compile) 2>conftest.er1
20544 grep -v '^ *+' conftest.er1 >conftest.err
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
20549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; } &&
20555 { ac_try='test -s conftest.$ac_objext'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_header_compiler=yes
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20566 ac_header_compiler=no
20568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20570 echo "${ECHO_T}$ac_header_compiler" >&6
20572 # Is the header present?
20573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 #include <$ac_header>
20583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20586 grep -v '^ *+' conftest.er1 >conftest.err
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } >/dev/null; then
20591 if test -s conftest.err; then
20592 ac_cpp_err=$ac_c_preproc_warn_flag
20593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20600 if test -z "$ac_cpp_err"; then
20601 ac_header_preproc=yes
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_header_preproc=no
20608 rm -f conftest.err conftest.$ac_ext
20609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20610 echo "${ECHO_T}$ac_header_preproc" >&6
20612 # So? What about this header?
20613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20619 ac_header_preproc=yes
20622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20636 ## ----------------------------------------- ##
20637 ## Report this to martin.quinson@ens-lyon.fr ##
20638 ## ----------------------------------------- ##
20641 sed "s/^/$as_me: WARNING: /" >&2
20644 echo "$as_me:$LINENO: checking for $ac_header" >&5
20645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 eval "$as_ac_Header=\$ac_header_preproc"
20651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20656 cat >>confdefs.h <<_ACEOF
20657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20664 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20665 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
20666 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 if test "$cross_compiling" = yes; then
20670 ac_cv_func_malloc_0_nonnull=no
20672 cat >conftest.$ac_ext <<_ACEOF
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h. */
20678 #if STDC_HEADERS || HAVE_STDLIB_H
20679 # include <stdlib.h>
20687 exit (malloc (0) ? 0 : 1);
20692 rm -f conftest$ac_exeext
20693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20694 (eval $ac_link) 2>&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; }; then
20703 ac_cv_func_malloc_0_nonnull=yes
20705 echo "$as_me: program exited with status $ac_status" >&5
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20709 ( exit $ac_status )
20710 ac_cv_func_malloc_0_nonnull=no
20712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20715 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20716 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
20717 if test $ac_cv_func_malloc_0_nonnull = yes; then
20719 cat >>confdefs.h <<\_ACEOF
20720 #define HAVE_MALLOC 1
20724 cat >>confdefs.h <<\_ACEOF
20725 #define HAVE_MALLOC 0
20729 "malloc.$ac_objext" | \
20730 *" malloc.$ac_objext" | \
20731 "malloc.$ac_objext "* | \
20732 *" malloc.$ac_objext "* ) ;;
20733 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
20737 cat >>confdefs.h <<\_ACEOF
20738 #define malloc rpl_malloc
20745 echo "$as_me:$LINENO: checking for working memcmp" >&5
20746 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20747 if test "${ac_cv_func_memcmp_working+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 if test "$cross_compiling" = yes; then
20751 ac_cv_func_memcmp_working=no
20753 cat >conftest.$ac_ext <<_ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20759 $ac_includes_default
20764 /* Some versions of memcmp are not 8-bit clean. */
20765 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20766 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20769 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20770 or more and with at least one buffer not starting on a 4-byte boundary.
20771 William Lewis provided this test program. */
20776 for (i = 0; i < 4; i++)
20780 strcpy (a, "--------01111111");
20781 strcpy (b, "--------10000000");
20782 if (memcmp (a, b, 16) >= 0)
20792 rm -f conftest$ac_exeext
20793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20794 (eval $ac_link) 2>&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799 (eval $ac_try) 2>&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; }; then
20803 ac_cv_func_memcmp_working=yes
20805 echo "$as_me: program exited with status $ac_status" >&5
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 ( exit $ac_status )
20810 ac_cv_func_memcmp_working=no
20812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20815 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20816 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20817 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20818 "memcmp.$ac_objext" | \
20819 *" memcmp.$ac_objext" | \
20820 "memcmp.$ac_objext "* | \
20821 *" memcmp.$ac_objext "* ) ;;
20822 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20830 for ac_func in memset strchr strerror usleep
20832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20833 echo "$as_me:$LINENO: checking for $ac_func" >&5
20834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20835 if eval "test \"\${$as_ac_var+set}\" = set"; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 cat >conftest.$ac_ext <<_ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20846 #define $ac_func innocuous_$ac_func
20848 /* System header to define __stub macros and hopefully few prototypes,
20849 which can conflict with char $ac_func (); below.
20850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20851 <limits.h> exists even on freestanding compilers. */
20854 # include <limits.h>
20856 # include <assert.h>
20861 /* Override any gcc2 internal prototype to avoid an error. */
20866 /* We use char because int might match the return type of a gcc2
20867 builtin and then its argument prototype would still apply. */
20869 /* The GNU C library defines this for functions which it implements
20870 to always fail with ENOSYS. Some functions are actually named
20871 something starting with __ and the normal name is an alias. */
20872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20875 char (*f) () = $ac_func;
20884 return f != $ac_func;
20889 rm -f conftest.$ac_objext conftest$ac_exeext
20890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20891 (eval $ac_link) 2>conftest.er1
20893 grep -v '^ *+' conftest.er1 >conftest.err
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } &&
20898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try='test -s conftest$ac_exeext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 eval "$as_ac_var=yes"
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 eval "$as_ac_var=no"
20917 rm -f conftest.err conftest.$ac_objext \
20918 conftest$ac_exeext conftest.$ac_ext
20920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20922 if test `eval echo '${'$as_ac_var'}'` = yes; then
20923 cat >>confdefs.h <<_ACEOF
20924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20931 # Can we rebuild the documentation?
20934 ACI_PACKAGE_SAVED(XML,XML library (version XML2),xml2-config,,,:)
20935 ACI_PACKAGE(SimGrid,the SimGrid simulator,SG_init,-lsimgrid,simgrid.h)
20938 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
20939 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
20940 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
20941 if test "${enable_maintainer_mode+set}" = set; then
20942 enableval="$enable_maintainer_mode"
20943 USE_MAINTAINER_MODE=$enableval
20945 USE_MAINTAINER_MODE=no
20947 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
20948 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20951 if test $USE_MAINTAINER_MODE = yes; then
20952 MAINTAINER_MODE_TRUE=
20953 MAINTAINER_MODE_FALSE='#'
20955 MAINTAINER_MODE_TRUE='#'
20956 MAINTAINER_MODE_FALSE=
20959 MAINT=$MAINTAINER_MODE_TRUE
20962 if test x$USE_MAINTAINER_MODE = xyes
20964 GNOME_COMPILE_WARNINGS(yes)
20971 # Extract the first word of "bash", so it can be a program name with args.
20972 set dummy bash; ac_word=$2
20973 echo "$as_me:$LINENO: checking for $ac_word" >&5
20974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20975 if test "${ac_cv_prog_BASH+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 if test -n "$BASH"; then
20979 ac_cv_prog_BASH="$BASH" # Let the user override the test.
20981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20982 for as_dir in $PATH
20985 test -z "$as_dir" && as_dir=.
20986 for ac_exec_ext in '' $ac_executable_extensions; do
20987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20988 ac_cv_prog_BASH="`which bash`"
20989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20995 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
20998 BASH=$ac_cv_prog_BASH
20999 if test -n "$BASH"; then
21000 echo "$as_me:$LINENO: result: $BASH" >&5
21001 echo "${ECHO_T}$BASH" >&6
21003 echo "$as_me:$LINENO: result: no" >&5
21004 echo "${ECHO_T}no" >&6
21007 WARNING="This file is generated, do not edit"
21010 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/include/modules/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/run_tests src/base/Tests/trp_tcp_usage src/base/Tests/trp_file_usage src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
21013 cat >confcache <<\_ACEOF
21014 # This file is a shell script that caches the results of configure
21015 # tests run on this system so they can be shared between configure
21016 # scripts and configure runs, see configure's option --config-cache.
21017 # It is not useful on other systems. If it contains results you don't
21018 # want to keep, you may remove or edit it.
21020 # config.status only pays attention to the cache file if you give it
21021 # the --recheck option to rerun configure.
21023 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21024 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21025 # following values.
21029 # The following way of writing the cache mishandles newlines in values,
21030 # but we know of no workaround that is simple, portable, and efficient.
21031 # So, don't put newlines in cache variables' values.
21032 # Ultrix sh set writes to stderr and can't be redirected directly,
21033 # and sets the high bit in the cache file unless we assign to the vars.
21036 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21038 # `set' does not quote correctly, so add quotes (double-quote
21039 # substitution turns \\\\ into \\, and sed turns \\ into \).
21042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21045 # `set' quotes correctly as required by POSIX, so do not add quotes.
21047 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21054 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21056 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21058 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21059 if test -w $cache_file; then
21060 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21061 cat confcache >$cache_file
21063 echo "not updating unwritable cache $cache_file"
21068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21069 # Let make expand exec_prefix.
21070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21072 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21073 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21074 # trailing colons and then remove the whole line if VPATH becomes empty
21075 # (actually we leave an empty line to preserve line numbers).
21076 if test "x$srcdir" = x.; then
21077 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21078 s/:*\$(srcdir):*/:/;
21079 s/:*\${srcdir}:*/:/;
21081 s/^\([^=]*=[ ]*\):*/\1/;
21087 DEFS=-DHAVE_CONFIG_H
21091 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21092 # 1. Remove the extension, and $U if already installed.
21093 ac_i=`echo "$ac_i" |
21094 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21096 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21097 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21099 LIBOBJS=$ac_libobjs
21101 LTLIBOBJS=$ac_ltlibobjs
21104 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21105 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21106 Usually this means the macro was only invoked conditionally." >&5
21107 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21108 Usually this means the macro was only invoked conditionally." >&2;}
21109 { (exit 1); exit 1; }; }
21111 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21112 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21113 Usually this means the macro was only invoked conditionally." >&5
21114 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21115 Usually this means the macro was only invoked conditionally." >&2;}
21116 { (exit 1); exit 1; }; }
21118 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21119 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21120 Usually this means the macro was only invoked conditionally." >&5
21121 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21122 Usually this means the macro was only invoked conditionally." >&2;}
21123 { (exit 1); exit 1; }; }
21125 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21126 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21127 Usually this means the macro was only invoked conditionally." >&5
21128 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21129 Usually this means the macro was only invoked conditionally." >&2;}
21130 { (exit 1); exit 1; }; }
21132 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21133 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21134 Usually this means the macro was only invoked conditionally." >&5
21135 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21136 Usually this means the macro was only invoked conditionally." >&2;}
21137 { (exit 1); exit 1; }; }
21140 : ${CONFIG_STATUS=./config.status}
21141 ac_clean_files_save=$ac_clean_files
21142 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21143 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21144 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21145 cat >$CONFIG_STATUS <<_ACEOF
21147 # Generated by $as_me.
21148 # Run this file to recreate the current configuration.
21149 # Compiler output produced by configure, useful for debugging
21150 # configure, is in config.log if it exists.
21153 ac_cs_recheck=false
21155 SHELL=\${CONFIG_SHELL-$SHELL}
21158 cat >>$CONFIG_STATUS <<\_ACEOF
21159 ## --------------------- ##
21160 ## M4sh Initialization. ##
21161 ## --------------------- ##
21163 # Be Bourne compatible
21164 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21167 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21168 # is contrary to our usage. Disable this feature.
21169 alias -g '${1+"$@"}'='"$@"'
21170 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21173 DUALCASE=1; export DUALCASE # for MKS sh
21175 # Support unset when possible.
21176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21183 # Work around bugs in pre-3.0 UWIN ksh.
21184 $as_unset ENV MAIL MAILPATH
21191 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21192 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21193 LC_TELEPHONE LC_TIME
21195 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21196 eval $as_var=C; export $as_var
21202 # Required to use basename.
21203 if expr a : '\(a\)' >/dev/null 2>&1; then
21209 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21210 as_basename=basename
21216 # Name of the executable.
21217 as_me=`$as_basename "$0" ||
21218 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21219 X"$0" : 'X\(//\)$' \| \
21220 X"$0" : 'X\(/\)$' \| \
21221 . : '\(.\)' 2>/dev/null ||
21223 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21224 /^X\/\(\/\/\)$/{ s//\1/; q; }
21225 /^X\/\(\/\).*/{ s//\1/; q; }
21229 # PATH needs CR, and LINENO needs CR and PATH.
21230 # Avoid depending upon Character Ranges.
21231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21234 as_cr_digits='0123456789'
21235 as_cr_alnum=$as_cr_Letters$as_cr_digits
21237 # The user is always right.
21238 if test "${PATH_SEPARATOR+set}" != set; then
21239 echo "#! /bin/sh" >conf$$.sh
21240 echo "exit 0" >>conf$$.sh
21242 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21251 as_lineno_1=$LINENO
21252 as_lineno_2=$LINENO
21253 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21254 test "x$as_lineno_1" != "x$as_lineno_2" &&
21255 test "x$as_lineno_3" = "x$as_lineno_2" || {
21256 # Find who we are. Look in the path if we contain no path at all
21259 *[\\/]* ) as_myself=$0 ;;
21260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21261 for as_dir in $PATH
21264 test -z "$as_dir" && as_dir=.
21265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21270 # We did not find ourselves, most probably we were run as `sh COMMAND'
21271 # in which case we are not to be found in the path.
21272 if test "x$as_myself" = x; then
21275 if test ! -f "$as_myself"; then
21276 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21277 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21278 { (exit 1); exit 1; }; }
21280 case $CONFIG_SHELL in
21282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21283 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21286 test -z "$as_dir" && as_dir=.
21287 for as_base in sh bash ksh sh5; do
21290 if ("$as_dir/$as_base" -c '
21291 as_lineno_1=$LINENO
21292 as_lineno_2=$LINENO
21293 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21294 test "x$as_lineno_1" != "x$as_lineno_2" &&
21295 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21296 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21297 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21298 CONFIG_SHELL=$as_dir/$as_base
21299 export CONFIG_SHELL
21300 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21308 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21309 # uniformly replaced by the line number. The first 'sed' inserts a
21310 # line-number line before each line; the second 'sed' does the real
21311 # work. The second script uses 'N' to pair each line-number line
21312 # with the numbered line, and appends trailing '-' during
21313 # substitution so that $LINENO is not a special case at line end.
21314 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21315 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21316 sed '=' <$as_myself |
21321 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21324 s,^['$as_cr_digits']*\n,,
21325 ' >$as_me.lineno &&
21326 chmod +x $as_me.lineno ||
21327 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21328 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21329 { (exit 1); exit 1; }; }
21331 # Don't try to exec as it changes $[0], causing all sort of problems
21332 # (the dirname of $[0] is not the place where we might find the
21333 # original and so on. Autoconf is especially sensible to this).
21335 # Exit status is that of the last command.
21340 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21341 *c*,-n*) ECHO_N= ECHO_C='
21343 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21344 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21347 if expr a : '\(a\)' >/dev/null 2>&1; then
21353 rm -f conf$$ conf$$.exe conf$$.file
21355 if ln -s conf$$.file conf$$ 2>/dev/null; then
21356 # We could just check for DJGPP; but this test a) works b) is more generic
21357 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21358 if test -f conf$$.exe; then
21359 # Don't use ln at all; we don't have any links
21364 elif ln conf$$.file conf$$ 2>/dev/null; then
21369 rm -f conf$$ conf$$.exe conf$$.file
21371 if mkdir -p . 2>/dev/null; then
21374 test -d ./-p && rmdir ./-p
21378 as_executable_p="test -f"
21380 # Sed expression to map a string onto a valid CPP name.
21381 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21383 # Sed expression to map a string onto a valid variable name.
21384 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21388 # We need space, tab and new line, in precisely that order.
21398 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21399 # report actual input values of CONFIG_FILES etc. instead of their
21400 # values after options handling. Logging --version etc. is OK.
21404 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21405 ## Running $as_me. ##
21410 This file was extended by GRAS $as_me 0.0.040304, which was
21411 generated by GNU Autoconf 2.59. Invocation command line was
21413 CONFIG_FILES = $CONFIG_FILES
21414 CONFIG_HEADERS = $CONFIG_HEADERS
21415 CONFIG_LINKS = $CONFIG_LINKS
21416 CONFIG_COMMANDS = $CONFIG_COMMANDS
21420 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21424 # Files that config.status was made for.
21425 if test -n "$ac_config_files"; then
21426 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21429 if test -n "$ac_config_headers"; then
21430 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21433 if test -n "$ac_config_links"; then
21434 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21437 if test -n "$ac_config_commands"; then
21438 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21441 cat >>$CONFIG_STATUS <<\_ACEOF
21444 \`$as_me' instantiates files from templates according to the
21445 current configuration.
21447 Usage: $0 [OPTIONS] [FILE]...
21449 -h, --help print this help, then exit
21450 -V, --version print version number, then exit
21451 -q, --quiet do not print progress messages
21452 -d, --debug don't remove temporary files
21453 --recheck update $as_me by reconfiguring in the same conditions
21454 --file=FILE[:TEMPLATE]
21455 instantiate the configuration file FILE
21456 --header=FILE[:TEMPLATE]
21457 instantiate the configuration header FILE
21459 Configuration files:
21462 Configuration headers:
21465 Configuration commands:
21468 Report bugs to <bug-autoconf@gnu.org>."
21471 cat >>$CONFIG_STATUS <<_ACEOF
21473 GRAS config.status 0.0.040304
21474 configured by $0, generated by GNU Autoconf 2.59,
21475 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21477 Copyright (C) 2003 Free Software Foundation, Inc.
21478 This config.status script is free software; the Free Software Foundation
21479 gives unlimited permission to copy, distribute and modify it."
21484 cat >>$CONFIG_STATUS <<\_ACEOF
21485 # If no file are specified by the user, then we need to provide default
21486 # value. By we need to know if files were specified by the user.
21492 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21493 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21501 *) # This is not an option, so the user has probably given explicit
21504 ac_need_defaults=false;;
21508 # Handling of the options.
21510 cat >>$CONFIG_STATUS <<\_ACEOF
21511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21513 --version | --vers* | -V )
21514 echo "$ac_cs_version"; exit 0 ;;
21516 # Conflict between --help and --header
21517 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21518 Try \`$0 --help' for more information." >&5
21519 echo "$as_me: error: ambiguous option: $1
21520 Try \`$0 --help' for more information." >&2;}
21521 { (exit 1); exit 1; }; };;
21522 --help | --hel | -h )
21523 echo "$ac_cs_usage"; exit 0 ;;
21524 --debug | --d* | -d )
21526 --file | --fil | --fi | --f )
21528 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21529 ac_need_defaults=false;;
21530 --header | --heade | --head | --hea )
21532 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21533 ac_need_defaults=false;;
21534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21535 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21538 # This is an error.
21539 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21540 Try \`$0 --help' for more information." >&5
21541 echo "$as_me: error: unrecognized option: $1
21542 Try \`$0 --help' for more information." >&2;}
21543 { (exit 1); exit 1; }; } ;;
21545 *) ac_config_targets="$ac_config_targets $1" ;;
21551 ac_configure_extra_args=
21553 if $ac_cs_silent; then
21555 ac_configure_extra_args="$ac_configure_extra_args --silent"
21559 cat >>$CONFIG_STATUS <<_ACEOF
21560 if \$ac_cs_recheck; then
21561 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21562 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21567 cat >>$CONFIG_STATUS <<_ACEOF
21569 # INIT-COMMANDS section.
21572 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21578 cat >>$CONFIG_STATUS <<\_ACEOF
21579 for ac_config_target in $ac_config_targets
21581 case "$ac_config_target" in
21582 # Handling of arguments.
21583 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21584 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21585 "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
21586 "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
21587 "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
21588 "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
21589 "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
21590 "src/base/Tests/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_tcp_usage" ;;
21591 "src/base/Tests/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_file_usage" ;;
21592 "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
21593 "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
21594 "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
21595 "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
21596 "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
21597 "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
21598 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21599 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21600 "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
21601 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21602 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21603 { (exit 1); exit 1; }; };;
21607 # If the user did not use the arguments to specify the items to instantiate,
21608 # then the envvar interface is used. Set only those that are not.
21609 # We use the long form for the default assignment because of an extremely
21610 # bizarre bug on SunOS 4.1.3.
21611 if $ac_need_defaults; then
21612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21613 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21617 # Have a temporary directory for convenience. Make it in the build tree
21618 # simply because there is no reason to put it here, and in addition,
21619 # creating and moving files from /tmp can sometimes cause problems.
21620 # Create a temporary directory, and hook for its removal unless debugging.
21623 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21624 trap '{ (exit 1); exit 1; }' 1 2 13 15
21627 # Create a (secure) tmp directory for tmp files.
21630 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21631 test -n "$tmp" && test -d "$tmp"
21634 tmp=./confstat$$-$RANDOM
21635 (umask 077 && mkdir $tmp)
21638 echo "$me: cannot create a temporary directory in ." >&2
21639 { (exit 1); exit 1; }
21644 cat >>$CONFIG_STATUS <<_ACEOF
21647 # CONFIG_FILES section.
21650 # No need to generate the scripts if there are no CONFIG_FILES.
21651 # This happens for instance when ./config.status config.h
21652 if test -n "\$CONFIG_FILES"; then
21653 # Protect against being on the right side of a sed subst in config.status.
21654 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21655 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21656 s,@SHELL@,$SHELL,;t t
21657 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21658 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21659 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21660 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21661 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21662 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21663 s,@exec_prefix@,$exec_prefix,;t t
21664 s,@prefix@,$prefix,;t t
21665 s,@program_transform_name@,$program_transform_name,;t t
21666 s,@bindir@,$bindir,;t t
21667 s,@sbindir@,$sbindir,;t t
21668 s,@libexecdir@,$libexecdir,;t t
21669 s,@datadir@,$datadir,;t t
21670 s,@sysconfdir@,$sysconfdir,;t t
21671 s,@sharedstatedir@,$sharedstatedir,;t t
21672 s,@localstatedir@,$localstatedir,;t t
21673 s,@libdir@,$libdir,;t t
21674 s,@includedir@,$includedir,;t t
21675 s,@oldincludedir@,$oldincludedir,;t t
21676 s,@infodir@,$infodir,;t t
21677 s,@mandir@,$mandir,;t t
21678 s,@build_alias@,$build_alias,;t t
21679 s,@host_alias@,$host_alias,;t t
21680 s,@target_alias@,$target_alias,;t t
21681 s,@DEFS@,$DEFS,;t t
21682 s,@ECHO_C@,$ECHO_C,;t t
21683 s,@ECHO_N@,$ECHO_N,;t t
21684 s,@ECHO_T@,$ECHO_T,;t t
21685 s,@LIBS@,$LIBS,;t t
21686 s,@build@,$build,;t t
21687 s,@build_cpu@,$build_cpu,;t t
21688 s,@build_vendor@,$build_vendor,;t t
21689 s,@build_os@,$build_os,;t t
21690 s,@host@,$host,;t t
21691 s,@host_cpu@,$host_cpu,;t t
21692 s,@host_vendor@,$host_vendor,;t t
21693 s,@host_os@,$host_os,;t t
21694 s,@target@,$target,;t t
21695 s,@target_cpu@,$target_cpu,;t t
21696 s,@target_vendor@,$target_vendor,;t t
21697 s,@target_os@,$target_os,;t t
21698 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21699 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21700 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21701 s,@CYGPATH_W@,$CYGPATH_W,;t t
21702 s,@PACKAGE@,$PACKAGE,;t t
21703 s,@VERSION@,$VERSION,;t t
21704 s,@ACLOCAL@,$ACLOCAL,;t t
21705 s,@AUTOCONF@,$AUTOCONF,;t t
21706 s,@AUTOMAKE@,$AUTOMAKE,;t t
21707 s,@AUTOHEADER@,$AUTOHEADER,;t t
21708 s,@MAKEINFO@,$MAKEINFO,;t t
21709 s,@AMTAR@,$AMTAR,;t t
21710 s,@install_sh@,$install_sh,;t t
21711 s,@STRIP@,$STRIP,;t t
21712 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21713 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21714 s,@mkdir_p@,$mkdir_p,;t t
21716 s,@SET_MAKE@,$SET_MAKE,;t t
21717 s,@am__leading_dot@,$am__leading_dot,;t t
21719 s,@CFLAGS@,$CFLAGS,;t t
21720 s,@LDFLAGS@,$LDFLAGS,;t t
21721 s,@CPPFLAGS@,$CPPFLAGS,;t t
21722 s,@ac_ct_CC@,$ac_ct_CC,;t t
21723 s,@EXEEXT@,$EXEEXT,;t t
21724 s,@OBJEXT@,$OBJEXT,;t t
21725 s,@DEPDIR@,$DEPDIR,;t t
21726 s,@am__include@,$am__include,;t t
21727 s,@am__quote@,$am__quote,;t t
21728 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21729 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21730 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21731 s,@CCDEPMODE@,$CCDEPMODE,;t t
21732 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21733 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21734 s,@EGREP@,$EGREP,;t t
21735 s,@LN_S@,$LN_S,;t t
21736 s,@ECHO@,$ECHO,;t t
21738 s,@ac_ct_AR@,$ac_ct_AR,;t t
21739 s,@RANLIB@,$RANLIB,;t t
21740 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21743 s,@CXXFLAGS@,$CXXFLAGS,;t t
21744 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21745 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21746 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21747 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21748 s,@CXXCPP@,$CXXCPP,;t t
21750 s,@FFLAGS@,$FFLAGS,;t t
21751 s,@ac_ct_F77@,$ac_ct_F77,;t t
21752 s,@LIBTOOL@,$LIBTOOL,;t t
21753 s,@LIBOBJS@,$LIBOBJS,;t t
21754 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21755 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21756 s,@MAINT@,$MAINT,;t t
21757 s,@BASH@,$BASH,;t t
21758 s,@WARNING@,$WARNING,;t t
21759 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21764 cat >>$CONFIG_STATUS <<\_ACEOF
21765 # Split the substitutions into bite-sized pieces for seds with
21766 # small command number limits, like on Digital OSF/1 and HP-UX.
21767 ac_max_sed_lines=48
21768 ac_sed_frag=1 # Number of current file.
21769 ac_beg=1 # First line for current file.
21770 ac_end=$ac_max_sed_lines # Line after last line for current file.
21773 while $ac_more_lines; do
21774 if test $ac_beg -gt 1; then
21775 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21777 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21779 if test ! -s $tmp/subs.frag; then
21780 ac_more_lines=false
21782 # The purpose of the label and of the branching condition is to
21783 # speed up the sed processing (if there are no `@' at all, there
21784 # is no need to browse any of the substitutions).
21785 # These are the two extra sed commands mentioned above.
21787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21788 if test -z "$ac_sed_cmds"; then
21789 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21791 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21793 ac_sed_frag=`expr $ac_sed_frag + 1`
21795 ac_end=`expr $ac_end + $ac_max_sed_lines`
21798 if test -z "$ac_sed_cmds"; then
21801 fi # test -n "$CONFIG_FILES"
21804 cat >>$CONFIG_STATUS <<\_ACEOF
21805 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21808 - | *:- | *:-:* ) # input from stdin
21810 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21811 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21812 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21814 * ) ac_file_in=$ac_file.in ;;
21817 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21818 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21820 X"$ac_file" : 'X\(//\)[^/]' \| \
21821 X"$ac_file" : 'X\(//\)$' \| \
21822 X"$ac_file" : 'X\(/\)' \| \
21823 . : '\(.\)' 2>/dev/null ||
21825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21827 /^X\(\/\/\)$/{ s//\1/; q; }
21828 /^X\(\/\).*/{ s//\1/; q; }
21830 { if $as_mkdir_p; then
21835 while test ! -d "$as_dir"; do
21836 as_dirs="$as_dir $as_dirs"
21837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21839 X"$as_dir" : 'X\(//\)[^/]' \| \
21840 X"$as_dir" : 'X\(//\)$' \| \
21841 X"$as_dir" : 'X\(/\)' \| \
21842 . : '\(.\)' 2>/dev/null ||
21844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21846 /^X\(\/\/\)$/{ s//\1/; q; }
21847 /^X\(\/\).*/{ s//\1/; q; }
21850 test ! -n "$as_dirs" || mkdir $as_dirs
21851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21853 { (exit 1); exit 1; }; }; }
21857 if test "$ac_dir" != .; then
21858 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21859 # A "../" for each directory in $ac_dir_suffix.
21860 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21862 ac_dir_suffix= ac_top_builddir=
21866 .) # No --srcdir option. We are building in place.
21868 if test -z "$ac_top_builddir"; then
21871 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21873 [\\/]* | ?:[\\/]* ) # Absolute path.
21874 ac_srcdir=$srcdir$ac_dir_suffix;
21875 ac_top_srcdir=$srcdir ;;
21876 *) # Relative path.
21877 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21878 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21881 # Do not use `cd foo && pwd` to compute absolute paths, because
21882 # the directories may not exist.
21884 .) ac_abs_builddir="$ac_dir";;
21887 .) ac_abs_builddir=`pwd`;;
21888 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21889 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21892 case $ac_abs_builddir in
21893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21895 case ${ac_top_builddir}. in
21896 .) ac_abs_top_builddir=$ac_abs_builddir;;
21897 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21898 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21901 case $ac_abs_builddir in
21902 .) ac_abs_srcdir=$ac_srcdir;;
21905 .) ac_abs_srcdir=$ac_abs_builddir;;
21906 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21907 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21910 case $ac_abs_builddir in
21911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21913 case $ac_top_srcdir in
21914 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21915 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21916 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21923 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21926 # Let's still pretend it is `configure' which instantiates (i.e., don't
21927 # use $as_me), people would be surprised to read:
21928 # /* config.h. Generated by config.status. */
21929 if test x"$ac_file" = x-; then
21932 configure_input="$ac_file. "
21934 configure_input=$configure_input"Generated from `echo $ac_file_in |
21935 sed 's,.*/,,'` by configure."
21937 # First look for the input files in the build tree, otherwise in the
21939 ac_file_inputs=`IFS=:
21940 for f in $ac_file_in; do
21942 -) echo $tmp/stdin ;;
21944 # Absolute (can't be DOS-style, as IFS=:)
21945 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21946 echo "$as_me: error: cannot find input file: $f" >&2;}
21947 { (exit 1); exit 1; }; }
21950 if test -f "$f"; then
21953 elif test -f "$srcdir/$f"; then
21958 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21959 echo "$as_me: error: cannot find input file: $f" >&2;}
21960 { (exit 1); exit 1; }; }
21963 done` || { (exit 1); exit 1; }
21965 if test x"$ac_file" != x-; then
21966 { echo "$as_me:$LINENO: creating $ac_file" >&5
21967 echo "$as_me: creating $ac_file" >&6;}
21971 cat >>$CONFIG_STATUS <<_ACEOF
21975 cat >>$CONFIG_STATUS <<\_ACEOF
21977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21978 s,@configure_input@,$configure_input,;t t
21979 s,@srcdir@,$ac_srcdir,;t t
21980 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21981 s,@top_srcdir@,$ac_top_srcdir,;t t
21982 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21983 s,@builddir@,$ac_builddir,;t t
21984 s,@abs_builddir@,$ac_abs_builddir,;t t
21985 s,@top_builddir@,$ac_top_builddir,;t t
21986 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21987 s,@INSTALL@,$ac_INSTALL,;t t
21988 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21990 if test x"$ac_file" != x-; then
21991 mv $tmp/out $ac_file
21997 # Run the commands associated with the file.
21999 Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22000 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22001 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22002 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22003 src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22004 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22005 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22006 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22007 src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22008 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22009 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22010 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22011 src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22012 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22013 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22014 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22015 src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22016 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22017 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22018 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22019 src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22020 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22021 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22022 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22023 src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
22024 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22025 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22026 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22027 src/base/Tests/trp_tcp_usage ) ( cd src/include ; test -e gras || ln -s . gras )
22028 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22029 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22030 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22031 src/base/Tests/trp_file_usage ) ( cd src/include ; test -e gras || ln -s . gras )
22032 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22033 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22034 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22035 src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22036 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22037 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22038 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22039 src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22040 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22041 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22042 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22043 src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22044 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22045 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22046 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22047 src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22048 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22049 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22050 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22051 src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22052 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22053 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22054 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22055 src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22056 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22057 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22058 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22059 doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
22060 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
22061 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
22062 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
22066 cat >>$CONFIG_STATUS <<\_ACEOF
22069 # CONFIG_HEADER section.
22072 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22073 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22075 # ac_d sets the value in "#define NAME VALUE" lines.
22076 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22077 ac_dB='[ ].*$,\1#\2'
22080 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22081 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22082 ac_uB='$,\1#\2define\3'
22086 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22089 - | *:- | *:-:* ) # input from stdin
22091 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22093 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22094 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22095 * ) ac_file_in=$ac_file.in ;;
22098 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22099 echo "$as_me: creating $ac_file" >&6;}
22101 # First look for the input files in the build tree, otherwise in the
22103 ac_file_inputs=`IFS=:
22104 for f in $ac_file_in; do
22106 -) echo $tmp/stdin ;;
22108 # Absolute (can't be DOS-style, as IFS=:)
22109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22110 echo "$as_me: error: cannot find input file: $f" >&2;}
22111 { (exit 1); exit 1; }; }
22112 # Do quote $f, to prevent DOS paths from being IFS'd.
22115 if test -f "$f"; then
22118 elif test -f "$srcdir/$f"; then
22123 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22124 echo "$as_me: error: cannot find input file: $f" >&2;}
22125 { (exit 1); exit 1; }; }
22128 done` || { (exit 1); exit 1; }
22129 # Remove the trailing spaces.
22130 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22134 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22135 # `conftest.undefs', that substitutes the proper values into
22136 # config.h.in to produce config.h. The first handles `#define'
22137 # templates, and the second `#undef' templates.
22138 # And first: Protect against being on the right side of a sed subst in
22139 # config.status. Protect against being in an unquoted here document
22140 # in config.status.
22141 rm -f conftest.defines conftest.undefs
22142 # Using a here document instead of a string reduces the quoting nightmare.
22143 # Putting comments in sed scripts is not portable.
22145 # `end' is used to avoid that the second main sed command (meant for
22146 # 0-ary CPP macros) applies to n-ary macro definitions.
22147 # See the Autoconf documentation for `clear'.
22148 cat >confdef2sed.sed <<\_ACEOF
22153 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22155 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22158 # If some macros were called several times there might be several times
22159 # the same #defines, which is useless. Nevertheless, we may not want to
22160 # sort them, since we want the *last* AC-DEFINE to be honored.
22161 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22162 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22163 rm -f confdef2sed.sed
22165 # This sed command replaces #undef with comments. This is necessary, for
22166 # example, in the case of _POSIX_SOURCE, which is predefined and required
22167 # on some systems where configure will not decide to define it.
22168 cat >>conftest.undefs <<\_ACEOF
22169 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22172 # Break up conftest.defines because some shells have a limit on the size
22173 # of here documents, and old seds have small limits too (100 cmds).
22174 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22175 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22176 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22177 echo ' :' >>$CONFIG_STATUS
22178 rm -f conftest.tail
22179 while grep . conftest.defines >/dev/null
22181 # Write a limited-size here document to $tmp/defines.sed.
22182 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22183 # Speed up: don't consider the non `#define' lines.
22184 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22185 # Work around the forget-to-reset-the-flag bug.
22186 echo 't clr' >>$CONFIG_STATUS
22187 echo ': clr' >>$CONFIG_STATUS
22188 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22190 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22192 mv $tmp/out $tmp/in
22194 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22195 rm -f conftest.defines
22196 mv conftest.tail conftest.defines
22198 rm -f conftest.defines
22199 echo ' fi # grep' >>$CONFIG_STATUS
22200 echo >>$CONFIG_STATUS
22202 # Break up conftest.undefs because some shells have a limit on the size
22203 # of here documents, and old seds have small limits too (100 cmds).
22204 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22205 rm -f conftest.tail
22206 while grep . conftest.undefs >/dev/null
22208 # Write a limited-size here document to $tmp/undefs.sed.
22209 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22210 # Speed up: don't consider the non `#undef'
22211 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22212 # Work around the forget-to-reset-the-flag bug.
22213 echo 't clr' >>$CONFIG_STATUS
22214 echo ': clr' >>$CONFIG_STATUS
22215 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22217 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22219 mv $tmp/out $tmp/in
22221 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22222 rm -f conftest.undefs
22223 mv conftest.tail conftest.undefs
22225 rm -f conftest.undefs
22227 cat >>$CONFIG_STATUS <<\_ACEOF
22228 # Let's still pretend it is `configure' which instantiates (i.e., don't
22229 # use $as_me), people would be surprised to read:
22230 # /* config.h. Generated by config.status. */
22231 if test x"$ac_file" = x-; then
22232 echo "/* Generated by configure. */" >$tmp/config.h
22234 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22236 cat $tmp/in >>$tmp/config.h
22238 if test x"$ac_file" != x-; then
22239 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22240 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22241 echo "$as_me: $ac_file is unchanged" >&6;}
22243 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22245 X"$ac_file" : 'X\(//\)[^/]' \| \
22246 X"$ac_file" : 'X\(//\)$' \| \
22247 X"$ac_file" : 'X\(/\)' \| \
22248 . : '\(.\)' 2>/dev/null ||
22250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22252 /^X\(\/\/\)$/{ s//\1/; q; }
22253 /^X\(\/\).*/{ s//\1/; q; }
22255 { if $as_mkdir_p; then
22260 while test ! -d "$as_dir"; do
22261 as_dirs="$as_dir $as_dirs"
22262 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22264 X"$as_dir" : 'X\(//\)[^/]' \| \
22265 X"$as_dir" : 'X\(//\)$' \| \
22266 X"$as_dir" : 'X\(/\)' \| \
22267 . : '\(.\)' 2>/dev/null ||
22269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22271 /^X\(\/\/\)$/{ s//\1/; q; }
22272 /^X\(\/\).*/{ s//\1/; q; }
22275 test ! -n "$as_dirs" || mkdir $as_dirs
22276 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22277 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22278 { (exit 1); exit 1; }; }; }
22281 mv $tmp/config.h $ac_file
22285 rm -f $tmp/config.h
22287 # Compute $ac_file's index in $config_headers.
22289 for _am_header in $config_headers :; do
22290 case $_am_header in
22291 $ac_file | $ac_file:* )
22294 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22297 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22298 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22299 X$ac_file : 'X\(//\)[^/]' \| \
22300 X$ac_file : 'X\(//\)$' \| \
22301 X$ac_file : 'X\(/\)' \| \
22302 . : '\(.\)' 2>/dev/null ||
22304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22306 /^X\(\/\/\)$/{ s//\1/; q; }
22307 /^X\(\/\).*/{ s//\1/; q; }
22308 s/.*/./; q'`/stamp-h$_am_stamp_count
22311 cat >>$CONFIG_STATUS <<\_ACEOF
22314 # CONFIG_COMMANDS section.
22316 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22317 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22318 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22319 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22320 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22321 X"$ac_dest" : 'X\(//\)[^/]' \| \
22322 X"$ac_dest" : 'X\(//\)$' \| \
22323 X"$ac_dest" : 'X\(/\)' \| \
22324 . : '\(.\)' 2>/dev/null ||
22326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22328 /^X\(\/\/\)$/{ s//\1/; q; }
22329 /^X\(\/\).*/{ s//\1/; q; }
22331 { if $as_mkdir_p; then
22336 while test ! -d "$as_dir"; do
22337 as_dirs="$as_dir $as_dirs"
22338 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22340 X"$as_dir" : 'X\(//\)[^/]' \| \
22341 X"$as_dir" : 'X\(//\)$' \| \
22342 X"$as_dir" : 'X\(/\)' \| \
22343 . : '\(.\)' 2>/dev/null ||
22345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22347 /^X\(\/\/\)$/{ s//\1/; q; }
22348 /^X\(\/\).*/{ s//\1/; q; }
22351 test ! -n "$as_dirs" || mkdir $as_dirs
22352 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22354 { (exit 1); exit 1; }; }; }
22358 if test "$ac_dir" != .; then
22359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22360 # A "../" for each directory in $ac_dir_suffix.
22361 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22363 ac_dir_suffix= ac_top_builddir=
22367 .) # No --srcdir option. We are building in place.
22369 if test -z "$ac_top_builddir"; then
22372 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22374 [\\/]* | ?:[\\/]* ) # Absolute path.
22375 ac_srcdir=$srcdir$ac_dir_suffix;
22376 ac_top_srcdir=$srcdir ;;
22377 *) # Relative path.
22378 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22379 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22382 # Do not use `cd foo && pwd` to compute absolute paths, because
22383 # the directories may not exist.
22385 .) ac_abs_builddir="$ac_dir";;
22388 .) ac_abs_builddir=`pwd`;;
22389 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22390 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22393 case $ac_abs_builddir in
22394 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22396 case ${ac_top_builddir}. in
22397 .) ac_abs_top_builddir=$ac_abs_builddir;;
22398 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22399 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22402 case $ac_abs_builddir in
22403 .) ac_abs_srcdir=$ac_srcdir;;
22406 .) ac_abs_srcdir=$ac_abs_builddir;;
22407 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22408 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22411 case $ac_abs_builddir in
22412 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22414 case $ac_top_srcdir in
22415 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22416 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22417 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22422 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22423 echo "$as_me: executing $ac_dest commands" >&6;}
22425 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22426 # Strip MF so we end up with the name of the file.
22427 mf=`echo "$mf" | sed -e 's/:.*$//'`
22428 # Check whether this is an Automake generated Makefile or not.
22429 # We used to match only the files named `Makefile.in', but
22430 # some people rename them; so instead we look at the file content.
22431 # Grep'ing the first line is not enough: some people post-process
22432 # each Makefile.in and add a new line on top of each file to say so.
22433 # So let's grep whole file.
22434 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22435 dirpart=`(dirname "$mf") 2>/dev/null ||
22436 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22437 X"$mf" : 'X\(//\)[^/]' \| \
22438 X"$mf" : 'X\(//\)$' \| \
22439 X"$mf" : 'X\(/\)' \| \
22440 . : '\(.\)' 2>/dev/null ||
22442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22444 /^X\(\/\/\)$/{ s//\1/; q; }
22445 /^X\(\/\).*/{ s//\1/; q; }
22450 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22451 # Extract the definition of DEP_FILES from the Makefile without
22453 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22454 test -z "$DEPDIR" && continue
22455 # When using ansi2knr, U may be empty or an underscore; expand it
22456 U=`sed -n 's/^U = //p' < "$mf"`
22457 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22458 # We invoke sed twice because it is the simplest approach to
22459 # changing $(DEPDIR) to its actual value in the expansion.
22460 for file in `sed -n '
22461 /^DEP_FILES = .*\\\\$/ {
22470 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22471 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22472 # Make sure the directory exists.
22473 test -f "$dirpart/$file" && continue
22474 fdir=`(dirname "$file") 2>/dev/null ||
22475 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22476 X"$file" : 'X\(//\)[^/]' \| \
22477 X"$file" : 'X\(//\)$' \| \
22478 X"$file" : 'X\(/\)' \| \
22479 . : '\(.\)' 2>/dev/null ||
22481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22483 /^X\(\/\/\)$/{ s//\1/; q; }
22484 /^X\(\/\).*/{ s//\1/; q; }
22486 { if $as_mkdir_p; then
22487 mkdir -p $dirpart/$fdir
22489 as_dir=$dirpart/$fdir
22491 while test ! -d "$as_dir"; do
22492 as_dirs="$as_dir $as_dirs"
22493 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22494 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22495 X"$as_dir" : 'X\(//\)[^/]' \| \
22496 X"$as_dir" : 'X\(//\)$' \| \
22497 X"$as_dir" : 'X\(/\)' \| \
22498 . : '\(.\)' 2>/dev/null ||
22500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22502 /^X\(\/\/\)$/{ s//\1/; q; }
22503 /^X\(\/\).*/{ s//\1/; q; }
22506 test ! -n "$as_dirs" || mkdir $as_dirs
22507 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22508 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22509 { (exit 1); exit 1; }; }; }
22511 # echo "creating $dirpart/$file"
22512 echo '# dummy' > "$dirpart/$file"
22520 cat >>$CONFIG_STATUS <<\_ACEOF
22522 { (exit 0); exit 0; }
22524 chmod +x $CONFIG_STATUS
22525 ac_clean_files=$ac_clean_files_save
22528 # configure is writing to config.log, and then calls config.status.
22529 # config.status does its own redirection, appending to config.log.
22530 # Unfortunately, on DOS this fails, as config.log is still kept open
22531 # by configure, so config.status won't be able to write to it; its
22532 # output is simply discarded. So we exec the FD to /dev/null,
22533 # effectively closing config.log, so it can be properly (re)opened and
22534 # appended to by config.status. When coming back to configure, we
22535 # need to make the FD available again.
22536 if test "$no_create" != yes; then
22538 ac_config_status_args=
22539 test "$silent" = yes &&
22540 ac_config_status_args="$ac_config_status_args --quiet"
22542 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22544 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22545 # would make configure fail if this is the last instruction.
22546 $ac_cs_success || { (exit 1); exit 1; }
22552 Configuration of package \`${PACKAGE}':
22557 LDFlags: ${LDFLAGS}